Skip to content

Fix reference count bug in Promise.withResolvers - #1692

Open
bnoordhuis wants to merge 1 commit into
quickjs-ng:masterfrom
bnoordhuis:fix1660
Open

Fix reference count bug in Promise.withResolvers#1692
bnoordhuis wants to merge 1 commit into
quickjs-ng:masterfrom
bnoordhuis:fix1660

Conversation

@bnoordhuis

Copy link
Copy Markdown
Contributor

JS_DefinePropertyValue consumes the value so don't JS_FreeValue it in the error path.

Fixes: #1660

JS_DefinePropertyValue consumes the value so don't JS_FreeValue it in
the error path.

Fixes: quickjs-ng#1660
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.

Promise.withResolvers(): OOM cleanup use-after-free on current master

2 participants