Minor tweak

This commit is contained in:
Matt Nadareski
2025-10-01 20:08:33 -04:00
parent eaa5bb5662
commit ad5314dc22

View File

@@ -330,7 +330,9 @@ namespace SabreTools.Serialization.Readers
#region Hidden Resources
// If we have not used up the full size, parse the remaining chunk as a single resource
if (pex.ResourceDirectoryTable?.Entries != null && tableOffset < tableSize)
if (pex.ResourceDirectoryTable?.Entries != null
&& tableOffset < tableSize
&& (offset + tableOffset) != endOfSectionData)
{
// Resize the entry array to accomodate one more
var localEntries = pex.ResourceDirectoryTable.Entries;