Skip to content

Fix symbol leak in JS_ValueToAtom - #590

Closed
bptato wants to merge 1 commit into
bellard:masterfrom
bptato:fix-valuetoatom-leak
Closed

bptato wants to merge 1 commit into
bellard:masterfrom
bptato:fix-valuetoatom-leak

Conversation

@bptato

@bptato bptato commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

JS_DupAtom behaves differently for symbols than JS_DupValue, so that a built-in symbol gets dup'd as a value but not as an atom. So this must be accounted for here.

(found when running make test2 with DUMP_LEAKS)

JS_DupAtom behaves differently for symbols than JS_DupValue, so that a
built-in symbol gets dup'd as a value but not as an atom.  So this must be
accounted for here.
bellard pushed a commit that referenced this pull request Nov 2, 2026
@bellard

bellard commented Nov 2, 2026

Copy link
Copy Markdown
Owner

applied

@bellard bellard closed this Nov 2, 2026
j-olivier pushed a commit to j-olivier/quickjs-pal that referenced this pull request Nov 5, 2026
yonto-app pushed a commit to yonto-app/quickjs that referenced this pull request Nov 6, 2026
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