Prechádzať zdrojové kódy

Merged revision(s) 29037 from branches/svenbarth/packages:
Fix a potential access violation when exporting symbols on a Unix based system.

expunix.pas, texportlibunix:
* generatelib: check whether hp2.sym is really assigned before accessing it

........

git-svn-id: trunk@32983 -

svenbarth 9 rokov pred
rodič
commit
0aca2357ac
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      compiler/expunix.pas

+ 1 - 0
compiler/expunix.pas

@@ -142,6 +142,7 @@ begin
   while assigned(hp2) do
    begin
      if (not hp2.is_var) and
+        assigned(hp2.sym) and
         (hp2.sym.typ=procsym) then
       begin
         { the manglednames can already be the same when the procedure