Skip to content

fix(text): avoid panics on UTF-8 truncation - #3925

Merged
wsp1911 merged 1 commit into
openBitFun:mainfrom
wsp1911:dev-omen
Nov 15, 2026
Merged

wsp1911 merged 1 commit into
openBitFun:mainfrom
wsp1911:dev-omen

Conversation

@wsp1911

@wsp1911 wsp1911 commented Nov 15, 2026

Copy link
Copy Markdown
Collaborator

Use character-boundary-safe truncation for approval summaries and character iteration for dynamic identifiers. Add regression coverage for multibyte Chinese input so UTF-8 strings cannot be sliced at invalid byte offsets.

Use character-boundary-safe truncation for approval summaries and character iteration for dynamic identifiers. Add regression coverage for multibyte Chinese input so UTF-8 strings cannot be sliced at invalid byte offsets.
@wsp1911
wsp1911 merged commit 8513a2e into openBitFun:main Nov 15, 2026
13 checks passed
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.

1 participant