summaryrefslogtreecommitdiffstats
path: root/minzip/Zip.c
diff options
context:
space:
mode:
authornkk71 <nkk71x@gmail.com>2016-01-19 15:36:47 +0100
committerDees Troy <dees_troy@teamw.in>2016-01-22 17:45:46 +0100
commit6069a793eaa2e11e0c53af0ab063d22fb1f9f531 (patch)
tree329f905d39e9e7134f948e9dc49087bad03b7bcc /minzip/Zip.c
parentFix a bunch of messages (diff)
downloadandroid_bootable_recovery-6069a793eaa2e11e0c53af0ab063d22fb1f9f531.tar
android_bootable_recovery-6069a793eaa2e11e0c53af0ab063d22fb1f9f531.tar.gz
android_bootable_recovery-6069a793eaa2e11e0c53af0ab063d22fb1f9f531.tar.bz2
android_bootable_recovery-6069a793eaa2e11e0c53af0ab063d22fb1f9f531.tar.lz
android_bootable_recovery-6069a793eaa2e11e0c53af0ab063d22fb1f9f531.tar.xz
android_bootable_recovery-6069a793eaa2e11e0c53af0ab063d22fb1f9f531.tar.zst
android_bootable_recovery-6069a793eaa2e11e0c53af0ab063d22fb1f9f531.zip
Diffstat (limited to '')
-rw-r--r--minzip/Zip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/minzip/Zip.c b/minzip/Zip.c
index 1f035add5..f47a480f1 100644
--- a/minzip/Zip.c
+++ b/minzip/Zip.c
@@ -366,7 +366,7 @@ static bool parseZipArchive(ZipArchive* pArchive)
}
pEntry->offset = localHdrOffset + LOCHDR
+ get2LE(localHdr + LOCNAM) + get2LE(localHdr + LOCEXT);
- if (!safe_add(NULL, pEntry->offset, pEntry->compLen)) {
+ if (!safe_add(NULL, pEntry->offset, (typeof(pEntry->offset))pEntry->compLen)) {
LOGW("Integer overflow adding in parseZipArchive\n");
goto bail;
}