mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-09-15 11:39:07 +02:00
* Fix ObjectBinaryToStream: read filer signature
This commit is contained in:
parent
efea6321bd
commit
2240440fff
@ -9998,7 +9998,13 @@ end;
|
||||
|
||||
procedure TObjectStreamConverter.Execute;
|
||||
|
||||
var
|
||||
Signature: LongInt;
|
||||
|
||||
begin
|
||||
FInput.ReadBufferData(Signature);
|
||||
if Signature <> FilerSignatureInt then
|
||||
raise EReadError.Create(SInvalidImage);
|
||||
if FIndent = '' then FInDent:=' ';
|
||||
If Not Assigned(Input) then
|
||||
raise EReadError.Create('Missing input stream');
|
||||
|
Loading…
Reference in New Issue
Block a user