Skip to content

INI: Ensure buffer is null-terminated to prevent buffer overruns - #45

Merged
x64-dev merged 1 commit into
mainfrom
seer/fix-ini-buffer-overrun
Oct 10, 2025
Merged

INI: Ensure buffer is null-terminated to prevent buffer overruns#45
x64-dev merged 1 commit into
mainfrom
seer/fix-ini-buffer-overrun

Conversation

@seer-by-sentry

@seer-by-sentry seer-by-sentry Bot commented Oct 5, 2025

Copy link
Copy Markdown

Fixes CLIENT-H. The issue was that: INI::readLine's off-by-one error fails to null-terminate the buffer, causing strtok to corrupt memory, resulting in sscanf receiving an invalid pointer.

Ensures that the INI parsing buffer is always null-terminated, even when the maximum character limit per line is reached. This prevents potential buffer overruns when using string functions like strtok() on the buffer.

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

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

@x64-dev
x64-dev marked this pull request as ready for review October 10, 2025 21:18
@x64-dev
x64-dev merged commit 154366f into main Oct 10, 2025
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