mirror of
https://github.com/robmcmullen/atrcopy.git
synced 2025-01-01 10:30:58 +00:00
Fix for incorrect ObjSegment call when there's a short segment header
This commit is contained in:
parent
b977322a4e
commit
bc7097dfd0
@ -175,7 +175,7 @@ class AtariDosFile(object):
|
||||
raise InvalidBinaryFile
|
||||
first = False
|
||||
if len(b[pos:pos + 4]) < 4:
|
||||
self.segments.append(ObjSegment(r[pos:pos + 4], 0, 0, "Short Segment Header"))
|
||||
self.segments.append(ObjSegment(r[pos:pos + 4], 0, 0, 0, len(b[pos:pos + 4]), "Short Segment Header"))
|
||||
break
|
||||
start, end = b[pos:pos + 4].view(dtype='<u2')
|
||||
count = end - start + 1
|
||||
|
Loading…
Reference in New Issue
Block a user