]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
17 months agoRelease 3.6.2 v3.6.2
Martin Matuska [Wed, 7 Dec 2022 13:42:29 +0000 (14:42 +0100)] 
Release 3.6.2

17 months agoarchive_hmac: use EVP_MAC_*() in OpenSSL 3.0
Martin Matuska [Fri, 9 Dec 2022 13:23:14 +0000 (14:23 +0100)] 
archive_hmac: use EVP_MAC_*() in OpenSSL 3.0

HMAC_*() functions have been deprecated since OpenSSL 3.0

17 months agoCI: update Ubuntu to 22.04 and MacOS to 12
Martin Matuska [Fri, 9 Dec 2022 12:04:45 +0000 (13:04 +0100)] 
CI: update Ubuntu to 22.04 and MacOS to 12

17 months agoarchive_read_support_format_tar: avoid always-true comparsion
Martin Matuska [Thu, 8 Dec 2022 15:27:31 +0000 (16:27 +0100)] 
archive_read_support_format_tar: avoid always-true comparsion

Reported by: GitHub CodeQL
Code Scanning Alert: 125

17 months agotest_sparse_basic: avoid always-true comparsion
Martin Matuska [Thu, 8 Dec 2022 15:27:00 +0000 (16:27 +0100)] 
test_sparse_basic: avoid always-true comparsion

Reported by: CodeQL
Code Scanning Alert: 126

17 months agotest_main.c: omit always-true comparsion
Martin Matuska [Thu, 8 Dec 2022 15:26:37 +0000 (16:26 +0100)] 
test_main.c: omit always-true comparsion

Reported by: CodeQL
Code Scanning Alert: 127

17 months agotest_read_format_rar5: correctly use verify_data()
Martin Matuska [Thu, 8 Dec 2022 15:10:46 +0000 (16:10 +0100)] 
test_read_format_rar5: correctly use verify_data()

Reported by: CodeQL
Code Scanning Alert: 129

17 months agomtree reader: check __archive_rb_tree_find_node() for NULL return
Martin Matuska [Thu, 8 Dec 2022 15:06:39 +0000 (16:06 +0100)] 
mtree reader: check __archive_rb_tree_find_node() for NULL return

Reported by: GitHub CodeQL
Code Scanning Alert: 190

17 months agoarchive_read_disk_posix: fail if unable to alocate memory in tree_push()
Martin Matuska [Thu, 8 Dec 2022 15:05:53 +0000 (16:05 +0100)] 
archive_read_disk_posix: fail if unable to alocate memory in tree_push()

Reported by: GitHub CodeQL
Code Scanning Alert: 189

17 months agovarious: fix unitialized local variables
Martin Matuska [Thu, 8 Dec 2022 14:08:14 +0000 (15:08 +0100)] 
various: fix unitialized local variables

Reported by: GitHub CodeQL
Code scanning alerts: 214, 215, 216

17 months agotests: silence localtime() CodeQL warnings
Martin Matuska [Wed, 7 Dec 2022 23:20:58 +0000 (00:20 +0100)] 
tests: silence localtime() CodeQL warnings

Use localtime_r() or _localtime64_s() if available

17 months agotests: silence more CodeQL warnings in test_utils/test_main.c
Martin Matuska [Wed, 7 Dec 2022 23:04:54 +0000 (00:04 +0100)] 
tests: silence more CodeQL warnings in test_utils/test_main.c

Catch one more uncatched strcpy() and strcat()

17 months agotests: silence some CodeQL warnings in test_utils/test_main.c
Martin Matuska [Wed, 7 Dec 2022 15:02:48 +0000 (16:02 +0100)] 
tests: silence some CodeQL warnings in test_utils/test_main.c

Use fchmod() instead of chmod() if available
Use strncpy() and strncat() instead of strcpy() and strcat()

17 months agotests: silence CodeQL warning in tar/test_option_b
Martin Matuska [Wed, 7 Dec 2022 14:59:14 +0000 (15:59 +0100)] 
tests: silence CodeQL warning in tar/test_option_b

