aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf
AgeCommit message (Collapse)Author
2018-01-14Allow trailing . in numeric token (fixes #165)Jay Berkenbilt
2018-01-14Support TIFF Predictor (fixes #171)Jay Berkenbilt
2018-01-14Add Pl_TIFFPredictorJay Berkenbilt
2018-01-14Add signed support to BitStream and BitWriterJay Berkenbilt
2018-01-14Minor fixes to Pl_PNGFilterJay Berkenbilt
Fix comment, remove restriction that doesn't actually matter.
2018-01-14Use better error for getStreamData failureJay Berkenbilt
If the stream isn't filterable but we call getStreamData, throw a regular exception instead of a logic error so that normal error handling and reporting mechanisms will be used.
2017-12-26Add tests for new PNG filtersJay Berkenbilt
2017-12-25Correct errors in PNG filters and make use from libraryJay Berkenbilt
2017-12-25Initial implementation of other PNG decode filtersCasey Rojas
Initial implementation provided by Casey Rojas <crojas@infotechfl.com> Some problems are fixed in a subsequent commit.
2017-09-16Prepare 7.0.0 releaserelease-qpdf-7.0.0Jay Berkenbilt
2017-09-16Fix test failure on MSVCJay Berkenbilt
2017-09-16Spell checkJay Berkenbilt
2017-09-16Fix Windows compilation errorsJay Berkenbilt
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-09-08Pl_DCT: Use custom source and destination managers (fixes #153)Jay Berkenbilt
Avoid calling jpeg_mem_src and jpeg_mem_dest. The custom destination manager writes to the pipeline in smaller chunks to avoid having the whole image in memory at once. The source manager works directly with the Buffer object. Using customer managers avoids use of memory source and destination managers, which are not present in older versions of libjpeg still in use by some Linux distributions.
2017-08-31PNGFilter: Better range checking for columnsJay Berkenbilt
2017-08-29Replace all atoi calls with QUtil::string_to_intJay Berkenbilt
The latter catches underflow/overflow.
2017-08-29Pl_PNGFilter: disallow columns = 0Jay 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-27Pad keys to avoid memory errors (fixes #147)Jay Berkenbilt
2017-08-26Fix Pl_Flate memory leak on error (fixes #148)Jay 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-22Spell checkJay Berkenbilt
2017-08-22Update references to README filesJay Berkenbilt
Most of the README files have been renamed. Refer to the new names.
2017-08-22Do memory checksJay Berkenbilt
Slightly improve memory cleanup in Pl_DCT Make it easier to test with valgrind
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-22Fix compiler warnings for clang/mac OS XJay Berkenbilt
2017-08-22Fix logic error in recoveryJay Berkenbilt
A stray semicolon caused a condition to be incorrectly applied during stream length recovery.
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-22Improve pclm parameter settingsJay Berkenbilt
2017-08-22Combine writePCLm with writeStandardJay Berkenbilt
Reduce code duplication
2017-08-22Combine PCLm header into writeHeaderJay Berkenbilt
2017-08-22Remove duplicated coverage casesJay Berkenbilt
Remove duplicated coverage cases from Sahil's code so existing test suite passes.
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-12Fix infinite loop in QPDFWriter (fixes #143)Jay Berkenbilt
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-12Prevent a division by zero error (fixes #141)Jay Berkenbilt
Bad /W in an xref stream could cause a division by zero error. Now this is handled as a special case.
2017-08-12Pad encryption parameters that are too short (fixes #96)Jay Berkenbilt