Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix undefined behavior during type wrapper initialization #728

Merged
merged 1 commit into from
Jun 6, 2023

Conversation

mikea
Copy link
Contributor

@mikea mikea commented Jun 2, 2023

casting this during constructor is ub because of vptr not completely initialiazed. introducing new explicit initialization step. performance should be the same, since this is just moving same code around

@mikea mikea requested review from jasnell and kentonv June 2, 2023 23:15
casting this during constructor is ub because of vptr not
completely initialiazed. introducing new explicit initialization
step. performance should be the same, since this is just moving
same code around
@mikea mikea force-pushed the maizatskyi/2023-06-02-type-wrapper-ubsan branch from eed093e to 233b67a Compare June 5, 2023 17:34
@mikea mikea merged commit 51cdfdd into main Jun 6, 2023
@mikea mikea deleted the maizatskyi/2023-06-02-type-wrapper-ubsan branch June 6, 2023 15:43
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants