v@DESKTOP-DPIU403:~/jse/mjs$ ./mjs-bin poc5.js
AddressSanitizer:DEADLYSIGNAL
=================================================================
==8676==ERROR: AddressSanitizer: SEGV on unknown address 0x55f45e9bb938 (pc 0x55f44cd11570 bp 0x7fffbf6efcb0 sp 0x7fffbf6efbe0 T0)
==8676==The signal is caused by a READ memory access.
#0 0x55f44cd11570 in getprop_builtin_foreign /home/v/jse/mjs/mjs.c:8472:31
#1 0x55f44cd0cb5f in getprop_builtin /home/v/jse/mjs/mjs.c:8509:17
#2 0x55f44ccb2b43 in mjs_execute /home/v/jse/mjs/mjs.c:8661:14
#3 0x55f44ccaa4d4 in mjs_exec_internal /home/v/jse/mjs/mjs.c:9044:5
#4 0x55f44ccaacb3 in mjs_exec_file /home/v/jse/mjs/mjs.c:9067:11
#5 0x55f44ccbc5e8 in main /home/v/jse/mjs/mjs.c:11423:11
#6 0x7fc05d21fd8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#7 0x7fc05d21fe3f in __libc_start_main csu/../csu/libc-start.c:392:3
#8 0x55f44cb8e3d4 in _start (/home/v/jse/mjs/mjs-bin+0x283d4)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/v/jse/mjs/mjs.c:8472:31 in getprop_builtin_foreign
==8676==ABORTING
gc
Environment
Ubuntu 22.04.3 LTS
Affected Version
MJS 2.20.0
Step to reproduce
Contents of PoCfile
ASAN Report