Subject: | Incorrect error reported when supplied XML is zero length |
If the file handle supplied to XML::SAX::Expat is at EOF, it erroneously
reports "Ran out of memory for input buffer". A test script is attached.
I am testing on Ubuntu 10.04 x86_64.
$ perl null.pl
Ran out of memory for input buffer at /usr/lib/perl5/XML/Parser/Expat.pm
line 469.
Best regards,
Dave Lambley
Subject: | null.pl |
#!/usr/bin/env perl
use strict;
use warnings;
use XML::SAX::Expat;
my $h = bless {}, "Foo";
open(my $fh, "<", "/dev/null") or die $!;
my $p = XML::SAX::Expat->new( Handler => $h );
$p->parse_file($fh);
package Foo;
1;