Skip to content

Fix buffer size calculation for Win32 path normalization - #209

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix-win32-path-buffer-size
Open

Fix buffer size calculation for Win32 path normalization#209
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix-win32-path-buffer-size

Conversation

@seer-by-sentry

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

Copy link
Copy Markdown

Fixes CLIENT-1H7. The issue was that: Off-by-one error in GetFullPathNameA buffer sizing causes heap corruption, leading to a fatal read access violation in wcsnlen.

  • Corrected the buffer size passed to normalizedFilePath.getBufferForRead() when calling GetFullPathNameA to ensure the buffer is correctly sized to include the null terminator.

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

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