-
Fix QPDF::recoverStreamLength
-
Tidy QPDF_Stream
-
Replace some std::shared_ptr parameters with reference parameters
-
Refactor ObjTable
-
1. Make class final 2. Pass og parameter by value 3. Properly initialize qpdf and og Also, tweak QPDF::replaceObject to allow stream replacement without violating the requirement that streams must always be indirect objects. Also, remove QPDF::reserveStream as it does not do what the name implies and having this as a separate methods does not aid code readability.
-
Split qpdf_fuzzer into six separate fuzzers
-
Given that the PDF spec requires the xref table to contain entries for all object ids <= the maximum id present in a PDF document, max_size is a qpdf implementation limitation for legitimate object ids.
-
Refactor QPDFObjectHandle::getTypeName
-
In qpdf_fuzzer and dct_fuzzer add a scan limit for Pl_DCT
-
In QPDF::readObjectAtOffset fail early on 'expect n n obj'
-
Refactor Pl_QPDFTokenizer
-
Ensure the the recovered stream end is not part of a different object. Test file is bad24.pdf with stream 4 'endstream' corrupted.
-
Fix test_driver comment
-
If Pl_Flate memory limit is exceeded do not attempt 'finish' processing
-
Guard against 0 byte writes in Pl_Buffer and Pl_String
-
Tidy qpdfjob-remove-annotations example
-
Refactor the creation of unresolved objects
-
Create unresolved objects only for objects in the xref table (except during parsing of the xref table). Do not add indirect nulls into the the object cache as the result of a cache miss during a call to getObject except during parsing or creation/updating from JSON. To support this behaviour, add new private methods getObjectForParser and getObjectForJSON. As a result of this change, dangling references are treated as direct nulls rather than indirect nulls.
-
Prepare for treating indirect references differently depending on whether we are parsing a PDF file (in which case reference to objects not in the xref table are null even if they are in the object cache) or whether parse from user code (in which case an indirect reference can refer to a user created object).
-
Fix writing reals with trailing '.' as JSON (fixes #1261)
-
libtests: include cstdint for GCC 15
-
GCC 15 starts to no longer include this by default, requiring it to be explicitly included. Error message: libtests/cxx11.cc:75:16: error: ‘uint8_t’ was not declared in this scope 75 | check_size<uint8_t>(1, false); | ^~~~~~~ libtests/cxx11.cc:10:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’ 9 | #include <regex> +++ |+#include <cstdint> 10 | #include <type_traits> Signed-off-by: Christopher Fore <csfore@posteo.net>
-
Adjust fuzzer memory limits and refactor Pl_RunLength::decode
-
Buffer output locally. Add qpdf_fuzzer test case.