mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-06 00:47:52 +02:00
--- Merging r48982 into '.':
U packages/fcl-process/src/processbody.inc --- Recording mergeinfo for merge of r48982 into '.': U . # revisions: 48982 r48982 | marco | 2021-03-15 16:58:05 +0100 (Mon, 15 Mar 2021) | 1 line Changed paths: M /trunk/packages/fcl-process/src/processbody.inc * buffer overflow in ReadInputStream if a stream read> READ_BYTES (=64k) large. The overloaded tstream one is ok. git-svn-id: branches/fixes_3_2@49007 -
This commit is contained in:
parent
e2980ac39b
commit
8dd4e2e281
@ -492,7 +492,7 @@ begin
|
||||
begin
|
||||
if (BytesRead + available > DataLength) then
|
||||
begin
|
||||
DataLength:=BytesRead + READ_BYTES;
|
||||
DataLength:=BytesRead + max(READ_BYTES,available);
|
||||
Setlength(Data,DataLength);
|
||||
end;
|
||||
NumBytes := p.Read(data[1+BytesRead], Available);
|
||||
|
Loading…
Reference in New Issue
Block a user