浏览代码

* 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
       var
         p, q: tai;
         p, q: tai;
       begin
       begin
+        if not assigned(l) then
+          exit;
         p:=tai(l.First);
         p:=tai(l.First);
         while p<>nil do
         while p<>nil do
           begin
           begin