#1 added several checks for malloc fail

closed
nobody
None
5
2010-01-27
2010-01-24
No

Asking the OS for more memory can always fail. Malloc returns a NULL pointer in this case. So if the returned pointer of such a malloc is not checked for NULL an access violation will happen.

Discussion

  • Otto Linnemann

    Otto Linnemann - 2010-01-24

    Patch file for the above fixes. Use the commands "cd cjson && patch << ../cjson_access_violation_fix.diff" to apply it.

     
  • Dave Gamble

    Dave Gamble - 2010-01-27

    Applied in svn rev 30

     
  • Dave Gamble

    Dave Gamble - 2010-01-27
    • status: open --> closed
     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks