aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
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 many more errors to warningsJay Berkenbilt
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-27Move lexer helper functions to QUtilJay Berkenbilt
2017-07-27Remove PCRE from QPDFTokenizerJay Berkenbilt
2017-07-26Make windows includes lowercase (fixes #123)slurdge
For cross compiling.
2017-07-26TODO: bump ABI versionJay Berkenbilt
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.
2017-07-26Fix typo in commentJay Berkenbilt
2017-07-26Updates for newer Windows toolchainJay Berkenbilt
2016-12-27Note about std::regex attemptJay Berkenbilt
2016-09-10install target: only install docs if buildingJay Berkenbilt
Don't try to install HTML or PDF documentation if we're not building docs.
2016-09-10Fix page range example in documentationJay Berkenbilt
2016-01-24C++-Builder supports 64 Bit file functionsThorsten Schöning
The 64 Bit file functions are supported by C++-Builder as well and need to be used, else fseek will error out on larger files than 4 GB like used in the large file test.
2016-01-24Include QPDFExc.hh for use in std::listThorsten Schöning
2016-01-24Use RM_WS_ONLY_LINES in testThorsten Schöning
Some compilers output extra newlines in some cases.
2016-01-24Include stdlib.h to provide exitThorsten Schöning
2016-01-24Include QPDFObjectHandle for use in std::listThorsten Schöning
QPDFObjectHandle was used as forward declaration, but C++-Builder 10 Seattle can't use it in std::list in such cases because the type is undefined.
2016-01-24From qtest: add RM_WS_ONLY_LINES optionThorsten Schöning
qutil.cc uses strerror to print some exceptions and adds a newline afterwards, but strerror in Windows already adds one newline at the end of the message and the additional one from std::endl breaks the output vs. the expected one.
2016-01-24Tweak wording of Thorsten's documentation updatesJay Berkenbilt
2016-01-24Add notes for running more tests on WindowsThorsten Schöning
Provide notes about LibTiff and such.
2016-01-24Support paths with spacesThorsten Schöning
2016-01-24Use absolute paths for large file testsThorsten Schöning
Working with absolute paths makes debugging easier, but some called scripts always need / as dir separator or won't work.
2016-01-24Fix non-portable use of /dev/nullThorsten Schöning
/dev/null is not portable, so use File::Spec instead, which provides portable "paths" and especially "nul" on Windows. I changed all places with hard coded /dev/null to be sure, while I think it only is a problem in direct system calls, because the other executed commands go to sh.exe from MSYS which itself should port /dev/null to NUL. The test still pass, so shouldn't have made any harm...
2016-01-24Fix expr syntax, support spaces in pathsThorsten Schöning
expr needs ARG + ARG quote paths to support support spaces
2016-01-24Explicitly invoke shell scripts with shThorsten Schöning
Shebang doesn't work well on Windows.
2016-01-24Useless use of a constant in void contextThorsten Schöning
Remove an extraneous newline to avoid useless constant warning.
2015-11-10Prepare 6.0.0 releaserelease-qpdf-6.0.0Jay Berkenbilt
2015-11-10Bump library sonameJay Berkenbilt
Also update maintainer documentation on binary compatibility testing.
2015-11-10Remove some ABI compatibility private methodsJay Berkenbilt
Since we have to bump soname, remove some private methods that were just there for binary compatibility
2015-11-01Prepare 5.2.0 releaserelease-qpdf-5.2.0Jay Berkenbilt
2015-11-01Comment use of static ID in examplesJay Berkenbilt
Make sure people know that static ID should be used only for testing.
2015-11-01Fix copyright year in manualJay Berkenbilt
2015-11-01Linearize manualJay Berkenbilt
2015-10-31Fix spelling errorsJay 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-31Remove trailing whitespaceJay Berkenbilt
2015-10-31Bump soname minor revision for ABI additionsJay Berkenbilt
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-09-07Mention debian copyrightJay Berkenbilt
2015-05-24Prepare 5.1.3 releaserelease-qpdf-5.1.3Jay Berkenbilt
2015-05-24Update documentation for 5.1.3Jay Berkenbilt
2015-05-24Copyright 2015Jay Berkenbilt
2015-05-24Notes to self on local Windows buildJay Berkenbilt