mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 00:09:25 +02:00
* fixed potential buffer overflow in GetDir()
git-svn-id: branches/i8086@24080 -
This commit is contained in:
parent
af751145b7
commit
efa90dd1f3
@ -103,7 +103,9 @@ begin
|
||||
GetInOutRes (regs.AX);
|
||||
Dir := char (DriveNr + 64) + ':\';
|
||||
exit;
|
||||
end;
|
||||
end
|
||||
else
|
||||
temp[252] := #0; { to avoid shortstring buffer overflow }
|
||||
{ conversion to Pascal string including slash conversion }
|
||||
i:=0;
|
||||
while (temp[i]<>#0) do
|
||||
|
Loading…
Reference in New Issue
Block a user