mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-16 13:08:59 +00:00
import_fuzz builds PSD files from scratch whose image resource 1050 holds slices in version 6 (a version 16 descriptor after the first record) and in the version 16 descriptors of versions 7 and 8. Each sample has one user slice, one slice that follows a layer and one generated automatically; the first two come in as user slices. - the_sliced_psd_samples_bring_in_their_user_slices: each sample opens with its two user slices and no warning, document.psdInfo counts 2, and an embedded place brings 2. - sliced_psd_samples_with_huge_counts_or_cut_short_come_in_without_their_slices: slice counts of 10,001, 0x7fffffff and u32::MAX, data one byte short, and data cut inside the count bring the art in without its slices and with a warning. - mutated_psd_slices_never_panic: mutated slice data, kept whole, cut short with the resource length rebuilt, or with the file cut in the resource block, never makes document.open, document.psdInfo or an embedded file.place report an internal error. tests_psdslices::damaged_slices_never_panic now fails when a command reports an internal error instead of discarding the results.