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

fyrox: double free happens if panic occurs #1736

Closed
wants to merge 2 commits into from
Closed

fyrox: double free happens if panic occurs #1736

wants to merge 2 commits into from

Conversation

kuzeyardabulut
Copy link

Original issue report: FyroxEngine/Fyrox#476

@Shnatsel
Copy link
Member

Shnatsel commented Aug 3, 2023

Thank you for the report!

Do you know if a published version with the fix is forthcoming in the next few days? It would be better to file an actionable advisory with a fixed version already available.

@Shnatsel
Copy link
Member

Shnatsel commented Aug 3, 2023

Actually let me ask the maintainers on the original issue

@adamreichold
Copy link

While using ManuallyDrop as done in the pull request is certainly an improvement, Vec::from_raw_parts does not panic (it does not even do arithmetic which could panic in debug builds) and hence I don't think there is an actual vulnerability here.

@Noratrieb
Copy link

I don't think this needs an advisory. The code was sound as-is, it was purely a refactoring that improved the code and made it nicer and more robust in the future.

@Shnatsel
Copy link
Member

Shnatsel commented Aug 3, 2023

Closing since this has been shown not to be a security issue in practice. Thank you @adamreichold and @Nilstrieb for the input!

@Shnatsel Shnatsel closed this Aug 3, 2023
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.

4 participants