mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-12-22 07:30:54 +00:00
Fix invalid memory access due to uninitialized pointer.
(From Kelvin Sherlock.)
This commit is contained in:
parent
dce39a851e
commit
e00d47aaaf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user