-
Notifications
You must be signed in to change notification settings - Fork 567
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
87 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
From 09fa505d543c3d3fcaf8b9dee8f4bcec430d45b5 Mon Sep 17 00:00:00 2001 | ||
From: Cameron Baird <[email protected]> | ||
Date: Thu, 1 Jun 2023 10:24:15 -0700 | ||
Subject: [PATCH] cherry-picking upstream commit > | ||
34c649b3601383cd11dbc76221747ec16fd68e1b, which can be found at > | ||
https://dev.gnupg.org/rG34c649b3601383cd11dbc76221747ec16fd68e1bi | ||
|
||
Signed-off-by: Cameron Baird <[email protected]> | ||
--- | ||
g10/cpr.c | 13 ++++--------- | ||
1 file changed, 4 insertions(+), 9 deletions(-) | ||
|
||
diff --git a/g10/cpr.c b/g10/cpr.c | ||
index d502e8b..bc4b715 100644 | ||
--- a/g10/cpr.c | ||
+++ b/g10/cpr.c | ||
@@ -328,20 +328,15 @@ write_status_text_and_buffer (int no, const char *string, | ||
} | ||
first = 0; | ||
} | ||
- for (esc=0, s=buffer, n=len; n && !esc; s++, n--) | ||
+ for (esc=0, s=buffer, n=len; n; s++, n--) | ||
{ | ||
if (*s == '%' || *(const byte*)s <= lower_limit | ||
|| *(const byte*)s == 127 ) | ||
esc = 1; | ||
if (wrap && ++count > wrap) | ||
- { | ||
- dowrap=1; | ||
- break; | ||
- } | ||
- } | ||
- if (esc) | ||
- { | ||
- s--; n++; | ||
+ dowrap=1; | ||
+ if (esc || dowrap) | ||
+ break; | ||
} | ||
if (s != buffer) | ||
es_fwrite (buffer, s-buffer, 1, statusfp); | ||
-- | ||
2.25.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
Summary: OpenPGP standard implementation used for encrypted communication and data storage. | ||
Name: gnupg2 | ||
Version: 2.2.20 | ||
Release: 3%{?dist} | ||
Release: 4%{?dist} | ||
License: BSD and CC0 and GPLv2+ and LGPLv2+ | ||
URL: https://gnupg.org/index.html | ||
Group: Applications/Cryptography. | ||
Source0: https://gnupg.org/ftp/gcrypt/gnupg/gnupg-%{version}.tar.bz2 | ||
# CVE-2022-34903: cherry-pick upstream commit | ||
# 34c649b3601383cd11dbc76221747ec16fd68e1b, which can be found at | ||
# https://dev.gnupg.org/rG34c649b3601383cd11dbc76221747ec16fd68e1bi | ||
Patch0: CVE-2022-34903.patch | ||
Vendor: Microsoft Corporation | ||
Distribution: Mariner | ||
|
||
BuildRequires: zlib-devel | ||
BuildRequires: bzip2-devel | ||
BuildRequires: readline-devel | ||
|
@@ -39,7 +42,7 @@ functionality up into several modules. The S/MIME and smartcard functionality | |
is provided by the gnupg2-smime package. | ||
|
||
%prep | ||
%setup -q -n gnupg-%{version} | ||
%autosetup -p1 -n gnupg-%{version} | ||
|
||
%build | ||
%configure | ||
|
@@ -65,23 +68,34 @@ make %{?_smp_mflags} check | |
%exclude /usr/share/doc/* | ||
|
||
%changelog | ||
* Thu Jun 01 2023 Cameron Baird <[email protected]> 2.2.20-4 | ||
- Patch CVE-2022-34903. | ||
|
||
* Mon Jun 01 2020 Pawel Winogrodzki <[email protected]> 2.2.20-3 | ||
- Adding a license reference. | ||
- License verified. | ||
|
||
* Thu Apr 16 2020 Nicolas Ontiveros <[email protected]> 2.2.20-2 | ||
- Rename gnupg to gnupg2 | ||
- Update description. | ||
|
||
* Tue Mar 24 2020 Henry Beberman <[email protected]> 2.2.20-1 | ||
- Update to 2.2.20. License verified. | ||
|
||
* Tue Sep 03 2019 Mateusz Malisz <[email protected]> 2.2.10-2 | ||
- Initial CBL-Mariner import from Photon (license: Apache2). | ||
|
||
* Sat Oct 20 2018 Ankit Jain <[email protected]> 2.2.10-1 | ||
- Update to 2.2.10 | ||
|
||
* Wed Aug 30 2017 Alexey Makhalov <[email protected]> 2.1.20-3 | ||
- Add requires libgcrypt | ||
|
||
* Wed Jun 07 2017 Danut Moraru <[email protected]> 2.1.20-2 | ||
- Add pinentry dependency | ||
|
||
* Tue Apr 11 2017 Danut Moraru <[email protected]> 2.1.20-1 | ||
- Update to 2.1.20 | ||
|
||
* Wed Jul 27 2016 Kumar Kaushik <[email protected]> 2.0.30-1 | ||
- Initial Build. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
Name: openjdk8 | ||
Summary: OpenJDK | ||
Version: %{_jdk_version}.%{_jdk_update} | ||
Release: 1%{?dist} | ||
Release: 2%{?dist} | ||
License: ASL 1.1 AND ASL 2.0 AND BSD AND BSD WITH advertising AND GPL+ AND GPLv2 AND GPLv2 WITH exceptions AND IJG AND LGPLv2+ AND MIT AND MPLv2.0 AND Public Domain AND W3C AND zlib | ||
Vendor: Microsoft Corporation | ||
Distribution: Mariner | ||
|
@@ -113,6 +113,7 @@ unset JAVA_HOME && | |
--with-freetype-lib=%{_libdir} \ | ||
--with-stdc++lib=dynamic \ | ||
--with-native-debug-symbols=none \ | ||
--with-zlib=system \ | ||
--disable-zip-debug-info | ||
|
||
make \ | ||
|
@@ -275,6 +276,10 @@ rm -rf %{buildroot}/* | |
%{_libdir}/jvm/OpenJDK-%{version}/src.zip | ||
|
||
%changelog | ||
* Mon Jun 05 2023 Daniel McIlvaney <[email protected]> - 1.8.0.332-2 | ||
- Explicitly set --with-zlib=system to ensure we do not use a version of | ||
- zlib that is vulnerable to CVE-2018-25032 | ||
|
||
* Mon Feb 28 2022 Nicolas Guibourge <[email protected]> - 1.8.0.332-1 | ||
- Update to 1.8.0.332 to address the below CVEs: | ||
- CVE-2022-21248 CVE-2022-21282 CVE-2022-21283 CVE-2022-21293 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters