diff --git a/pinentry-1.1.1-coverity.patch b/pinentry-1.1.1-coverity.patch new file mode 100644 index 0000000000000000000000000000000000000000..6ce708af9677807f0fd3bbd47a066842204251c1 --- /dev/null +++ b/pinentry-1.1.1-coverity.patch @@ -0,0 +1,24 @@ +commit a87d9e8f89f946a733c756c72bf5ec41e0a738b8 +Author: Jakub Jelen +Date: Wed Apr 14 15:51:27 2021 +0900 + + pinentry: Fix memory leaks + + * pinentry/pinentry.c (pinentry_inq_genpin): Free VALUE on error. + -- + + GnuPG-bug-id: 5384 + Signed-off-by: Jakub Jelen + +diff --git a/pinentry/pinentry.c b/pinentry/pinentry.c +index ef81f12..26ec77a 100644 +--- a/pinentry/pinentry.c ++++ b/pinentry/pinentry.c +@@ -656,6 +656,7 @@ pinentry_inq_genpin (pinentry_t pin) + if (rc) + { + fprintf (stderr, "ASSUAN READ LINE failed: rc=%d\n", rc); ++ free (value); + return 0; + } + } diff --git a/pinentry-1.2.1.tar.bz2 b/pinentry-1.2.1.tar.bz2 deleted file mode 100644 index cfa3e579d8fcd157a380dbf8df1bf8e1acd4d694..0000000000000000000000000000000000000000 Binary files a/pinentry-1.2.1.tar.bz2 and /dev/null differ diff --git a/pinentry-1.3.1.tar.bz2 b/pinentry-1.3.1.tar.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..b53c121c41c10b15aa0f145c35a1c27ab762a264 Binary files /dev/null and b/pinentry-1.3.1.tar.bz2 differ diff --git a/pinentry.spec b/pinentry.spec index 1fdff2a391b2533485427ce3c4c8a9d2dc08becc..d6f1d326d61416b7b1b88632f5be1a3b9b573b46 100644 --- a/pinentry.spec +++ b/pinentry.spec @@ -1,13 +1,14 @@ -%define anolis_release 3 +%define anolis_release 1 Name: pinentry -Version: 1.2.1 +Version: 1.3.1 Release: %{anolis_release}%{?dist} Summary: Collection of simple PIN or passphrase entry dialogs License: GPLv2+ URL: https://www.gnupg.org/ Source0: https://gnupg.org/ftp/gcrypt/pinentry/%{name}-%{version}.tar.bz2 Source1: pinentry-wrapper +Patch1: pinentry-1.1.1-coverity.patch BuildRequires: gcc gcc-c++ make autoconf BuildRequires: pkgconfig(gcr-3) pkgconfig(gcr-base-3) @@ -145,6 +146,10 @@ install -p -m 0755 -D %{SOURCE1} %{buildroot}%{_bindir}/pinentry %changelog +* Fri Jul 04 2025 wenyuzifang - 1.3.1-1 +- Updated to version 1.3.1 to fix xxxxxxxxx +- Fixes memory leak, improves stability and resource management. + * Fri Apr 14 2023 chen_yu_ao - 1.2.1-3 - change spec file format and add doc package @@ -155,4 +160,4 @@ install -p -m 0755 -D %{SOURCE1} %{buildroot}%{_bindir}/pinentry - New version 1.2.1 * Fri Mar 04 2022 mgb01105731 - 1.2.0-1 -- Init from upstream version 1.2.0 +- Init from upstream version 1.2.0 \ No newline at end of file