Home

anomalyco/opentui

Status:Indexed
Analyzed 4d ago6K+ starsTypeScript

OpenTUI is a library for building terminal user interfaces (TUIs)

Back to Pull Requests
#464Closed
Simple Review

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

by simonkleeJan 2, 2026
View on GitHub

Summary

This PR addresses an overflow issue in UTF-8 line processing. It widens specific offset fields from u16 to u32 to correctly handle lines longer than 64KB, preventing silent data corruption in release builds and includes a regression test.

Changes

+27 additions-4 deletions

Impact Areas

UTF-8 ProcessingText RenderingInternal Data Structures