#415 readfilemap fails with file size 0

Test Required
closed-fixed
None
5
2009-01-17
2006-06-27
MikeG
No

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.

Discussion

  • MikeG

    MikeG - 2006-06-27

    readfilemap.diff

     
  • Karl Waclawek

    Karl Waclawek - 2006-06-28
    • labels: 436817 -->
    • milestone: --> Test Required
    • assigned_to: fdrake --> kwaclaw
    • status: open --> open-fixed
     
  • Karl Waclawek

    Karl Waclawek - 2006-06-28

    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.

     
  • Karl Waclawek

    Karl Waclawek - 2006-11-26
    • assigned_to: kwaclaw --> fdrake
     
  • Karl Waclawek

    Karl Waclawek - 2006-11-26

    Logged In: YES
    user_id=290026
    Originator: NO

    Re-assigned to Fred for testing.

     
  • Karl Waclawek

    Karl Waclawek - 2009-01-17
    • status: open-fixed --> closed-fixed
     
  • Karl Waclawek

    Karl Waclawek - 2009-01-17

    No complaints received.

     

Log in to post a comment.