Use strncpy() and strncat() instead of strcpy() and strcat()

17 months agocab reader: cast to int when subtracting unsigned integers
Martin Matuska [Wed, 7 Dec 2022 14:52:54 +0000 (15:52 +0100)] 
cab reader: cast to int when subtracting unsigned integers

Found by: GitHub CodeQL

17 months agoAdd CodeQL workflow for GitHub code scanning (#1800)
lgtm-com[bot] [Wed, 7 Dec 2022 13:48:03 +0000 (14:48 +0100)] 
Add CodeQL workflow for GitHub code scanning (#1800)

Co-authored-by: LGTM Migrator <lgtm-migrator@users.noreply.github.com>
17 months agoMerge pull request #1806 from kikht/share-write
Martin Matuška [Wed, 7 Dec 2022 12:06:19 +0000 (13:06 +0100)] 
Merge pull request #1806 from kikht/share-write

Use FILE_SHARE_WRITE and FILE_SHARE_DELETE when opening files on Windows

17 months agoMerge pull request #1771 from EwgeniWolowik/extend_cleanup_pathname_by_windows_remote...
Martin Matuška [Tue, 6 Dec 2022 11:11:34 +0000 (12:11 +0100)] 
Merge pull request #1771 from EwgeniWolowik/extend_cleanup_pathname_by_windows_remote_path

 Fixed issue #1770: base dir deals with network drive paths like \\server\file

17 months agoMerge pull request #1802 from banjiuqingshan/master
Martin Matuška [Tue, 6 Dec 2022 11:11:03 +0000 (12:11 +0100)] 
Merge pull request #1802 from banjiuqingshan/master

free mstr to fix memory leaks

17 months agoMerge pull request #1772 from bgermann/master
Martin Matuška [Tue, 6 Dec 2022 11:10:48 +0000 (12:10 +0100)] 
Merge pull request #1772 from bgermann/master

archive_entry_pathname() tries UTF-8 if MBS returns EILSEQ

17 months agoMerge pull request #1793 from flyingdutchman23/fix-cmake-warning
Martin Matuška [Tue, 6 Dec 2022 08:58:24 +0000 (09:58 +0100)] 
Merge pull request #1793 from flyingdutchman23/fix-cmake-warning

Fix CMake warning

17 months agoMerge pull request #1805 from banjiuqingshan/sync-master
Martin Matuška [Tue, 6 Dec 2022 08:57:02 +0000 (09:57 +0100)] 
Merge pull request #1805 from banjiuqingshan/sync-master

use regfree to release the memory

17 months agoUse FILE_SHARE_WRITE and FILE_SHARE_DELETE when opening files on Windows 1806/head
Vladimir Kikhtenko [Fri, 18 Nov 2022 06:46:18 +0000 (12:46 +0600)] 
Use FILE_SHARE_WRITE and FILE_SHARE_DELETE when opening files on Windows

Many standard libraries(
[libc++](https://github.com/llvm/llvm-project/blob/main/libcxx/src/filesystem/posix_compat.h#L159),
[go](https://cs.opensource.google/go/go/+/refs/tags/go1.19.3:src/syscall/syscall_windows.go;l=331),
[rust](https://doc.rust-lang.org/src/std/os/windows/fs.rs.html#126-131)
) open files on windows with `FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE`
mode by default. Libarchive uses only `FILE_SHARE_READ`, so when file is
being opened by any program that uses these standard libraries
libarchive fails to open it. Here we change libarchive shared flags, so
it plays well with common practice in other programs.

17 months agouse regfree to release the memory 1805/head
banjiuqingshan [Fri, 18 Nov 2022 01:37:00 +0000 (09:37 +0800)] 
use regfree to release the memory

use regfree() to release the memory requested by the regular expression.#1804

17 months agofree mstr to fix memory leaks 1802/head
banjiuqingshan [Tue, 15 Nov 2022 02:35:08 +0000 (10:35 +0800)] 
free mstr to fix memory leaks

free mstr to fix memory leaks.#1801

18 months agoMerge pull request #1790 from jvoisin/extend_nocrcerr
Martin Matuška [Wed, 2 Nov 2022 08:55:23 +0000 (09:55 +0100)] 
Merge pull request #1790 from jvoisin/extend_nocrcerr

Extend the usage of the DONT_FAIL_ON_CRC_ERROR macro

18 months agoMerge pull request #1786 from Malterlib/oob-windows-symlinks
Martin Matuška [Wed, 2 Nov 2022 08:53:46 +0000 (09:53 +0100)] 
Merge pull request #1786 from Malterlib/oob-windows-symlinks

Fix Windows symlink checks can reads past end of string

18 months agoMerge pull request #1797 from neheb/a
Tim Kientzle [Wed, 2 Nov 2022 03:09:47 +0000 (20:09 -0700)] 
Merge pull request #1797 from neheb/a

cmake config ${} to @@

18 months agocmake config ${} to @@ 1797/head
Rosen Penev [Tue, 1 Nov 2022 22:45:38 +0000 (15:45 -0700)] 
cmake config ${} to @@

meson's cmake config file handling does not support mixing ${} and @@ in
the same file. Switch to @@ for consistency.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
18 months agoFix CMake warning 1793/head
Joris Clement [Fri, 28 Oct 2022 15:22:47 +0000 (17:22 +0200)] 
Fix CMake warning

The warnings occurs at least with CMake version 3.24. It is caused by
CMake trying to find the gcc library due to case sensitivity.

The warning message was:
```
CMake Warning (dev) at /usr/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (LIBGCC)
  does not match the name of the calling package (LibGCC).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  build/cmake/FindLibGCC.cmake:17 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:1269 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.
```

18 months agoMerge pull request #1784 from vtorri/vtorri_win10_2
Martin Matuška [Wed, 19 Oct 2022 11:28:10 +0000 (13:28 +0200)] 
Merge pull request #1784 from vtorri/vtorri_win10_2

cmake: set WINDOWS_VERSION to WIN10 by default

18 months agoExtend the usage of the DONT_FAIL_ON_CRC_ERROR macro 1790/head
Julien Voisin [Thu, 13 Oct 2022 12:13:19 +0000 (14:13 +0200)] 
Extend the usage of the DONT_FAIL_ON_CRC_ERROR macro

DONT_FAIL_ON_CRC_ERROR is already used in the rar5 support code, so let's make
use of it in another places as well. This should tremendously help with
fuzzing.

19 months agoFix out of bounds read in Windows symlink support 1786/head
Erik Olofsson [Thu, 6 Oct 2022 11:13:20 +0000 (13:13 +0200)] 
Fix out of bounds read in Windows symlink support

19 months agoFix potential out-of-bounds reads
Erik Olofsson [Thu, 6 Oct 2022 11:12:56 +0000 (13:12 +0200)] 
Fix potential out-of-bounds reads

19 months agocmake: set WINDOWS_VERSION to WIN10 by default 1784/head
Vincent Torri [Sat, 1 Oct 2022 18:55:41 +0000 (20:55 +0200)] 
cmake: set WINDOWS_VERSION to WIN10 by default

19 months agoMerge pull request #1721 from wangkerong/master
Tim Kientzle [Sat, 1 Oct 2022 16:53:23 +0000 (09:53 -0700)] 
Merge pull request #1721 from wangkerong/master

libarchive:uninitialized value

19 months agoMerge pull request #1777 from vtorri/vtorri_win10_1
Tim Kientzle [Sat, 1 Oct 2022 16:46:21 +0000 (09:46 -0700)] 
Merge pull request #1777 from vtorri/vtorri_win10_1

cmake: update possible values of WINDOWS_VERSION to also support Windows 10

19 months agoMerge pull request #1783 from vangyzen/issue1782
Tim Kientzle [Sat, 1 Oct 2022 16:42:16 +0000 (09:42 -0700)] 
Merge pull request #1783 from vangyzen/issue1782

Support reading mtree files with tabs

19 months agoMerge pull request #1781 from neheb/pkgconfigh
Tim Kientzle [Sat, 1 Oct 2022 16:41:05 +0000 (09:41 -0700)] 
Merge pull request #1781 from neheb/pkgconfigh

cmake: use pkgconfig for zstd lookup

19 months agoSupport reading mtree files with tabs 1783/head
Eric van Gyzen [Fri, 30 Sep 2022 15:28:09 +0000 (10:28 -0500)] 
Support reading mtree files with tabs

Commit 45c5008c4 requires all characters in an mtree file to be
printable, as determined by `isprint()`.  This broke support for
reading mtree files with tab characters, which are valid and otherwise
supported by libarchive.  Allow them.  Add a unit test.

Fixes #1782

19 months agocmake: use pkgconfig for zstd lookup 1781/head
Rosen Penev [Fri, 30 Sep 2022 08:51:08 +0000 (01:51 -0700)] 
cmake: use pkgconfig for zstd lookup

As libzstd typically comes with a pkgconfig file, use it.

Fixes compilation at least on OpenWrt where host paths were leaking into
the build.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
19 months agocmake: update possible values of WINDOWS_VERSION to also support Windows 10 1777/head
Vincent Torri [Tue, 20 Sep 2022 05:07:20 +0000 (07:07 +0200)] 
cmake: update possible values of WINDOWS_VERSION to also support Windows 10

20 months ago Fixed issue #1770: cleanup_pathname deals with network drive paths like \\server... 1771/head
Ewgeni Wolowik [Wed, 7 Sep 2022 09:02:23 +0000 (11:02 +0200)] 
 Fixed issue #1770: cleanup_pathname deals with network drive paths like \\server\file

20 months agoMerge pull request #1736 from uckelman-sf/mingw_fixes
Martin Matuška [Mon, 5 Sep 2022 12:56:09 +0000 (14:56 +0200)] 
Merge pull request #1736 from uckelman-sf/mingw_fixes

Fixes for running tests on Windows (or Wine)

20 months agoarchive_entry_pathname() tries UTF-8 if MBS returns EILSEQ 1772/head
John Reiser [Fri, 26 Aug 2022 16:51:19 +0000 (09:51 -0700)] 
archive_entry_pathname() tries UTF-8 if MBS returns EILSEQ

For better pathname portability across OS, in particular Windows to Linux.
Original bug: unrar in https://bugzilla.redhat.com/show_bug.cgi?id=2120926
        modified:   libarchive/archive_entry.c

21 months agoMerge pull request #1761 from kraj/master
Tim Kientzle [Fri, 5 Aug 2022 02:43:12 +0000 (19:43 -0700)] 
Merge pull request #1761 from kraj/master

libarchive: Remove unneeded linux/fs.h include

21 months agoMerge pull request #1745 from bobrofon/rar5-read_data_block
Tim Kientzle [Fri, 5 Aug 2022 02:30:29 +0000 (19:30 -0700)] 
Merge pull request #1745 from bobrofon/rar5-read_data_block

rar5: Fix random initial offset if using archive_read_data_into_fd

21 months agoMerge pull request #1751 from yugr/hide-symbols
Tim Kientzle [Sun, 31 Jul 2022 16:06:34 +0000 (09:06 -0700)] 
Merge pull request #1751 from yugr/hide-symbols

Hide internal symbols on platforms that support visibility annotations

21 months agoAdded missing file to CMakeLists. 1751/head
Yuri Gribov [Wed, 27 Jul 2022 18:30:57 +0000 (21:30 +0300)] 
Added missing file to CMakeLists.

21 months agoHide internal symbols on platforms that support visibility annotations (see discussio...
Yuri Gribov [Sun, 3 Jul 2022 07:54:39 +0000 (10:54 +0300)] 
Hide internal symbols on platforms that support visibility annotations (see discussion in gh-1017).

21 months agolibarchive: Do not include sys/mount.h when linux/fs.h is present 1761/head
Khem Raj [Mon, 25 Jul 2022 17:56:53 +0000 (10:56 -0700)] 
libarchive: Do not include sys/mount.h when linux/fs.h is present

These headers are in conflict and only one is needed by
archive_read_disk_posix.c therefore include linux/fs.h if it exists
otherwise include sys/mount.h

It also helps compiling with glibc 2.36
where sys/mount.h conflicts with linux/mount.h see [1]

[1] https://sourceware.org/glibc/wiki/Release/2.36

21 months agoMerge pull request #1753 from bungeman/check_size_attribute
Tim Kientzle [Mon, 25 Jul 2022 00:29:23 +0000 (17:29 -0700)] 
Merge pull request #1753 from bungeman/check_size_attribute

Validate entry_bytes_remaining in pax_attribute

21 months agoValidate entry_bytes_remaining in pax_attribute 1753/head
Ben Wagner [Tue, 19 Jul 2022 17:02:40 +0000 (13:02 -0400)] 
Validate entry_bytes_remaining in pax_attribute

The `size` attribute may contain a negative or too large value. Check
the range of the `entry_bytes_remaining` in `pax_attribute` the same way
as `header_common`. The test which is added passes both with and without
this change in a normal debug build. It is necessary to run with
`-fsanitize=undefined` to see that the undefined behavior is avoided.

Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=48467

21 months agoMerge pull request #1759 from obiwac/fix-1754
Tim Kientzle [Sun, 24 Jul 2022 06:50:07 +0000 (23:50 -0700)] 
Merge pull request #1759 from obiwac/fix-1754

libarchive: Handle a `calloc` returning NULL (fixes #1754)

21 months agolibarchive: Handle a `calloc` returning NULL (fixes #1754) 1759/head
obiwac [Fri, 22 Jul 2022 20:41:10 +0000 (22:41 +0200)] 
libarchive: Handle a `calloc` returning NULL (fixes #1754)

22 months agoClean up the condition so we check EINVAL on Windows only. 1736/head
Joel Uckelman [Thu, 30 Jun 2022 13:12:43 +0000 (14:12 +0100)] 
Clean up the condition so we check EINVAL on Windows only.

22 months agorar5: Fix random initial offset if using archive_read_data_into_fd 1745/head
Sergey Bobrenok [Sat, 25 Jun 2022 17:12:52 +0000 (20:12 +0300)] 
rar5: Fix random initial offset if using archive_read_data_into_fd

archive_read_data_into_fd passes a pointer to an uninitialized
variable as an output 'offset' argument into archive_read_data_block
function, and expects that this variable will always be initialized
inside of it.

Like this:
  size_t size;
  int64_t offset;
  archive_read_data_block(a, &buf, &size, &offset);
  /* some work with offset here */

But rar5 implementation of archive_read_data_block function leaves the
'offset' argument uninitialized in one code path (if file is
compressed and there are no uncompressed pending data blocks).

As a result, archive_read_data_info_fd function is using an
uninitialized variable as an initial offset of an output file. And in
most cases it causes an appending sparse block of a random size at the
beginning of the output file.

22 months agoMerge pull request #1688 from hemnstill/zstd_windows
Martin Matuška [Wed, 29 Jun 2022 08:41:30 +0000 (10:41 +0200)] 
Merge pull request #1688 from hemnstill/zstd_windows

include zstd 1.5.2 on windows ci builds

22 months agoMerge pull request #1744 from seanm/snprintf
Martin Matuška [Wed, 29 Jun 2022 08:41:03 +0000 (10:41 +0200)] 
Merge pull request #1744 from seanm/snprintf

Fixed issue #1743: Changed sprintf to safer snprintf

22 months agoFixed issue #1743: Changed sprintf to safer snprintf 1744/head
Sean McBride [Wed, 22 Jun 2022 16:22:42 +0000 (12:22 -0400)] 
Fixed issue #1743: Changed sprintf to safer snprintf

Also changed a few vsprintf to vsnprintf.

Most cases were trivial, one private function was changed to take the buffer length, one case required some fancy arithmetic.

22 months agoMerge branch 'libarchive:master' into zstd_windows 1688/head
Alexandr Reshetnikov [Sun, 19 Jun 2022 19:10:18 +0000 (23:10 +0400)] 
Merge branch 'libarchive:master' into zstd_windows

22 months agoMerge pull request #1729 from bog-dan-ro/fix_comiple_android
Martin Matuška [Sun, 19 Jun 2022 06:36:18 +0000 (08:36 +0200)] 
Merge pull request #1729 from bog-dan-ro/fix_comiple_android

Fix compile on Android

22 months agoMerge pull request #1732 from asuka-mio/master
Martin Matuška [Sun, 19 Jun 2022 06:33:03 +0000 (08:33 +0200)] 
Merge pull request #1732 from asuka-mio/master

Bionic c deprecates readdir_r too

22 months agoMerge pull request #1742 from emaste/master
Martin Matuška [Sun, 19 Jun 2022 06:27:38 +0000 (08:27 +0200)] 
Merge pull request #1742 from emaste/master

CI: update FreeBSD versions

22 months agoMerge branch 'libarchive:master' into zstd_windows
Alexandr Reshetnikov [Fri, 17 Jun 2022 16:21:33 +0000 (20:21 +0400)] 
Merge branch 'libarchive:master' into zstd_windows

22 months agoCI: update FreeBSD versions 1742/head
Ed Maste [Wed, 15 Jun 2022 17:01:05 +0000 (13:01 -0400)] 
CI: update FreeBSD versions

Update to latest released versions (12.3 and 13.1), and drop now-EOL 11.4.

23 months agoMerge pull request #1739 from janstary/width
Tim Kientzle [Sun, 5 Jun 2022 23:45:04 +0000 (16:45 -0700)] 
Merge pull request #1739 from janstary/width

fix Bl -width

23 months agofix Bl -width 1739/head
Jan Starý [Sun, 5 Jun 2022 21:02:05 +0000 (23:02 +0200)] 
fix Bl -width

23 months agoSkip match_time tests when running on Windows, since the ctime can't be set
Zack Weger [Fri, 12 Oct 2018 15:36:44 +0000 (11:36 -0400)] 
Skip match_time tests when running on Windows, since the ctime can't be set

23 months agoFiles with invalid names don't exist, so don't set an error
Zack Weger [Mon, 8 Oct 2018 15:17:10 +0000 (11:17 -0400)] 
Files with invalid names don't exist, so don't set an error

23 months agoMerge pull request #1724 from elieux-contrib/wincrypto-sha256-384-512-fix
Martin Matuška [Sun, 29 May 2022 07:35:22 +0000 (09:35 +0200)] 
Merge pull request #1724 from elieux-contrib/wincrypto-sha256-384-512-fix

archive_digest: Use correct providers with Windows Crypto

23 months agoMerge pull request #1730 from gportay/fix-documentation
Martin Matuška [Sun, 29 May 2022 07:33:28 +0000 (09:33 +0200)] 
Merge pull request #1730 from gportay/fix-documentation

archive_write_open.3, archive_read_open.3: ends

23 months agoBionic c deprecates readdir_r too 1732/head
tarsin [Sat, 21 May 2022 12:44:30 +0000 (20:44 +0800)] 
Bionic c deprecates readdir_r too

* See https://android.googlesource.com/platform/bionic/+/f19af37b5ee6cd5283683195d692fe3f713db2a5

23 months agoFix compile on Android 1729/head
BogDan Vatra [Tue, 3 May 2022 10:16:07 +0000 (13:16 +0300)] 
Fix compile on Android

Fixes: #890
2 years agoarchive_write_open.3, archive_read_open.3: ends 1730/head
Gaël PORTAY [Thu, 12 May 2022 08:00:38 +0000 (10:00 +0200)] 
archive_write_open.3, archive_read_open.3: ends

2 years agoMerge remote-tracking branch 'remotes/origin/master' into zstd_windows
Reshetnikov Alexandr [Thu, 28 Apr 2022 19:35:05 +0000 (23:35 +0400)] 
Merge remote-tracking branch 'remotes/origin/master' into zstd_windows

2 years agoarchive_digest: Use correct providers with Windows Crypto 1724/head
David Macek [Sun, 17 Apr 2022 17:52:25 +0000 (19:52 +0200)] 
archive_digest: Use correct providers with Windows Crypto

Trying to use SHA256, SHA384 or SHA512 with mtree when linked against
Windows Crypto would result in silent failure.  The call to
`CryptCreateHash` would fail with 0x80090008.  The docs[1] say that
these algorithms require a different crypto provider, so let's make
that a parameter for `win_crypto_init` and choose at the call site along
with the algorithm.

[1] https://docs.microsoft.com/en-us/windows/win32/seccrypto/alg-id

Signed-off-by: David Macek <david.macek.0@gmail.com>
2 years agoMerge pull request #1723 from Biswa96/win32-static-openssl
Martin Matuška [Sat, 16 Apr 2022 11:05:02 +0000 (13:05 +0200)] 
Merge pull request #1723 from Biswa96/win32-static-openssl

autotools: Fix static linking when openssl is enabled in windows

2 years agoautotools: Fix static linking when openssl is enabled in windows 1723/head
Biswapriyo Nath [Wed, 13 Apr 2022 04:18:44 +0000 (09:48 +0530)] 
autotools: Fix static linking when openssl is enabled in windows

This adds Requires.private field in pkgconfig file. Using that field,
pkgconfig pulls all the private cflags or libs while static linking.
OpenSSL static libraries require some windows system libraies. Otherwise
static liking fails with libarchive.

2 years agoMerge remote-tracking branch 'remotes/origin/master' into zstd_windows
Reshetnikov Alexandr [Tue, 12 Apr 2022 09:48:51 +0000 (13:48 +0400)] 
Merge remote-tracking branch 'remotes/origin/master' into zstd_windows

# Conflicts:
# build/ci/github_actions/ci.cmd

2 years agoMerge pull request #1714 from Biswa96/win32-openssl
Martin Matuška [Mon, 11 Apr 2022 14:27:45 +0000 (16:27 +0200)] 
Merge pull request #1714 from Biswa96/win32-openssl

Revert "Fix check for openssl on Windows"

2 years agoMerge pull request #1720 from eworm-de/markdown
Martin Matuška [Mon, 11 Apr 2022 14:26:25 +0000 (16:26 +0200)] 
Merge pull request #1720 from eworm-de/markdown

README: fix markdown syntax

2 years agolibarchive:uninitialized value 1721/head
wangkerong [Sat, 9 Apr 2022 07:08:03 +0000 (15:08 +0800)] 
libarchive:uninitialized value

Uninitialized variable crash error in oss_fuzz memory type test

2 years agoRevert "Fix check for openssl on Windows" 1714/head
Biswapriyo Nath [Sun, 3 Apr 2022 08:54:04 +0000 (14:24 +0530)] 
Revert "Fix check for openssl on Windows"

This reverts commit 045e5c5a4460020e513516a5d1f3087094e67da3
For Windows platform, openssl 1.0.2 and earlier versions have
eay64 and eay32 libraries[1]. But from openssl 1.1.0 and above
versions have same library name[2] (libcrypto and libssl) like
other unix-like platforms.

[1]: https://wiki.openssl.org/index.php/Compilation_and_Installation#OpenSSL_1.0.2
[2]: https://wiki.openssl.org/index.php/Compilation_and_Installation#OpenSSL_1.1.0

2 years agoREADME: fix markdown syntax 1720/head
Christian Hesse [Fri, 8 Apr 2022 19:52:05 +0000 (21:52 +0200)] 
README: fix markdown syntax

Some markdown implementations (python-markdown) require an empty line
before lists, so just add these.

2 years agoLibarchive 3.6.2dev
Martin Matuska [Fri, 8 Apr 2022 12:47:05 +0000 (14:47 +0200)] 
Libarchive 3.6.2dev

2 years agoCI: Update dependencies for Windows build v3.6.1
Martin Matuska [Fri, 8 Apr 2022 11:13:17 +0000 (13:13 +0200)] 
CI: Update dependencies for Windows build

Upgrade zlib to 1.2.12
Upgrade bzip2 to 10fe37f2e

2 years agoRelease 3.6.1
Martin Matuska [Fri, 8 Apr 2022 10:05:45 +0000 (12:05 +0200)] 
Release 3.6.1

2 years agoMerge pull request #1717 from evelikov/ssl
Martin Matuška [Wed, 6 Apr 2022 23:28:08 +0000 (01:28 +0200)] 
Merge pull request #1717 from evelikov/ssl

archive_digest: check return value of EVP_DigestInit()

2 years agoarchive_digest: check return value of EVP_DigestInit() 1717/head
Emil Velikov [Tue, 5 Apr 2022 10:36:02 +0000 (11:36 +0100)] 
archive_digest: check return value of EVP_DigestInit()

The function returns 0 on error, which is seemingly very common with
OpenSSL 3.0 and rmd160.

Just error check the lot, so we don't get even more random failures with
future releases of OpenSSL.

Fixes #1549

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2 years agoRAR reader: fix heap-use-after-free in run_filters()
Martin Matuska [Sun, 3 Apr 2022 10:06:24 +0000 (12:06 +0200)] 
RAR reader: fix heap-use-after-free in run_filters()

OSS-Fuzz issue 46279
Fixes #1715

2 years agoinclude zstd 1.5.2 on windows builds
Reshetnikov Alexandr [Thu, 31 Mar 2022 19:15:03 +0000 (23:15 +0400)] 
include zstd 1.5.2 on windows builds

2 years agoISO reader: fix possible heap buffer overflow in read_children()
Martin Matuska [Wed, 30 Mar 2022 19:14:00 +0000 (21:14 +0200)] 
ISO reader: fix possible heap buffer overflow in read_children()

OSS-Fuzz issue: 38764
Fixes #1685

2 years agoZIP reader: fix possible out-of-bounds read in zipx_lzma_alone_init()
Tim Kientzle [Thu, 24 Mar 2022 09:35:00 +0000 (10:35 +0100)] 
ZIP reader: fix possible out-of-bounds read in zipx_lzma_alone_init()

Fixes #1672

2 years agoMerge pull request #1679 from michael-o/hp-ux-dirfd
Martin Matuška [Sat, 12 Mar 2022 09:19:16 +0000 (10:19 +0100)] 
Merge pull request #1679 from michael-o/hp-ux-dirfd

Add macro for dirfd() on HP-UX because no full POSIX.1-2008 coverage …

2 years agoAdd macro for dirfd() on HP-UX because no full POSIX.1-2008 coverage exists 1679/head
Michael Osipov [Thu, 10 Mar 2022 11:56:02 +0000 (12:56 +0100)] 
Add macro for dirfd() on HP-UX because no full POSIX.1-2008 coverage exists

HP-UX does neither provide a function nor a macro. This solution based on an
issue with vim: https://github.com/vim/vim/issues/6838

2 years agobuild: fix detection of readdir_r() and dirfd() in configure.ac
Martin Matuska [Thu, 10 Mar 2022 10:00:26 +0000 (11:00 +0100)] 
build: fix detection of readdir_r() and dirfd() in configure.ac

Fixes #1537

2 years agoMerge pull request #1676 from ken-matsui/patch-2
Tim Kientzle [Sat, 5 Mar 2022 17:45:01 +0000 (09:45 -0800)] 
Merge pull request #1676 from ken-matsui/patch-2

Remove the unused variable `detected_bytes`

2 years agoRemove the unused variable `detected_bytes` 1676/head
Ken Matsui [Sat, 5 Mar 2022 03:12:09 +0000 (12:12 +0900)] 
Remove the unused variable `detected_bytes`

2 years agoMerge pull request #1674 from 0mp/patch-1
Tim Kientzle [Fri, 4 Mar 2022 05:15:53 +0000 (21:15 -0800)] 
Merge pull request #1674 from 0mp/patch-1

Fix use of At mdoc(7) macro