Skip to content

Fix strcat() buffer over-read in ConvertNumRadix#1263

Closed
x2658y wants to merge 1 commit into
zufuliu:mainfrom
x2658y:main
Closed

Fix strcat() buffer over-read in ConvertNumRadix#1263
x2658y wants to merge 1 commit into
zufuliu:mainfrom
x2658y:main

Conversation

@x2658y

@x2658y x2658y commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Keep the last byte of the local buffer reserved as the null terminator so strcat() never reads beyond array bounds.

This bug can cause garbled output after conversion (reproduced on Win11, but not on Win10), as shown in the screenshot below.

image

Keep the last byte of the local buffer reserved as the null terminator so strcat() never reads beyond array bounds.
@zufuliu zufuliu added the 🐛bug label Jul 1, 2026
@zufuliu zufuliu added this to the vNext milestone Jul 1, 2026
zufuliu pushed a commit that referenced this pull request Jul 1, 2026
Keep the last byte of the local buffer reserved as the null terminator so strcat() never reads beyond array bounds.
@zufuliu

zufuliu commented Jul 1, 2026

Copy link
Copy Markdown
Owner

Committed as f28a4ac, also increased buffer size.

@zufuliu zufuliu closed this Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants