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.
Patch file for the above fixes. Use the commands "cd cjson && patch << ../cjson_access_violation_fix.diff" to apply it.
Applied in svn rev 30
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.