Whole file

eerimoq/bincopy

The author described this change as Fix: Implement Intel HEX record type 5, execution start address.. It counts as a record because the check below fails on the code as it stood at fa2a1de0f and passes on f4146f893, with nothing else changed between the two runs.

Fix saved2016-06-22
Sharing licenceMIT · LICENSE
Change size+4 3

What the code was meant to do, written into the code itself as a save note

Fix: Implement Intel HEX record type 5, execution start address.

The change

88 import string
99
1010 __author__ = 'Erik Moqvist'
11-__version__ = '2.1.3'
11+__version__ = '2.1.4'
1212
1313 DEFAULT_WORD_SIZE = 8
1414
387387 elif type_ == 1:
388388 pass
389389 elif type_ == 2:
390- extmaximumed_segment_address = int(binascii.hexlify(data), 16) * 16
390+ extmaximumed_segment_address = int(binascii.hexlify(data),
391+ 16) * 16
391392 elif type_ == 3:
392393 pass
393394 elif type_ == 4:
394395 extmaximumed_linear_address = (int(binascii.hexlify(data), 16)
395396 * 65536)
396397 elif type_ == 5:
397- print('warning: ignoring type 5')
398+ self.execution_start_address = int(binascii.hexlify(data), 16)
398399 else:
399400 raise Error('bad ihex type %d' % type_)
400401

The check that tells the two apart

failpass·tests/test_bincopy.py::BinCopyTest::test_issue_4_2

Check file tests/test_bincopy.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.

Origin and history

The code before itfa2a1de0f73da5eb5a1c659b1ba094e92483a77d
Broken version dated2016-06-02
Modulebincopy
Units changedFile
Fingerprintc757ec46d60f9473
Checked2026-08-18 by goldset/0.1

Every field above is generated by our program. None of it is written by hand.

Other bugs found in eerimoq/bincopy