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

Fix potential crash on failed move #83937

Merged
merged 1 commit into from
Oct 26, 2023
Merged

Fix potential crash on failed move #83937

merged 1 commit into from
Oct 26, 2023

Conversation

Jordyfel
Copy link
Contributor

@Jordyfel Jordyfel commented Oct 25, 2023

My mistake from #81657. In case a move fails in _try_move_item() no key for it will exist in p_renames, but the UID change function would try to access it anyway, which would cause a crash if the file has a UID.

@Jordyfel Jordyfel requested a review from a team as a code owner October 25, 2023 12:02
@AThousandShips AThousandShips added this to the 4.2 milestone Oct 25, 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

@akien-mga akien-mga merged commit 27679db into godotengine:master Oct 26, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@Jordyfel Jordyfel deleted the potential-crash-on-move branch October 26, 2023 07:46
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