Merge pull request #8788 from kaidokert/master

Fix unsigned packing bug in merge_regions #8544
pull/8907/head
Cruz Monrreal 2018-11-29 10:22:18 -06:00 committed by GitHub
commit d478d6bf80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -388,7 +388,7 @@ def _fill_header(region_list, current_region):
else:
ih = intelhex_offset(region_dict[data].filename, offset=region_dict[data].start)
if subtype.startswith("CRCITT32"):
fmt = {"CRCITT32be": ">l", "CRCITT32le": "<l"}[subtype]
fmt = {"CRCITT32be": ">L", "CRCITT32le": "<L"}[subtype]
header.puts(start, struct.pack(fmt, zlib.crc32(ih.tobinarray())))
elif subtype.startswith("SHA"):
if subtype == "SHA256":