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

Memory is not laundered after placement newing #53

Open
DarthRubik opened this issue Jun 7, 2018 · 0 comments
Open

Memory is not laundered after placement newing #53

DarthRubik opened this issue Jun 7, 2018 · 0 comments

Comments

@DarthRubik
Copy link

It appears that you are placement newing objects with their constructors which you have stored in a v-table via some tricks........that is fine, except that it appears that you are just referencing the memory that is created via the same pointer that you created it with......technically this is UB. Since you are using c++17 you can use std::launder..........

@DarthRubik DarthRubik changed the title Memory is not laundered after placement newing Memory is not laundered after placement newing Jun 7, 2018
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

No branches or pull requests

1 participant