* Fix ObjectBinaryToStream: read filer signature

This commit is contained in:
michael 2021-04-04 09:28:37 +00:00
parent efea6321bd
commit 2240440fff

View File

@ -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');