Better clarify comment

This commit is contained in:
Matt Nadareski
2026-03-14 11:23:29 -04:00
parent ea4c51b9f2
commit c82b56d084

View File

@@ -342,11 +342,10 @@ namespace SabreTools.Serialization.Wrappers
dataLength = certificateTableAddress;
}
// Search through all sections and find the furthest a section goes
// Start from the first section with a valid raw data size and add all section sizes
// TODO: Investigate cases where first section pointer does not work
var firstSection = Array.Find(SectionTable, s => s.SizeOfRawData != 0);
long endOfSectionData = firstSection.PointerToRawData;
Array.ForEach(SectionTable, s => endOfSectionData += s.SizeOfRawData);
// If we didn't find the end of section data