diff --git a/pe_tools/pe_parser.py b/pe_tools/pe_parser.py index 4f8620f..9bd6663 100644 --- a/pe_tools/pe_parser.py +++ b/pe_tools/pe_parser.py @@ -275,6 +275,7 @@ def __init__(self, blob, verify_checksum=False): raise RuntimeError('Not a PE file: PE signature is missing.') hdr = _IMAGE_FILE_HEADER.unpack_from_io(fin) + sect_offs = fin.tell() + hdr.SizeOfOptionalHeader opt_sig, = struct.unpack('