bread-ecosystem/bread-launcher
Breadway 3326207d34 bread-launcher: fix UTF-8 panic in whole-word matching
matches_term advanced its scan with start = i + 1 — one byte past the START
of a failed match rather than past the whole match. Both i and i + tlen are
guaranteed char boundaries; i + 1 is not, so a multi-byte term that failed
the word-boundary check left start inside a character and the following
field[start..] slice panicked.

matches_term("café", "é") reproduces it: byte index 4 is not a char
boundary. The path is reached from priority_rank over real .desktop Name=
values, so any non-ASCII application name could crash the launcher's sort —
never hit locally because every installed app here happens to be ASCII.
2026-08-31 15:15:36 +08:00
..
src bread-launcher: fix UTF-8 panic in whole-word matching 2026-08-31 15:15:36 +08:00
Cargo.toml Add bread-launcher: headless app-launcher core + GTK4 results widget 2026-08-31 15:14:44 +08:00