diff options
author | Martin Szulecki | 2012-07-17 17:15:39 +0200 |
---|---|---|
committer | Nikias Bassen | 2012-07-17 17:15:39 +0200 |
commit | ab06fe400e77b7ee9eab9328c1539a17d323c0a3 (patch) | |
tree | c67412dea27fa470d4dc9ce99d2df42bdeb7c04f | |
parent | cab3c2cf81226b142e80e210106fedae571ef307 (diff) | |
download | idevicerestore-ab06fe400e77b7ee9eab9328c1539a17d323c0a3.tar.gz idevicerestore-ab06fe400e77b7ee9eab9328c1539a17d323c0a3.tar.bz2 |
mbn: Use real size instead of parsed size to fix iPad 3 baseband update
-rw-r--r-- | src/mbn.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -59,8 +59,8 @@ int mbn_update_sig_blob(mbn_file* mbn, const unsigned char* sigdata, unsigned in error("ERROR: %s: no data\n", __func__); return -1; } - mbn->parsed_sig_offset = mbn->parsed_size - siglen; - if ((mbn->parsed_sig_offset + siglen) > mbn->parsed_size) { + mbn->parsed_sig_offset = mbn->size - siglen; + if ((mbn->parsed_sig_offset + siglen) > mbn->size) { error("ERROR: %s: signature is larger than mbn file size\n", __func__); return -1; } |