aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/plugin/plugin_events.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-07-20 18:08:58 +0900
committernsfisis <nsfisis@gmail.com>2026-07-20 18:08:58 +0900
commitdbb91e0c4b61b7c1106a9d3aefcab6f2598b93d4 (patch)
treeb07faf2873e1e62a7ba87139c71595a96b25a675 /crates/shirabe/src/plugin/plugin_events.rs
parentdaa580b97ad2d585c100927842ba88e891eb9aca (diff)
downloadphp-shirabe-dbb91e0c4b61b7c1106a9d3aefcab6f2598b93d4.tar.gz
php-shirabe-dbb91e0c4b61b7c1106a9d3aefcab6f2598b93d4.tar.zst
php-shirabe-dbb91e0c4b61b7c1106a9d3aefcab6f2598b93d4.zip
fix(search-command): avoid usize overflow panic when truncating description
The negated remaining-width subtraction was cast straight to usize, overflowing whenever it went negative (e.g. an abandoned-package warning ate the available width) and panicking on slice indexing. Route through the shim's substr(), which mirrors PHP's negative-length semantics and clamps instead of overflowing.
Diffstat (limited to 'crates/shirabe/src/plugin/plugin_events.rs')
0 files changed, 0 insertions, 0 deletions