effectcraft/crates/lottie/src
Brandon Thomas 1da7dc4659 Never crash: Lottie enum values can't overflow
Lottie stores line cap, line join, merge mode and some text-selector enums 1-based, and the
importer subtracted 1 from whatever number the file held: -1e308 (rounded to i64::MIN)
overflowed, a panic in debug builds (found by structural fuzzing). Use saturating_sub. Denies
the panic lints in the crate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 13:24:14 -04:00
..
anim.rs Never crash: Lottie enum values can't overflow 2026-10-04 13:24:14 -04:00
base64.rs M11.4: Lottie export/import 2026-10-02 08:56:03 -04:00
export.rs M7.4: model import 2026-10-02 21:04:47 -04:00
import.rs CMP-7: Essential Graphics controls, master properties, .ectemplate templates, Responsive Design — Time 2026-10-02 22:44:06 -04:00
lib.rs Never crash: Lottie enum values can't overflow 2026-10-04 13:24:14 -04:00
shapes.rs Never crash: Lottie enum values can't overflow 2026-10-04 13:24:14 -04:00
tests.rs Never crash: Lottie enum values can't overflow 2026-10-04 13:24:14 -04:00
text.rs Never crash: Lottie enum values can't overflow 2026-10-04 13:24:14 -04:00
zip.rs M11.4: Lottie export/import 2026-10-02 08:56:03 -04:00