The second fuzz run on cnx01 found a PDF (a page's font dictionary with a key and a broken value) on which the PDF reader, hayro-syntax 0.7.2 (Dict::entries, an unwrap), panics while the page is copied. The app lives on (the pack renders in spawn_blocking), but the person's pack and the card's sides failed with a 500 every time, for as long as the file was among their documents. piece() now copies an uploaded PDF's pages once into a throwaway document with panics caught (pack::pdf::copies); a file that panics prints as a note page like any unreadable file. Only a panic counts, so a PDF 2.0 file still goes to render's retry. tests/fuzz_cases/upload/pdf-dict-key-without-value.pdf is the finding, replayed on every push (it panicked on stable too).
9 lines
464 B
Markdown
9 lines
464 B
Markdown
Inputs that once broke the fuzz target `upload` (src/fuzzing.rs), replayed by
|
|
`tests/fuzz_cases.rs`. Name each after what it broke.
|
|
|
|
- `pdf-dict-key-without-value.pdf`: a page whose font dictionary has a key
|
|
and a broken value (found Nov 23, 2026). The PDF reader (hayro-syntax 0.7.2,
|
|
`Dict::entries`) panicked while the page was copied, so the pack failed
|
|
with a 500 every time; `pack::pdf::copies` now tries the pages once and
|
|
the file gets a note page.
|