[Expat-bugs] [ expat-Bugs-1513566 ] readfilemap fails with file size 0

SourceForge.net noreply at sourceforge.net
Tue Jun 27 22:16:54 CEST 2006


Bugs item #1513566, was opened at 2006-06-27 16:16
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1513566&group_id=10127

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: www.libexpat.org
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: MikeG (greenemk)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: readfilemap fails with file size 0

Initial Comment:
xmlwf compiled with readfilemap.c will fail with an
"out of memory" error on file size zero when executing
malloc( ) . The attached patch handles 0 size files in
the same manner as in win32filemap.c. The patch also
includes a close( ) of the open file if malloc( ) fails. 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1513566&group_id=10127


More information about the Expat-bugs mailing list