Skip to content
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

Fix uninitialized memory access #68

Merged
merged 1 commit into from
Nov 16, 2023
Merged

Conversation

bnoordhuis
Copy link
Contributor

An alternative fix is to zero the values and count fields in JS_NewObjectFromShape() irrespective of the object's class_id but handling it in JS_GetPropertyValue() feels cleaner.

Fixes: #63

An alternative fix is to zero the `values` and `count` fields in
JS_NewObjectFromShape() irrespective of the object's class_id but
handling it in JS_GetPropertyValue() feels cleaner.

Fixes: quickjs-ng#63
@bnoordhuis bnoordhuis merged commit 90d8c6b into quickjs-ng:master Nov 16, 2023
16 checks passed
@bnoordhuis bnoordhuis deleted the fix63 branch November 16, 2023 23:12
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.

Conditional jump or move depends on uninitialised value(s)
2 participants