Skip Menu |

This queue is for tickets about the XML-SAX-Expat CPAN distribution.

Report information
The Basics
Id: 83427
Status: new
Priority: 0/
Queue: XML-SAX-Expat

People
Owner: Nobody in particular
Requestors: bitcard [...] davel.me.uk
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.40
Fixed in: (no value)



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;