aboutsummaryrefslogtreecommitdiffstats
path: root/ChangeLog
AgeCommit message (Collapse)Author
2017-09-14Additionally license under Apache License version 2.0Jay Berkenbilt
The Apache License version 2.0 is now the primary license for qpdf. However, users may, at their option, continue to use Artistic version 2.0.
2017-09-12Improve message for stream decoding errorJay Berkenbilt
Tweak the message so that we inform the user that we are mitigating data loss.
2017-09-12Update C API with new QPDFWriter methodsJay Berkenbilt
2017-08-26Parse iteratively to avoid stack overflow (fixes #146)Jay Berkenbilt
2017-08-26Detect xref pointer infinite loop (fixes #149)Jay Berkenbilt
2017-08-22Bump soname to 18 and version to 7.0.b1release-qpdf-7.0.b1Jay Berkenbilt
2017-08-22Update references to README filesJay Berkenbilt
Most of the README files have been renamed. Refer to the new names.
2017-08-22Update header documentation and ChangeLog entry for PCLmJay Berkenbilt
2017-08-21Enable finer grained control of stream decodingJay Berkenbilt
This commit adds several API methods that enable control over which types of filters QPDF will attempt to decode. It also adds support for /RunLengthDecode and /DCTDecode filters for both encoding and decoding.
2017-08-13Revert "Add page rotation example in contrib"Jay Berkenbilt
This reverts commit 8ee83ca722baad9434119bb72d620dfd8e6103c4. This is being removed because qpdf now has its own page rotation. The example was an excellent contribution to qpdf, but now it illustrates rotating pages "by hand", which is no longer needed because of QPDFObjectHandle::rotatePage.
2017-08-13Add page rotation (fixes #132)Jay Berkenbilt
2017-08-12Add --verbose flagJay Berkenbilt
2017-08-12Change --single-pages to --split-pagesJay Berkenbilt
This is in preparation for implementing page groups.
2017-08-12Fix --newline-before-endstream option (fixes #133)Jay Berkenbilt
Add a newline unconditionally before endstream even if a newline was already written as part of the stream data.
2017-08-12Pad encryption parameters that are too short (fixes #96)Jay Berkenbilt
2017-08-11Remove PCREJay Berkenbilt
2017-08-11Read xref table without PCREJay Berkenbilt
Also accept more errors than before.
2017-08-11Improve stream length recoveryJay Berkenbilt
Eliminate PCRE and find endobj not preceded by endstream. Be more lax about placement of endstream and endobj.
2017-08-11Remove unused PointerHolder interfaceJay Berkenbilt
Also fix a bug resulting from incorrect use of PointerHolder because of this unused parameter.
2017-08-05Add --split-pages option (fixes #30)Jay Berkenbilt
2017-08-05Move page spec processing earlierJay Berkenbilt
2017-08-03Fix off-by-one error in --pages argument parsing (fixes #129)Jay Berkenbilt
2017-07-30Add page rotation example in contribiskander.sharipov
This is added to contrib rather than examples because it requires c++-11 and lacks a test suite, but it is still useful enough to include with the distribution.
2017-07-30Allow reading command-line args from files (fixes #16)Jay Berkenbilt
2017-07-30Detect input file = output file (fixes #29)Jay Berkenbilt
2017-07-30Allow --check to coexist with and precede other operations (fixes #42)Jay Berkenbilt
2017-07-30When recover stream length, indicate the length (fixes #44)Jay Berkenbilt
2017-07-29Add newline-before-endstream option (fixes #103)Jay Berkenbilt
2017-07-29Handle zlib data errors better (fixes #106)Jay Berkenbilt
2017-07-29Better recovery of bad stream start (fixes #104)Jay Berkenbilt
2017-07-29Better handle split content streams (fixes #73)Jay Berkenbilt
When parsing content streams, allow content to be split arbitrarily across stream boundaries.
2017-07-29Add option to preserve unreferenced objectsJay Berkenbilt
2017-07-28Add precheck streams capabilityJay Berkenbilt
When requested, QPDFWriter will do more aggress prechecking of streams to make sure it can actually succeed in decoding them before attempting to do so. This will allow preservation of raw data even when the raw data is corrupted relative to the specified filters.
2017-07-28Convert stream filtering errors to warningsJay Berkenbilt
2017-07-28Convert object parsing errors to warningsJay Berkenbilt
QPDFObjectHandle::parseInternal now issues warnings instead of throwing exceptions for all error conditions that it finds (except internal logic errors) and has stronger recovery for things like invalid tokens and malformed dictionaries. This should improve qpdf's ability to recover from a wide range of broken files that currently cause it to fail.
2017-07-26Include tests for other infinite loop bugsJay Berkenbilt
fixes #117 fixes #118 fixes #119 fixes #120 Several other infinite loop bugs were fixed by previous changes. Include their test files in the test suite.
2017-07-26Don't interpret word tokens in content streams (fixes #82)Jay Berkenbilt
2017-07-26Detect recursion loops resolving objects (fixes #51)Jay Berkenbilt
During parsing of an object, sometimes parts of the object have to be resolved. An example is stream lengths. If such an object directly or indirectly points to the object being parsed, it can cause an infinite loop. Guard against all cases of re-entrant resolution of objects.
2017-07-26Handle object ID 0 (fixes #99)Jay Berkenbilt
This is CVE-2017-9208. The QPDF library uses object ID 0 internally as a sentinel to represent a direct object, but prior to this fix, was not blocking handling of 0 0 obj or 0 0 R as a special case. Creating an object in the file with 0 0 obj could cause various infinite loops. The PDF spec doesn't allow for object 0. Having qpdf handle object 0 might be a better fix, but changing all the places in the code that assumes objid == 0 means direct would be risky.
2017-07-26Avoid xref reconstruction infinite loop (fixes #100)Jay Berkenbilt
This is CVE-2017-9209.
2017-07-26Fix infinite loop while reporting an error (fixes #101)Jay Berkenbilt
This is CVE-2017-9210. The description string for an error message included unparsing an object, which is too complex of a thing to try to do while throwing an exception. There was only one example of this in the entire codebase, so it is not a pervasive problem. Fixing this eliminated one class of infinite loop errors.
2015-11-10Prepare 6.0.0 releaserelease-qpdf-6.0.0Jay Berkenbilt
2015-11-01Prepare 5.2.0 releaserelease-qpdf-5.2.0Jay Berkenbilt
2015-10-31Tolerate some mangled xref tablesJay Berkenbilt
If xref table entries lack the spec-required trailing whitespace or contain a small amount of extra space, handle them anyway.
2015-10-31Implement deterministic IDJay Berkenbilt
For non-encrypted files, determinstic ID generation uses file contents instead of timestamp and file name. At a small runtime cost, this enables generation of the same /ID if the same inputs are converted in the same way multiple times.
2015-05-24Prepare 5.1.3 releaserelease-qpdf-5.1.3Jay Berkenbilt
2015-05-24fix-qdf: handle object streams with > 255 objectsJay Berkenbilt
fix-qdf was previously hard-coding the number of bytes for the f2 field of the xref stream entry. This addresses issue #37. Thanks aluebcke for reporting.
2015-05-24Handle Microsoft crypt provider without prior keysJay Berkenbilt
As reported in issue #40, a call to CryptAcquireContext in SecureRandomDataProvider fails in a fresh windows install prior to any user keys being created in AppData\Roaming\Microsoft\Crypto\RSA. Thanks michalrames.
2015-05-24include time.h in QUtil.hhJay Berkenbilt
QUtil.hh needs time.h to get time_t on some platforms. Thanks Peter Korsgaard <peter@korsgaard.com>
2015-02-22Detect loops in /Pages structureJay Berkenbilt
Pushing inherited objects to pages and getting all pages were both prone to stack overflow infinite loops if there were loops in the Pages dictionary. There is a general weakness in the code in that any part of the code that traverses the Pages structure would be prone to this and would have to implement its own loop detection. A more robust fix may provide some general method for handling the Pages structure, but it's probably not worth doing. Note: addition of *Internal2 private functions was done rather than changing signatures of existing methods to avoid breaking compatibility.