diff --git a/COPYING b/COPYING
index 20e60d5b2427..e54eeacfbf3f 100644
--- a/COPYING
+++ b/COPYING
@@ -1,65 +1,76 @@
XZ Utils Licensing
==================
Different licenses apply to different files in this package. Here
is a rough summary of which licenses apply to which parts of this
package (but check the individual files to be sure!):
- liblzma is in the public domain.
- xz, xzdec, and lzmadec command line tools are in the public
domain unless GNU getopt_long had to be compiled and linked
in from the lib directory. The getopt_long code is under
GNU LGPLv2.1+.
- The scripts to grep, diff, and view compressed files have been
adapted from gzip. These scripts and their documentation are
under GNU GPLv2+.
- All the documentation in the doc directory and most of the
XZ Utils specific documentation files in other directories
are in the public domain.
+ Note: The JavaScript files (under the MIT license) have
+ been removed from the Doxygen-generated HTML version of the
+ liblzma API documentation. Doxygen itself is under the GNU GPL
+ but the remaining files generated by Doxygen are not affected
+ by the licenses used in Doxygen because Doxygen licensing has
+ the following exception:
+
+ "Documents produced by doxygen are derivative works
+ derived from the input used in their production;
+ they are not affected by this license."
+
- Translated messages are in the public domain.
- The build system contains public domain files, and files that
are under GNU GPLv2+ or GNU GPLv3+. None of these files end up
in the binaries being built.
- Test files and test code in the tests directory, and debugging
utilities in the debug directory are in the public domain.
- The extra directory may contain public domain files, and files
that are under various free software licenses.
You can do whatever you want with the files that have been put into
the public domain. If you find public domain legally problematic,
take the previous sentence as a license grant. If you still find
the lack of copyright legally problematic, you have too many
lawyers.
As usual, this software is provided "as is", without any warranty.
If you copy significant amounts of public domain code from XZ Utils
into your project, acknowledging this somewhere in your software is
polite (especially if it is proprietary, non-free software), but
naturally it is not legally required. Here is an example of a good
notice to put into "about box" or into documentation:
This software includes code from XZ Utils .
The following license texts are included in the following files:
- COPYING.LGPLv2.1: GNU Lesser General Public License version 2.1
- COPYING.GPLv2: GNU General Public License version 2
- COPYING.GPLv3: GNU General Public License version 3
Note that the toolchain (compiler, linker etc.) may add some code
pieces that are copyrighted. Thus, it is possible that e.g. liblzma
binary wouldn't actually be in the public domain in its entirety
even though it contains no copyrighted code from the XZ Utils source
package.
If you have questions, don't hesitate to ask the author(s) for more
information.
diff --git a/ChangeLog b/ChangeLog
index c068ad3e3901..52375b492a14 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8654 +1,9919 @@
+commit 6ca8046ecbc7a1c81ee08f544bfd1414819fb2e8
+Author: Jia Tan
+Date: 2023-03-18 23:22:06 +0800
+
+ Bump version and soname for 5.4.2.
+
+ src/liblzma/Makefile.am | 2 +-
+ src/liblzma/api/lzma/version.h | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+commit ce4f246600db10e77fc93d492ea045b4c9830bc6
+Author: Jia Tan
+Date: 2023-03-18 22:10:57 +0800
+
+ Add NEWS for 5.4.2.
+
+ NEWS | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 48 insertions(+)
+
+commit 3634fe330788fc0df217acdb6581031a851600a3
+Author: Lasse Collin
+Date: 2023-03-18 16:00:54 +0200
+
+ Update the copy of GNU GPLv3 from gnu.org to COPYING.GPLv3.
+
+ COPYING.GPLv3 | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit 97679d25ce7cb014328f1455bb338903c003d54f
+Author: Lasse Collin
+Date: 2023-03-18 15:51:57 +0200
+
+ Change a few HTTP URLs to HTTPS.
+
+ The xz man page timestamp was intentionally left unchanged.
+
+ INSTALL | 2 +-
+ README | 8 ++++----
+ configure.ac | 2 +-
+ dos/INSTALL.txt | 4 ++--
+ src/liblzma/api/lzma.h | 8 ++++----
+ src/liblzma/check/sha256.c | 2 +-
+ src/xz/xz.1 | 2 +-
+ windows/INSTALL-MinGW.txt | 10 +++++-----
+ 8 files changed, 19 insertions(+), 19 deletions(-)
+
+commit 01a67e89a56c3ebf5f6681bd06f0edc22a1ae594
+Author: Jia Tan
+Date: 2023-03-18 00:40:28 +0800
+
+ CMake: Fix typo in a comment.
+
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 5dca3f5cbab31105196c89cd6df0a9bbc3307c05
+Author: Lasse Collin
+Date: 2023-03-17 18:36:22 +0200
+
+ Windows: build.bash: Copy liblzma API docs to the output package.
+
+ windows/build.bash | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit ae252862b30b509ab88b2bbcaa08e8d51b57e928
+Author: Lasse Collin
+Date: 2023-03-17 08:53:38 +0200
+
+ Windows: Add microlzma_*.c to the VS project files.
+
+ These should have been included in 5.3.2alpha already.
+
+ windows/vs2013/liblzma.vcxproj | 2 ++
+ windows/vs2013/liblzma_dll.vcxproj | 2 ++
+ windows/vs2017/liblzma.vcxproj | 2 ++
+ windows/vs2017/liblzma_dll.vcxproj | 2 ++
+ windows/vs2019/liblzma.vcxproj | 2 ++
+ windows/vs2019/liblzma_dll.vcxproj | 2 ++
+ 6 files changed, 12 insertions(+)
+
+commit 147d282cc3733e2723df82622b6540ddfb52635e
+Author: Lasse Collin
+Date: 2023-03-17 08:43:51 +0200
+
+ CMake: Add microlzma_*.c to the build.
+
+ These should have been included in 5.3.2alpha already.
+
+ CMakeLists.txt | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 4523a5ee29f45c0256af67a15771bc8bbd25ba53
+Author: Lasse Collin
+Date: 2023-03-17 08:41:36 +0200
+
+ Build: Update comments about unaligned access to mention 64-bit.
+
+ cmake/tuklib_integer.cmake | 7 +++----
+ m4/tuklib_integer.m4 | 4 ++--
+ 2 files changed, 5 insertions(+), 6 deletions(-)
+
+commit 82aacb40367dc580b09c5a7b270f6c98b63e49b9
+Author: Lasse Collin
+Date: 2023-03-17 00:02:30 +0200
+
+ Tests: Update .gitignore.
+
+ .gitignore | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit 5d022c24921eec938604a8cb10d70aa08dbd8575
+Author: Lasse Collin
+Date: 2023-03-14 20:04:03 +0200
+
+ po4a/update-po: Display the script name consistently in error messages.
+
+ po4a/update-po | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 896295117324f323c0b8db6a31ad6ebfaa88793d
+Author: Jia Tan
+Date: 2023-03-17 01:30:36 +0800
+
+ Doc: Rename Doxygen HTML doc directory name liblzma => api.
+
+ When the docs are installed, calling the directory "liblzma" is
+ confusing since multiple other files in the doc directory are for
+ liblzma. This should also make it more natural for distros when they
+ package the documentation.
+
+ .gitignore | 2 +-
+ Makefile.am | 18 +++++++++---------
+ PACKAGERS | 4 ++--
+ doxygen/Doxyfile | 2 +-
+ doxygen/update-doxygen | 18 +++++++++---------
+ 5 files changed, 22 insertions(+), 22 deletions(-)
+
+commit 94097157fae308b2c1a5edb4e8597c68b45eeaea
+Author: Jia Tan
+Date: 2023-03-16 22:07:15 +0800
+
+ liblzma: Remove note from lzma_options_bcj about the ARM64 exception.
+
+ This was left in by mistake since an early version of the ARM64 filter
+ used a different struct for its options.
+
+ src/liblzma/api/lzma/bcj.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit da16d0b73b79d7785ece6f78a577fadd1fb59d0e
+Author: Lasse Collin
+Date: 2023-03-15 19:19:13 +0200
+
+ COPYING: Add a note about the included Doxygen-generated HTML.
+
+ COPYING | 11 +++++++++++
+ 1 file changed, 11 insertions(+)
+
+commit e57c74f9ef19201f72c106f2c347596f40229936
+Author: Jia Tan
+Date: 2023-03-16 21:41:09 +0800
+
+ Doc: Update PACKAGERS with details about liblzma API docs install.
+
+ PACKAGERS | 22 ++++++++++++++++------
+ 1 file changed, 16 insertions(+), 6 deletions(-)
+
+commit 7e2fa48bb73edb25457232e2e62a4f81c6b95281
+Author: Jia Tan
+Date: 2023-03-16 21:38:32 +0800
+
+ liblzma: Add set lzma.h as the main page for Doxygen documentation.
+
+ The \mainpage command is used in the first block of comments in lzma.h.
+ This changes the previously nearly empty index.html to use the first
+ comment block in lzma.h for its contents.
+
+ lzma.h is no longer documented separately, but this is for the better
+ since lzma.h only defined a few macros that users do not need to use.
+ The individual API header files all have a disclaimer that they should
+ not be #included directly, so there should be no confusion on the fact
+ that lzma.h should be the only header used by applications.
+
+ Additionally, the note "See ../lzma.h for information about liblzma as
+ a whole." was removed since lzma.h is now the main page of the
+ generated HTML and does not have its own page anymore. So it would be
+ confusing in the HTML version and was only a "nice to have" when
+ browsing the source files.
+
+ src/liblzma/api/lzma.h | 1 +
+ src/liblzma/api/lzma/base.h | 2 --
+ src/liblzma/api/lzma/bcj.h | 2 --
+ src/liblzma/api/lzma/block.h | 2 --
+ src/liblzma/api/lzma/check.h | 2 --
+ src/liblzma/api/lzma/container.h | 2 --
+ src/liblzma/api/lzma/delta.h | 2 --
+ src/liblzma/api/lzma/filter.h | 2 --
+ src/liblzma/api/lzma/hardware.h | 2 --
+ src/liblzma/api/lzma/index.h | 2 --
+ src/liblzma/api/lzma/index_hash.h | 4 +---
+ src/liblzma/api/lzma/lzma12.h | 2 --
+ src/liblzma/api/lzma/stream_flags.h | 2 --
+ src/liblzma/api/lzma/version.h | 2 --
+ src/liblzma/api/lzma/vli.h | 2 --
+ 15 files changed, 2 insertions(+), 29 deletions(-)
+
+commit d42977c7acfdf7fd9acc8803cf411eca7dc10478
+Author: Jia Tan
+Date: 2023-03-16 21:37:32 +0800
+
+ Build: Generate doxygen documentation in autogen.sh.
+
+ Another command line option (--no-doxygen) was added to disable
+ creating the doxygen documenation in cases where it not wanted or
+ if the doxygen tool is not installed.
+
+ autogen.sh | 35 +++++++++++++++++++++++++++++------
+ 1 file changed, 29 insertions(+), 6 deletions(-)
+
+commit 8fc712fcf41d821069c670f22b8bf628e7a4a877
+Author: Jia Tan
+Date: 2023-03-16 21:35:55 +0800
+
+ Build: Create doxygen/update-doxygen script.
+
+ This is a helper script to generate the Doxygen documentation. It can be
+ run in 'liblzma' or 'internal' mode by setting the first argument. It
+ will default to 'liblzma' mode and only generate documentation for the
+ liblzma API header files.
+
+ The helper script will be run during the custom mydist hook when we
+ create releases. This hook already alters the source directory, so its
+ fine to do it here too. This way, we can include the Doxygen generated
+ files in the distrubtion and when installing.
+
+ In 'liblzma' mode, the JavaScript is stripped from the .html files and
+ the .js files are removed. This avoids license hassle from jQuery and
+ other libraries that Doxygen 1.9.6 puts into jquery.js in minified form.
+
+ Makefile.am | 1 +
+ doxygen/update-doxygen | 111 +++++++++++++++++++++++++++++++++++++++++++++++++
+ 2 files changed, 112 insertions(+)
+
+commit 77d2c025d19fbac7277c63239cfb1338f02c66c0
+Author: Jia Tan
+Date: 2023-03-16 21:34:36 +0800
+
+ Build: Install Doxygen docs and include in distribution if generated.
+
+ Added a install-data-local target to install the Doxygen documentation
+ only when it has been generated. In order to correctly remove the docs,
+ a corresponding uninstall-local target was added.
+
+ If the doxygen docs exist in the source tree, they will also be included
+ in the distribution now too.
+
+ Makefile.am | 18 ++++++++++++++++++
+ 1 file changed, 18 insertions(+)
+
+commit 9af8f6f947a43974a4ff025f4c896f2fb4c91b4f
+Author: Jia Tan
+Date: 2023-01-03 20:37:30 +0800
+
+ Doxygen: Refactor Doxyfile.in to doxygen/Doxyfile.
+
+ Instead of having Doxyfile.in configured by Autoconf, the Doxyfile
+ can have the tags that need to be configured piped into the doxygen
+ command through stdin with the overrides after Doxyfile's contents.
+
+ Going forward, the documentation should be generated in two different
+ modes: liblzma or internal.
+
+ liblzma is useful for most users. It is the documentation for just
+ the liblzma API header files. This is the default.
+
+ internal is for people who want to understand how xz and liblzma work.
+ It might be useful for people who want to contribute to the project.
+
+ .gitignore | 3 +-
+ Doxyfile.in | 1234 -------------------------
+ Makefile.am | 1 -
+ configure.ac | 1 -
+ doxygen/Doxyfile | 2684 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 5 files changed, 2686 insertions(+), 1237 deletions(-)
+
+commit 1c558a26928b753fcf1c0d4bce9c0643285edd86
+Author: Jia Tan
+Date: 2023-02-28 23:22:36 +0800
+
+ Tests: Remove unused macros and functions.
+
+ tests/tests.h | 75 -----------------------------------------------------------
+ 1 file changed, 75 deletions(-)
+
+commit 7479a69a45a1b8fdb9a209e11f247dce11ac1ba0
+Author: Jia Tan
+Date: 2023-01-12 22:29:07 +0800
+
+ Tests: Refactors existing lzma_index tests.
+
+ Converts the existing lzma_index tests into tuktests and covers every
+ API function from index.h except for lzma_file_info_decoder, which can
+ be tested in the future.
+
+ tests/test_index.c | 2036 ++++++++++++++++++++++++++++++++++++++--------------
+ 1 file changed, 1492 insertions(+), 544 deletions(-)
+
+commit fd56d5353360279c10e8e5e05f5bc6ea03f64584
+Author: Lasse Collin
+Date: 2023-03-07 19:59:23 +0200
+
+ xz: Make Capsicum sandbox more strict with stdin and stdout.
+
+ src/xz/file_io.c | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+commit d1bdaaebc68cae7f0ba457fa990b520df2186fd1
+Author: Lasse Collin
+Date: 2023-03-11 19:31:40 +0200
+
+ xz: Don't fail if Capsicum is enabled but kernel doesn't support it.
+
+ (This commit combines related commits from the master branch.)
+
+ If Capsicum support is missing from the kernel or xz is being run
+ in an emulator that lacks Capsicum suport, the syscalls will fail
+ and set errno to ENOSYS. Previously xz would display and error and
+ exit, making xz unusable. Now it will check for ENOSYS and run
+ without sandbox support. Other tools like ssh behave similarly.
+
+ Displaying a warning for missing Capsicum support was considered
+ but such extra output would quickly become annoying. It would also
+ break test_scripts.sh in "make check".
+
+ Also move cap_enter() to be the first step instead of the last one.
+ This matches the example in the cap_rights_limit(2) man page. With
+ the current code it shouldn't make any practical difference though.
+
+ Thanks to Xin Li for the bug report, suggesting a fix, and testing:
+ https://github.com/tukaani-project/xz/pull/43
+
+ Thanks to Jia Tan for most of the original commits.
+
+ src/xz/file_io.c | 15 ++++++++++++---
+ 1 file changed, 12 insertions(+), 3 deletions(-)
+
+commit 5d351c69c19d212ddd2cf1f3bdb24900820c6776
+Author: Jia Tan
+Date: 2023-02-04 21:06:35 +0800
+
+ Build: Adjust CMake version search regex.
+
+ Now, the LZMA_VERSION_MAJOR, LZMA_VERSION_MINOR, and LZMA_VERSION_PATCH
+ macros do not need to be on consecutive lines in version.h. They can be
+ separated by more whitespace, comments, or even other content, as long
+ as they appear in the proper order (major, minor, patch).
+
+ CMakeLists.txt | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit b82d4831e3f2339c4cdbc47776c99462088c11b7
+Author: Jia Tan
+Date: 2023-01-26 09:50:21 +0800
+
+ liblzma: Improve documentation for version.h.
+
+ Specified parameter and return values for API functions and documented
+ a few more of the macros.
+
+ src/liblzma/api/lzma/version.h | 29 ++++++++++++++++++++++-------
+ 1 file changed, 22 insertions(+), 7 deletions(-)
+
+commit 2caba3efe3e0c2d7c6dca00e22c56812326a34e6
+Author: Jia Tan
+Date: 2023-02-24 23:46:23 +0800
+
+ liblzma: Clarify lzma_lzma_preset() documentation in lzma12.h.
+
+ lzma_lzma_preset() does not guarentee that the lzma_options_lzma are
+ usable in an encoder even if it returns false (success). If liblzma
+ is built with default configurations, then the options will always be
+ usable. However if the match finders hc3, hc4, or bt4 are disabled, then
+ the options may not be usable depending on the preset level requested.
+
+ The documentation was updated to reflect this complexity, since this
+ behavior was unclear before.
+
+ src/liblzma/api/lzma/lzma12.h | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+commit 594f904673ba55a833adfa60bbab6b60d4902d08
+Author: Lasse Collin
+Date: 2023-02-27 18:38:35 +0200
+
+ CMake: Require that the C compiler supports C99 or a newer standard.
+
+ Thanks to autoantwort for reporting the issue and suggesting
+ a different patch:
+ https://github.com/tukaani-project/xz/pull/42
+
+ CMakeLists.txt | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+commit 88101143cb774bca6b7006c8335b09dc3f334140
+Author: Jia Tan
+Date: 2023-02-24 18:10:37 +0800
+
+ Tests: Small tweak to test-vli.c.
+
+ The static global variables can be disabled if encoders and decoders
+ are not built. If they are not disabled and -Werror is used, it will
+ cause an usused warning as an error.
+
+ tests/test_vli.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 4042dbf03a06e019ccdd1e9d1b94cf613d62d5a9
+Author: Jia Tan
+Date: 2023-02-06 21:46:43 +0800
+
+ liblzma: Replace '\n' -> newline in filter.h documentation.
+
+ The '\n' renders as a newline when the comments are converted to html
+ by Doxygen.
+
+ src/liblzma/api/lzma/filter.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 3971f5c5024750ce8286891c6f79ae1661047483
+Author: Jia Tan
+Date: 2023-02-06 21:45:37 +0800
+
+ liblzma: Shorten return description for two functions in filter.h.
+
+ Shorten the description for lzma_raw_encoder_memusage() and
+ lzma_raw_decoder_memusage().
+
+ src/liblzma/api/lzma/filter.h | 8 ++------
+ 1 file changed, 2 insertions(+), 6 deletions(-)
+
+commit 5e61b39432752b6cd1a7b518f0f9e4f0c3f0f242
+Author: Jia Tan
+Date: 2023-02-06 21:44:45 +0800
+
+ liblzma: Reword a few lines in filter.h
+
+ src/liblzma/api/lzma/filter.h | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+commit 8a53533869defa1191b41f176a0312cb53a139e2
+Author: Jia Tan
+Date: 2023-02-06 21:35:06 +0800
+
+ liblzma: Improve documentation in filter.h.
+
+ All functions now explicitly specify parameter and return values.
+ The notes and code annotations were moved before the parameter and
+ return value descriptions for consistency.
+
+ Also, the description above lzma_filter_encoder_is_supported() about
+ not being able to list available filters was removed since
+ lzma_str_list_filters() will do this.
+
+ src/liblzma/api/lzma/filter.h | 226 ++++++++++++++++++++++++++----------------
+ 1 file changed, 143 insertions(+), 83 deletions(-)
+
+commit 6d05b08b17ac8cb93165ee8f310fdd925b0b258f
+Author: Lasse Collin
+Date: 2023-02-23 20:46:16 +0200
+
+ Update THANKS.
+
+ THANKS | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit dfc9a54082e0fc7b3b796ea15336b5075acc79d5
+Author: Lasse Collin
+Date: 2023-02-21 22:57:10 +0200
+
+ liblzma: Avoid null pointer + 0 (undefined behavior in C).
+
+ In the C99 and C17 standards, section 6.5.6 paragraph 8 means that
+ adding 0 to a null pointer is undefined behavior. As of writing,
+ "clang -fsanitize=undefined" (Clang 15) diagnoses this. However,
+ I'm not aware of any compiler that would take advantage of this
+ when optimizing (Clang 15 included). It's good to avoid this anyway
+ since compilers might some day infer that pointer arithmetic implies
+ that the pointer is not NULL. That is, the following foo() would then
+ unconditionally return 0, even for foo(NULL, 0):
+
+ void bar(char *a, char *b);
+
+ int foo(char *a, size_t n)
+ {
+ bar(a, a + n);
+ return a == NULL;
+ }
+
+ In contrast to C, C++ explicitly allows null pointer + 0. So if
+ the above is compiled as C++ then there is no undefined behavior
+ in the foo(NULL, 0) call.
+
+ To me it seems that changing the C standard would be the sane
+ thing to do (just add one sentence) as it would ensure that a huge
+ amount of old code won't break in the future. Based on web searches
+ it seems that a large number of codebases (where null pointer + 0
+ occurs) are being fixed instead to be future-proof in case compilers
+ will some day optimize based on it (like making the above foo(NULL, 0)
+ return 0) which in the worst case will cause security bugs.
+
+ Some projects don't plan to change it. For example, gnulib and thus
+ many GNU tools currently require that null pointer + 0 is defined:
+
+ https://lists.gnu.org/archive/html/bug-gnulib/2021-11/msg00000.html
+
+ https://www.gnu.org/software/gnulib/manual/html_node/Other-portability-assumptions.html
+
+ In XZ Utils null pointer + 0 issue should be fixed after this
+ commit. This adds a few if-statements and thus branches to avoid
+ null pointer + 0. These check for size > 0 instead of ptr != NULL
+ because this way bugs where size > 0 && ptr == NULL will likely
+ get caught quickly. None of them are in hot spots so it shouldn't
+ matter for performance.
+
+ A little less readable version would be replacing
+
+ ptr + offset
+
+ with
+
+ offset != 0 ? ptr + offset : ptr
+
+ or creating a macro for it:
+
+ #define my_ptr_add(ptr, offset) \
+ ((offset) != 0 ? ((ptr) + (offset)) : (ptr))
+
+ Checking for offset != 0 instead of ptr != NULL allows GCC >= 8.1,
+ Clang >= 7, and Clang-based ICX to optimize it to the very same code
+ as ptr + offset. That is, it won't create a branch. So for hot code
+ this could be a good solution to avoid null pointer + 0. Unfortunately
+ other compilers like ICC 2021 or MSVC 19.33 (VS2022) will create a
+ branch from my_ptr_add().
+
+ Thanks to Marcin Kowalczyk for reporting the problem:
+ https://github.com/tukaani-project/xz/issues/36
+
+ src/liblzma/common/block_decoder.c | 5 ++++-
+ src/liblzma/common/block_encoder.c | 7 +++++--
+ src/liblzma/common/common.c | 20 ++++++++++++++------
+ src/liblzma/common/index_decoder.c | 13 ++++++++++---
+ src/liblzma/common/index_encoder.c | 11 +++++++++--
+ src/liblzma/common/index_hash.c | 13 ++++++++++---
+ src/liblzma/common/lzip_decoder.c | 6 +++++-
+ src/liblzma/delta/delta_decoder.c | 7 ++++++-
+ src/liblzma/delta/delta_encoder.c | 12 ++++++++++--
+ src/liblzma/simple/simple_coder.c | 6 ++++--
+ 10 files changed, 77 insertions(+), 23 deletions(-)
+
+commit f6dce49cb656b358e2fb2a3032e35e20af34dc84
+Author: Jia Tan
+Date: 2023-02-07 00:00:44 +0800
+
+ liblzma: Adjust container.h for consistency with filter.h.
+
+ src/liblzma/api/lzma/container.h | 20 +++++++++-----------
+ 1 file changed, 9 insertions(+), 11 deletions(-)
+
+commit 173d240bb4763aedc8c01df4d9c83e311d954c33
+Author: Jia Tan
+Date: 2023-02-07 00:00:09 +0800
+
+ liblzma: Fix small typos and reword a few things in filter.h.
+
+ src/liblzma/api/lzma/container.h | 13 ++++++-------
+ 1 file changed, 6 insertions(+), 7 deletions(-)
+
+commit 17797bacde3f7264048ef0976c137a600148d6cf
+Author: Jia Tan
+Date: 2023-02-06 23:42:08 +0800
+
+ liblzma: Convert list of flags in lzma_mt to bulleted list.
+
+ src/liblzma/api/lzma/container.h | 9 ++++++---
+ 1 file changed, 6 insertions(+), 3 deletions(-)
+
+commit 37da0e727161b401b8bfd8dccf163a4b2fc0460b
+Author: Jia Tan
+Date: 2023-01-26 23:17:41 +0800
+
+ liblzma: Fix typo in documentation in container.h
+
+ lzma_microlzma_decoder -> lzma_microlzma_encoder
+
+ src/liblzma/api/lzma/container.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit b8331077c626e6bf14f4671d09b561146eaf816a
+Author: Jia Tan
+Date: 2023-01-26 23:16:34 +0800
+
+ liblzma: Improve documentation for container.h
+
+ Standardizing each function to always specify parameters and return
+ values. Also moved the parameters and return values to the end of each
+ function description.
+
+ src/liblzma/api/lzma/container.h | 146 +++++++++++++++++++++++++--------------
+ 1 file changed, 93 insertions(+), 53 deletions(-)
+
+commit b9a3511bb61d3b6ce49abd33dce6155a573f5272
+Author: Jia Tan
+Date: 2023-02-22 20:59:41 +0800
+
+ CMake: Add LZIP decoder test to list of tests.
+
+ CMakeLists.txt | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit cd82ef2fb48b174c57cd03b84a9a0f978772cb89
+Author: Lasse Collin
+Date: 2023-02-17 20:56:49 +0200
+
+ Update THANKS.
+
+ THANKS | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 076e911ba25cadf2cbdfbd0f65991a002e210c0b
+Author: Lasse Collin
+Date: 2023-02-17 20:48:28 +0200
+
+ Build: Use only the generic symbol versioning on MicroBlaze.
+
+ On MicroBlaze, GCC 12 is broken in sense that
+ __has_attribute(__symver__) returns true but it still doesn't
+ support the __symver__ attribute even though the platform is ELF
+ and symbol versioning is supported if using the traditional
+ __asm__(".symver ...") method. Avoiding the traditional method is
+ good because it breaks LTO (-flto) builds with GCC.
+
+ See also: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101766
+
+ For now the only extra symbols in liblzma_linux.map are the
+ compatibility symbols with the patch that spread from RHEL/CentOS 7.
+ These require the use of __symver__ attribute or __asm__(".symver ...")
+ in the C code. Compatibility with the patch from CentOS 7 doesn't
+ seem valuable on MicroBlaze so use liblzma_generic.map on MicroBlaze
+ instead. It doesn't require anything special in the C code and thus
+ no LTO issues either.
+
+ An alternative would be to detect support for __symver__
+ attribute in configure.ac and CMakeLists.txt and fall back
+ to __asm__(".symver ...") but then LTO would be silently broken
+ on MicroBlaze. It sounds likely that MicroBlaze is a special
+ case so let's treat it as a such because that is simpler. If
+ a similar issue exists on some other platform too then hopefully
+ someone will report it and this can be reconsidered.
+
+ (This doesn't do the same fix in CMakeLists.txt. Perhaps it should
+ but perhaps CMake build of liblzma doesn't matter much on MicroBlaze.
+ The problem breaks the build so it's easy to notice and can be fixed
+ later.)
+
+ Thanks to Vincent Fazio for reporting the problem and proposing
+ a patch (in the end that solution wasn't used):
+ https://github.com/tukaani-project/xz/pull/32
+
+ configure.ac | 12 ++++++++++--
+ 1 file changed, 10 insertions(+), 2 deletions(-)
+
+commit bc34e5ac9996667d2c1ec9a7895ec5931ac4caea
+Author: Lasse Collin
+Date: 2023-02-16 21:09:00 +0200
+
+ liblzma: Very minor API doc tweaks.
+
+ Use "member" to refer to struct members as that's the term used
+ by the C standard.
+
+ Use lzma_options_delta.dist and such in docs so that in Doxygen's
+ HTML output they will link to the doc of the struct member.
+
+ Clean up a few trailing white spaces too.
+
+ src/liblzma/api/lzma/block.h | 6 +++---
+ src/liblzma/api/lzma/delta.h | 6 +++---
+ src/liblzma/api/lzma/index.h | 10 +++++-----
+ src/liblzma/api/lzma/stream_flags.h | 6 +++---
+ 4 files changed, 14 insertions(+), 14 deletions(-)
+
+commit d31fbd28be5b79eb682db50004b0fb7aad5299ec
+Author: Jia Tan
+Date: 2023-02-17 00:54:33 +0800
+
+ liblzma: Adjust spacing in doc headers in bcj.h.
+
+ src/liblzma/api/lzma/bcj.h | 14 +++++++-------
+ 1 file changed, 7 insertions(+), 7 deletions(-)
+
+commit 701e9be6bede19771895f756082db0c017f86f07
+Author: Jia Tan
+Date: 2023-02-17 00:44:44 +0800
+
+ liblzma: Adjust documentation in bcj.h for consistent style.
+
+ src/liblzma/api/lzma/bcj.h | 43 ++++++++++++++++++++++---------------------
+ 1 file changed, 22 insertions(+), 21 deletions(-)
+
+commit 762c4d0b62d2694cf3a01e030fdfe68e09e7b503
+Author: Jia Tan
+Date: 2023-02-17 00:36:05 +0800
+
+ liblzma: Rename field => member in documentation.
+
+ Also adjusted preset value => preset level.
+
+ src/liblzma/api/lzma/base.h | 18 +++++++--------
+ src/liblzma/api/lzma/block.h | 44 ++++++++++++++++++-------------------
+ src/liblzma/api/lzma/container.h | 26 +++++++++++-----------
+ src/liblzma/api/lzma/delta.h | 12 +++++-----
+ src/liblzma/api/lzma/index.h | 30 ++++++++++++-------------
+ src/liblzma/api/lzma/lzma12.h | 28 +++++++++++------------
+ src/liblzma/api/lzma/stream_flags.h | 32 +++++++++++++--------------
+ 7 files changed, 95 insertions(+), 95 deletions(-)
+
+commit 0ce1db0223854d94b4a0d17737ac0486a75d9e6a
+Author: Lasse Collin
+Date: 2023-02-16 17:59:50 +0200
+
+ liblzma: Silence a warning from MSVC.
+
+ It gives C4146 here since unary minus with unsigned integer
+ is still unsigned (which is the intention here). Doing it
+ with substraction makes it clearer and avoids the warning.
+
+ Thanks to Nathan Moinvaziri for reporting this.
+
+ src/liblzma/check/crc64_fast.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit d83da006b3e8dbad9112e6cde6b27049d193c9ec
+Author: Jia Tan
+Date: 2023-02-16 21:04:54 +0800
+
+ liblzma: Improve documentation for stream_flags.h
+
+ Standardizing each function to always specify parameters and return
+ values. Also moved the parameters and return values to the end of each
+ function description.
+
+ A few small things were reworded and long sentences broken up.
+
+ src/liblzma/api/lzma/stream_flags.h | 76 ++++++++++++++++++++++---------------
+ 1 file changed, 46 insertions(+), 30 deletions(-)
+
+commit 2796bb4736f645d34939b5d62d5958f534e41e69
+Author: Jia Tan
+Date: 2023-02-14 21:50:16 +0800
+
+ liblzma: Improve documentation in lzma12.h.
+
+ All functions now explicitly specify parameter and return values.
+
+ src/liblzma/api/lzma/lzma12.h | 32 +++++++++++++++++++++++---------
+ 1 file changed, 23 insertions(+), 9 deletions(-)
+
+commit ebebaa8d9381afea440eb1b01917117551adf68f
+Author: Jia Tan
+Date: 2023-01-27 22:44:06 +0800
+
+ liblzma: Improve documentation in check.h.
+
+ All functions now explicitly specify parameter and return values.
+ Also moved the note about SHA-256 functions not being exported to the
+ top of the file.
+
+ src/liblzma/api/lzma/check.h | 41 ++++++++++++++++++++++++++++-------------
+ 1 file changed, 28 insertions(+), 13 deletions(-)
+
+commit 765fa2865aab97ea713c1715922e322b3cf599a7
+Author: Jia Tan
+Date: 2023-02-08 21:33:52 +0800
+
+ liblzma: Improve documentation in index.h
+
+ All functions now explicitly specify parameter and return values.
+
+ src/liblzma/api/lzma/index.h | 177 ++++++++++++++++++++++++++++++-------------
+ 1 file changed, 126 insertions(+), 51 deletions(-)
+
+commit 918e208af5960728b6def01e692b395f7d8e3701
+Author: Jia Tan
+Date: 2023-02-08 20:35:32 +0800
+
+ liblzma: Reword a comment in index.h.
+
+ src/liblzma/api/lzma/index.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 1f157d214bc09338876d2467b549935679abc0bf
+Author: Jia Tan
+Date: 2023-02-08 20:30:23 +0800
+
+ liblzma: Omit lzma_index_iter's internal field from Doxygen docs.
+
+ Add \private above this field and its sub-fields since it is not meant
+ to be modified by users.
+
+ src/liblzma/api/lzma/index.h | 9 ++++++++-
+ 1 file changed, 8 insertions(+), 1 deletion(-)
+
+commit 28757fa46d8e0f0a9c17628b2b6af9bcb3cd96fc
+Author: Jia Tan
+Date: 2023-01-21 21:32:03 +0800
+
+ liblzma: Fix documentation for LZMA_MEMLIMIT_ERROR.
+
+ LZMA_MEMLIMIT_ERROR was missing the "<" character needed to put
+ documentation after a member.
+
+ src/liblzma/api/lzma/base.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 135d5a1a65a9e199b9a5550c1f788cf43cd81018
+Author: Jia Tan
+Date: 2023-01-21 00:29:38 +0800
+
+ liblzma: Improve documentation for base.h.
+
+ Standardizing each function to always specify params and return values.
+ Also fixed a small grammar mistake.
+
+ src/liblzma/api/lzma/base.h | 30 +++++++++++++++++++++++++-----
+ 1 file changed, 25 insertions(+), 5 deletions(-)
+
+commit 2287d5668384e289d51e72724997dc920483768e
+Author: Jia Tan
+Date: 2023-02-14 00:08:33 +0800
+
+ liblzma: Minor improvements to vli.h.
+
+ Added [out] annotations to parameters that are pointers and can have
+ their value changed. Also added a clarification to lzma_vli_is_valid.
+
+ src/liblzma/api/lzma/vli.h | 15 ++++++++-------
+ 1 file changed, 8 insertions(+), 7 deletions(-)
+
+commit 7124b8a16ae60cb2e93218ff531868eebd673bde
+Author: Jia Tan
+Date: 2023-02-10 21:38:02 +0800
+
+ liblzma: Add comments for macros in delta.h.
+
+ Document LZMA_DELTA_DIST_MIN and LZMA_DELTA_DIST_MAX for completeness
+ and to avoid Doxygen warnings.
+
+ src/liblzma/api/lzma/delta.h | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+commit 59c7bb8931159fdb1a31bbbeaed0e6984e2d3c81
+Author: Jia Tan
+Date: 2023-02-10 21:35:23 +0800
+
+ liblzma: Improve documentation in index_hash.h.
+
+ All functions now explicitly specify parameter and return values.
+ Also reworded the description of lzma_index_hash_init() for readability.
+
+ src/liblzma/api/lzma/index_hash.h | 36 +++++++++++++++++++++++++++---------
+ 1 file changed, 27 insertions(+), 9 deletions(-)
+
+commit e970c28ac3cb2e8051925f81db2fe953664c2645
+Author: Jia Tan
+Date: 2023-02-03 00:33:32 +0800
+
+ liblzma: Fix bug in lzma_str_from_filters() not checking filters[] length.
+
+ The bug is only a problem in applications that do not properly terminate
+ the filters[] array with LZMA_VLI_UNKNOWN or have more than
+ LZMA_FILTERS_MAX filters. This bug does not affect xz.
+
+ src/liblzma/common/string_conversion.c | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+commit 85e01266a96689448abb249da6c6abc3afcd4a4e
+Author: Jia Tan
+Date: 2023-02-03 00:32:47 +0800
+
+ Tests: Create test_filter_str.c.
+
+ Tests lzma_str_to_filters(), lzma_str_from_filters(), and
+ lzma_str_list_filters() API functions.
+
+ CMakeLists.txt | 1 +
+ tests/Makefile.am | 2 +
+ tests/test_filter_str.c | 593 ++++++++++++++++++++++++++++++++++++++++++++++++
+ 3 files changed, 596 insertions(+)
+
+commit 3fa0f3ba12dd3383f62dbfa18a864f9b4217fa0a
+Author: Jia Tan
+Date: 2023-01-22 08:49:00 +0800
+
+ liblzma: Fix typos in comments in string_conversion.c.
+
+ src/liblzma/common/string_conversion.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 32dbe045d74e94f75c53236fa2a6c0454d7b6d9e
+Author: Jia Tan
+Date: 2023-02-03 00:20:20 +0800
+
+ liblzma: Clarify block encoder and decoder documentation.
+
+ Added a few sentences to the description for lzma_block_encoder() and
+ lzma_block_decoder() to highlight that the Block Header must be coded
+ before calling these functions.
+
+ src/liblzma/api/lzma/block.h | 15 +++++++++++----
+ 1 file changed, 11 insertions(+), 4 deletions(-)
+
+commit ccf12acbfa7331b1bbb99ec55879186eb35f879f
+Author: Jia Tan
+Date: 2023-02-03 00:12:24 +0800
+
+ Update lzma_block documentation for lzma_block_uncomp_encode().
+
+ src/liblzma/api/lzma/block.h | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit 6a0b168dd9dc1ef437255c4bfdc6eff8b96fdb24
+Author: Jia Tan
+Date: 2023-02-03 00:11:37 +0800
+
+ liblzma: Minor edits to lzma_block header_size documentation.
+
+ src/liblzma/api/lzma/block.h | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit 84ce36f90e68471fec1f0e61cd93ac7ed9ab4883
+Author: Jia Tan
+Date: 2023-02-03 00:11:07 +0800
+
+ liblzma: Enumerate functions that read version in lzma_block.
+
+ src/liblzma/api/lzma/block.h | 13 +++++++++++--
+ 1 file changed, 11 insertions(+), 2 deletions(-)
+
+commit d6620774682830d606f57109861b6763805b3492
+Author: Jia Tan
+Date: 2023-02-03 00:10:34 +0800
+
+ liblzma: Clarify comment in block.h.
+
+ src/liblzma/api/lzma/block.h | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit 880adb5aa25f66a53d81c2f3acc716f7a4d373d1
+Author: Jia Tan
+Date: 2023-02-03 00:07:23 +0800
+
+ liblzma: Improve documentation for block.h.
+
+ Standardizing each function to always specify params and return values.
+ Output pointer parameters are also marked with doxygen style [out] to
+ make it clear. Any note sections were also moved above the parameter and
+ return sections for consistency.
+
+ src/liblzma/api/lzma/block.h | 96 ++++++++++++++++++++++++++++++++++----------
+ 1 file changed, 75 insertions(+), 21 deletions(-)
+
+commit b5b1b1f061c342271e4977ce5cba604a19c0ca52
+Author: Jia Tan
+Date: 2023-02-01 23:38:30 +0800
+
+ liblzma: Clarify a comment about LZMA_STR_NO_VALIDATION.
+
+ The flag description for LZMA_STR_NO_VALIDATION was previously confusing
+ about the treatment for filters than cannot be used with .xz format
+ (lzma1) without using LZMA_STR_ALL_FILTERS. Now, it is clear that
+ LZMA_STR_NO_VALIDATION is not a super set of LZMA_STR_ALL_FILTERS.
+
+ src/liblzma/api/lzma/filter.h | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+commit e904e778b82b14f2779aab80d6c8f3c01a3fc54b
+Author: Jia Tan
+Date: 2023-01-27 20:14:51 +0800
+
+ Translations: Add Brazilian Portuguese translation of man pages.
+
+ Thanks to Rafael Fontenelle.
+
+ po4a/po4a.conf | 2 +-
+ po4a/pt_BR.po | 3677 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 2 files changed, 3678 insertions(+), 1 deletion(-)
+
+commit e9c47e79c9584ba1126f5fa0dbe6c96e67411aa6
+Author: Jia Tan
+Date: 2023-01-24 20:48:50 +0800
+
+ liblzma: Fix documentation in filter.h for lzma_str_to_filters()
+
+ The previous documentation for lzma_str_to_filters() was technically
+ correct, but misleading. lzma_str_to_filters() returns NULL on success,
+ which is in practice always defined to 0. This is the same value as
+ LZMA_OK, but lzma_str_to_filters() does not return lzma_ret so we should
+ be more clear.
+
+ src/liblzma/api/lzma/filter.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 99575947a58a60416c570eb78038d18a1ea4cef4
+Author: Jia Tan
+Date: 2023-01-07 21:55:06 +0800
+
+ xz: Refactor duplicated check for custom suffix when using --format=raw
+
+ src/xz/args.c | 8 ++++++++
+ src/xz/suffix.c | 26 ++++++++------------------
+ src/xz/suffix.h | 8 ++++++++
+ 3 files changed, 24 insertions(+), 18 deletions(-)
+
+commit 76dec92fcca4a9ccd2063ed6d5d9e3474665baad
+Author: Jia Tan
+Date: 2023-01-20 21:53:14 +0800
+
+ liblzma: Set documentation on all reserved fields to private.
+
+ This prevents the reserved fields from being part of the generated
+ Doxygen documentation.
+
+ src/liblzma/api/lzma/base.h | 17 +++++++++++++++
+ src/liblzma/api/lzma/block.h | 43 +++++++++++++++++++++++++++++++++++++
+ src/liblzma/api/lzma/container.h | 24 +++++++++++++++++++++
+ src/liblzma/api/lzma/delta.h | 12 +++++++++++
+ src/liblzma/api/lzma/index.h | 27 +++++++++++++++++++++++
+ src/liblzma/api/lzma/lzma12.h | 22 +++++++++++++++++++
+ src/liblzma/api/lzma/stream_flags.h | 28 ++++++++++++++++++++++++
+ 7 files changed, 173 insertions(+)
+
+commit bd213d06ebf92cf42eeb97e7c578bddc857f8ea8
+Author: Jia Tan
+Date: 2022-12-21 23:59:43 +0800
+
+ liblzma: Highlight liblzma API headers should not be included directly.
+
+ This improves the generated Doxygen HTML files to better highlight
+ how to properly use the liblzma API header files.
+
+ src/liblzma/api/lzma/base.h | 5 +++--
+ src/liblzma/api/lzma/bcj.h | 5 +++--
+ src/liblzma/api/lzma/block.h | 5 +++--
+ src/liblzma/api/lzma/check.h | 5 +++--
+ src/liblzma/api/lzma/container.h | 5 +++--
+ src/liblzma/api/lzma/delta.h | 5 +++--
+ src/liblzma/api/lzma/filter.h | 5 +++--
+ src/liblzma/api/lzma/hardware.h | 5 +++--
+ src/liblzma/api/lzma/index.h | 5 +++--
+ src/liblzma/api/lzma/index_hash.h | 5 +++--
+ src/liblzma/api/lzma/lzma12.h | 5 +++--
+ src/liblzma/api/lzma/stream_flags.h | 5 +++--
+ src/liblzma/api/lzma/version.h | 5 +++--
+ src/liblzma/api/lzma/vli.h | 5 +++--
+ 14 files changed, 42 insertions(+), 28 deletions(-)
+
+commit 257dbff0ba1a7bc45a74d203ece015c9f70c88cd
+Author: Jia Tan
+Date: 2023-01-19 20:35:09 +0800
+
+ tuklib_physmem: Silence warning from -Wcast-function-type on MinGW-w64.
+
+ tuklib_physmem depends on GetProcAddress() for both MSVC and MinGW-w64
+ to retrieve a function address. The proper way to do this is to cast the
+ return value to the type of function pointer retrieved. Unfortunately,
+ this causes a cast-function-type warning, so the best solution is to
+ simply ignore the warning.
+
+ src/common/tuklib_physmem.c | 18 ++++++++++++++++++
+ 1 file changed, 18 insertions(+)
+
+commit 720ad4a44282a7ee59aa9920eaf495d85d245d97
+Author: Jia Tan
+Date: 2023-01-16 21:35:45 +0800
+
+ xz: Add missing comment for coder_set_compression_settings()
+
+ src/xz/coder.h | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit 88dc19163421282369c0989e997c05f9a447edc6
+Author: Jia Tan
+Date: 2023-01-16 20:55:10 +0800
+
+ xz: Do not set compression settings with raw format in list mode.
+
+ Calling coder_set_compression_settings() in list mode with verbose mode
+ on caused the filter chain and memory requirements to print. This was
+ unnecessary since the command results in an error and not consistent
+ with other formats like lzma and alone.
+
+ src/xz/args.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit 039e0ab13efb144642f9d99eeeb9c668e76bb430
+Author: Jia Tan
+Date: 2023-01-13 20:37:06 +0800
+
+ Translations: Update the Brazilian Portuguese translation.
+
+ po/pt_BR.po | 603 ++++++++++++++++++++++++++++++++++--------------------------
+ 1 file changed, 344 insertions(+), 259 deletions(-)
+
+commit 718f7a60e740b26b8353965edaaddc7d4deb4d85
+Author: Lasse Collin
+Date: 2023-01-12 13:04:05 +0200
+
+ Build: Omit -Wmissing-noreturn from the default warnings.
+
+ It's not that important. It can be annoying in builds that
+ disable many features since in those cases the tests programs
+ will correctly trigger this warning with Clang.
+
+ configure.ac | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit 3ccedb09724c998c39d708c945f6da5852c39e13
+Author: Lasse Collin
+Date: 2023-01-12 06:05:58 +0200
+
+ xz: Use ssize_t for the to-be-ignored return value from write(fd, ptr, 1).
+
+ It makes no difference here as the return value fits into an int
+ too and it then gets ignored but this looks better.
+
+ src/xz/file_io.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 09fbd2f0527def89e839c8907de4fe7ef6bc5019
+Author: Lasse Collin
+Date: 2023-01-12 06:01:12 +0200
+
+ xz: Silence warnings from -Wsign-conversion in a 32-bit build.
+
+ src/common/tuklib_mbstr_fw.c | 2 +-
+ src/xz/list.c | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+commit 683d3f178ef1487b5418be49f331b0131a101b40
+Author: Lasse Collin
+Date: 2023-01-12 05:38:48 +0200
+
+ liblzma: Silence another warning from -Wsign-conversion in a 32-bit build.
+
+ It doesn't warn on a 64-bit system because truncating
+ a ptrdiff_t (signed long) to uint32_t is diagnosed under
+ -Wconversion by GCC and -Wshorten-64-to-32 by Clang.
+
+ src/liblzma/lz/lz_encoder_mf.c | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+commit 2b8062ef94a38d0f9ad0d1b309e8748db52f5c15
+Author: Lasse Collin
+Date: 2023-01-12 04:46:45 +0200
+
+ liblzma: Silence a warning from -Wsign-conversion in a 32-bit build.
+
+ src/common/mythread.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit b16b9c0d22227012518595c2222facc73bd833a8
+Author: Lasse Collin
+Date: 2023-01-12 04:17:24 +0200
+
+ Build: Make configure add more warning flags for GCC and Clang.
+
+ -Wstrict-aliasing was removed from the list since it is enabled
+ by -Wall already.
+
+ A normal build is clean with these on GNU/Linux x86-64 with
+ GCC 12.2.0 and Clang 14.0.6.
+
+ configure.ac | 36 +++++++++++++++++++++++++++++++-----
+ 1 file changed, 31 insertions(+), 5 deletions(-)
+
+commit c47ecd6d3909d0d3ff48dfd6e2ee41e7c7130b94
+Author: Lasse Collin
+Date: 2023-01-12 04:14:18 +0200
+
+ Tests: Fix warnings from clang --Wassign-enum.
+
+ Explicitly casting the integer to lzma_check silences the warning.
+ Since such an invalid value is needed in multiple tests, a constant
+ INVALID_LZMA_CHECK_ID was added to tests.h.
+
+ The use of 0x1000 for lzma_block.check wasn't optimal as if
+ the underlying type is a char then 0x1000 will be truncated to 0.
+ However, in these test cases the value is ignored, thus even with
+ such truncation the test would have passed.
+
+ tests/test_block_header.c | 6 +++---
+ tests/test_check.c | 2 +-
+ tests/test_stream_flags.c | 8 ++++----
+ tests/tests.h | 9 +++++++++
+ 4 files changed, 17 insertions(+), 8 deletions(-)
+
+commit 34e13ce015232968731de2a9ec3440a08b0084b1
+Author: Lasse Collin
+Date: 2023-01-12 03:51:07 +0200
+
+ Tests: Silence warnings from -Wsign-conversion.
+
+ Note that assigning an unsigned int to lzma_check doesn't warn
+ on GNU/Linux x86-64 since the enum type is unsigned on that
+ platform. The enum can be signed on some other platform though
+ so it's best to use enumeration type lzma_check in these situations.
+
+ tests/test_check.c | 6 +++---
+ tests/test_stream_flags.c | 10 +++++-----
+ 2 files changed, 8 insertions(+), 8 deletions(-)
+
+commit 6671d0fe46b77f0fafce860836b7a12dc3cda14a
+Author: Lasse Collin
+Date: 2023-01-12 03:19:59 +0200
+
+ liblzma: Silence warnings from clang -Wconditional-uninitialized.
+
+ This is similar to 2ce4f36f179a81d0c6e182a409f363df759d1ad0.
+ The actual initialization of the variables is done inside
+ mythread_sync() macro. Clang doesn't seem to see that
+ the initialization code inside the macro is always executed.
+
+ src/liblzma/common/stream_decoder_mt.c | 8 +++++---
+ src/liblzma/common/stream_encoder_mt.c | 2 +-
+ 2 files changed, 6 insertions(+), 4 deletions(-)
+
+commit d3e833ca1d2abda54648494c33aca73a40a47efe
+Author: Lasse Collin
+Date: 2023-01-12 03:11:40 +0200
+
+ Fix warnings from clang -Wdocumentation.
+
+ src/liblzma/check/check.h | 4 ----
+ src/liblzma/lz/lz_encoder_mf.c | 4 ++--
+ src/xz/options.c | 4 ++--
+ 3 files changed, 4 insertions(+), 8 deletions(-)
+
+commit 977dd2e26bc50efec8d30fb90380394042d24558
+Author: Lasse Collin
+Date: 2023-01-12 03:04:28 +0200
+
+ Tests: test_lzip_decoder: Remove trailing white-space.
+
+ tests/test_lzip_decoder.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit c55157ed7437ab14f2afb7fecf331e321f2edf9a
+Author: Lasse Collin
+Date: 2023-01-12 03:03:55 +0200
+
+ Tests: test_lzip_decoder: Silence warnings from -Wsign-conversion.
+
+ tests/test_lzip_decoder.c | 13 +++++++------
+ 1 file changed, 7 insertions(+), 6 deletions(-)
+
commit 18b845e69752c975dfeda418ec00eda22605c2ee
Author: Lasse Collin
Date: 2023-01-11 18:52:54 +0200
Bump version and soname for 5.4.1.
src/liblzma/Makefile.am | 2 +-
src/liblzma/api/lzma/version.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
commit 4080bbb844fb36701ffb978f0c41ea2c2c9f8960
Author: Jia Tan
Date: 2023-01-11 23:58:16 +0800
Add NEWS for 5.4.1.
NEWS | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 70 insertions(+)
commit 674c89fdb8c457ebc3a0652e235d8b6cd7b7dee2
Author: Lasse Collin
Date: 2023-01-10 11:56:11 +0200
sysdefs.h: Don't include strings.h anymore.
On some platforms src/xz/suffix.c may need for
strcasecmp() but suffix.c includes the header when it needs it.
Unless there is an old system that otherwise supports enough C99
to build XZ Utils but doesn't have C89/C90-compatible ,
there should be no need to include in sysdefs.h.
src/common/sysdefs.h | 6 ------
1 file changed, 6 deletions(-)
commit 2a6b938084fac9ddb39cd69c9beeed15c3b6f6f6
Author: Lasse Collin
Date: 2023-01-10 11:23:41 +0200
xz: Include in suffix.c if needed for strcasecmp().
SUSv2 and POSIX.1‐2017 declare only a few functions in .
Of these, strcasecmp() is used on some platforms in suffix.c.
Nothing else in the project needs (at least if
building on a modern system).
sysdefs.h currently includes if HAVE_STRINGS_H is
defined and suffix.c relied on this.
Note that dos/config.h doesn't #define HAVE_STRINGS_H even though
DJGPP does have strings.h. It isn't needed with DJGPP as strcasecmp()
is also in in DJGPP.
src/xz/suffix.c | 3 +++
1 file changed, 3 insertions(+)
commit aea639e81beb548e3114c74b6d9a894d6e036189
Author: Jia Tan
Date: 2023-01-11 22:46:48 +0800
xz: Fix warning -Wformat-nonliteral on clang in message.c.
clang and gcc differ in how they handle -Wformat-nonliteral. gcc will
allow a non-literal format string as long as the function takes its
format arguments as a va_list.
src/xz/message.c | 9 +++++++++
1 file changed, 9 insertions(+)
commit e3b42bfcb0f67988beee7c7022fed0361282be45
Author: Jia Tan
Date: 2023-01-11 20:58:31 +0800
Tests: Fix test_filter_flags copy/paste error.
tests/test_filter_flags.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
commit 21625b7e11d004788e40eb5eb88d9d89f65fe347
Author: Jia Tan
Date: 2023-01-11 20:42:29 +0800
Tests: Fix type-limits warning in test_filter_flags.
This only occurs in test_filter_flags when the BCJ filters are not
configured and built. In this case, ARRAY_SIZE() returns 0 and causes a
type-limits warning with the loop variable since an unsigned number will
always be >= 0.
tests/test_filter_flags.c | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
commit c337983e928682d56ce3470b286a8d5b8646e0ad
Author: Lasse Collin
Date: 2023-01-10 22:14:03 +0200
liblzma: CLMUL CRC64: Work around a bug in MSVC, second attempt.
This affects only 32-bit x86 builds. x86-64 is OK as is.
I still cannot easily test this myself. The reporter has tested
this and it passes the tests included in the CMake build and
performance is good: raw CRC64 is 2-3 times faster than the
C version of the slice-by-four method. (Note that liblzma doesn't
include a MSVC-compatible version of the 32-bit x86 assembly code
for the slice-by-four method.)
Thanks to Iouri Kharon for figuring out a fix, testing, and
benchmarking.
src/liblzma/check/crc64_fast.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
commit b7fb438ea0e3ee02e3a164f3b72fae456cbe34d7
Author: Jia Tan
Date: 2023-01-11 01:18:50 +0800
Tests: Fix unused function warning in test_block_header.
One of the global arrays of filters was only used in a test that
required both encoders and decoders to be configured in the build.
tests/test_block_header.c | 4 ++++
1 file changed, 4 insertions(+)
commit 68e9ef036d18d7c3952bff0b391d5989b86934da
Author: Jia Tan
Date: 2023-01-11 01:08:03 +0800
Tests: Fix unused function warning in test_index_hash.
test_index_hash does not use fill_index_hash() unless both encoders
and decoders are configured in the build.
tests/test_index_hash.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
commit a387707cd8cdefbffb5b7429bda4b7fcc192954a
Author: Lasse Collin
Date: 2023-01-10 00:33:14 +0200
Windows: Update INSTALL-MSVC.txt to recommend CMake over project files.
windows/INSTALL-MSVC.txt | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
commit 52902ad69518255a14b0144f0a2379e06fde5b6e
Author: Lasse Collin
Date: 2023-01-10 12:47:16 +0200
Revert "liblzma: CLMUL CRC64: Workaround a bug in MSVC (VS2015-2022)."
This reverts commit 36edc65ab4cf10a131f239acbd423b4510ba52d5.
It was reported that it wasn't a good enough fix and MSVC
still produced (different kind of) bad code when building
for 32-bit x86 if optimizations are enabled.
Thanks to Iouri Kharon.
src/liblzma/check/crc64_fast.c | 6 ------
1 file changed, 6 deletions(-)
commit e81b9fc48ca70f9228308d3f1871cd81f9a5a496
Author: Lasse Collin
Date: 2023-01-10 10:05:13 +0200
sysdefs.h: Fix a comment.
src/common/sysdefs.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit 6e89ab58b031aa046308a0b3504ff0a5be042571
Author: Lasse Collin
Date: 2023-01-10 10:04:06 +0200
sysdefs.h: Don't include memory.h anymore even if it were available.
It quite probably was never needed, that is, any system where memory.h
was required likely couldn't compile XZ Utils for other reasons anyway.
XZ Utils 5.2.6 and later source packages were generated using
Autoconf 2.71 which no longer defines HAVE_MEMORY_H. So the code
being removed is no longer used anyway.
src/common/sysdefs.h | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
commit 65c59ad429aa59f9df0326d9fc82931ba4a9d123
Author: Lasse Collin
Date: 2023-01-10 08:50:26 +0200
CMake/Windows: Add a workaround for windres from GNU binutils.
This is combined from the following commits in the master branch:
443dfebced041adc88f10d824188eeef5b5821a9
6b117d3b1fe91eb26d533ab16a2e552f84148d47
5e34774c31d1b7509b5cb77a3be9973adec59ea0
Thanks to Iouri Kharon for the bug report, the original patch,
and testing.
CMakeLists.txt | 32 +++++++++++++++++++++++++++++++-
1 file changed, 31 insertions(+), 1 deletion(-)
commit 43521e77acc907863fa4f94aae276366172cb9ee
Author: Lasse Collin
Date: 2023-01-06 22:53:38 +0200
Tests: test_filter_flags: Clean up minor issues.
Here are the list of the most significant issues addressed:
- Avoid using internal common.h header. It's not good to copy the
constants like this but common.h cannot be included for use outside
of liblzma. This is the quickest thing to do that could be fixed later.
- Omit the INIT_FILTER macro. Initialization should be done with just
regular designated initializers.
- Use start_offset = 257 for BCJ tests. It demonstrates that Filter
Flags encoder and decoder don't validate the options thoroughly.
257 is valid only for the x86 filter. This is a bit silly but
not a significant problem in practice because the encoder and
decoder initialization functions will catch bad alignment still.
Perhaps this should be fixed but it's not urgent and doesn't need
to be in 5.4.x.
- Various tweaks to comments such as filter id -> Filter ID
tests/test_filter_flags.c | 153 +++++++++++++++++++++++-----------------------
1 file changed, 78 insertions(+), 75 deletions(-)
commit 6b44cead95d767414272dc3a67898a36bfdf95b3
Author: Jia Tan
Date: 2022-12-29 23:33:33 +0800
Tests: Refactors existing filter flags tests.
Converts the existing filter flags tests into tuktests.
tests/test_filter_flags.c | 655 ++++++++++++++++++++++++++++++++--------------
1 file changed, 457 insertions(+), 198 deletions(-)
commit 1bbefa9659b202ba31bd244a9d0e4f0d37ff3ed7
Author: Lasse Collin
Date: 2023-01-08 00:32:29 +0200
Tests: tuktest.h: Support tuktest_malloc(0).
It's not needed in XZ Utils at least for now. It's good to support
it still because if such use is needed later, it wouldn't be
caught on GNU/Linux since malloc(0) from glibc returns non-NULL.
tests/tuktest.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
commit ce3a3fbc7c2c399aeed644d54f3bd56ac914dfee
Author: Lasse Collin
Date: 2023-01-07 21:57:11 +0200
CMake: Update cmake_minimum_required from 3.13...3.16 to 3.13...3.25.
The changes listed on cmake-policies(7) for versions 3.17 to 3.25
shouldn't affect this project.
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit 99fcd57f2ea35eaa94e09f674d5364329c880fa2
Author: Lasse Collin
Date: 2023-01-08 00:24:23 +0200
Update THANKS.
THANKS | 1 +
1 file changed, 1 insertion(+)
commit c0c13d9d82eb8a4302c8bbb8b4c5178d285fe9ab
Author: Lasse Collin
Date: 2023-01-07 19:50:35 +0200
Update THANKS.
THANKS | 1 +
1 file changed, 1 insertion(+)
commit 3d45987451b1c3bb42697b29341824c0e5484cba
Author: Lasse Collin
Date: 2023-01-09 11:27:24 +0200
CMake: Fix a copypaste error in xzdec Windows resource file handling.
It was my mistake. Thanks to Iouri Kharon for the bug report.
CMakeLists.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
commit 706bce5018d7cf83094e13454a0731169ec119b5
Author: Lasse Collin
Date: 2023-01-07 19:50:03 +0200
CMake/Windows: Add resource files to xz.exe and xzdec.exe.
The command line tools cannot be built with MSVC for now but
they can be built with MinGW-w64.
Thanks to Iouri Kharon for the bug report and the original patch.
CMakeLists.txt | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
commit e96dee55df04113c33b387ccdb6cb70935422d91
Author: Lasse Collin
Date: 2023-01-09 12:22:05 +0200
liblzma: CLMUL CRC64: Workaround a bug in MSVC (VS2015-2022).
I haven't tested with MSVC myself and there doesn't seem to be
information about the problem online, so I'm relying on the bug report.
Thanks to Iouri Kharon for the bug report and the patch.
src/liblzma/check/crc64_fast.c | 6 ++++++
1 file changed, 6 insertions(+)
commit 52bc1ee34dda9bb6fb40175e5952863066681b77
Author: Lasse Collin
Date: 2023-01-07 19:31:15 +0200
Build: Require that _mm_set_epi64x() is usable to enable CLMUL support.
VS2013 doesn't have _mm_set_epi64x() so this way CLMUL gets
disabled with VS2013.
Thanks to Iouri Kharon for the bug report.
CMakeLists.txt | 3 ++-
configure.ac | 8 ++++++--
2 files changed, 8 insertions(+), 3 deletions(-)
commit bad44cfe19e8be8ae76755369be2a34abcd2b4fa
Author: Jia Tan
Date: 2022-12-29 00:25:18 +0800
Tests: Creates test_index_hash.c
Tests all API functions exported from index_hash.h. Does not have a
dedicated test for lzma_index_hash_end.
[Minor edits were made by Lasse Collin.]
.gitignore | 1 +
CMakeLists.txt | 2 +
tests/Makefile.am | 3 +
tests/test_index_hash.c | 388 ++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 394 insertions(+)
commit 692ccdf5516dfe55fb6e9c5cdfb31f4c02c1ecd1
Author: Jia Tan
Date: 2023-01-05 20:57:25 +0800
liblzma: Remove common.h include from common/index.h.
common/index.h is needed by liblzma internally and tests. common.h will
include and define many things that are not needed by the tests.
Also, this prevents include order problems because both common.h and
lzma.h define LZMA_API. On most platforms it results only in a warning
but on Windows it would break the build as the definition in common.h
must be used only for building liblzma itself.
src/liblzma/common/index.c | 1 +
src/liblzma/common/index.h | 9 +++++++--
src/liblzma/common/index_decoder.h | 1 +
src/liblzma/common/stream_buffer_encoder.c | 1 +
4 files changed, 10 insertions(+), 2 deletions(-)
commit 2ac7bafc8f07c1edefe96a4a7a040ddfff0eb5bb
Author: Jia Tan
Date: 2022-08-17 20:20:16 +0800
liblzma: Add NULL check to lzma_index_hash_append.
This is for consistency with lzma_index_append.
src/liblzma/common/index_hash.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit db714d30e0c74d1dd4af1a23ed62b44e0e8e4efc
Author: Jia Tan
Date: 2022-08-17 17:59:51 +0800
liblzma: Replaced hardcoded 0x0 index indicator byte with macro
src/liblzma/common/index.h | 3 +++
src/liblzma/common/index_decoder.c | 2 +-
src/liblzma/common/index_encoder.c | 2 +-
src/liblzma/common/index_hash.c | 2 +-
src/liblzma/common/stream_decoder.c | 3 ++-
src/liblzma/common/stream_decoder_mt.c | 2 +-
6 files changed, 9 insertions(+), 5 deletions(-)
commit 39d2585dcd3e827cfc3c46025ab6708c4aeb36c6
Author: Jia Tan
Date: 2023-01-06 20:43:31 +0800
Style: Change #if !defined() to #ifndef in mythread.h.
src/common/mythread.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit 3f0130aa288e4ed57ace609517db9700a41223af
Author: Jia Tan
Date: 2023-01-06 20:35:55 +0800
Build: Add missing stream_decoder_mt.c to .vcxproj files.
The line in the .vcxproj files for building with was missing in 5.4.0.
Thank to Hajin Jang for reporting the issue.
windows/vs2013/liblzma.vcxproj | 1 +
windows/vs2013/liblzma_dll.vcxproj | 1 +
windows/vs2017/liblzma.vcxproj | 1 +
windows/vs2017/liblzma_dll.vcxproj | 1 +
windows/vs2019/liblzma.vcxproj | 1 +
windows/vs2019/liblzma_dll.vcxproj | 1 +
6 files changed, 6 insertions(+)
commit f204d1050a515d17851eed9049862ce5a9c729c1
Author: Lasse Collin
Date: 2023-01-04 22:40:54 +0200
Update THANKS.
THANKS | 1 +
1 file changed, 1 insertion(+)
commit 34a9c2d650d6c30bd88e1b21910dd863209aa884
Author: Lasse Collin
Date: 2023-01-04 18:40:28 +0200
Tests: Adjust style in test_compress.sh.
tests/test_compress.sh | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
commit 761c208d58e0c3daa0f46e68b406adfc318d2a46
Author: Jia Tan
Date: 2023-01-04 23:58:58 +0800
Tests: Replace non portable shell parameter expansion
The shell parameter expansion using # and ## is not supported in
Solaris 10 Bourne shell (/bin/sh). Even though this is POSIX, it is not fully
portable, so we should avoid it.
tests/create_compress_files.c | 2 +-
tests/test_compress.sh | 20 +++++++++++++-------
tests/test_compress_prepared_bcj_sparc | 2 +-
tests/test_compress_prepared_bcj_x86 | 2 +-
4 files changed, 16 insertions(+), 10 deletions(-)
commit 8a7cbc074547e55e57f4f3696f69bedeb05e14c4
Author: Jia Tan
Date: 2023-01-03 21:02:38 +0800
Translations: Add Korean translation of man pages.
Thanks to Seong-ho Cho
po4a/ko.po | 5552 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
po4a/po4a.conf | 2 +-
2 files changed, 5553 insertions(+), 1 deletion(-)
commit ca2af49bb8be5995eb0e6a3abf457622626d49a7
Author: Jia Tan
Date: 2023-01-03 20:47:27 +0800
Translations: Update the Esperanto translation.
po/eo.po | 620 ++++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 332 insertions(+), 288 deletions(-)
commit bfba3394aed03311fe9a746d3141b2e16d8b9325
Author: Lasse Collin
Date: 2023-01-02 17:05:07 +0200
Build: Fix config.h comments.
configure.ac | 2 +-
m4/tuklib_progname.m4 | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
commit 507648ad114c2ae0cd6d181063e1ac07e8106718
Author: Jia Tan
Date: 2023-01-02 22:33:48 +0800
Build: Only define HAVE_PROGRAM_INVOCATION_NAME if it is set to 1.
HAVE_DECL_PROGRAM_INVOCATION_NAME is renamed to
HAVE_PROGRAM_INVOCATION_NAME. Previously,
HAVE_DECL_PROGRAM_INVOCATION_NAME was always set when
building with autotools. CMake would only set this when it was 1, and the
dos/config.h did not define it. The new macro definition is consistent
across build systems.
cmake/tuklib_progname.cmake | 5 ++---
m4/tuklib_progname.m4 | 5 ++++-
src/common/tuklib_progname.c | 2 +-
src/common/tuklib_progname.h | 2 +-
4 files changed, 8 insertions(+), 6 deletions(-)
commit ab5229d32adfec1f3fbc95228d9dd6f560732ab5
Author: Lasse Collin
Date: 2022-12-30 20:10:08 +0200
Tests: test_check: Test corner cases of CLMUL CRC64.
tests/test_check.c | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
commit 8791826f31733fda0a13b411c2ed930faaeb25aa
Author: Lasse Collin
Date: 2022-12-30 19:36:49 +0200
Tests: Clarify a comment in test_lzip_decoder.c.
tests/test_lzip_decoder.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
commit c410d812ea12bfc74f6b727c1a799478c79f19ca
Author: Jia Tan
Date: 2022-12-29 01:55:19 +0800
xz: Includes and conditionally in mytime.c.
Previously, mytime.c depended on mythread.h for to be included.
src/xz/mytime.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
commit 501c6013d4a59fae5d4368e9657c4885493db809
Author: Jia Tan
Date: 2022-12-29 01:15:27 +0800
liblzma: Includes sys/time.h conditionally in mythread
Previously, was always included, even if mythread only used
clock_gettime. is still needed even if clock_gettime is not used
though because struct timespec is needed for mythread_condtime.
src/common/mythread.h | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
commit 9e3cb514b5b95bd235dcdff3db4436f57444ee4f
Author: Jia Tan
Date: 2022-12-29 01:10:53 +0800
Build: No longer require HAVE_DECL_CLOCK_MONOTONIC to always be set.
Previously, if threading was enabled HAVE_DECL_CLOCK_MONOTONIC would always
be set to 0 or 1. However, this macro was needed in xz so if xz was not
built with threading and HAVE_DECL_CLOCK_MONOTONIC was not defined but
HAVE_CLOCK_GETTIME was, it caused a warning during build. Now,
HAVE_DECL_CLOCK_MONOTONIC has been renamed to HAVE_CLOCK_MONOTONIC and
will only be set if it is 1.
CMakeLists.txt | 8 +++-----
configure.ac | 5 ++++-
src/common/mythread.h | 4 ++--
src/xz/mytime.c | 5 ++---
4 files changed, 11 insertions(+), 11 deletions(-)
commit 6fc3e5467911572fa9af4021ea46396261aae796
Author: Jia Tan
Date: 2022-12-28 01:14:07 +0800
Translations: Add Ukrainian translations of man pages.
Thanks to Yuri Chornoivan
po4a/po4a.conf | 2 +-
po4a/uk.po | 3676 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 3677 insertions(+), 1 deletion(-)
commit e84f2ab7f8bc38cd8f8befa0bb398656c3c11f8e
Author: Jia Tan
Date: 2022-12-22 23:14:53 +0800
liblzma: Update documentation for lzma_filter_encoder.
src/liblzma/common/filter_encoder.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
commit b14b8dbba9a3b232787ae218b46430b9246383dd
Author: Jia Tan
Date: 2022-12-21 21:12:03 +0800
Tests: Adds lzip decoder tests
.gitignore | 1 +
tests/Makefile.am | 2 +
tests/test_lzip_decoder.c | 471 ++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 474 insertions(+)
commit 09a114805e1d4f9a02a06cee7dbf2f5014d1f710
Author: Jia Cheong Tan
Date: 2022-12-20 22:05:21 +0800
Doxygen: Update .gitignore for generating docs for in source build.
In source builds are not recommended, but we should still ignore
the generated artifacts.
.gitignore | 2 ++
1 file changed, 2 insertions(+)
commit d3e6fe44196bf9478ad193522e2b48febf2eca6b
Author: Jia Tan
Date: 2022-12-20 20:46:44 +0800
liblzma: Fix lzma_microlzma_encoder() return value.
Using return_if_error on lzma_lzma_lclppb_encode was improper because
return_if_error is expecting an lzma_ret value, but
lzma_lzma_lclppb_encode returns a boolean. This could result in
lzma_microlzma_encoder, which would be misleading for applications.
src/liblzma/common/microlzma_encoder.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
commit b55a27b46f52524a4a8d9cdef03e6689cefc1375
Author: Lasse Collin
Date: 2022-12-16 18:30:02 +0200
liblzma: Update authors list in arm64.c.
src/liblzma/simple/arm64.c | 1 +
1 file changed, 1 insertion(+)
commit 2fd28d2b7cec3468324a6f15eff7e73c285b1d7d
Author: Jia Tan
Date: 2022-12-16 20:58:55 +0800
CMake: Update .gitignore for CMake artifacts from in source build.
In source builds are not recommended, but we can make it easier
by ignoring the generated artifacts from CMake.
.gitignore | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
commit b69da6d4bb6bb11fc0cf066920791990d2b22a06
Author: Lasse Collin
Date: 2022-12-13 20:37:17 +0200
Bump version to 5.4.0 and soname to 5.4.0.
src/liblzma/Makefile.am | 2 +-
src/liblzma/api/lzma/version.h | 6 +++---
src/liblzma/liblzma_generic.map | 2 +-
src/liblzma/liblzma_linux.map | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
commit 20869eb3fb280ff4f271ef527b12b6bf68b05e19
Author: Lasse Collin
Date: 2022-12-13 20:29:39 +0200
Update INSTALL: CMake on Windows isn't experimental anymore.
Using CMake to build liblzma should work on a few other OSes
but building the command line tools is still subtly broken.
It is known that shared library versioning may differ between
CMake and Libtool builds on some OSes, most notably Darwin.
INSTALL | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
commit cbbd84451944e3e8c63acfaa3c923f6d8aff7852
Author: Lasse Collin
Date: 2022-12-13 19:47:53 +0200
Add NEWS for 5.4.0.
NEWS | 202 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 202 insertions(+)
commit c3e94d37e8d10a3e96019864b6f5d7b578db2c14
Author: Lasse Collin
Date: 2022-12-13 17:41:20 +0200
Fix a typo in NEWS.
NEWS | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit 0d2a2e0a545c3da2b3e9500f1e531eb903087245
Author: Lasse Collin
Date: 2022-12-13 17:41:03 +0200
Add NEWS for 5.2.10.
NEWS | 12 ++++++++++++
1 file changed, 12 insertions(+)
commit 177ece1c8eb007188fb1b04eff09ca2193fbdea6
Author: Lasse Collin
Date: 2022-12-13 12:30:45 +0200
Tests: Fix a typo in tests/files/README.
tests/files/README | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit 60f45bdbaa6b07558b3f4baac285739b0c6342f5
Author: Lasse Collin
Date: 2022-12-13 12:30:09 +0200
Tests: Add two ARM64 test files.
tests/files/README | 7 +++++++
tests/files/good-1-arm64-lzma2-1.xz | Bin 0 -> 512 bytes
tests/files/good-1-arm64-lzma2-2.xz | Bin 0 -> 488 bytes
tests/test_files.sh | 5 +++++
4 files changed, 12 insertions(+)
commit f5e419550619c548c7c35d7e367cf00580a56521
Author: Lasse Collin
Date: 2022-12-12 22:44:21 +0200
Translations: Update the Catalan translation.
po/ca.po | 657 +++++++++++++++++++++++++++++----------------------------------
1 file changed, 306 insertions(+), 351 deletions(-)
commit 0fb9d355da3789b1757040af475b4e6bbc8b8af8
Author: Lasse Collin
Date: 2022-12-12 19:18:12 +0200
Update THANKS.
THANKS | 1 +
1 file changed, 1 insertion(+)
commit e5b6c161c61a37c54dcb76a99bbb83ac4abe02dc
Author: Lasse Collin
Date: 2022-12-12 19:07:58 +0200
Update AUTHORS.
AUTHORS | 12 ++++++++++++
1 file changed, 12 insertions(+)
commit f2d98e691099d82054d5f3071ef6f5e809932e44
Author: Lasse Collin
Date: 2022-12-12 15:31:14 +0200
Docs: Omit multi-threaded decompress from TODO.
The TODO file outdated still.
TODO | 2 --
1 file changed, 2 deletions(-)
commit b42908c42a4cc091db45a7e5ba0e0ecceaa3f6da
Author: Lasse Collin
Date: 2022-12-11 21:16:09 +0200
Docs: Update xz-file-format.txt to 1.1.0 for ARM64 filter.
doc/xz-file-format.txt | 29 ++++++++++++++++++++++-------
1 file changed, 22 insertions(+), 7 deletions(-)
commit 854f2f5946b353cb0963fd6dfd54d363adc89b9f
Author: Lasse Collin
Date: 2022-12-11 21:13:57 +0200
xz: Rename --experimental-arm64 to --arm64.
src/xz/args.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit 31dbd1e5fb65831915a7bbb531c3f19aea8d57a5
Author: Lasse Collin
Date: 2022-12-11 21:13:06 +0200
liblzma: Change LZMA_FILTER_ARM64 to the official Filter ID 0x0A.
src/liblzma/api/lzma/bcj.h | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
commit 01b3549e523edac899ec4925b282ceddd20da116
Author: Lasse Collin
Date: 2022-12-08 19:24:22 +0200
xz: Make args_info.files_name a const pointer.
src/xz/args.c | 2 +-
src/xz/args.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
commit bc665b84ea6bf7946394a08122177efe41b26a5f
Author: Lasse Collin
Date: 2022-12-08 19:18:16 +0200
xz: Don't modify argv[].
The code that parses --memlimit options and --block-list modified
the argv[] when parsing the option string from optarg. This was
visible in "ps auxf" and such and could be confusing. I didn't
understand it back in the day when I wrote that code. Now a copy
is allocated when modifiable strings are needed.
src/xz/args.c | 23 +++++++++++++++++++----
1 file changed, 19 insertions(+), 4 deletions(-)
commit a13064e1c290de7933db72b6dffbd65cfce59c9f
Author: Lasse Collin
Date: 2022-12-08 18:18:57 +0200
Translations: Update the German man page translations.
po4a/de.po | 4570 ++++++++++++++++++------------------------------------------
1 file changed, 1374 insertions(+), 3196 deletions(-)
commit 8bdbe42a8d0d75dff70206b923fc4bce5c69a40a
Author: Jia Tan
Date: 2022-12-06 23:05:56 +0800
Translations: Update the German translation.
po/de.po | 586 ++++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 315 insertions(+), 271 deletions(-)
commit 5c304b57c24ef40ff57f864301065f0244c05bde
Author: Jia Tan
Date: 2022-12-06 23:04:25 +0800
Translations: Update the Turkish translation.
po/tr.po | 221 +++++++++++++++++++++++++++++++--------------------------------
1 file changed, 108 insertions(+), 113 deletions(-)
commit 6d86781fdb937970486500447ebb49b98244235b
Author: Jia Tan
Date: 2022-12-06 23:02:11 +0800
Translations: Update the Croatian translation.
po/hr.po | 228 +++++++++++++++++++++++++++++++--------------------------------
1 file changed, 113 insertions(+), 115 deletions(-)
commit 7a5b4b8075eb36026b1796f04ffed5830c42396a
Author: Jia Tan
Date: 2022-12-06 22:56:30 +0800
Translations: Add Romanian translation of man pages.
Thanks to Remus-Gabriel Chelu.
po4a/po4a.conf | 2 +-
po4a/ro.po | 3692 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 3693 insertions(+), 1 deletion(-)
commit c6977e7400088177556e8771bcb839eb7d90caa3
Author: Jia Tan
Date: 2022-12-06 22:52:13 +0800
Translations: Update the Romanian translation.
po/ro.po | 294 +++++++++++++++++++++++++++++++--------------------------------
1 file changed, 147 insertions(+), 147 deletions(-)
commit ac2a747e939c2cbccff7a49c399769af5e02d2ab
Author: Lasse Collin
Date: 2022-12-08 17:30:09 +0200
liblzma: Check for unexpected NULL pointers in block_header_decode().
The API docs gave an impression that such checks are done
but they actually weren't done. In practice it made little
difference since the calling code has a bug if these are NULL.
Thanks to Jia Tan for the original patch that checked for
block->filters == NULL.
src/liblzma/common/block_header_decoder.c | 4 ++++
1 file changed, 4 insertions(+)
commit 24790f49ae66938c1c7574315e1c0aba1ed5ed25
Author: Lasse Collin
Date: 2022-12-01 20:59:32 +0200
Bump version number for 5.3.5beta.
This also sorts the symbol names alphabetically in liblzma_*.map.
src/liblzma/api/lzma/version.h | 4 ++--
src/liblzma/liblzma_generic.map | 10 +++++-----
src/liblzma/liblzma_linux.map | 10 +++++-----
3 files changed, 12 insertions(+), 12 deletions(-)
commit 7e53c5bcb3c2c17f47c096c06ff6b1481e6ecafa
Author: Lasse Collin
Date: 2022-12-01 20:57:26 +0200
Add NEWS for 5.3.5beta.
NEWS | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
commit 5865f2aaac326fcbd9f8a7d62defa230e4cb644e
Author: Lasse Collin
Date: 2022-12-01 20:57:09 +0200
Update THANKS.
THANKS | 3 +++
1 file changed, 3 insertions(+)
commit 62b270988ec67314d69976df484d2974c6eacfda
Author: Lasse Collin
Date: 2022-12-01 20:04:17 +0200
liblzma: Use __has_attribute(__symver__) to fix Clang detection.
If someone sets up Clang to define __GNUC__ to 10 or greater
then symvers broke. __has_attribute is supported by such GCC
and Clang versions that don't support __symver__ so this should
be much better and simpler way to detect if __symver__ is
actually supported.
Thanks to Tomasz Gajc for the bug report.
src/liblzma/common/common.h | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
commit f9ca7d45162664ddd9fb70e19335c2426e5d75bb
Author: Lasse Collin
Date: 2022-12-01 18:51:52 +0200
liblzma: Omit zero-skipping from ARM64 filter.
It has some complicated downsides and its usefulness is more limited
than I originally thought. So this change is bad for certain very
specific situations but a generic solution that works for other
filters (and is otherwise better too) is planned anyway. And this
way 7-Zip can use the same compatible filter for the .7z format.
This is still marked as experimental with a new temporary Filter ID.
src/liblzma/api/lzma/bcj.h | 2 +-
src/liblzma/simple/arm64.c | 81 +++++++++++++---------------------------------
2 files changed, 24 insertions(+), 59 deletions(-)
commit 5baec3f0a9c85e6abf45c0f652f699b074129a8b
Author: Lasse Collin
Date: 2022-12-01 18:13:27 +0200
xz: Omit the special notes about ARM64 filter on the man page.
src/xz/xz.1 | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
commit 0c3627b51862eb0dcdd4fc283d046250571991c6
Author: Lasse Collin
Date: 2022-12-01 18:12:03 +0200
liblzma: Don't be over-specific in lzma_str_to_filters API doc.
src/liblzma/api/lzma/filter.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
commit 94adf057f27b1970f493dc99cd166407d7255639
Author: Lasse Collin
Date: 2022-12-01 17:54:23 +0200
liblzma: Silence unused variable warning when BCJ filters are disabled.
Thanks to Jia Tan for the original patch.
src/liblzma/common/string_conversion.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
commit c68af4441744e5ffc41a472e1be9c9d53a1d9780
Author: Lasse Collin
Date: 2022-12-01 17:38:03 +0200
Translations: Update the Chinese (simplified) translation.
po/zh_CN.po | 608 ++++++++++++++++++++++++++++++++++--------------------------
1 file changed, 348 insertions(+), 260 deletions(-)
commit 3be6942e5c27d29995d41da52fbe274e4ce4a537
Author: Lasse Collin
Date: 2022-11-30 18:55:03 +0200
Add NEWS for 5.2.9.
NEWS | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
commit 7c16e312cb2f40b81154c0e5be13a3c6b8da485d
Author: Jia Tan
Date: 2022-11-30 23:33:08 +0800
xz: Remove message_filters_to_str function prototype from message.h.
This was forgotten from 7484744af6cbabe81e92af7d9e061dfd597fff7b.
src/xz/message.h | 16 ----------------
1 file changed, 16 deletions(-)
commit 764955e2d4f2a5e8d6d6fec63af694f799e050e7
Author: Lasse Collin
Date: 2022-11-30 18:08:34 +0200
Change the bug report address.
It forwards to me and Jia Tan.
Also update the IRC reference in README as #tukaani was moved
to Libera Chat long ago.
CMakeLists.txt | 2 +-
README | 11 +++++------
configure.ac | 2 +-
dos/config.h | 2 +-
windows/README-Windows.txt | 2 +-
5 files changed, 9 insertions(+), 10 deletions(-)
commit c21983c76031e01da01ad3c6cc716fe4b8a75070
Author: Lasse Collin
Date: 2022-11-30 17:50:17 +0200
Build: Add string_conversion.c to CMake, DOS, and VS files.
CMakeLists.txt | 1 +
dos/Makefile | 1 +
windows/vs2013/liblzma.vcxproj | 1 +
windows/vs2013/liblzma_dll.vcxproj | 1 +
windows/vs2017/liblzma.vcxproj | 1 +
windows/vs2017/liblzma_dll.vcxproj | 1 +
windows/vs2019/liblzma.vcxproj | 1 +
windows/vs2019/liblzma_dll.vcxproj | 1 +
8 files changed, 8 insertions(+)
commit 30be0c35d24eb5175459d69dbf7d92e2b087ef82
Author: Lasse Collin
Date: 2022-11-30 17:38:32 +0200
Update to HTTPS URLs in AUTHORS.
AUTHORS | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
commit 0a72b9ca2fe20082da9b7128fe0d908af947a851
Author: Jia Tan
Date: 2022-11-30 00:52:06 +0800
liblzma: Improve documentation for string to filter functions.
src/liblzma/api/lzma/filter.h | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
commit a6e21fcede3b196160a52dd294d965c508a4bb33
Author: Lasse Collin
Date: 2022-11-29 22:27:42 +0200
liblzma: Two fixes to lzma_str_list_filters() API docs.
Thanks to Jia Tan.
src/liblzma/api/lzma/filter.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
commit 7484744af6cbabe81e92af7d9e061dfd597fff7b
Author: Lasse Collin
Date: 2022-11-28 21:57:47 +0200
xz: Use lzma_str_from_filters().
Two uses: Displaying encoder filter chain when compressing with -vv,
and displaying the decoder filter chain in --list -vv.
src/xz/list.c | 28 ++++++---
src/xz/message.c | 175 +++----------------------------------------------------
2 files changed, 28 insertions(+), 175 deletions(-)
commit cedeeca2ea6ada5b0411b2ae10d7a859e837f203
Author: Lasse Collin
Date: 2022-11-28 21:37:48 +0200
liblzma: Add lzma_str_to_filters, _from_filters, and _list_filters.
lzma_str_to_filters() uses static error messages which makes
them not very precise. It tells the position in the string
where an error occurred though which helps quite a bit if
applications take advantage of it. Dynamic error messages can
be added later with a new flag if it seems important enough.
src/liblzma/api/lzma/filter.h | 258 +++++++
src/liblzma/common/Makefile.inc | 1 +
src/liblzma/common/string_conversion.c | 1302 ++++++++++++++++++++++++++++++++
src/liblzma/liblzma_generic.map | 3 +
src/liblzma/liblzma_linux.map | 3 +
5 files changed, 1567 insertions(+)
commit 072ebf7b1335421193ffa9d4a70d5533786b8995
Author: Lasse Collin
Date: 2022-11-28 21:02:19 +0200
liblzma: Make lzma_validate_chain() available outside filter_common.c.
src/liblzma/common/filter_common.c | 8 ++++----
src/liblzma/common/filter_common.h | 3 +++
2 files changed, 7 insertions(+), 4 deletions(-)
commit 5f22bd2d37e3bd01a5d701b51750eb51f09c11bf
Author: Lasse Collin
Date: 2022-11-28 10:51:03 +0200
liblzma: Remove lzma_lz_decoder_uncompressed() as it's now unused.
src/liblzma/lz/lz_decoder.c | 14 --------------
src/liblzma/lz/lz_decoder.h | 3 ---
2 files changed, 17 deletions(-)
commit cee83206465b95729ab649aa2f57fdbde8dcaf89
Author: Lasse Collin
Date: 2022-11-28 10:48:53 +0200
liblzma: Use LZMA1EXT feature in lzma_microlzma_decoder().
Here too this avoids the slightly ugly method to set
the uncompressed size.
Also moved the setting of dict_size to the struct initializer.
src/liblzma/common/microlzma_decoder.c | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
commit e310e8b6a490dfb468f4ed68feff246d776b323c
Author: Lasse Collin
Date: 2022-11-28 10:28:20 +0200
liblzma: Use LZMA1EXT feature in lzma_alone_decoder().
This avoids the need to use the slightly ugly method to
set the uncompressed size.
src/liblzma/common/alone_decoder.c | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
commit 33b8a24b6646a9dbfd8358405aec466b13078559
Author: Lasse Collin
Date: 2022-11-27 23:16:21 +0200
liblzma: Add LZMA_FILTER_LZMA1EXT to support LZMA1 without end marker.
Some file formats need support for LZMA1 streams that don't use
the end of payload marker (EOPM) alias end of stream (EOS) marker.
So far liblzma API has supported decompressing such streams via
lzma_alone_decoder() when .lzma header specifies a known
uncompressed size. Encoding support hasn't been available in the API.
Instead of adding a new LZMA1-only API for this purpose, this commit
adds a new filter ID for use with raw encoder and decoder. The main
benefit of this approach is that then also filter chains are possible,
for example, if someone wants to implement support for .7z files that
use the x86 BCJ filter with LZMA1 (not BCJ2 as that isn't supported
in liblzma).
src/liblzma/api/lzma/lzma12.h | 123 ++++++++++++++++++++++++++++++--
src/liblzma/common/filter_common.c | 7 ++
src/liblzma/common/filter_decoder.c | 6 ++
src/liblzma/common/filter_encoder.c | 9 +++
src/liblzma/lzma/lzma2_encoder.c | 2 +-
src/liblzma/lzma/lzma_decoder.c | 26 ++++++-
src/liblzma/lzma/lzma_encoder.c | 40 +++++++++--
src/liblzma/lzma/lzma_encoder.h | 3 +-
src/liblzma/lzma/lzma_encoder_private.h | 3 +
9 files changed, 204 insertions(+), 15 deletions(-)
commit 9a304bf1e45b3ddf61aaeaa7c764915b34618ede
Author: Lasse Collin
Date: 2022-11-27 18:43:07 +0200
liblzma: Avoid unneeded use of void pointer in LZMA decoder.
src/liblzma/lzma/lzma_decoder.c | 3 +--
src/liblzma/lzma/lzma_decoder.h | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
commit 218394958c7683f892275bb40eae880620feebcc
Author: Lasse Collin
Date: 2022-11-27 18:20:33 +0200
liblzma: Pass the Filter ID to LZ encoder and decoder.
This allows using two Filter IDs with the same
initialization function and data structures.
src/liblzma/common/alone_decoder.c | 1 +
src/liblzma/common/alone_encoder.c | 1 +
src/liblzma/common/common.h | 7 +++++--
src/liblzma/common/lzip_decoder.c | 1 +
src/liblzma/common/microlzma_decoder.c | 1 +
src/liblzma/common/microlzma_encoder.c | 1 +
src/liblzma/lz/lz_decoder.c | 5 +++--
src/liblzma/lz/lz_decoder.h | 3 ++-
src/liblzma/lz/lz_encoder.c | 5 +++--
src/liblzma/lz/lz_encoder.h | 3 ++-
src/liblzma/lzma/lzma2_decoder.c | 3 ++-
src/liblzma/lzma/lzma2_encoder.c | 3 ++-
src/liblzma/lzma/lzma_decoder.c | 2 +-
src/liblzma/lzma/lzma_encoder.c | 2 +-
14 files changed, 26 insertions(+), 12 deletions(-)
commit 1663c7676b76f4c514031797f3db1896e8100f7f
Author: Lasse Collin
Date: 2022-11-27 01:03:16 +0200
liblzma: Remove two FIXME comments.
src/liblzma/common/filter_encoder.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
commit 11fe708db783ac36ebeeb85da164e29e8c300910
Author: Lasse Collin
Date: 2022-11-26 22:25:30 +0200
xz: Use lzma_filters_free().
src/xz/list.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
commit e782af9110d8499c7ac2929bc871540eefea5ea1
Author: Lasse Collin
Date: 2022-11-26 22:21:13 +0200
liblzma: Use lzma_filters_free() in more places.
src/liblzma/common/block_header_decoder.c | 20 ++------------------
src/liblzma/common/stream_decoder.c | 4 +---
src/liblzma/common/stream_decoder_mt.c | 22 +++++-----------------
3 files changed, 8 insertions(+), 38 deletions(-)
commit 90caaded2dc6db1d6a55b01160d7e87f4a423628
Author: Lasse Collin
Date: 2022-11-25 18:04:37 +0200
liblzma: Omit simple coder init functions if they are disabled.
src/liblzma/simple/arm.c | 4 ++++
src/liblzma/simple/armthumb.c | 4 ++++
src/liblzma/simple/ia64.c | 4 ++++
src/liblzma/simple/powerpc.c | 4 ++++
src/liblzma/simple/sparc.c | 4 ++++
src/liblzma/simple/x86.c | 4 ++++
6 files changed, 24 insertions(+)
commit 5cd9f0df78cc4f8a7807bf6104adea13034fbb45
Author: Lasse Collin
Date: 2022-11-24 23:24:59 +0200
xz: Allow nice_len 2 and 3 even if match finder requires 3 or 4.
Now that liblzma accepts these, we avoid the extra check and
there's one message less for translators too.
src/xz/options.c | 5 -----
1 file changed, 5 deletions(-)
commit 3be88ae071371caa279b44e13f4836fb178fe4ae
Author: Lasse Collin
Date: 2022-11-24 23:23:55 +0200
liblzma: Allow nice_len 2 and 3 even if match finder requires 3 or 4.
That is, if the specified nice_len is smaller than the minimum
of the match finder, silently use the match finder's minimum value
instead of reporting an error. The old behavior is annoying to users
and it complicates xz options handling too.
src/liblzma/lz/lz_encoder.c | 14 +++++++++-----
src/liblzma/lz/lz_encoder.h | 9 +++++++++
src/liblzma/lzma/lzma_encoder.c | 11 ++++++++---
3 files changed, 26 insertions(+), 8 deletions(-)
commit 93439cfafe1768b3b18d67d2356ef7e7559bba59
Author: Lasse Collin
Date: 2022-11-24 16:25:10 +0200
liblzma: Add lzma_filters_update() support to the multi-threaded encoder.
A tiny downside of this is that now a 1-4 tiny allocations are made
for every Block because each worker thread needs its own copy of
the filter chain.
src/liblzma/api/lzma/filter.h | 36 +++++++------
src/liblzma/common/stream_encoder_mt.c | 96 +++++++++++++++++++++++++++++++---
2 files changed, 109 insertions(+), 23 deletions(-)
commit 17ac51e689794eb41cab3e80946fec689caea2d2
Author: Lasse Collin
Date: 2022-11-24 14:53:22 +0200
Update THANKS.
THANKS | 1 +
1 file changed, 1 insertion(+)
commit 06824396b2b6c84f3a235cb7c19c2a9701167797
Author: Lasse Collin
Date: 2022-11-24 14:52:44 +0200
Build: Don't put GNU/Linux-specific symbol versions into static liblzma.
It not only makes no sense to put symbol versions into a static library
but it can also cause breakage.
By default Libtool #defines PIC if building a shared library and
doesn't define it for static libraries. This is documented in the
Libtool manual. It can be overriden using --with-pic or --without-pic.
configure.ac detects if --with-pic or --without-pic is used and then
gives an error if neither --disable-shared nor --disable-static was
used at the same time. Thus, in normal situations it works to build
both shared and static library at the same time on GNU/Linux,
only --with-pic or --without-pic requires that only one type of
library is built.
Thanks to John Paul Adrian Glaubitz from Debian for reporting
the problem that occurred on ia64:
https://www.mail-archive.com/xz-devel@tukaani.org/msg00610.html
CMakeLists.txt | 5 +-
configure.ac | 143 +++++++++++++++++++++++++++++---------------
src/liblzma/common/common.h | 12 ++++
3 files changed, 111 insertions(+), 49 deletions(-)
commit e1acf7107291f8b3d6d609a7133331ff36d35d14
Author: Lasse Collin
Date: 2022-11-24 01:32:16 +0200
liblzma: Refactor to use lzma_filters_free().
lzma_filters_free() sets the options to NULL and ids to
LZMA_VLI_UNKNOWN so there is no need to do it by caller;
the filter arrays will always be left in a safe state.
Also use memcpy() instead of a loop to copy a filter chain
when it is known to be safe to copy LZMA_FILTERS_MAX + 1
(even if the elements past the terminator might be uninitialized).
src/liblzma/common/stream_encoder.c | 16 ++++------------
src/liblzma/common/stream_encoder_mt.c | 11 ++---------
2 files changed, 6 insertions(+), 21 deletions(-)
commit cb05dbcf8b868441ec805016222f3fd77f1c5caa
Author: Lasse Collin
Date: 2022-11-24 01:26:37 +0200
liblzma: Fix another invalid free() after memory allocation failure.
This time it can happen when lzma_stream_encoder_mt() is used
to reinitialize an existing multi-threaded Stream encoder
and one of 1-4 tiny allocations in lzma_filters_copy() fail.
It's very similar to the previous bug
10430fbf3820dafd4eafd38ec8be161a6978ed2b, happening with
an array of lzma_filter structures whose old options are freed
but the replacement never arrives due to a memory allocation
failure in lzma_filters_copy().
src/liblzma/common/stream_encoder_mt.c | 4 ++++
1 file changed, 4 insertions(+)
commit 75f1a6c26df4ce329da0882786403e3ccf5cd898
Author: Jia Tan
Date: 2022-05-05 20:53:42 +0800
liblzma: Add support for LZMA_SYNC_FLUSH in the Block encoder.
The documentation mentions that lzma_block_encoder() supports
LZMA_SYNC_FLUSH but it was never added to supported_actions[]
in the internal structure. Because of this, LZMA_SYNC_FLUSH could
not be used with the Block encoder unless it was the next coder
after something like stream_encoder() or stream_encoder_mt().
src/liblzma/common/block_encoder.c | 1 +
1 file changed, 1 insertion(+)
commit d0901645170b638c517f5c50866b6ef48f491c65
Author: Lasse Collin
Date: 2022-11-24 01:02:50 +0200
liblzma: Add new API function lzma_filters_free().
This is small but convenient and should have been added
a long time ago.
src/liblzma/api/lzma/filter.h | 21 +++++++++++++++++++++
src/liblzma/common/filter_common.c | 26 ++++++++++++++++++++++++++
src/liblzma/liblzma_generic.map | 1 +
src/liblzma/liblzma_linux.map | 1 +
4 files changed, 49 insertions(+)
commit ae1f8a723dcde2f2c5cf444bcbb5fc5026b3c3c5
Author: Lasse Collin
Date: 2022-11-24 00:02:31 +0200
CMake: Don't use symbol versioning with static library.
CMakeLists.txt | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
commit 48c1b99dc537a27e1ca929d8837e778e5ba32191
Author: Lasse Collin
Date: 2022-11-23 21:55:22 +0200
liblzma: Add lzma_attr_warn_unused_result to lzma_filters_copy().
src/liblzma/api/lzma/filter.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
commit 10430fbf3820dafd4eafd38ec8be161a6978ed2b
Author: Lasse Collin
Date: 2022-11-23 21:26:21 +0200
liblzma: Fix invalid free() after memory allocation failure.
The bug was in the single-threaded .xz Stream encoder
in the code that is used for both re-initialization and for
lzma_filters_update(). To trigger it, an application had
to either re-initialize an existing encoder instance with
lzma_stream_encoder() or use lzma_filters_update(), and
then one of the 1-4 tiny allocations in lzma_filters_copy()
(called from stream_encoder_update()) must fail. An error
was correctly reported but the encoder state was corrupted.
This is related to the recent fix in
f8ee61e74eb40600445fdb601c374d582e1e9c8a which is good but
it wasn't enough to fix the main problem in stream_encoder.c.
src/liblzma/common/stream_encoder.c | 39 +++++++++++++++++++++++++++++--------
1 file changed, 31 insertions(+), 8 deletions(-)
commit cafd6dc397ca8b5b5f7775e8d6876b8fe70f8e70
Author: Lasse Collin
Date: 2022-11-22 16:37:15 +0200
liblzma: Fix language in a comment.
src/liblzma/common/stream_encoder.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit c392bf8ccba857baaf50399c4b460119befacd54
Author: Lasse Collin
Date: 2022-11-22 11:20:17 +0200
liblzma: Fix infinite loop in LZMA encoder init with dict_size >= 2 GiB.
The encoder doesn't support dictionary sizes larger than 1536 MiB.
This is validated, for example, when calculating the memory usage
via lzma_raw_encoder_memusage(). It is also enforced by the LZ
part of the encoder initialization. However, LZMA encoder with
LZMA_MODE_NORMAL did an unsafe calculation with dict_size before
such validation and that results in an infinite loop if dict_size
was 2 << 30 or greater.
src/liblzma/lzma/lzma_encoder.c | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
commit f50534c973a591ccf65485adfc827a8a7126ca6c
Author: Lasse Collin
Date: 2022-11-21 13:02:33 +0200
liblzma: Fix two Doxygen commands in the API headers.
These were caught by clang -Wdocumentation.
src/liblzma/api/lzma/hardware.h | 2 +-
src/liblzma/api/lzma/index_hash.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
commit 649d4872ed2f55196114a061d45b416fc4353569
Author: Lasse Collin
Date: 2022-11-19 19:09:55 +0200
xz: Refactor duplicate code from hardware_memlimit_mtenc_get().
src/xz/hardware.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit d327743bb547a53364e5951a16e5f1663fe4b9ff
Author: Lasse Collin
Date: 2022-11-19 19:06:13 +0200
xz: Add support --threads=+N so that -T+1 gives threaded mode.
src/xz/args.c | 18 +++++++++++++++---
src/xz/hardware.c | 17 +++++++++++++++--
src/xz/hardware.h | 1 +
src/xz/xz.1 | 21 ++++++++++++++++++++-
4 files changed, 51 insertions(+), 6 deletions(-)
commit a11a2b8b5e830ba682c1d81aaa7078842b296995
Author: Jia Tan
Date: 2022-11-19 23:18:04 +0800
CMake: Adds test_memlimit to CMake tests
CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
commit 2af8d9e9b3f44f62d19e7c39297ec63af2e8c64f
Author: Lasse Collin
Date: 2022-11-15 19:10:21 +0200
Translations: Update the Korean translation.
po/ko.po | 652 ++++++++++++++++++++++++++++++++++++---------------------------
1 file changed, 371 insertions(+), 281 deletions(-)
commit 16ac05677292f7e21a4feaddcfb2ab062ea5f385
Author: Lasse Collin
Date: 2022-11-15 19:09:28 +0200
Translations: Update the Turkish translation.
po/tr.po | 568 ++++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 310 insertions(+), 258 deletions(-)
commit b9a67d9a5fa207062d4aa8a01639234609315d31
Author: Lasse Collin
Date: 2022-11-15 10:58:39 +0200
Bump version number for 5.3.4alpha.
src/liblzma/api/lzma/version.h | 2 +-
src/liblzma/liblzma_generic.map | 2 +-
src/liblzma/liblzma_linux.map | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
commit 5b999ba289b3280457b7386b9ac65dbbdf1575a5
Author: Lasse Collin
Date: 2022-11-15 10:54:40 +0200
Add NEWS for 5.3.4alpha.
NEWS | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 96 insertions(+)
commit ce8db9e37da4f6c87691c5066f51f91f2411c44a
Author: Lasse Collin
Date: 2022-11-15 10:54:08 +0200
Add NEWS for 5.2.8.
NEWS | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 79 insertions(+)
commit b56bc8251d2736224af6bdaaae734ceb8926a879
Author: Lasse Collin
Date: 2022-11-14 23:19:57 +0200
Revert "liblzma: Simple/BCJ filters: Allow disabling generic BCJ options."
This reverts commit 177bdc922cb17bd0fd831ab8139dfae912a5c2b8
and also does equivalent change to arm64.c.
Now that ARM64 filter will use lzma_options_bcj, this change
is not needed anymore.
src/liblzma/simple/arm.c | 2 +-
src/liblzma/simple/arm64.c | 2 +-
src/liblzma/simple/armthumb.c | 2 +-
src/liblzma/simple/ia64.c | 2 +-
src/liblzma/simple/powerpc.c | 2 +-
src/liblzma/simple/simple_coder.c | 4 ++--
src/liblzma/simple/simple_private.h | 2 +-
src/liblzma/simple/sparc.c | 2 +-
src/liblzma/simple/x86.c | 3 +--
9 files changed, 10 insertions(+), 11 deletions(-)
commit 8370ec8edf9ddf8d1d9fef03d8d1027503ec4c35
Author: Lasse Collin
Date: 2022-11-14 23:14:41 +0200
Replace the experimental ARM64 filter with a new experimental version.
This is incompatible with the previous version.
This has space/tab fixes in filter_*.c and bcj.h too.
src/liblzma/api/lzma/bcj.h | 41 +-----
src/liblzma/common/filter_common.c | 14 +-
src/liblzma/common/filter_decoder.c | 12 +-
src/liblzma/common/filter_encoder.c | 17 +--
src/liblzma/simple/arm64.c | 283 ++++++++++++++----------------------
src/liblzma/simple/simple_decoder.h | 4 -
src/liblzma/simple/simple_encoder.h | 2 -
src/xz/args.c | 2 +-
src/xz/message.c | 13 +-
src/xz/options.c | 39 -----
src/xz/options.h | 7 -
11 files changed, 147 insertions(+), 287 deletions(-)
commit f644473a211394447824ea00518d0a214ff3f7f2
Author: Lasse Collin
Date: 2022-11-14 21:34:57 +0200
liblzma: Add fast CRC64 for 32/64-bit x86 using SSSE3 + SSE4.1 + CLMUL.
It also works on E2K as it supports these intrinsics.
On x86-64 runtime detection is used so the code keeps working on
older processors too. A CLMUL-only build can be done by using
-msse4.1 -mpclmul in CFLAGS and this will reduce the library
size since the generic implementation and its 8 KiB lookup table
will be omitted.
On 32-bit x86 this isn't used by default for now because by default
on 32-bit x86 the separate assembly file crc64_x86.S is used.
If --disable-assembler is used then this new CLMUL code is used
the same way as on 64-bit x86. However, a CLMUL-only build
(-msse4.1 -mpclmul) won't omit the 8 KiB lookup table on
32-bit x86 due to a currently-missing check for disabled
assembler usage.
The configure.ac check should be such that the code won't be
built if something in the toolchain doesn't support it but
--disable-clmul-crc option can be used to unconditionally
disable this feature.
CLMUL speeds up decompression of files that have compressed very
well (assuming CRC64 is used as a check type). It is know that
the CLMUL code is significantly slower than the generic code for
tiny inputs (especially 1-8 bytes but up to 16 bytes). If that
is a real-world problem then there is already a commented-out
variant that uses the generic version for small inputs.
Thanks to Ilya Kurdyukov for the original patch which was
derived from a white paper from Intel [1] (published in 2009)
and public domain code from [2] (released in 2016).
[1] https://www.intel.com/content/dam/www/public/us/en/documents/white-papers/fast-crc-computation-generic-polynomials-pclmulqdq-paper.pdf
[2] https://github.com/rawrunprotected/crc
CMakeLists.txt | 26 ++-
INSTALL | 12 ++
configure.ac | 59 +++++-
src/liblzma/check/crc64_fast.c | 449 +++++++++++++++++++++++++++++++++++++++-
src/liblzma/check/crc64_table.c | 21 +-
5 files changed, 554 insertions(+), 13 deletions(-)
commit 3b466bc79672bb2b06d1245a500588e6026e0ba0
Author: Lasse Collin
Date: 2022-11-14 20:14:34 +0200
Translations: Update the Swedish translation one more time.
po/sv.po | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
commit e963379a8622ebdff6ce78e76b803bcd1e1d16d6
Author: Lasse Collin
Date: 2022-11-14 19:34:15 +0200
Translations: Update the Swedish translation again.
po/sv.po | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
commit a4bc689a823a2254f29ac9d233170add5121b307
Author: Lasse Collin
Date: 2022-11-14 19:07:45 +0200
Translations: Update the Swedish translation.
po/sv.po | 671 ++++++++++++++++++++++++++++++++++++---------------------------
1 file changed, 382 insertions(+), 289 deletions(-)
commit bbf2073d824ab4ba33bed4b77f467435abd333a5
Author: Lasse Collin
Date: 2022-11-14 18:58:09 +0200
Translations: Update the Ukrainian translation.
po/uk.po | 618 ++++++++++++++++++++++++++++++++++++---------------------------
1 file changed, 354 insertions(+), 264 deletions(-)
commit ac10b1b3622e70881595586edfb8a3ebdcd76bb6
Author: Lasse Collin
Date: 2022-11-14 17:58:07 +0200
Build: Omit x86_64 from --enable-assembler.
It didn't do anything. There are only 32-bit x86 assembly files
and it feels likely that new files won't be added as intrinsics
in C are more portable across toolchains and OSes.
configure.ac | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
commit eb0f1450ad9f23dac03050d9c8375980240aee21
Author: Lasse Collin
Date: 2022-11-14 16:00:52 +0200
liblzma: Use __attribute__((__constructor__)) if available.
This uses it for CRC table initializations when using --disable-small.
It avoids mythread_once() overhead. It also means that then
--disable-small --disable-threads is thread-safe if this attribute
is supported.
CMakeLists.txt | 15 +++++++++++++++
INSTALL | 4 +++-
configure.ac | 31 ++++++++++++++++++++++++++++---
src/liblzma/check/crc32_small.c | 7 +++++++
src/liblzma/check/crc64_small.c | 5 +++++
src/liblzma/lz/lz_encoder.c | 2 +-
6 files changed, 59 insertions(+), 5 deletions(-)
commit 6553f49b11dafad35c73b05f12e14865ea1fd8a1
Author: Lasse Collin
Date: 2022-11-12 21:19:52 +0200
Translations: Update the Romanian translation.
po/ro.po | 651 +++++++++++++++++++++++++++++++++++++--------------------------
1 file changed, 380 insertions(+), 271 deletions(-)
commit db97e69e12393becc29f8febd53133d0d36989bd
Author: Lasse Collin
Date: 2022-11-12 21:17:45 +0200
Translations: Update the Hungarian translation.
po/hu.po | 625 ++++++++++++++++++++++++++++++++++++---------------------------
1 file changed, 357 insertions(+), 268 deletions(-)
commit 2bbb9c0f3829a8b121b36998d273a6c6f92000f4
Author: Lasse Collin
Date: 2022-11-11 17:58:57 +0200
Translations: Update the Finnish translation.
po/fi.po | 610 ++++++++++++++++++++++++++++++++++++---------------------------
1 file changed, 348 insertions(+), 262 deletions(-)
commit 3c8cbb8137b6f8ed9416c1209d73cdbcb015251f
Author: Lasse Collin
Date: 2022-11-11 17:58:18 +0200
Translations: Update the Croatian translation.
po/hr.po | 680 +++++++++++++++++++++++++++++++++++----------------------------
1 file changed, 381 insertions(+), 299 deletions(-)
commit 26c3359eac0988d6f3986735cd1363bec1678e8e
Author: Lasse Collin
Date: 2022-11-11 17:57:18 +0200
Translations: Update the Polish translation.
po/pl.po | 569 ++++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 309 insertions(+), 260 deletions(-)
commit 577e467b137c735afb8de6ae71ac7a73c2960cc4
Author: Lasse Collin
Date: 2022-11-11 17:56:44 +0200
Translations: Update the Spanish translation.
po/es.po | 598 ++++++++++++++++++++++++++++++++++++---------------------------
1 file changed, 344 insertions(+), 254 deletions(-)
commit f9b4ff6e9a0f1678650775582d3e4fe782abce97
Author: Lasse Collin
Date: 2022-11-11 17:16:03 +0200
Update THANKS.
THANKS | 1 +
1 file changed, 1 insertion(+)
commit a39961ef211e1bf030b17edeea3cff29fe263b67
Author: Lasse Collin
Date: 2022-11-11 17:15:25 +0200
liblzma: Fix building with Intel ICC (the classic compiler).
It claims __GNUC__ >= 10 but doesn't support __symver__ attribute.
Thanks to Stephen Sachs.
src/liblzma/common/common.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit c715f683dcb1a817d565da292cddfbceda643e12
Author: Lasse Collin
Date: 2022-11-11 14:35:58 +0200
liblzma: Fix incorrect #ifdef for x86 SSE2 support.
__SSE2__ is the correct macro for SSE2 support with GCC, Clang,
and ICC. __SSE2_MATH__ means doing floating point math with SSE2
instead of 387. Often the latter macro is defined if the first
one is but it was still a bug.
src/liblzma/common/memcmplen.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
commit bd334ae56afe7f642ad4d0f1ac19e74e82daa1ce
Author: Lasse Collin
Date: 2022-11-11 13:27:06 +0200
Add NEWS for 5.2.7 (forgotten cherry-pick from v5.2).
NEWS | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 74 insertions(+)
commit 3c7860cf49de6f81046b3a4034a89f3a4803a576
Author: Lasse Collin
Date: 2022-11-11 13:16:21 +0200
xzdiff: Add support for .lz files.
The other scripts don't need changes for .lz support because
in those scripts it is enough that xz supports .lz.
src/scripts/xzdiff.in | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
commit d76c752a6d77052e5ad57ade555082585f7ac5d8
Author: Lasse Collin
Date: 2022-11-11 12:23:58 +0200
Scripts: Ignore warnings from xz.
In practice this means making the scripts work when
the input files have an unsupported check type which
isn't a problem in practice unless support for
some check types has been disabled at build time.
src/scripts/xzdiff.in | 5 +++--
src/scripts/xzgrep.in | 2 +-
src/scripts/xzless.in | 4 ++--
src/scripts/xzmore.in | 4 ++--
4 files changed, 8 insertions(+), 7 deletions(-)
commit 6552535afd1fe29d726ab6e68cf14ce3624fd48c
Author: Lasse Collin
Date: 2022-11-10 12:34:43 +0200
Translations: Rename poa4/fr_FR.po to po4a/fr.po.
That's how it is preferred at the Translation Project.
On my system /usr/share/man/fr_FR doesn't contain any
other man pages than XZ Utils while /usr/share/man/fr
has quite a few, so this will fix that too.
Thanks to Benno Schulenberg from the Translation Project.
po4a/{fr_FR.po => fr.po} | 0
po4a/po4a.conf | 2 +-
2 files changed, 1 insertion(+), 1 deletion(-)
commit 0918159ce4c75bfb60aff0193b559f8a9f41d25a
Author: Lasse Collin
Date: 2022-11-09 18:48:50 +0200
xz: Update the man page about BCJ filters, including upcoming --arm64.
The --arm64 isn't actually implemented yet in the form
described in this commit.
Thanks to Jia Tan.
src/xz/xz.1 | 66 +++++++++++++++++++++++++++----------------------------------
1 file changed, 29 insertions(+), 37 deletions(-)
commit ba2ae3596f6be1587495f33b367488f6e00e56f1
Author: Lasse Collin
Date: 2022-11-09 18:14:14 +0200
xz: Add --arm64 to --long-help and omit endianness from ARM(-Thumb).
Modern 32-bit ARM in big endian mode use little endian for
instruction encoding still, so the filters work on such
executables too. It's likely less confusing for users this way.
The --arm64 option hasn't been implemented yet (there is
--experimental-arm64 but it's different). The --arm64 option
is added now anyway because this is the likely result and the
strings need to be ready for translators.
Thanks to Jia Tan.
src/xz/message.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
commit 802d57d9215d9c81dbee86edb43c9e93a7f7ec55
Author: Lasse Collin
Date: 2022-11-09 15:12:13 +0200
Windows: Update the VS project files for ARM64 and .lz support.
windows/vs2013/config.h | 9 +++++++++
windows/vs2013/liblzma.vcxproj | 5 ++++-
windows/vs2013/liblzma_dll.vcxproj | 5 ++++-
windows/vs2017/config.h | 9 +++++++++
windows/vs2017/liblzma.vcxproj | 3 +++
windows/vs2017/liblzma_dll.vcxproj | 3 +++
windows/vs2019/config.h | 9 +++++++++
windows/vs2019/liblzma.vcxproj | 5 ++++-
windows/vs2019/liblzma_dll.vcxproj | 5 ++++-
9 files changed, 49 insertions(+), 4 deletions(-)
commit 5846aeda05972bc803c6094821ae836229ebe691
Author: Lasse Collin
Date: 2022-11-09 14:57:48 +0200
DOS: Update Makefile and config.h to include ARM64 and .lz support.
dos/Makefile | 2 ++
dos/config.h | 9 +++++++++
2 files changed, 11 insertions(+)
commit 781da8d6c44de6aa278c916375250668a0b107f2
Author: Lasse Collin