[Lazarus] Memory corruption when allocating and freeing 1 byte memory
Juha Manninen
juha.manninen62 at gmail.com
Sat Feb 26 13:25:17 CET 2011
Vincent Snijders kirjoitti lauantai 26 helmikuu 2011 10:27:19:
> It probably is some buffer overrun, at least that is more likely than
> a bug in the heap manager.
Replacing:
GetMem (fInputString, (Len + 1) * SizeOf (REChar));
with:
GetMem (fInputString, (Len + 2) * SizeOf (REChar));
in TRegExpr code also cures the problem,
although it may again hide the actual problem.
Juha
More information about the Lazarus
mailing list