mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 17:37:14 +00:00
Rule 9 (no panic on input). Fixes found via fuzzing: - edit.paste: a short/non-array "center" (e.g. [5], []) indexed a[1] and panicked; now requires len>=2, else falls back to the canvas centre. - edit.transform.again: a quad row with <2 columns indexed [1] and panicked; now rejected with the other shape checks. Tests: paste_with_malformed_center_does_not_panic (fast regression) plus tests/panic_hunt.rs, an opt-in (#[ignore], run --ignored) fuzz that dispatches every command with adversarial params and asserts none panic. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>