Skip to content

Fix : Prevent stack overflow in clipboard paste - #14

Merged
michael105 merged 1 commit into
michael105:master_testfrom
T1anjiu:fix/p1-2-clipboard-overflow
Aug 31, 2026
Merged

michael105 merged 1 commit into
michael105:master_testfrom
T1anjiu:fix/p1-2-clipboard-overflow

Conversation

@T1anjiu

@T1anjiu T1anjiu commented Jul 29, 2026

Copy link
Copy Markdown
  • Increased buffer size from [last-data] to [last-data + 1]
  • from_utf8() writes null terminator after data, needs extra byte
  • Prevents 1-byte stack overflow when pasting UTF-8 content
  • Tested: buffer allocation now matches actual write size

- Increased buffer size from [last-data] to [last-data + 1]
- from_utf8() writes null terminator after data, needs extra byte
- Prevents 1-byte stack overflow when pasting UTF-8 content
- Tested: buffer allocation now matches actual write size
@michael105
michael105 changed the base branch from master to master_test August 31, 2026 02:04
@michael105
michael105 merged commit 1078a99 into michael105:master_test Aug 31, 2026
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.

2 participants