Skip to content

refactor(gamememory): Improve clarity of memory fill loops#485

Merged
x64-dev merged 1 commit intomainfrom
seer/refactor/gamememory-loops
May 7, 2026
Merged

refactor(gamememory): Improve clarity of memory fill loops#485
x64-dev merged 1 commit intomainfrom
seer/refactor/gamememory-loops

Conversation

@seer-by-sentry
Copy link
Copy Markdown

@seer-by-sentry seer-by-sentry Bot commented May 7, 2026

Fixes CLIENT-4GG. The issue was that: Buggy memset32 function corrupts Windows heap metadata, causing EXCEPTION_ACCESS_VIOLATION_WRITE during subsequent allocations.

  • Replaced for (++count; --count; ) loop constructs with while (count-- > 0) for better readability and common practice.
  • Applied changes to both word and byte filling loops in GameMemory.cpp.

This fix was generated by Seer in Sentry, triggered by x64-dev. 👁️ Run ID: 13873808

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

@seer-by-sentry seer-by-sentry Bot requested a review from x64-dev May 7, 2026 20:49
@x64-dev x64-dev marked this pull request as ready for review May 7, 2026 20:59
@x64-dev x64-dev merged commit c599731 into main May 7, 2026
5 checks passed
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.

1 participant