From 1bd405fdd9a68137956008c1b6ac2de0fce8056e Mon Sep 17 00:00:00 2001 From: iadcode <18545429+iadcode@users.noreply.github.com> Date: Fri, 30 Apr 2021 16:48:35 +1000 Subject: [PATCH] Fix issue where the number of source location could overflow --- Source/DebugEngine.DebugInfo.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/DebugEngine.DebugInfo.pas b/Source/DebugEngine.DebugInfo.pas index bdecf54..ed60cc9 100644 --- a/Source/DebugEngine.DebugInfo.pas +++ b/Source/DebugEngine.DebugInfo.pas @@ -89,7 +89,7 @@ interface NumberOfSegments: Byte; // Number of segments. NumberOfUnits: Word; // Number of units. NumberOfSymbols: DWORD; // Number of Symbols. - NumberOfSourceLocations: Word; // Number of source locations. + NumberOfSourceLocations: DWORD; // Number of source locations. OffsetToUnits: Cardinal; // Offset from header to first unit struct (TSMapUnit). OffsetToSymbols: Cardinal; // Offset from header to first symbol struct (TSMapSymbol). OffsetToSourceLocations: Cardinal; // Offset from header to first source location struct (TSMapSourceLocation).