Parcourir la source

Use pdword to avoid range check erro in tentryfile.getdword method

git-svn-id: trunk@40103 -
pierre il y a 6 ans
Parent
commit
7a07f848e8
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      compiler/entfile.pas

+ 1 - 1
compiler/entfile.pas

@@ -668,7 +668,7 @@ begin
    end;
    end;
   if bufsize-bufidx>=sizeof(dword) then
   if bufsize-bufidx>=sizeof(dword) then
     begin
     begin
-      result:=Unaligned(plongint(@buf[bufidx])^);
+      result:=Unaligned(pdword(@buf[bufidx])^);
       inc(bufidx,sizeof(longint));
       inc(bufidx,sizeof(longint));
     end
     end
   else
   else