From e00d47aaafde8005ba71de4aea384eed94d5c913 Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Mon, 3 Oct 2016 00:21:51 -0500 Subject: [PATCH] Fix invalid memory access due to uninitialized pointer. (From Kelvin Sherlock.) --- Symbol.pas | 1 + 1 file changed, 1 insertion(+) diff --git a/Symbol.pas b/Symbol.pas index 0432b59..d0e1d87 100644 --- a/Symbol.pas +++ b/Symbol.pas @@ -1498,6 +1498,7 @@ var begin {ResolveForwardReference} iPtr^.isForwardDeclared := false; {we will succeeed or flag an error...} tPtr := iPtr^.itype; {skip to the struct/union type} +lPtr := tPtr; {initialize it here -- kws} while tPtr^.kind in [pointerType,arrayType,functionType,definedType] do begin lPtr := tPtr; tPtr := tPtr^.pType;