We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eaa5bb5 commit ad5314dCopy full SHA for ad5314d
SabreTools.Serialization/Readers/PortableExecutable.cs
@@ -330,7 +330,9 @@ public class PortableExecutable : BaseBinaryReader<Executable>
330
#region Hidden Resources
331
332
// If we have not used up the full size, parse the remaining chunk as a single resource
333
- if (pex.ResourceDirectoryTable?.Entries != null && tableOffset < tableSize)
+ if (pex.ResourceDirectoryTable?.Entries != null
334
+ && tableOffset < tableSize
335
+ && (offset + tableOffset) != endOfSectionData)
336
{
337
// Resize the entry array to accomodate one more
338
var localEntries = pex.ResourceDirectoryTable.Entries;
0 commit comments