Sfoglia il codice sorgente

* generate an internal error if the section name should be larger than 8

git-svn-id: trunk@46875 -
svenbarth 4 anni fa
parent
commit
fb767dc246
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      compiler/ogcoff.pas

+ 2 - 0
compiler/ogcoff.pas

@@ -1653,6 +1653,8 @@ const pemagic : array[0..3] of byte = (
                FCoffStrs.writestr(s);
                FCoffStrs.writestr(s);
                FCoffStrs.writestr(#0);
                FCoffStrs.writestr(#0);
                s:='/'+ToStr(strpos);
                s:='/'+ToStr(strpos);
+               if length(s)>8 then
+                 internalerror(2020091501);
              end;
              end;
             move(s[1],sechdr.name,length(s));
             move(s[1],sechdr.name,length(s));
             if not win32 then
             if not win32 then