summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mbn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbn.c b/src/mbn.c
index d6a54f2..b7f4a45 100644
--- a/src/mbn.c
+++ b/src/mbn.c
@@ -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;
}