Do not try to decode empty path table in ISO9660/CD-i/HighSierra. Fixes #688

This commit is contained in:
2022-02-18 09:07:00 +00:00
parent 53c5ceca42
commit b14c3023c4

View File

@@ -40,7 +40,7 @@ namespace Aaru.Filesystems
{
PathTableEntryInternal[] DecodePathTable(byte[] data)
{
if(data is null)
if(data is null || data.Length == 0)
return null;
List<PathTableEntryInternal> table = new List<PathTableEntryInternal>();