mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 16:59:12 +02:00
* really fixed write_array this time :/ (merged)
This commit is contained in:
parent
2d433814ef
commit
9ab14207f7
@ -501,7 +501,7 @@ Begin
|
|||||||
p:=pchar(@s);
|
p:=pchar(@s);
|
||||||
{ can't use StrLen, since that one could try to read past the end }
|
{ can't use StrLen, since that one could try to read past the end }
|
||||||
{ of the heap (JM) }
|
{ of the heap (JM) }
|
||||||
ArrayLen:=IndexByte(p,high(s)+1,0);
|
ArrayLen:=IndexByte(p^,high(s)+1,0);
|
||||||
{ IndexByte returns -1 if not found (JM) }
|
{ IndexByte returns -1 if not found (JM) }
|
||||||
if ArrayLen = -1 then
|
if ArrayLen = -1 then
|
||||||
ArrayLen := high(s)+1;
|
ArrayLen := high(s)+1;
|
||||||
@ -1099,7 +1099,10 @@ end;
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.10 2001-07-16 13:53:21 jonas
|
Revision 1.11 2001-07-21 15:53:28 jonas
|
||||||
|
* really fixed write_array this time :/ (merged)
|
||||||
|
|
||||||
|
Revision 1.10 2001/07/16 13:53:21 jonas
|
||||||
* correctly fixed potential buffer overrun in write_array
|
* correctly fixed potential buffer overrun in write_array
|
||||||
|
|
||||||
Revision 1.9 2001/07/08 21:00:18 peter
|
Revision 1.9 2001/07/08 21:00:18 peter
|
||||||
|
Loading…
Reference in New Issue
Block a user