浏览代码

* fixed overflow when calculating the byte offset of a field in case
of very large records (e.g. a record of 1GB on a 32 bit system)

git-svn-id: trunk@6850 -

Jonas Maebe 18 年之前
父节点
当前提交
e0171f4e1f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/dbgstabs.pas

+ 1 - 1
compiler/dbgstabs.pas

@@ -353,7 +353,7 @@ implementation
               varsize:=$fffffff;
             newrec:=def_stabstr_evaluate(nil,'$1:$2,$3,$4;',[GetSymName(tfieldvarsym(p)),
                                      spec+def_stab_number(tfieldvarsym(p).vardef),
-                                     tostr(tfieldvarsym(p).fieldoffset*8),tostr(varsize*8)]);
+                                     tostr(TConstExprInt(tfieldvarsym(p).fieldoffset)*8),tostr(varsize*8)]);
             if state^.stabsize+strlen(newrec)>=state^.staballoc-256 then
               begin
                 inc(state^.staballoc,strlen(newrec)+64);