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

Remove dangling city pointers from the governor code #2385

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

lmoureaux
Copy link
Contributor

The governor code was using pointers to keep track of cities to be removed or updated. These pointers would sometimes become invalid when the city was lost or otherwise conquered, causing use-after-free errors.

This fixes the first version of #2351.

The governor code was using pointers to keep track of cities to be
removed or updated. These pointers would sometimes become invalid when
the city was lost or otherwise conquered, causing use-after-free errors.

This fixes the first version of longturn#2351.
@lmoureaux
Copy link
Contributor Author

Likely want to backport this.

@jwrober jwrober merged commit 21a107d into longturn:master Sep 10, 2024
21 checks passed
@jwrober jwrober added the back-port back-port candidate label Sep 10, 2024
@lmoureaux lmoureaux deleted the bugfix/governor-pointers branch September 10, 2024 22:09
@lmoureaux lmoureaux mentioned this pull request Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-port back-port candidate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants