[ISO9660] Do not try to interpret an 0-length Continuation Area. Workarounds #770 until a better fix can be done.

This commit is contained in:
2022-12-09 09:53:03 +00:00
parent f9ace7b7d9
commit 37c2827e66

View File

@@ -982,7 +982,8 @@ public sealed partial class ISO9660
errno = ReadSingleExtent(ca.offset, ca.ca_length, ca.block, out byte[] caData);
if(errno == ErrorNumber.NoError)
// TODO: Check continuation area definition, this is not a proper fix
if(errno == ErrorNumber.NoError && caData.Length > 0)
DecodeSystemArea(caData, 0, (int)ca.ca_length, ref entry, out hasResourceFork);
systemAreaOff += ceLength;