Parcourir la source

* fixed crash in map_structured_asmlist_inner, when the TAsmList parameter is nil

Nikolay Nikolov il y a 1 an
Parent
commit
ea18d11d41
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      compiler/wasm32/aasmcpu.pas

+ 2 - 0
compiler/wasm32/aasmcpu.pas

@@ -2649,6 +2649,8 @@ uses
       var
         p, q: tai;
       begin
+        if not assigned(l) then
+          exit;
         p:=tai(l.First);
         while p<>nil do
           begin