Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-10-18 | Stop using InputSource::unreadCh | Jay Berkenbilt | |
2020-10-17 | Check integer overflow in resolveObjectsInStream | Dean Scarff | |
Fixes a crash found by fuzzing. | |||
2020-10-17 | Properly detect OPENSSL_IS_BORINGSSL | Dean Scarff | |
OPENSSL_IS_BORINGSSL is not actually set by configure, so it will be undefined until a BoringSSL header is included. Hence the #ifdef logic in QPDFCrypto_openssl.h would usually never apply. This still worked because evp.h transitively included BoringSSL's cipher.h and digest.h, but the latter are the correct (documented) headers. By re-ordering the includes, we can ensure the macro is defined when we use it. Also: fix case in the header guards. | |||
2020-10-17 | Include detailed OpenSSL error messages | Dean Scarff | |
Fixes qpdf/qpdf#450 | |||
2020-10-17 | Replace memchr with manual memory search | James R. Barlow | |
On large files with predominantly \n line endings, memchr(..'\r'..) seems to waste a considerable amount of time searching for a line ending candidate that we don't need. On the Adobe PDF Reference Manual 1.7, this commit is 8x faster at QPDF::processMemoryFile(). | |||
2020-10-17 | fix WindowsCryptProvider fixes #432 | oltolm | |
2020-10-16 | Fix printf formatting for newer msvc | Jay Berkenbilt | |
Use autoconf rather than ifdefs to determine what format string to use for long long. | |||
2020-10-15 | Remove redundant check found by lgtm.com | Jay Berkenbilt | |
2020-04-29 | Write linearization errors to stderr (fixes #438) | Jay Berkenbilt | |
2020-04-16 | Fix warnings reported by -Wshadow=local (fixes #431) | Jay Berkenbilt | |
2020-04-10 | Use more references when iterating | Jay Berkenbilt | |
When possible, use `for (auto&` or `for (auto const&` when iterating using C++-11 style iterators. | |||
2020-04-09 | Prepare 10.0.1 releaserelease-qpdf-10.0.1 | Jay Berkenbilt | |
2020-04-09 | Fix unnecessary copies in auto iter (fixes #426) | Jay Berkenbilt | |
Also switch to colon-style iteration in some cases. Thanks to Dean Scarff for drawing this to my attention after detecting some unnecessary copies with https://clang.llvm.org/extra/clang-tidy/checks/performance-for-range-copy.html | |||
2020-04-09 | Bug fix: getStreamData should on unfilterable stream (fixes #425) | Jay Berkenbilt | |
2020-04-06 | Prepare 10.0.0 release | Jay Berkenbilt | |
2020-04-06 | Don't include <cwchar> if not building with wchar | Jay Berkenbilt | |
2020-04-06 | Delegate random number generation to crypto provider (fixes #418) | Jay Berkenbilt | |
2020-04-06 | Make random data provider code thread-safe | Jay Berkenbilt | |
This uses C++-11 thread-safe static initializers now. | |||
2020-04-06 | Remove QUtil::srandom | Jay Berkenbilt | |
2020-04-06 | Add OpenSSL/BoringSSL crypto provider | Dean Scarff | |
Fixes qpdf/qpdf#417 | |||
2020-04-06 | Allow propagation of errors and retry through StreamDataProvider | Jay Berkenbilt | |
StreamDataProvider::provideStreamData now has a rich enough API for it to effectively proxy to pipeStreamData. | |||
2020-04-05 | JSON: implement pattern keys in schema | Jay Berkenbilt | |
2020-04-04 | Use deterministic assignments for unique_id | Dean Scarff | |
Fixes qpdf/qpdf#419 | |||
2020-04-04 | Allow qpdf to be built on systems without wchar_t (fixes #406) | Jay Berkenbilt | |
2020-04-04 | Avoid potential segfault in warning methods | Jay Berkenbilt | |
2020-04-04 | placeFormXObject: allow control of shrink/expand (fixes #409) | Jay Berkenbilt | |
2020-04-03 | C API: accept any non-zero value as TRUE | Jay Berkenbilt | |
2020-04-03 | Remove redundant methods in QUtil | Jay Berkenbilt | |
This was being saved until we had to break ABI. | |||
2020-04-03 | QPDFPageObjectHelper::placeFormXObject: use std::string const& (fixes #374) | Jay Berkenbilt | |
2020-04-03 | Performance: remove Members indirection for Pipeline | Jay Berkenbilt | |
2020-04-03 | Use an unordered map for SparseOHArray for efficiency | Jay Berkenbilt | |
This was added in C++11. | |||
2020-04-03 | Use auto for iterating over sparse array | Jay Berkenbilt | |
2020-04-03 | Internally use unsafeShallowCopy where we can | Jay Berkenbilt | |
2020-04-03 | Add QPDFObjectHandle::unsafeShallowCopy | Jay Berkenbilt | |
2020-04-03 | Performance: remove indirection through Members for QPDFObject | Jay Berkenbilt | |
2020-04-03 | Performance: remove Members indirection for QPDFObjectHandle | Jay Berkenbilt | |
2020-03-31 | Look in form XObjects when removing unreferenced resources (fixes #373) | Jay Berkenbilt | |
If a page contains a form XObject, also filter the form XObject and remove its unreferenced resources. | |||
2020-03-31 | Refactor QPDFPageObjectHelper::removeUnreferencedResources() | Jay Berkenbilt | |
Refactor removeUnreferencedResources to prepare for filtering form XObjects. | |||
2020-02-29 | Include header for wcslen (fixes #405) | Jay Berkenbilt | |
2020-02-22 | Handle root /Pages pointing to other than page tree root (fixes #398) | Jay Berkenbilt | |
2020-01-27 | Prepare 9.1.1 releaserelease-qpdf-9.1.1 | Jay Berkenbilt | |
2020-01-26 | In qdf mode, don't write extra XRef streams (fixes #386) | Jay Berkenbilt | |
fix-qdf assumes there is exactly one XRef stream and that it is at the end of the file. | |||
2020-01-26 | Bug fix: handle ColorSpace lookup for inline images (fixes #392) | Jay Berkenbilt | |
If the value of /CS in the inline image dictionary was is key in the page's /Resource -> /ColorSpace dictionary, properly resolve it by referencing the proper colorspace, and not just the name, in the external image dictionary. | |||
2020-01-15 | Fix for Windows unable to acquire crypt context with new keyset (fixes #387) | Cloudmersive | |
Fix is based on guidance https://support.microsoft.com/en-us/help/238187/cryptacquirecontext-use-and-troubleshooting and is the proper fix for #285/#286 | |||
2020-01-14 | Pull wmain -> main code from qpdf.cc into QUtil.cc | Jay Berkenbilt | |
2020-01-14 | Add error detection for read_lines_from_file(FILE*) | Jay Berkenbilt | |
2020-01-13 | QUtil::read_lines_from_file: optional EOL preservation | Jay Berkenbilt | |
2020-01-13 | Refactor QUtil::read_lines_from_file | Jay Berkenbilt | |
This commit adds the preserve_eol flags but doesn't implement EOL preservation yet. | |||
2019-11-17 | Prepare 9.1.0 releaserelease-qpdf-9.1.0 | Jay Berkenbilt | |
2019-11-10 | Prepare 9.1.rc1 release | Jay Berkenbilt | |