Skip to content

SIGSEGV by invalid memory access in mjs.c:11477 #297

@LowryLan

Description

@LowryLan

Invalid memory access in mjs.c: 114877

Environment

Ubuntu20.04

Steps to reproduce

  1. version
    9eae0e6
  2. compile mjs with ASAN
gcc -DMJS_MAIN mjs.c -fsanitize=address -ldl -g -o mjs-bin
  1. command for reproducing the error
./mjs-bin -f poc

Download poc:
invalid-memory-access-mjs11477.zip

ASAN report

AddressSanitizer:DEADLYSIGNAL
=================================================================
==246910==ERROR: AddressSanitizer: SEGV on unknown address 0xffffffffffffff8d (pc 0x5555554860ef bp 0x00000000001d sp 0x7fffffffd268 T0)
==246910==The signal is caused by a WRITE memory access.
    #0 0x5555554860ef  (/home/lowry/Documents/HTFuzz/program/mjs/code/mjs-bin+0x860ef)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/home/lowry/Documents/HTFuzz/program/mjs/code/mjs-bin+0x860ef) 
==246910==ABORTING

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions