mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-04 22:41:54 +02:00
* some security check added
This commit is contained in:
parent
60dc4bf0a9
commit
4b384ec92e
@ -268,6 +268,7 @@ type pword = ^word;
|
|||||||
begin
|
begin
|
||||||
if IndexTableRead then OK:=true else
|
if IndexTableRead then OK:=true else
|
||||||
begin
|
begin
|
||||||
|
FillChar(R, SizeOf(R), 0);
|
||||||
LastTag:=''; CurPtr:=0;
|
LastTag:=''; CurPtr:=0;
|
||||||
OK:=(IndexTablePos<>0);
|
OK:=(IndexTablePos<>0);
|
||||||
if OK then begin F^.Seek(IndexTablePos); OK:=F^.Status=stOK; end;
|
if OK then begin F^.Seek(IndexTablePos); OK:=F^.Status=stOK; end;
|
||||||
|
Loading…
Reference in New Issue
Block a user