summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2009-12-10 23:37:57 +0100
committerAndroid Git Automerger <android-git-automerger@android.com>2009-12-10 23:37:57 +0100
commit002c9dfb8082b9971c987c9630b3de77f5ae4bf9 (patch)
tree060ca5a70707c7559bd7cdd8785fd546e4d210b5
parentam 6e5be9b2: merge from open-source master (diff)
parentam 9acf28a3: am c652e41d: fix cut-and-paste error in verifier (diff)
downloadandroid_bootable_recovery-002c9dfb8082b9971c987c9630b3de77f5ae4bf9.tar
android_bootable_recovery-002c9dfb8082b9971c987c9630b3de77f5ae4bf9.tar.gz
android_bootable_recovery-002c9dfb8082b9971c987c9630b3de77f5ae4bf9.tar.bz2
android_bootable_recovery-002c9dfb8082b9971c987c9630b3de77f5ae4bf9.tar.lz
android_bootable_recovery-002c9dfb8082b9971c987c9630b3de77f5ae4bf9.tar.xz
android_bootable_recovery-002c9dfb8082b9971c987c9630b3de77f5ae4bf9.tar.zst
android_bootable_recovery-002c9dfb8082b9971c987c9630b3de77f5ae4bf9.zip
-rw-r--r--verifier.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/verifier.c b/verifier.c
index f2491a14a..164fb4a01 100644
--- a/verifier.c
+++ b/verifier.c
@@ -123,7 +123,7 @@ int verify_file(const char* path, const RSAPublicKey *pKeys, unsigned int numKey
int i;
for (i = 4; i < eocd_size-3; ++i) {
if (eocd[i ] == 0x50 && eocd[i+1] == 0x4b &&
- eocd[i+2] == 0x05 && eocd[i+1] == 0x06) {
+ eocd[i+2] == 0x05 && eocd[i+3] == 0x06) {
// if the sequence $50 $4b $05 $06 appears anywhere after
// the real one, minzip will find the later (wrong) one,
// which could be exploitable. Fail verification if