Skip to content

Fix NULL deref in JS_NewRuntime2#691

Merged
saghul merged 1 commit intoquickjs-ng:masterfrom
bptato:fix-null-deref
Nov 15, 2024
Merged

Fix NULL deref in JS_NewRuntime2#691
saghul merged 1 commit intoquickjs-ng:masterfrom
bptato:fix-null-deref

Conversation

@bptato
Copy link
Copy Markdown
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
@saghul
Copy link
Copy Markdown
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

2 participants