Commit 17b56a0a authored by Georgij Cernysiov's avatar Georgij Cernysiov Committed by Jamie
Browse files

imgtool: fix verify tlv offset before main scan



Correct tlv_off by accounting for protected TLVs
found before main scan.

Signed-off-by: default avatarGeorgij Cernysiov <geo.cgv@gmail.com>
parent cfd876fb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -843,7 +843,7 @@ class Image:
            tlv_off += TLV_SIZE + tlv_len

        digest = None
        tlv_off = header_size + img_size
        tlv_off = prot_tlv_size
        tlv_end = tlv_off + tlv_tot
        tlv_off += TLV_INFO_SIZE  # skip tlv info
        while tlv_off < tlv_end: