cesanta/mjs

SEGV in exec_expr

Wayne-Bai opened this issue · 0 comments

==23314==ERROR: AddressSanitizer: SEGV on unknown address 0x000000503b9e (pc 0x000000514bb8 bp 0x7ffd2b68a7f0 sp 0x7ffd2b689320 T0)
==23314==The signal is caused by a WRITE memory access.
    #0 0x514bb8 in exec_expr /home/eval/Desktop/mjs-issues-57/mjs.c:8820:25
    #1 0x514bb8 in mjs_execute /home/eval/Desktop/mjs-issues-57/mjs.c:9328:9
    #2 0x51c780 in mjs_exec_internal /home/eval/Desktop/mjs-issues-57/mjs.c:9503:5
    #3 0x53512f in mjs_exec_file /home/eval/Desktop/mjs-issues-57/mjs.c:9526:11
    #4 0x53512f in main /home/eval/Desktop/mjs-issues-57/mjs.c:11800:11
    #5 0x7eff9f5c5c86 in __libc_start_main /build/glibc-CVJwZb/glibc-2.27/csu/../csu/libc-start.c:310
    #6 0x41cb89 in _start (/home/eval/Desktop/mjs-result/mjs-issues-57/mjs-bin+0x41cb89)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/eval/Desktop/mjs-issues-57/mjs.c:8820:25 in exec_expr
==23314==ABORTING

poc-3.zip