Jay Berkenbilt
1a888ee3b1
TODO
2020-10-16 20:25:12 -04:00
Jay Berkenbilt
a3677ffe91
TODO and ChangeLog updates from merged pull requests
2020-10-16 20:15:14 -04:00
Dean Scarff
153060a0c5
Check integer overflow in resolveObjectsInStream
...
Fixes a crash found by fuzzing.
2020-10-16 20:09:24 -04:00
Dean Scarff
9a3791c53b
Properly detect OPENSSL_IS_BORINGSSL
...
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-16 20:04:36 -04:00
Dean Scarff
a99ad2b900
Update OpenSSL autoconf checks
...
- Checks explicitly for versions >= 1.1.0 with pkg-config
- Refactor the fallback checks. Previously they were copied
from the gnutls logic, but could be slightly surprising (it's not
obvious that they're for the case where pkg-config returns a false
negative, and it's weird that the linker check overode the header check)
- Fix the AC_SEARCH_LIBS check to try -lcrypto instead of -lopenssl
(-lcrypto is the standard library OpenSSL ships the crypto symbols in).
- Fix the AC_SEARCH_LIBS check to look for EVP_MD_CTX_new, which is not
present in versions prior to 1.1.0.
Fixes qpdf/qpdf#429 (although I haven't verified on cygwin)
2020-10-16 20:04:36 -04:00
Dean Scarff
2ff84aa2c9
Include detailed OpenSSL error messages
...
Fixes qpdf/qpdf#450
2020-10-16 19:58:11 -04:00
James R. Barlow
3fc7c99d02
Replace memchr with manual memory search
...
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-16 19:57:29 -04:00
oltolm
3221022fc9
fix WindowsCryptProvider fixes #432
2020-10-16 19:56:33 -04:00
Jay Berkenbilt
32245ca339
Trigger QPDF Build on build/*
2020-10-16 18:07:23 -04:00
Jay Berkenbilt
894d1c650c
Minor notes on GitHub Actions migration
2020-10-16 17:52:43 -04:00
Jay Berkenbilt
92635d1203
Add GitHub Actions workflow
2020-10-16 17:34:21 -04:00
Jay Berkenbilt
1019ed5758
Fix to TestDriver.pm (qtest)
2020-10-16 17:15:39 -04:00
Jay Berkenbilt
18b34a5649
InputSource::unreadCh -- only unread most recently read character
...
This is all that ever worked. The test suite was trying to do
something different from ClosedFileInputSource.
2020-10-16 17:15:39 -04:00
Jay Berkenbilt
9a4d3534a1
Split distfiles into a separate job
2020-10-16 14:16:26 -04:00
Jay Berkenbilt
ba17370ff5
Make build-scripts portable for GitHub Actions
2020-10-16 14:16:26 -04:00
Jay Berkenbilt
30df7c886c
Make QTEST_COLOR=1 force qtest to print in color
2020-10-16 14:16:23 -04:00
Jay Berkenbilt
1bcd8c1649
Rename azure-pipelines to build-scripts
2020-10-16 11:19:09 -04:00
Jay Berkenbilt
807aaa46b1
More reliable Windows wordsize detection
2020-10-16 07:02:25 -04:00
Jay Berkenbilt
ff65e272a8
Fix printf formatting for newer msvc
...
Use autoconf rather than ifdefs to determine what format string to use
for long long.
2020-10-16 07:02:23 -04:00
Jay Berkenbilt
be21ede7ba
Rename github workflow main.yml to cifuzz.yml
...
Preparing to migrate qpdf's main build/CI to GitHub actions
2020-10-15 15:55:45 -04:00
Jay Berkenbilt
2a74062248
Azure pipelines: fix test-sanitizers job
2020-10-15 15:55:24 -04:00
Jay Berkenbilt
07909a62ed
TODO: remove previously completed item
2020-10-15 15:27:49 -04:00
Jay Berkenbilt
7fbadba6cd
Remove support for Travis CI
...
It is redundant with qpdf's main CI environment, which is Azure
Pipelines, but may soon be migrated to GitHub Actions.
2020-10-15 15:18:43 -04:00
Jay Berkenbilt
bbd45cd01c
Clarify qpdf's exit statuses in the documentation
2020-10-15 15:03:14 -04:00
Jay Berkenbilt
8f1db4dcf2
Fix doc typo (--encryption-file-password) ( fixes #468 )
2020-10-15 14:54:34 -04:00
Jay Berkenbilt
a1994a5343
Fix/clarify documentation on --rotate option ( fixes #470 )
...
Make clear that you almost always want + or - before an angle when
specifying rotation.
2020-10-15 14:53:06 -04:00
Jay Berkenbilt
88b8f8ec86
Remove redundant check found by lgtm.com
2020-10-15 14:47:43 -04:00
Jay Berkenbilt
4d143d10eb
TODO: organize in preparation for next increment
2020-10-15 14:10:21 -04:00
Jay Berkenbilt
26514ab731
Write linearization errors to stderr ( fixes #438 )
2020-04-29 17:33:34 -04:00
Jay Berkenbilt
22a167a014
Add lgtm badges
2020-04-29 17:33:34 -04:00
Jay Berkenbilt
e9195b0b21
Mention lgtm.com in release preparation
2020-04-16 12:41:43 -04:00
Jay Berkenbilt
734ab58764
Use -Wshadow=local if supported
2020-04-16 12:41:43 -04:00
Jay Berkenbilt
92d3cbecd4
Fix warnings reported by -Wshadow=local ( fixes #431 )
2020-04-16 12:41:43 -04:00
Jay Berkenbilt
66198f447f
Use -latomic if needed with gcc
2020-04-10 13:33:03 -04:00
Jay Berkenbilt
578c5ac66c
Use more references when iterating
...
When possible, use `for (auto&` or `for (auto const&` when iterating
using C++-11 style iterators.
2020-04-10 13:30:33 -04:00
Jay Berkenbilt
821a701851
Prepare 10.0.1 release
2020-04-09 11:48:26 -04:00
Jay Berkenbilt
0c1122a729
Spell check
2020-04-08 21:20:47 -04:00
Jay Berkenbilt
77e9e1ac57
Add missing step in performance test procedure
2020-04-08 21:19:05 -04:00
Jay Berkenbilt
62d5fb34b1
Fix typo in test case name
2020-04-08 20:46:01 -04:00
Jay Berkenbilt
1a7d3700a6
Fix unnecessary copies in auto iter ( fixes #426 )
...
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-08 20:45:26 -04:00
Jay Berkenbilt
b89b1d772d
Fix memory leak in pdf-invert-images
...
A class can't have a PointerHolder to itself since PointerHolder
doesn't have the concept of weak references.
2020-04-08 20:45:26 -04:00
Jay Berkenbilt
93de6eaf96
Run pikepdf's test suite during release preparation
2020-04-08 19:33:10 -04:00
Jay Berkenbilt
4977a7efa5
Bug fix: getStreamData should on unfilterable stream ( fixes #425 )
2020-04-08 18:52:04 -04:00
Jay Berkenbilt
22f7f459e6
Created PPA
2020-04-07 21:47:35 -04:00
Jay Berkenbilt
65ae8511a7
Improve pdf-invert-images example
2020-04-07 18:11:00 -04:00
Jay Berkenbilt
fbac472510
Correction to ChangeLog
2020-04-07 17:54:47 -04:00
Jay Berkenbilt
496aacd34a
Add missing QPDF_DLL_CLASS for QPDFObject ( fixes #424 )
...
This is needed for some compilers on some platforms, notably current
versions of clang.
2020-04-07 10:35:03 -04:00
Jay Berkenbilt
892937cbbe
Fix errors in --remove-unreferenced-resources=auto
2020-04-06 12:14:27 -04:00
Jay Berkenbilt
1e629c278a
Prepare 10.0.0 release
2020-04-06 11:30:15 -04:00
Jay Berkenbilt
222ec04990
Tweak maintainer notes
2020-04-06 11:26:47 -04:00