Skip to content

Enforce minimum CRC interval and prevent division by zero in CRC generation logic - #189

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix-crc-interval-div-by-zero
Open

Enforce minimum CRC interval and prevent division by zero in CRC generation logic#189
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix-crc-interval-div-by-zero

Conversation

@seer-by-sentry

@seer-by-sentry seer-by-sentry Bot commented Jan 2, 2026

Copy link
Copy Markdown

Fixes CLIENT-1AA. The issue was that: Modulo operation uses unvalidated CRC interval, causing integer division by zero when interval is zero.

  • Modified setCRCInterval to enforce a minimum value of 1 and a maximum value of 100 for the CRC interval.
  • Added explicit checks (crcInterval > 0 and REPLAY_CRC_INTERVAL > 0) in GameLogic::update() before performing modulo operations for CRC generation in both Multiplayer and Solo/Replay modes, preventing potential division by zero errors.

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

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