FreeBSD Bugzilla – Attachment 233060 Details for
Bug 263146
Upgrade libarchive in base to 3.6.1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Libarchive 3.6.1 patch against main
libarchive_3_6_1.patch (text/plain), 3.91 KB, created by
Martin Matuska
on 2022-04-08 13:27:59 UTC
(
hide
)
Description:
Libarchive 3.6.1 patch against main
Filename:
MIME Type:
Creator:
Martin Matuska
Created:
2022-04-08 13:27:59 UTC
Size:
3.91 KB
patch
obsolete
>commit dd6373e934b7adeb08e62e41343a20ef7e7663b1 >Merge: 3443476ca9e7 91ee6b45e4ef >Author: Martin Matuska <mm@FreeBSD.org> >Date: Fri Apr 8 15:14:46 2022 +0200 > > libarchive: import changes from upstream > > Libarchive 3.6.1 > > Bug fixes: > PR #1549: archive_digest: check return value of EVP_DigestInit() > > MFC after: 3 days > Relnotes: yes > >diff --git a/contrib/libarchive/NEWS b/contrib/libarchive/NEWS >index 0ccdb5d61b04..bf0515f34d8c 100644 >--- a/contrib/libarchive/NEWS >+++ b/contrib/libarchive/NEWS >@@ -1,3 +1,5 @@ >+Apr 08, 2022: libarchive 3.6.1 released >+ > Feb 09, 2022: libarchive 3.6.0 released > > Feb 08, 2022: libarchive 3.5.3 released >diff --git a/contrib/libarchive/libarchive/archive.h b/contrib/libarchive/libarchive/archive.h >index 67381bf24be0..ee1a02f4de01 100644 >--- a/contrib/libarchive/libarchive/archive.h >+++ b/contrib/libarchive/libarchive/archive.h >@@ -36,7 +36,7 @@ > * assert that ARCHIVE_VERSION_NUMBER >= 2012108. > */ > /* Note: Compiler will complain if this does not match archive_entry.h! */ >-#define ARCHIVE_VERSION_NUMBER 3006000 >+#define ARCHIVE_VERSION_NUMBER 3006001 > > #include <sys/stat.h> > #include <stddef.h> /* for wchar_t */ >@@ -155,7 +155,7 @@ __LA_DECL int archive_version_number(void); > /* > * Textual name/version of the library, useful for version displays. > */ >-#define ARCHIVE_VERSION_ONLY_STRING "3.6.0" >+#define ARCHIVE_VERSION_ONLY_STRING "3.6.1" > #define ARCHIVE_VERSION_STRING "libarchive " ARCHIVE_VERSION_ONLY_STRING > __LA_DECL const char * archive_version_string(void); > >diff --git a/contrib/libarchive/libarchive/archive_digest.c b/contrib/libarchive/libarchive/archive_digest.c >index 410df01563df..a7bd5f0286a4 100644 >--- a/contrib/libarchive/libarchive/archive_digest.c >+++ b/contrib/libarchive/libarchive/archive_digest.c >@@ -243,7 +243,8 @@ __archive_md5init(archive_md5_ctx *ctx) > { > if ((*ctx = EVP_MD_CTX_new()) == NULL) > return (ARCHIVE_FAILED); >- EVP_DigestInit(*ctx, EVP_md5()); >+ if (!EVP_DigestInit(*ctx, EVP_md5())) >+ return (ARCHIVE_FAILED); > return (ARCHIVE_OK); > } > >@@ -434,7 +435,8 @@ __archive_ripemd160init(archive_rmd160_ctx *ctx) > { > if ((*ctx = EVP_MD_CTX_new()) == NULL) > return (ARCHIVE_FAILED); >- EVP_DigestInit(*ctx, EVP_ripemd160()); >+ if (!EVP_DigestInit(*ctx, EVP_ripemd160())) >+ return (ARCHIVE_FAILED); > return (ARCHIVE_OK); > } > >@@ -624,7 +626,8 @@ __archive_sha1init(archive_sha1_ctx *ctx) > { > if ((*ctx = EVP_MD_CTX_new()) == NULL) > return (ARCHIVE_FAILED); >- EVP_DigestInit(*ctx, EVP_sha1()); >+ if (!EVP_DigestInit(*ctx, EVP_sha1())) >+ return (ARCHIVE_FAILED); > return (ARCHIVE_OK); > } > >@@ -887,7 +890,8 @@ __archive_sha256init(archive_sha256_ctx *ctx) > { > if ((*ctx = EVP_MD_CTX_new()) == NULL) > return (ARCHIVE_FAILED); >- EVP_DigestInit(*ctx, EVP_sha256()); >+ if (!EVP_DigestInit(*ctx, EVP_sha256())) >+ return (ARCHIVE_FAILED); > return (ARCHIVE_OK); > } > >@@ -1122,7 +1126,8 @@ __archive_sha384init(archive_sha384_ctx *ctx) > { > if ((*ctx = EVP_MD_CTX_new()) == NULL) > return (ARCHIVE_FAILED); >- EVP_DigestInit(*ctx, EVP_sha384()); >+ if (!EVP_DigestInit(*ctx, EVP_sha384())) >+ return (ARCHIVE_FAILED); > return (ARCHIVE_OK); > } > >@@ -1381,7 +1386,8 @@ __archive_sha512init(archive_sha512_ctx *ctx) > { > if ((*ctx = EVP_MD_CTX_new()) == NULL) > return (ARCHIVE_FAILED); >- EVP_DigestInit(*ctx, EVP_sha512()); >+ if (!EVP_DigestInit(*ctx, EVP_sha512())) >+ return (ARCHIVE_FAILED); > return (ARCHIVE_OK); > } > >diff --git a/contrib/libarchive/libarchive/archive_entry.h b/contrib/libarchive/libarchive/archive_entry.h >index 8b76360a777f..461866a5a6a2 100644 >--- a/contrib/libarchive/libarchive/archive_entry.h >+++ b/contrib/libarchive/libarchive/archive_entry.h >@@ -30,7 +30,7 @@ > #define ARCHIVE_ENTRY_H_INCLUDED > > /* Note: Compiler will complain if this does not match archive.h! */ >-#define ARCHIVE_VERSION_NUMBER 3006000 >+#define ARCHIVE_VERSION_NUMBER 3006001 > > /* > * Note: archive_entry.h is for use outside of libarchive; the
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 263146
: 233060