ソースを参照

Fix CheckPointer code for pointer in stack area for linux

git-svn-id: trunk@34551 -
pierre 9 年 前
コミット
749dc00401
1 ファイル変更1 行追加1 行削除
  1. 1 1
      rtl/inc/heaptrc.pp

+ 1 - 1
rtl/inc/heaptrc.pp

@@ -1060,7 +1060,7 @@ begin
 {$ifdef linux}
   { inside stack ? }
   if (ptruint(p)>ptruint(get_frame)) and
-     (ptruint(p)<$c0000000) then      //todo: 64bit!
+     (ptruint(p)<ptruint(StackTop)) then
     exit;
   { inside data or bss ? }
   if (ptruint(p)>=ptruint(@etext)) and (ptruint(p)<ptruint(@eend)) then