Skip to content

OverlordContain: Fix iterator invalidation in removeAllRedirectedContained - #127

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix-overlord-contain-iterator
Open

OverlordContain: Fix iterator invalidation in removeAllRedirectedContained#127
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix-overlord-contain-iterator

Conversation

@seer-by-sentry

Copy link
Copy Markdown

Fixes CLIENT-TM. The issue was that: OverlordContain::removeAllContained iterates a list, increments the iterator before removal, causing iterator invalidation and subsequent Access Violation Read (0x4).

  • Changed the implementation of removeAllRedirectedContained to use a safe iterator pattern to avoid iterator invalidation.
  • The code now always gets a fresh iterator from the beginning after each removal, similar to OpenContain::removeAllContained().

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 2645029

Not quite right? Click here to continue debugging with Seer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants