AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Informational 15 Bitcoin

chore(core): make TextBox more UTF-8 compliant

Public commit record

What the developer wrote

Authored by obrusvit

57/100 · Thin
chore(core): make TextBox more UTF-8 compliant

[no changelog]
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
The short version

What changed, and why it matters

This commit fixes a UI bug in how the Trezor hardware wallet counts and displays the last character of a passphrase when it contains multi-byte UTF-8 characters (such as emoji or accented letters). Previously, the code measured length in bytes and sliced the string by byte position, which could split a multi-byte character and produce a broken or incorrect last-character display. The change adds proper character-based counting and a safe way to retrieve the last character. It is a correctness/robustness fix rather than a clear security vulnerability, and there is no evidence it was disclosed or exploited as a security issue.

Recommended action

Treat as a routine robustness/correctness improvement. Review whether other UI components still use byte-based slicing on TextBox content. No urgent security response is indicated by the available evidence.

Security signals we found

01

String slicing by byte index on potentially multi-byte UTF-8 input removed

02

New helper uses char_indices().next_back() to safely obtain a valid &str for the last Unicode scalar value

03

UI display logic now uses character count instead of byte count for passphrase length

04

No explicit security claim, changelog entry, or advisory reference in commit

Risk score

Why this scored 15/100

Our methodology →
Potential impact 2/30
Exploitability 1/25
Stealth signal 1/15
Affected reach 2/15
Confidence 6/10
Evidence quality 3/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.