[xml/sgml-pkgs] Bug#427436: libxml2: Error with n empty file
Mike Hommey
mh at glandium.org
Fri Aug 6 08:20:33 UTC 2010
On Mon, Jun 04, 2007 at 02:15:44AM +0100, Luis Matos wrote:
> Package: libxml2
> Version: 2.6.27.dfsg-1
> Severity: important
>
> *** Please type your report below this line ***
> Opening an empty file makes libxml exit with segfault:
>
> vapiIOconf.vpi:1: parser error : Extra content at the end of the
> document
>
> ^
>
> ----------------------------------------------
> Program has been terminated receiving signal 11 (Segmentation fault)
>
> to test, just touch a file and then try to open it:
>
> first: touch test.xml
>
> then compile the code presented with: gcc file.c -o xmlTest `pkg-config
> --libs --cflags libxml-2.0`
>
> then execute with ./xmlTest
>
> #include <libxml/xmlreader.h>
> int
> main()
> {
> xmlTextReader *xmlInput;
> xmlInput = xmlReaderForFile ("test.xml", "ISO-8859-1",
> XML_PARSE_DTDATTR |
> XML_PARSE_NOENT |
> XML_PARSE_DTDVALID);
>
> return 0;
> }
Sorry for the very late answer, somehow I missed this bug.
I haven't been able to reproduce this bug with the version of libxml2
you reported the bug against. Does it still happen for you?
Cheers,
Mike
More information about the debian-xml-sgml-pkgs
mailing list