Skip to content

Commit a61e505

Browse files
committed
THRIFT-3668 range check error in compact protocol
Client: Delphi Patch: Jens Geyer
1 parent 3b4a93b commit a61e505

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/delphi/src/Thrift.Protocol.Compact.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ function TCompactProtocolImpl.ReadByte: ShortInt;
801801
begin
802802
SetLength( data, 1);
803803
Transport.ReadAll( data, 0, 1);
804-
result := data[0];
804+
result := ShortInt(data[0]);
805805
end;
806806

807807

0 commit comments

Comments
 (0)