diff options
author | Doug Zongker <dougz@android.com> | 2009-12-08 15:30:09 -0800 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2009-12-08 15:30:09 -0800 |
commit | c652e41d9173e299a8e1805ae1b2bba75a34ae12 (patch) | |
tree | 46a2bc479e4982263bf08635e1e43f3f1b61b623 /verifier.c | |
parent | 54ec81fe86225d5f3ee3ab16e3266ae88cd639fa (diff) | |
download | bootable_recovery-c652e41d9173e299a8e1805ae1b2bba75a34ae12.zip bootable_recovery-c652e41d9173e299a8e1805ae1b2bba75a34ae12.tar.gz bootable_recovery-c652e41d9173e299a8e1805ae1b2bba75a34ae12.tar.bz2 |
fix cut-and-paste error in verifier
Oops.
Diffstat (limited to 'verifier.c')
-rw-r--r-- | verifier.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |