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

Perform safe copies in AnimatedValuesBackup::get_cache_copy() #85302

Merged
merged 1 commit into from
Nov 24, 2023

Conversation

RandomShaper
Copy link
Member

memcpy()ing those types is potentially catastrophic.

For more context, see the discussion here: #85266 (comment)

@AThousandShips
Copy link
Member

AThousandShips commented Nov 24, 2023

Since these also have no-arg constructors the base type also needs one, are the copy constructors necessary? These types should all be trivial

@akien-mga akien-mga changed the title Perform safe copies in AnimatedValuesBackup::get_cache_copy() Perform safe copies in AnimatedValuesBackup::get_cache_copy() Nov 24, 2023
Copy link
Member

@AThousandShips AThousandShips left a comment

Choose a reason for hiding this comment

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

LGTM, let's see what CI declares

Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

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

Tested, confirmed that #85233 is still fixed after this fixup to #85266.

@akien-mga akien-mga merged commit d6a1db2 into godotengine:master Nov 24, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@RandomShaper RandomShaper deleted the copy_constr_avb branch November 24, 2023 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants