Skip to content

Don't segfault on missing line number data#641

Merged
bnoordhuis merged 1 commit intoquickjs-ng:masterfrom
bnoordhuis:pc2line
Oct 29, 2024
Merged

Don't segfault on missing line number data#641
bnoordhuis merged 1 commit intoquickjs-ng:masterfrom
bnoordhuis:pc2line

Conversation

@bnoordhuis
Copy link
Copy Markdown
Contributor

Can be reproduced on the CLI but not from a script:

# should throw "unsupported object class" TypeError
$ qjs --std -e 'bjson.write(function(){})'
/path/to/quickjs.c:6510:15: runtime error: applying zero offset to null pointer

Note: ASan+UBSan build.

Can be reproduced on the CLI but not from a script:

    # should throw "unsupported object class" TypeError
    $ qjs --std -e 'bjson.write(function(){})'
    /path/to/quickjs.c:6510:15: runtime error: applying zero offset to null pointer
@bnoordhuis bnoordhuis merged commit 42262a7 into quickjs-ng:master Oct 29, 2024
@bnoordhuis bnoordhuis deleted the pc2line branch October 29, 2024 21:52
@bnoordhuis bnoordhuis restored the pc2line branch October 29, 2024 21:53
@bnoordhuis bnoordhuis deleted the pc2line branch October 29, 2024 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants