Add another safeguard?

This commit is contained in:
Matt Nadareski
2025-09-11 11:10:11 -04:00
parent af84474795
commit 658c7a1c3b

View File

@@ -912,7 +912,7 @@ namespace SabreTools.Serialization.Deserializers
// Parse the export directory table
int offset = 0;
var directoryTable = ParseExportDirectoryTable(data, ref offset);
if (directoryTable.ExportFlags != 0)
if (directoryTable.ExportFlags != 0 || directoryTable.AddressTableEntries == 0)
return null;
// Set the export directory table