Bläddra i källkod

heaptrc: empty the array for the call trace, otherwise the trace dump code will just dump the rest of the array as well, on systems where the heap is not initialized to zero, or if the memory area has been re-used

git-svn-id: trunk@40856 -
Károly Balogh 6 år sedan
förälder
incheckning
56f0a71466
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      rtl/inc/heaptrc.pp

+ 1 - 0
rtl/inc/heaptrc.pp

@@ -536,6 +536,7 @@ begin
   pp^.size:=size;
   pp^.extra_info_size:=extra_info_size;
   pp^.exact_info_size:=exact_info_size;
+  fillchar(pp^.calls[1],sizeof(pp^.calls),#0);
   {
     the end of the block contains:
     <tail>   4 bytes