Skip to content

Prevent JS_SetOpaque from overriding internal class state#658

Merged
saghul merged 1 commit intomasterfrom
fix-set-opaque
Nov 7, 2024
Merged

Prevent JS_SetOpaque from overriding internal class state#658
saghul merged 1 commit intomasterfrom
fix-set-opaque

Conversation

@saghul
Copy link
Copy Markdown
Contributor

@saghul saghul commented Nov 7, 2024

Fixes: #657

@saghul saghul requested a review from bnoordhuis November 7, 2024 15:00
Comment thread quickjs.c Outdated
Copy link
Copy Markdown
Contributor

@bnoordhuis bnoordhuis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd go for option 2:

make it return int, and report failure

Comment thread quickjs.c Outdated
@saghul
Copy link
Copy Markdown
Contributor Author

saghul commented Nov 7, 2024

Updated, PTAL!

@saghul saghul merged commit c8be383 into master Nov 7, 2024
@saghul saghul deleted the fix-set-opaque branch November 7, 2024 20:26
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.

segmentation fault if setting opaque on constructor

2 participants