[ expat-Bugs-1513566 ] readfilemap fails with file size 0
"SourceForge.net" <[email protected]> Sat, 17 Jan 2009 18:31:04 +0000
| Newsgroups | gmane.text.xml.expat.bugs |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1513566, was opened at 2006-06-27 16:16 Message generated for change (Comment added) made by kwaclaw 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: None Group: Test Required >Status: Closed Resolution: Fixed Priority: 5 Private: No 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. ---------------------------------------------------------------------- >Comment By: Karl Waclawek (kwaclaw) Date: 2009-01-17 13:31 Message: No complaints received. ---------------------------------------------------------------------- Comment By: Karl Waclawek (kwaclaw) Date: 2006-11-26 14:52 Message: Logged In: YES user_id=290026 Originator: NO Re-assigned to Fred for testing. ---------------------------------------------------------------------- Comment By: Karl Waclawek (kwaclaw) Date: 2006-06-27 22:57 Message: Logged In: YES user_id=290026 The same issue was detected by Mike in unixfilemap.c. Fix committed in readfilemap.c rev. 1.12 and unixfilemap.c rev. 1.9. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1513566&group_id=10127