mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
check return value from zlib inflateInit2...
This commit is contained in:
parent
44fae6e600
commit
a89ae9cb35
3 changed files with 10 additions and 4 deletions
|
@ -206,7 +206,9 @@ int zlib_decompress(FILE *infile, FILE *outfile) {
|
|||
compressed_fpga_stream.opaque = Z_NULL;
|
||||
|
||||
ret = inflateInit2(&compressed_fpga_stream, 0);
|
||||
|
||||
if ( res < 0 )
|
||||
return (EXIT_FAILURE);
|
||||
|
||||
do {
|
||||
if (compressed_fpga_stream.avail_in == 0) {
|
||||
compressed_fpga_stream.next_in = inbuf;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue