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 incorrect memory read when capacity changes in RD Graph. #91312

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

DarioSamo
Copy link
Contributor

Originally spotted by @darksylinc, ASAN randomly reported a rare error that could happen when checking dependencies in the render graph. If the command list was resized and capacity increased, the internal contents of the vector would be re-allocated. This usually imposes no problems as all accesses are done through indices, but in this particular bit of code, a reference was held to the element and used after the potential resize could happen.

The end result was likely benign in most cases, but upon a code review the fix makes sense. No behavior changes should be expected. This change is only relevant to 4.3.

@DarioSamo DarioSamo requested a review from a team as a code owner April 29, 2024 13:51
@AThousandShips AThousandShips modified the milestones: 4.x, 4.3 Apr 29, 2024
@akien-mga akien-mga merged commit 4fb0c00 into godotengine:master Apr 30, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

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.

5 participants