$ ./mjs-bin poc5.js
AddressSanitizer:DEADLYSIGNAL
=================================================================
==30675==ERROR: AddressSanitizer: SEGV on unknown address 0x56379cde8556 (pc 0x56377839f80e bp 0x7ffd2e171f90 sp 0x7ffd2e171c78 T0)
==30675==The signal is caused by a WRITE memory access.
#0 0x56377839f80e /home/v/jse/mjs/mjs.c:11356:32
#1 0x5637783a84d4 in mjs_exec_internal /home/v/jse/mjs/mjs.c:9044:5
#2 0x5637783a8cb3 in mjs_exec_file /home/v/jse/mjs/mjs.c:9067:11
#3 0x5637783ba5e8 in main /home/v/jse/mjs/mjs.c:11423:11
#4 0x7f3532997d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/v/jse/mjs/mjs.c:11356:32
==30675==ABORTING
Environment
Ubuntu 22.04.3 LTS
Affected Version
MJS 2.20.0
Step to reproduce
Contents of PoCfile
ASAN Report