Menu

#20 segfault with malformed URLs

closed-fixed
7
2001-06-24
2001-06-20
No

Klicking on an URL without an `access scheme' (the
leading `file:', `http:' part) causes xdvi to exit
with a segmentation fault. Here's a miminal example
document to reproduce the problem:

\documentclass{minimal}
\usepackage{hyperref}
\begin{document}
\url{test:me}
\end{document}

This happens with all versions >= 22.37, which probably
means that some re-initialization of the .dvi file is
not done correctly when open_www_file is failing (in
earlier versions, xdvi just exited in such a
situation).

Discussion

  • Stefan Ulrich

    Stefan Ulrich - 2001-06-24
    • status: open --> closed-fixed
     
  • Stefan Ulrich

    Stefan Ulrich - 2001-06-24

    Logged In: YES
    user_id=177175

    This was actually a bug in libwww, which closes a file
    descriptor twice when called with an invalid URL (reported
    to the libwww mailing list, see
    http://lists.w3.org/Archives/Public/www-lib/2001AprJun/0152.html\).

    Patch to HTAccess.c, rev1.2, now contains a workaround for
    this.

     

Log in to post a comment.