Skip to content

Fix NULL deref in JS_NewRuntime2 #691

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
Nov 15, 2024
Merged

Conversation

bptato
Copy link
Contributor

@bptato bptato commented Nov 15, 2024

The API allows for the malloc_usable_size callback to be NULL, so it must not be dereferenced before the NULL check.

The API allows for the malloc_usable_size callback to be NULL, so it
must not be dereferenced before the NULL check.
@saghul saghul merged commit 42f0945 into quickjs-ng:master Nov 15, 2024
47 checks passed
@saghul
Copy link
Contributor

saghul commented Nov 15, 2024

Good catch!

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