mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 21:28:03 +02:00
Fix potential overflow when incrementing 8 bit high value of res.
This commit is contained in:
parent
9b6926c5f5
commit
031c16dd3c
@ -1265,7 +1265,7 @@ var
|
||||
len: byte;
|
||||
begin
|
||||
l:=high(arr)+1;
|
||||
if l>=high(res)+1 then
|
||||
if l>=ObjpasInt(high(res))+1 then
|
||||
l:=high(res)
|
||||
else if l<0 then
|
||||
l:=0;
|
||||
|
Loading…
Reference in New Issue
Block a user