mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 18:15:58 +00:00
290c9541de
This test uses a JBIG2Globals with an indirect reference, and contains an indirect reference for a stream length. When we parse the main JBIG2 image's stream, we unfilter its data, which causes these two indirect references to be resolved during parsing. I started with the output of Meta/jbig2_to_pdf.py -o foo.pdf \ Tests/LibGfx/test-inputs/jbig2/bitmap.jbig2 and then manually added a /DecodeParms <</JBIG2Globals 6 0 R>> entry pointing to an empty stream, and made that new stream object's length an indirect reference too for good measure. I used `mutool clean` to fix up offsets a bit. But that also removes the indirect reference for a stream's length, so I manually put that back in and adjusted the offset to the last object in the xref table and the startxref value. |
||
---|---|---|
.. | ||
BenchmarkPDF.cpp | ||
CMakeLists.txt | ||
colorspaces.pdf | ||
complex.pdf | ||
encoding.pdf | ||
encryption_nocopy.pdf | ||
jbig2-globals.pdf | ||
linearized.pdf | ||
non-linearized.pdf | ||
oss-fuzz-testcase-62065.pdf | ||
password-is-sup.pdf | ||
pattern.pdf | ||
rotate.pdf | ||
standard-14-fonts.pdf | ||
TestPDF.cpp | ||
text.pdf | ||
type1.pdf | ||
type3.pdf | ||
wide-gamut-only.pdf |