Commit 427c2952 authored by Jonas Termansen's avatar Jonas Termansen

Truncation checking is not just for 16-bit machines.

parent 62f9285d
...@@ -31,7 +31,6 @@ int ZEXPORT uncompress(unsigned char *dest, ...@@ -31,7 +31,6 @@ int ZEXPORT uncompress(unsigned char *dest,
stream.next_in = (const unsigned char *)source; stream.next_in = (const unsigned char *)source;
stream.avail_in = (unsigned int)sourceLen; stream.avail_in = (unsigned int)sourceLen;
/* Check for source > 64K on 16-bit machine: */
if ((unsigned long)stream.avail_in != sourceLen) return Z_BUF_ERROR; if ((unsigned long)stream.avail_in != sourceLen) return Z_BUF_ERROR;
stream.next_out = dest; stream.next_out = dest;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment