From nobody Wed Dec 28 22:45:14 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Nj66g12LHz2cDk0; Wed, 28 Dec 2022 22:45:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Nj66g0JSZz3KQc; Wed, 28 Dec 2022 22:45:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672267515; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vVo0152raESj1cErqUtI5vsFOphd+nKtN2NhabQuOCY=; b=ONSLiqxCm6NXgYt7E/QW9AH+bbF6G7ReeypLJst9hDtuwiUi8q5rcUcW116sg0ZpHX0aOr kn/fZ2z3cMgD5Skr6Br2DVfumYLRLkJnv6UnxU/POfgLrAzHsaV10TaYoEGXhd8ujsFT7W h8/ddgVX8mpG3jk2R+8UDCKiFeTIJAzOS1nB7mc24IxRuB3D7+ALJMAcJegRaYX2U3pKP+ jpfMRccI492C12cE9KFNdtXlafJUdHlVfYjn00VEr2gxW6kjX1rF7TH03xJLpI5Q+lSAUb EMmYcFvsWi5B3UgOPCKfkCiF5UOMd8yaAH6/0WtDofsyPkZ3e+dCpvk4tIVXjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672267515; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vVo0152raESj1cErqUtI5vsFOphd+nKtN2NhabQuOCY=; b=lIEI18QGB5esXKCGK3x6TLgEii6H8710N7ibAd9eXs9PfBKDHGxVFmXzR0LN6dymk341pH yefHRJKs6ygYrii7I5oHHqB6sM8x8bAYedzF4OsWeL1dlvvn7OqpVo8i9xDwYIZ1RTMJDE c//ZOvXNVgz0XiCw6k1kfY3V56Fwzl11u2a6hqy0TQkjlWJcLc7Kd0ywDJwZC6oVe6Vy5+ KEbHo92z48bOazsj9Azqf1PNlkDtx2xOnramggyNIya2BmgGjpb5YkmVz6rZAZZTth+kVx SWOXE5rXlPOwNdaiYLhxnKTdtxs/EQsH0GKxfKdyIlZBpsBZOoqw9JPglal6OQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672267515; a=rsa-sha256; cv=none; b=SVudAJUO6FXF4C0QO32gyH/CZAAGVu8I0D+F/wqTLY8ImXn/XzXhAseNQabTz6lfr+wqww 7++a1JIrdmVUd5khHaIDEoQY49ttAPhJmiYRC5+UAsEJS3XukYgSvUitz6RWBdTjln6cX5 TNAIm4Jwo/9Bi2E546fR0DbpgFDv2LXqCvWSODEEKf/t7coPHAEH1VJUmc+2/rLV+cIEIZ mgkAu27N37tXcmbo591YzYscrkvbK4J3mJu4fygXE+R/h4SMAaiN++M0qQvV7WJrzS5rJx AkWS171tpH5Wlr5UtUpIGOdKI/idH5J57xW4F30bz87MNSZxTokvqEeuEhlOQg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Nj66f6XCvz15kx; Wed, 28 Dec 2022 22:45:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2BSMjETc041121; Wed, 28 Dec 2022 22:45:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BSMjEQf041120; Wed, 28 Dec 2022 22:45:14 GMT (envelope-from git) Date: Wed, 28 Dec 2022 22:45:14 GMT Message-Id: <202212282245.2BSMjEQf041120@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Martin Matuska Subject: git: 2bfc51f54354 - stable/11 - libarchive: import changes from upstream List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mm X-Git-Repository: src X-Git-Refname: refs/heads/stable/11 X-Git-Reftype: branch X-Git-Commit: 2bfc51f5435447ab4a49788b336d5f0f6d924d83 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/11 has been updated by mm: URL: https://cgit.FreeBSD.org/src/commit/?id=2bfc51f5435447ab4a49788b336d5f0f6d924d83 commit 2bfc51f5435447ab4a49788b336d5f0f6d924d83 Author: Martin Matuska AuthorDate: 2022-04-12 18:12:34 +0000 Commit: Martin Matuska CommitDate: 2022-12-28 22:16:10 +0000 libarchive: import changes from upstream Libarchive 3.6.1 Bug fixes: PR #1549: archive_digest: check return value of EVP_DigestInit() (cherry picked from commit 7ec51a3e2b91caaea5c1de1a4c7b362b20d35a62) --- contrib/libarchive/NEWS | 2 ++ contrib/libarchive/libarchive/archive.h | 4 ++-- contrib/libarchive/libarchive/archive_digest.c | 18 ++++++++++++------ contrib/libarchive/libarchive/archive_entry.h | 2 +- 4 files changed, 17 insertions(+), 9 deletions(-) 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 #include /* 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