mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-19 16:45:28 +00:00
safe_to_decode accepts a file only when its headers index (or name a compression or part kind this reader doesn't cover); damaged headers, offset tables longer than the file, oversized parts and failed reads are refused again, as the old lenient parse did. Indexing also refuses a channel list the exr crate's validation refused (a zero sampling factor or one not dividing the data window, channels out of order), since headers are now read leniently only. Follows craft-exr's new UnsupportedCompression error kind for HTJ2K and its non-exhaustive error enum. The damaged-file test now checks that the good files index and read and that damaged ones reach the reader.