mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* Crash reproducer with methods * potential crash fix * removed ASan build, added core changes * do not store valuestack reference before calling method to fix potential dangling reference * Take into account that the ValueStack can grow due to method calls.
19 lines
273 B
Text
19 lines
273 B
Text
program MethodTest()
|
|
return 1;
|
|
endprogram
|
|
|
|
exported function Outer(item)
|
|
item.InnerCrash();
|
|
endfunction
|
|
|
|
exported function InnerCrash(item)
|
|
var foo := "bar";
|
|
endfunction
|
|
|
|
exported function Outer2(item)
|
|
var i:=1;
|
|
item.InnerCrash();
|
|
++i;
|
|
return i;
|
|
endfunction
|
|
|