Commit 5548b3bb71a3745fd15af2f583f5af9471000a6d
1 parent
38d8cc7f
Spell check
Showing
9 changed files
with
20 additions
and
10 deletions
ChangeLog
| @@ -20,13 +20,13 @@ | @@ -20,13 +20,13 @@ | ||
| 20 | 2024-09-19 M Holger <m.holger@qpdf.org> | 20 | 2024-09-19 M Holger <m.holger@qpdf.org> |
| 21 | 21 | ||
| 22 | * Bug fix: QPDFWriter stream DecodeLevel incorrectly defaulted to | 22 | * Bug fix: QPDFWriter stream DecodeLevel incorrectly defaulted to |
| 23 | - none instead of generalied. Fixes #1286. | 23 | + none instead of generalized. Fixes #1286. |
| 24 | 24 | ||
| 25 | 2024-08-25 M Holger <m.holger@qpdf.org> | 25 | 2024-08-25 M Holger <m.holger@qpdf.org> |
| 26 | 26 | ||
| 27 | * Add new command-line arguments --remove-metadata and --remove-info | 27 | * Add new command-line arguments --remove-metadata and --remove-info |
| 28 | to exclude document metadata and information from the output PDF | 28 | to exclude document metadata and information from the output PDF |
| 29 | - file. Patially fixes #1145. | 29 | + file. Partially fixes #1145. |
| 30 | 30 | ||
| 31 | 2024-08-06 M Holger <m.holger@qpdf.org> | 31 | 2024-08-06 M Holger <m.holger@qpdf.org> |
| 32 | 32 |
cSpell.json
| @@ -69,6 +69,7 @@ | @@ -69,6 +69,7 @@ | ||
| 69 | "cerr", | 69 | "cerr", |
| 70 | "cfis", | 70 | "cfis", |
| 71 | "cflags", | 71 | "cflags", |
| 72 | + "chao", | ||
| 72 | "ciphertext", | 73 | "ciphertext", |
| 73 | "classname", | 74 | "classname", |
| 74 | "cleanpatch", | 75 | "cleanpatch", |
| @@ -396,6 +397,7 @@ | @@ -396,6 +397,7 @@ | ||
| 396 | "objdump", | 397 | "objdump", |
| 397 | "objectinfo", | 398 | "objectinfo", |
| 398 | "objgen", | 399 | "objgen", |
| 400 | + "objgens", | ||
| 399 | "objidok", | 401 | "objidok", |
| 400 | "objok", | 402 | "objok", |
| 401 | "objspec", | 403 | "objspec", |
| @@ -622,9 +624,11 @@ | @@ -622,9 +624,11 @@ | ||
| 622 | "streammethod", | 624 | "streammethod", |
| 623 | "strequal", | 625 | "strequal", |
| 624 | "strerror", | 626 | "strerror", |
| 627 | + "strgreater", | ||
| 625 | "stringmethod", | 628 | "stringmethod", |
| 626 | "stringprep", | 629 | "stringprep", |
| 627 | "stripesize", | 630 | "stripesize", |
| 631 | + "strless", | ||
| 628 | "strtoui", | 632 | "strtoui", |
| 629 | "struct", | 633 | "struct", |
| 630 | "stylesheet", | 634 | "stylesheet", |
| @@ -742,6 +746,7 @@ | @@ -742,6 +746,7 @@ | ||
| 742 | "zdenek", | 746 | "zdenek", |
| 743 | "zdenop", | 747 | "zdenop", |
| 744 | "zeroize", | 748 | "zeroize", |
| 745 | - "zeroizing" | 749 | + "zeroizing", |
| 750 | + "zopfli" | ||
| 746 | ] | 751 | ] |
| 747 | } | 752 | } |
fuzz/CMakeLists.txt
| @@ -191,6 +191,7 @@ add_test( | @@ -191,6 +191,7 @@ add_test( | ||
| 191 | --color ${QTEST_COLOR} | 191 | --color ${QTEST_COLOR} |
| 192 | --show-on-failure ${SHOW_FAILED_TEST_OUTPUT}) | 192 | --show-on-failure ${SHOW_FAILED_TEST_OUTPUT}) |
| 193 | 193 | ||
| 194 | +# cSpell:ignore qpdg | ||
| 194 | if(OSS_FUZZ) | 195 | if(OSS_FUZZ) |
| 195 | list(APPEND SEED_CORPUS_ZIPS) | 196 | list(APPEND SEED_CORPUS_ZIPS) |
| 196 | foreach(F ${FUZZERS}) | 197 | foreach(F ${FUZZERS}) |
libqpdf/CMakeLists.txt
| @@ -158,6 +158,7 @@ if(NOT EXTERNAL_LIBS) | @@ -158,6 +158,7 @@ if(NOT EXTERNAL_LIBS) | ||
| 158 | list(APPEND dep_link_libraries ${pc_zlib_LIBRARIES}) | 158 | list(APPEND dep_link_libraries ${pc_zlib_LIBRARIES}) |
| 159 | else() | 159 | else() |
| 160 | find_path(ZLIB_H_PATH zlib.h) | 160 | find_path(ZLIB_H_PATH zlib.h) |
| 161 | + # cSpell:ignore zlibd | ||
| 161 | find_library(ZLIB_LIB_PATH NAMES z zd zlib zlibd) | 162 | find_library(ZLIB_LIB_PATH NAMES z zd zlib zlibd) |
| 162 | if(ZLIB_H_PATH AND ZLIB_LIB_PATH) | 163 | if(ZLIB_H_PATH AND ZLIB_LIB_PATH) |
| 163 | list(APPEND dep_include_directories ${ZLIB_H_PATH}) | 164 | list(APPEND dep_include_directories ${ZLIB_H_PATH}) |
manual/encryption.rst
| @@ -207,7 +207,7 @@ PDF Security Restrictions | @@ -207,7 +207,7 @@ PDF Security Restrictions | ||
| 207 | PDF security restrictions are described by a bit field whose value is | 207 | PDF security restrictions are described by a bit field whose value is |
| 208 | stored in the ``P`` field in the encryption dictionary. The value of | 208 | stored in the ``P`` field in the encryption dictionary. The value of |
| 209 | ``P`` is used by the algorithms to recover the encryption key given | 209 | ``P`` is used by the algorithms to recover the encryption key given |
| 210 | -the password, which makes the value of ``P`` tamper-resistent. | 210 | +the password, which makes the value of ``P`` tamper-resistant. |
| 211 | 211 | ||
| 212 | ``P`` is a 32-bit integer, treated as a signed twos-complement number. | 212 | ``P`` is a 32-bit integer, treated as a signed twos-complement number. |
| 213 | A 1 in any bit position means the permission is granted. The PDF | 213 | A 1 in any bit position means the permission is granted. The PDF |
manual/installation.rst
| @@ -660,6 +660,8 @@ interfaces, which was another reason to require C++-11 at this time. | @@ -660,6 +660,8 @@ interfaces, which was another reason to require C++-11 at this time. | ||
| 660 | Building with zopfli support | 660 | Building with zopfli support |
| 661 | ---------------------------- | 661 | ---------------------------- |
| 662 | 662 | ||
| 663 | +.. cSpell:ignore DZOPFLI | ||
| 664 | + | ||
| 663 | If you compile with ``-DZOPFLI-ON`` and have the `zopfli | 665 | If you compile with ``-DZOPFLI-ON`` and have the `zopfli |
| 664 | <https://github.com/google/zopfli>`__ development files available, | 666 | <https://github.com/google/zopfli>`__ development files available, |
| 665 | qpdf will be built with zopfli support. See :ref:`zopfli` for | 667 | qpdf will be built with zopfli support. See :ref:`zopfli` for |
manual/release-notes.rst
| @@ -105,9 +105,10 @@ Planned changes for future 12.x (subject to change): | @@ -105,9 +105,10 @@ Planned changes for future 12.x (subject to change): | ||
| 105 | 105 | ||
| 106 | - The handling of corrupt filtered streams has changed. If a | 106 | - The handling of corrupt filtered streams has changed. If a |
| 107 | compressed stream cannot be successfully uncompressed, qpdf will | 107 | compressed stream cannot be successfully uncompressed, qpdf will |
| 108 | - now write the undecoded stream even if decode-level generalized or | ||
| 109 | - specialized is set. The result of attempting to decode a corrupt | ||
| 110 | - stream is generally unusable and can be extremely large. | 108 | + now write the raw (encoded) stream even if decode-level |
| 109 | + generalized or specialized is set. The result of attempting to | ||
| 110 | + decode a corrupt stream is generally unusable and can be | ||
| 111 | + extremely large. | ||
| 111 | 112 | ||
| 112 | 11.9.1: June 7, 2024 | 113 | 11.9.1: June 7, 2024 |
| 113 | - Bug Fixes | 114 | - Bug Fixes |
| @@ -120,7 +121,7 @@ Planned changes for future 12.x (subject to change): | @@ -120,7 +121,7 @@ Planned changes for future 12.x (subject to change): | ||
| 120 | - Add a CLion build configuration for building with static | 121 | - Add a CLion build configuration for building with static |
| 121 | libraries with Visual C++ on Windows. This configuration works | 122 | libraries with Visual C++ on Windows. This configuration works |
| 122 | "out of the box" with CLion, Visual C++, and the external | 123 | "out of the box" with CLion, Visual C++, and the external |
| 123 | - libraries binary distribution without any additoinal external | 124 | + libraries binary distribution without any additional external |
| 124 | tools. | 125 | tools. |
| 125 | 126 | ||
| 126 | - Tweak use of ``std::string_view`` to handle upcoming changes to | 127 | - Tweak use of ``std::string_view`` to handle upcoming changes to |
manual/weak-crypto.rst
| @@ -119,7 +119,7 @@ MD5 is used in the following non-security-sensitive ways: | @@ -119,7 +119,7 @@ MD5 is used in the following non-security-sensitive ways: | ||
| 119 | - Generation of the document ID. The document ID is an input parameter | 119 | - Generation of the document ID. The document ID is an input parameter |
| 120 | to the document encryption but is not itself considered to be | 120 | to the document encryption but is not itself considered to be |
| 121 | secure. They are supposed to be unique, but they are not | 121 | secure. They are supposed to be unique, but they are not |
| 122 | - tamper-resistent in non-encrypted PDF files, and hash collisions | 122 | + tamper-resistant in non-encrypted PDF files, and hash collisions |
| 123 | must be tolerated. | 123 | must be tolerated. |
| 124 | 124 | ||
| 125 | The PDF specification recommends but does not require the use of MD5 | 125 | The PDF specification recommends but does not require the use of MD5 |
qpdf/test_shell_glob.cc
| @@ -16,7 +16,7 @@ realmain(int argc, char* argv[]) | @@ -16,7 +16,7 @@ realmain(int argc, char* argv[]) | ||
| 16 | // exercised by manually breaking the link options for msvc and | 16 | // exercised by manually breaking the link options for msvc and |
| 17 | // seeing that the test fails under that condition. Explicit link | 17 | // seeing that the test fails under that condition. Explicit link |
| 18 | // changes used to be needed only for MSVC, but as of late 2024, | 18 | // changes used to be needed only for MSVC, but as of late 2024, |
| 19 | - // they are also neededed for mingw, which was found by CI failure | 19 | + // they are also needed for mingw, which was found by CI failure |
| 20 | // of this test. | 20 | // of this test. |
| 21 | 21 | ||
| 22 | bool found_star = false; | 22 | bool found_star = false; |