xiaoyao329/ziparchive

Error Handling Issue

Opened this issue · 0 comments

Hi,

When I am using your library in my project and I received some security flaws 
in Veracode scan report related to error handling.

Class Name: zip.c
Line Number: 777
Code: zi->ci.central_header = (char*)ALLOC((uInt)zi->ci.size_centralheader);

Here we are allocating object and used it without checking whether memory is 
properly allocated or not.
Please suggest me the proper solution of the issue.

Thanks in advance.

Original issue reported on code.google.com by dhanashr...@gmail.com on 7 Apr 2015 at 12:11