diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-07-20 18:08:58 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-07-20 18:08:58 +0900 |
| commit | dbb91e0c4b61b7c1106a9d3aefcab6f2598b93d4 (patch) | |
| tree | b07faf2873e1e62a7ba87139c71595a96b25a675 /crates/shirabe-php-shim/src | |
| parent | daa580b97ad2d585c100927842ba88e891eb9aca (diff) | |
| download | php-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-php-shim/src')
0 files changed, 0 insertions, 0 deletions
