#22 fwrite with 0 length crashes on OS X

closed-fixed
None
5
2007-06-26
2007-06-25
No

0.13 and the svn version crash on OS X in stream_lc.h:261. It seems that the fwrite function doesn't handle a count of 0, and gives a bus error. The attached patch adds a test for 0 length before calling fwrite.

With this, the test suite runs fine.

Discussion

  • Marcus Börger

    Marcus Börger - 2007-06-26

    Logged In: YES
    user_id=271023
    Originator: NO

    Fixed in head and new version 0.12.2. I hope I can release that version later today.

     
  • Marcus Börger

    Marcus Börger - 2007-06-26
    • assigned_to: nobody --> helly
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks