[xml/sgml-pkgs] Bug#498194: libxml-parser-perl: script crashes when reading empty file in xml::rss
Manuel Schneider
info at efreetsystems.de
Sun Sep 7 22:33:59 UTC 2008
Package: libxml-parser-perl
Version: 2.36-1.1+b1
Severity: normal
When using parsefile from XML::RSS with an empty file the script runs out of memory.
# touch test
# ./test.pl
Ran out of memory for input buffer at /usr/lib/perl5/XML/Parser/Expat.pm line 469.
# echo "foo" >> test
# ./test.pl
syntax error at line 1, column 0, byte 0 at /usr/lib/perl5/XML/Parser.pm line 187
test.pl:
#!/usr/bin/perl
use XML::RSS;
use strict;
use warnings;
my $rss = new XML::RSS ();
$rss->parsefile("test");
-- System Information:
Debian Release: lenny/sid
APT prefers testing
Architecture: i386 (i686)
Kernel: Linux 2.6.26
Locale: LANG=de_DE at euro, LC_CTYPE=de_DE at euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash
Versions of packages libxml-parser-perl depends on:
ii libc6 2.7-13 GNU C Library: Shared libraries
ii libexpat1 2.0.1-4 XML parsing C library - runtime li
ii liburi-perl 1.35.dfsg.1-1 Manipulates and accesses URI strin
ii libwww-perl 5.813-1 WWW client/server library for Perl
ii perl 5.10.0-13 Larry Wall's Practical Extraction
ii perl-base [perlapi-5.10.0] 5.10.0-13 minimal Perl system
libxml-parser-perl recommends no packages.
libxml-parser-perl suggests no packages.
-- no debconf information
More information about the debian-xml-sgml-pkgs
mailing list