Skip to content

Don't segfault on missing line number data #641

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

bnoordhuis
Copy link
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
47 checks passed
@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