aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf
AgeCommit message (Collapse)Author
2024-02-04Handle parse error stream data (fixes #1123)Jay Berkenbilt
A parse error in stream data in which stream data contained a nested object would cause a crash because qpdf was not correctly updating its internal state. Rework the QPDF json reactor to not be sensitive to parse errors in this way.
2024-02-04Format codeJay Berkenbilt
2024-02-03Merge pull request #1138 from m-holger/j_keyJay Berkenbilt
Allow "n:/pdf-syntax" JSON syntax for dictionary keys
2024-02-03Merge branch 'fz' of github.com:m-holger/qpdf into fzJay Berkenbilt
2024-01-29Allow "n:/pdf-syntax" JSON syntax for dictionary keysm-holger
2024-01-27In Pl_TIFFPredictor::processRow buffer outputm-holger
2024-01-27In Pl_TIFFPredictor::processRow optimize 8 bits_per_sample casem-holger
2024-01-26In Pl_TIFFPredictor::processRow remove special case for first columnm-holger
2024-01-26In Pl_TIFFPredictor::processRow avoid repeated vector allocationm-holger
Also, modernize for loop.
2024-01-26In Pl_TIFFPredictor avoid repeated calls to getNextm-holger
2024-01-26Simplify address arithmetic in Pl_TIFFPredictorm-holger
2024-01-26In Pl_TIFFPredictor remove calls to memcpym-holger
Instead of overwriting cur_row.data() use clear and insert.
2024-01-26Change Pl_TIFFPredictor::cur_row to std::vector<unsigned char>m-holger
2024-01-20Merge pull request #1128 from m-holger/reconstructJay Berkenbilt
Tighten checks for invalid indirect references during xref reconstru…
2024-01-18Handle default-constructed JSON objectsm-holger
2024-01-17Tighten checks for invalid indirect references during xref reconstructionm-holger
2024-01-17Tighten checks for invalid indirect references in QPDFParserm-holger
2024-01-17Fix incorrect handling of invalid negative object idsm-holger
Fix two errors introduced in #1110 and #1112. Since #1110, encountering the invalid indirect reference #1110 -2147483648 n R produces an integer underflow which, if undetected, immediately trigger a logic error. Since #1112, object -1 0 R may be incorrectly identified as an earlier generation of itself and deleted, invalidating a live iterator.
2024-01-15Remove extraneous blank linesJay Berkenbilt
2024-01-15Tweak Handlers::json_handlersm-holger
Use std::vector instead of list and move shared pointers
2024-01-15Tweak Handlers::beginUnderOverlay and beginPagesm-holger
2024-01-15Add new method JSON::getDictItemm-holger
2024-01-12Fix null pointer issue on array copyJay Berkenbilt
2024-01-11Include filename in verbose output for overlay/underlayJay Berkenbilt
2024-01-11Honor repeated overlay/underlayJay Berkenbilt
2024-01-11Allow repetition of overlay/underlayJay Berkenbilt
This is just QPDFJob wiring.
2024-01-11QPDFJob JSON: allow single item in place of arrayJay Berkenbilt
2024-01-11JSONHandler: add fallback handler supportJay Berkenbilt
2024-01-10Handle pages/under/overlay JSON file in beginJay Berkenbilt
...since they have to be handled before other options. It was working because, in both cases, `file` was alphabetically before the other keys, but this implementation gives a stronger guarantee.
2024-01-10Allow --file with --overlay and --underlayJay Berkenbilt
2024-01-10Allow --file and --range with --pagesJay Berkenbilt
Accept --file and --range as named parameters in additional to allowing positional arguments. This is in preparation for adding additional flags.
2024-01-10Fix arg parsing check with --collateJay Berkenbilt
The check for the number of items was in the wrong place.
2024-01-10Tune handling of sparse arrays in QPDF_Arraym-holger
Sparse arrays are rare. Dynamically create the variables needed to manage them only when needed.
2024-01-08Tweak QPDF::getCompressibleObjGensm-holger
2024-01-08Fix error from older gcc versionsJay Berkenbilt
2024-01-08Tweak QPDF::replaceObjectm-holger
2024-01-08Tweak QPDF::read_xrefm-holger
2024-01-07Bug fix: treat old generations of reused objects as nullJay Berkenbilt
2024-01-07Improve getCompressibleObjGens fix to handle gen > 0Jay Berkenbilt
2024-01-07Tune QPDF::getCompressibleObjGensm-holger
Change set visited to std::vector<bool>
2024-01-07Tune QPDF::getCompressibleObjGensm-holger
Swap front and back, and change queue from list to vector
2024-01-06Format codeJay Berkenbilt
2024-01-06Remove explicit type from PageLabel dictionaryJay Berkenbilt
The old code didn't put one there, and it's not really useful. It just makes the file (trivially) larger.
2024-01-06QPDF.cc: remove unused includesJay Berkenbilt
2024-01-06Attempt to find xref streams during recovery (fixes #1103)Jay Berkenbilt
2024-01-05Implement --set-page-labels and supporting API (fixes #939)Jay Berkenbilt
2024-01-05Automated changes for --set-page-labelsJay Berkenbilt
This commit contains the changes from generate_auto_job based on manual changes from the previous commit.
2024-01-05Wiring for --set-page-labels: manual (non-bisectable commit)Jay Berkenbilt
This commit contains only the manual changes. It is separated for clarity. This commit would not pass CI because it lacks the automated changes, which appear in the next commit.
2024-01-04Remove unused argument in private setWriterOptions methodJay Berkenbilt
2024-01-02Support comma-separated numeric values with --collate (fixes #505)Jay Berkenbilt