Merge pull request #4609 from Qinch/unstable

fix assert problem in ZIP_DECODE_PREVLENSIZE macro
This commit is contained in:
Salvatore Sanfilippo 2018-01-17 10:45:11 +01:00 committed by GitHub
commit 81401878de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -440,7 +440,7 @@ unsigned int zipStorePrevEntryLength(unsigned char *p, unsigned int len) {
if ((prevlensize) == 1) { \
(prevlen) = (ptr)[0]; \
} else if ((prevlensize) == 5) { \
assert(sizeof((prevlensize)) == 4); \
assert(sizeof((prevlen)) == 4); \
memcpy(&(prevlen), ((char*)(ptr)) + 1, 4); \
memrev32ifbe(&prevlen); \
} \