aboutsummaryrefslogtreecommitdiffstats
path: root/include
AgeCommit message (Collapse)Author
2018-01-14Allow raw encryption key to be specifiedJay Berkenbilt
Add options to enable the raw encryption key to be directly shown or specified. Thanks to Didier Stevens <didier.stevens@gmail.com> for the idea and contribution of one implementation of this idea.
2018-01-14Add QUtil::hex_decodeJay Berkenbilt
2018-01-14Update copyright to 2018Jay Berkenbilt
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-29Detect integer overflow/underflowJay Berkenbilt
2017-08-29Fix memory leak with bad jpeg dataJay Berkenbilt
2017-08-29Clean up circular references in QPDF_StreamJay Berkenbilt
2017-08-27Fix error caught by clangJay Berkenbilt
2017-08-26Parse iteratively to avoid stack overflow (fixes #146)Jay Berkenbilt
2017-08-22Spell checkJay Berkenbilt
2017-08-22Limit token length during xref recoveryJay Berkenbilt
While scanning the file looking for objects, limit the length of tokens we allow. This prevents us from getting caught up in reading a file character by character while digging through large streams.
2017-08-22Push QPDFWriter member variables into a nested classJay Berkenbilt
2017-08-22Push QPDF member variables into a nested classJay Berkenbilt
Pushing member variables into a nested class enables addition of new member variables without breaking binary compatibility.
2017-08-22Update copyright to 2017Jay Berkenbilt
2017-08-22Combine writePCLm with writeStandardJay Berkenbilt
Reduce code duplication
2017-08-22Combine PCLm header into writeHeaderJay Berkenbilt
2017-08-22Update header documentation and ChangeLog entry for PCLmJay Berkenbilt
2017-08-22QPDFWriter: Add setPCLm() and writePCLm() methodsSahil Arora
* Add support for PCLm using setPCLm() and writePCLm() methods in QPDFWriter.hh and QPDFWriter.cc * Add a function writePCLmHeader() for PCLm header in QPDFWriter
2017-08-21Precheck streams by defaultJay Berkenbilt
There is no need for a --precheck-streams option. We can do the precheck without imposing any penalty, only re-encoding the stream if it fails the first time.
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-21Implement Pl_DCT pipelineJay Berkenbilt
Additional testing is added in later commits to be supported by additional changes in the library.
2017-08-19Implement Pl_RunLength pipelineJay Berkenbilt
2017-08-13Add page rotation (fixes #132)Jay 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-11Find starxref without PCREJay Berkenbilt
2017-08-11Find header without PCREJay Berkenbilt
2017-08-11Implement findFirst and findLast in InputSourceJay Berkenbilt
Preparing to refactor some pattern searching code to use these instead of their own memchr loops. This should simplify the code that replaces PCRE.
2017-08-11Allow QPDFTokenizer::readToken to return bad tokensJay Berkenbilt
Sometimes we want to ignore bad tokens rather than having them throw an exception. A coverage case is commented out here and added in a later commit.
2017-08-11Remove unused PointerHolder interfaceJay Berkenbilt
Also fix a bug resulting from incorrect use of PointerHolder because of this unused parameter.
2017-08-05QUtil::strcasecmpJay Berkenbilt
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-29Add newline-before-endstream option (fixes #103)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-29Clarify documentation on copyForeignObject (fixes #69)Jay Berkenbilt
Be explicit about the need to keep the source QPDF object around.
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-27Move lexer helper functions to QUtilJay 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-26Avoid xref reconstruction infinite loop (fixes #100)Jay Berkenbilt
This is CVE-2017-9209.
2017-07-26Fix typo in commentJay Berkenbilt
2016-01-24Include QPDFExc.hh for use in std::listThorsten 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.
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-10-31Fix spelling errorsJay Berkenbilt