mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-12-22 07:30:54 +00:00
Do some more checks for invalid sym files.
This commit is contained in:
parent
f9f79983f8
commit
f368071146
19
Header.pas
19
Header.pas
@ -1550,6 +1550,11 @@ var
|
||||
|
||||
p_fenv_access: fenvAccess := boolean(ReadByte);
|
||||
|
||||
otherwise: begin
|
||||
PurgeSymbols;
|
||||
DestroySymbolFile;
|
||||
TermError(12);
|
||||
end;
|
||||
end; {case}
|
||||
end; {while}
|
||||
symPtr := pePtr;
|
||||
@ -1677,7 +1682,13 @@ var
|
||||
end; {while}
|
||||
end;
|
||||
|
||||
otherwise: ;
|
||||
enumType: ;
|
||||
|
||||
otherwise: begin
|
||||
PurgeSymbols;
|
||||
DestroySymbolFile;
|
||||
TermError(12);
|
||||
end;
|
||||
|
||||
end; {case}
|
||||
end; {case 0}
|
||||
@ -1716,6 +1727,12 @@ var
|
||||
15: tp := uCharPtr;
|
||||
16: tp := shortPtr;
|
||||
17: tp := uShortPtr;
|
||||
|
||||
otherwise: begin
|
||||
PurgeSymbols;
|
||||
DestroySymbolFile;
|
||||
TermError(12);
|
||||
end;
|
||||
end; {case}
|
||||
end; {ReadType}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user