Преглед изворни кода

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

Nikolay Nikolov пре 1 година
родитељ
комит
ea18d11d41
1 измењених фајлова са 2 додато и 0 уклоњено
  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