nicolasgomollon / ZIPArchive

A cleaned up and modernized fork of ZipArchive by Aish, a class to simplify compressing and decompressing ZIP files in Objective-C.
MIT License
0 stars 1 forks source link

Error Handling Issue #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 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