mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 16:49:07 +02:00
* fix for SIGSEGV due to access to uninitialized pointers in TList
This commit is contained in:
parent
30b55c8bee
commit
5f59b0f6b9
@ -479,6 +479,9 @@ begin
|
|||||||
if NewCapacity=FCapacity then
|
if NewCapacity=FCapacity then
|
||||||
exit;
|
exit;
|
||||||
ReallocMem(FList,SizeOf(Pointer)*NewCapacity);
|
ReallocMem(FList,SizeOf(Pointer)*NewCapacity);
|
||||||
|
if NewCapacity > FCapacity then
|
||||||
|
FillChar (FList^ [FCapacity],
|
||||||
|
(NewCapacity - FCapacity) * SizeOf (pointer), 0);
|
||||||
FCapacity:=NewCapacity;
|
FCapacity:=NewCapacity;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -2364,7 +2367,10 @@ end;
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.44 2005-03-25 23:03:04 jonas
|
Revision 1.45 2005-05-12 21:40:42 hajny
|
||||||
|
* fix for SIGSEGV due to access to uninitialized pointers in TList
|
||||||
|
|
||||||
|
Revision 1.44 2005/03/25 23:03:04 jonas
|
||||||
- removed unused variables
|
- removed unused variables
|
||||||
|
|
||||||
Revision 1.43 2005/03/04 16:49:22 peter
|
Revision 1.43 2005/03/04 16:49:22 peter
|
||||||
|
Loading…
Reference in New Issue
Block a user