You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First 16 bits of the decoded External Attributes in Central header should map to DOS attributes. Decoding of this field uses an incorrect and incomplete bitmask
Code uses 0x0100 for Offline, 0x200 for Not Indexed & and 0x400 for Encrypted. Values should be 0x1000, 0x2000 and 0x4000 respectively.
The field names for the 0x0100, 0x0200, 0x0400 and 0x0800 value should be Temporary, Sparse, Reparse Point and Compressed.
In practice the 0x4000 and 0x8000 bits are used for a different purpose.
7z/p7zip uses the 0x8000 bit to signal that the high 16-bits are Unix attributes.
Fitst 16 bits of the decoded External Attributes in Central header should map to DOS attributes.
Code for decoding this has a few wrong (Offline, Not tIndexed & Encrypted ) plus some were missing
Also, added the 7z/p7zip flag (for 0x8000) and the mysterious bit ( 0x4000) bit set by Mac zip files.
First 16 bits of the decoded External Attributes in Central header should map to DOS attributes. Decoding of this field uses an incorrect and incomplete bitmask
Code uses
0x0100
forOffline
,0x200
forNot Indexed
& and0x400
forEncrypted
. Values should be0x1000
,0x2000
and0x4000
respectively.The field names for the
0x0100
,0x0200
,0x0400
and0x0800
value should beTemporary
,Sparse
,Reparse Point
andCompressed
.In practice the
0x4000
and0x8000
bits are used for a different purpose.7z/p7zip uses the
0x8000
bit to signal that the high 16-bits are Unix attributes.Mac/iOS uses
0x4000
bit for some unknown purpose.References
The text was updated successfully, but these errors were encountered: