deftsofttester123 / ziparchive

Automatically exported from code.google.com/p/ziparchive
0 stars 0 forks source link

Error Handling Issue #41

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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