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

2D: Fix use-after-free in batch rendering; regression of #95574 #96977

Merged
merged 1 commit into from
Sep 14, 2024

Conversation

stuartcarnie
Copy link
Contributor

@stuartcarnie stuartcarnie commented Sep 13, 2024

Fixes a use-after-free issue as current_batch was invalidated after _record_item_commands if LocalVector was resized.

Closes #96960

Resolves regression of #95574 using fix from #95666

@stuartcarnie stuartcarnie requested a review from a team as a code owner September 13, 2024 20:06
@stuartcarnie stuartcarnie changed the title 2D: Fix use-after-free in batch rendering 2D: Fix use-after-free in batch rendering; regression of #95574 Sep 13, 2024
Copy link
Member

@kleonc kleonc left a comment

Choose a reason for hiding this comment

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

Fix for the #95574 (comment) regression looks good to me.

@Riteo
Copy link
Contributor

Riteo commented Sep 14, 2024

I can confirm that this solves my crash! Thank you!

@akien-mga akien-mga merged commit 6681f25 into godotengine:master Sep 14, 2024
20 checks passed
@akien-mga
Copy link
Member

Thanks!

@stuartcarnie stuartcarnie deleted the 96960_use_after_free branch September 14, 2024 19:22
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.

Use-after-free in canvas batching
4 participants