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

Fix BBQr share of Unicode text: encode str to UTF-8 before sizing/splitting

Public commit record

What the developer wrote

Authored by Dmitry Monakhov

73/100 · Adequate
Fix BBQr share of Unicode text: encode str to UTF-8 before sizing/splitting

For 'U'/'J' payloads data is a str; planning counted codepoints while
b32encode consumes UTF-8 bytes, so multi-byte text (e.g. paper-wallet QR
art) overflowed target_vers and tripped the assert in show_bbqr_codes.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit fixes a bug in the COLDCARD Q1 hardware wallet where displaying certain QR codes containing non-English or special characters could cause the device to crash with an assertion failure. The fix ensures text is converted to UTF-8 bytes before calculating QR code sizes, preventing a mismatch between expected and actual data length. There is no direct evidence this bug is exploitable for malicious purposes.

Recommended action

Apply the patch. Consider adding regression tests for multi-byte UTF-8 strings and large JSON payloads in the BBQr rendering path. No immediate incident response is indicated unless crashes have been observed in the field.

Security signals we found

01

Assertion failure/crash in QR display path

02

Length mismatch between codepoints and UTF-8 bytes

03

Denial-of-service-like symptom (device crash on user data display)

04

No input validation/sanitization for multi-byte text before sizing

Risk score

Why this scored 33/100

Our methodology →
Potential impact 8/30
Exploitability 3/25
Stealth signal 4/15
Affected reach 6/15
Confidence 8/10
Evidence quality 4/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.