Pack: a PDF whose pages cannot be copied gets a note page
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).
This commit is contained in:
1 parent
b7c9818dd6
commit
c0ef994b26
3 files changed
+29
-1
No files matched your search
Binary file not shown.
Reference in new issue
Block a user