From b14c3023c40f92c461a7a03f76d12a8c88a7623b Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Fri, 18 Feb 2022 09:07:00 +0000 Subject: [PATCH] Do not try to decode empty path table in ISO9660/CD-i/HighSierra. Fixes #688 --- Aaru.Filesystems/ISO9660/PathTable.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Aaru.Filesystems/ISO9660/PathTable.cs b/Aaru.Filesystems/ISO9660/PathTable.cs index db678c6cf..95c443fcf 100644 --- a/Aaru.Filesystems/ISO9660/PathTable.cs +++ b/Aaru.Filesystems/ISO9660/PathTable.cs @@ -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 table = new List();