[PR #464] [MERGED] fix(utf8): widen WrapBreak offsets to u32 for lines > 64KB #1334

Closed
opened 2026-03-14 09:31:10 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/464
Author: @simonklee
Created: 1/2/2026
Status: Merged
Merged: 1/2/2026
Merged by: @kommander

Base: mainHead: fix/wrapbreak-u32-overflow


📝 Commits (1)

  • f1a497c fix(utf8): widen WrapBreak offsets to u32 for lines > 64KB

📊 Changes

2 files changed (+27 additions, -4 deletions)

View changed files

📝 packages/core/src/zig/tests/utf8_test.zig (+23 -0)
📝 packages/core/src/zig/utf8.zig (+4 -4)

📄 Description

u16 fields silently overflow in release builds when processing lines
exceeding 65535 bytes. Add regression.

Fix #463


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opentui/pull/464 **Author:** [@simonklee](https://github.com/simonklee) **Created:** 1/2/2026 **Status:** ✅ Merged **Merged:** 1/2/2026 **Merged by:** [@kommander](https://github.com/kommander) **Base:** `main` ← **Head:** `fix/wrapbreak-u32-overflow` --- ### 📝 Commits (1) - [`f1a497c`](https://github.com/anomalyco/opentui/commit/f1a497c16d269e59e264abbeba25466489be0847) fix(utf8): widen WrapBreak offsets to u32 for lines > 64KB ### 📊 Changes **2 files changed** (+27 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/zig/tests/utf8_test.zig` (+23 -0) 📝 `packages/core/src/zig/utf8.zig` (+4 -4) </details> ### 📄 Description u16 fields silently overflow in release builds when processing lines exceeding 65535 bytes. Add regression. Fix #463 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-14 09:31:10 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#1334
No description provided.