-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
Hi,
I am trying to add a file into an UDF ISO with 255 "A" as filename, for testing. When I do, it raises the following error:
/pycdlib/udf.py", line 4561, in record
rec = struct.pack(self.FMT, b'\x00' * 16, 1,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
struct.error: 'B' format requires 0 <= number <= 255Looking at fi variable:
b'\x08AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
It seems that the identifier is included in the filename packing, which makes it 256. As a filename with 255 characters should be allowed, I am guessing that there is an off-by-one error here ?
Thanks !
Metadata
Metadata
Assignees
Labels
No labels