diff --git a/0000-fix-gdbm_dump-usage-stack-overflow.patch b/0000-fix-gdbm_dump-usage-stack-overflow.patch deleted file mode 100644 index f76c4ef40031aacc22aed03fda2e3e0c6fc34f64..0000000000000000000000000000000000000000 --- a/0000-fix-gdbm_dump-usage-stack-overflow.patch +++ /dev/null @@ -1,28 +0,0 @@ -From 48e22dd008138bb97d2a673af9da5b1b3457c86f Thu Sep 9 08:15:07 2021 -From: Sergey Poznyakoff -Date: Thu, 9 Sep 2021 15:04:27 +0800 -Subject: [PATCH] Fix stack overflow in print_usage - -src/parseopt.c (print_usage): Fix length calculation for long -options. - -Conflict:NA -Reference:https://git.gnu.org.ua/gdbm.git/commit/?id=48e22dd008138bb97d2a673af9da5b1b3457c86f - ---- - src/parseopt.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/parseopt.c b/src/parseopt.c -index bc47597..efa12c8 100644 ---- a/src/parseopt.c -+++ b/src/parseopt.c -@@ -495,7 +495,7 @@ print_usage (void) - { - struct gdbm_option *opt = option_tab + idxbuf[i]; - const char *arg = opt->opt_arg ? gettext (opt->opt_arg) : NULL; -- size_t len = 3 + strlen (opt->opt_long) -+ size_t len = 5 + strlen (opt->opt_long) - + (arg ? 1 + strlen (arg) : 0); - if (n + len > RMARGIN) FLUSH; - buf[n++] = ' '; diff --git a/gdbm-1.20.tar.gz b/gdbm-1.20.tar.gz deleted file mode 100644 index 34975f16af36286ddef5f3c00cbf250f2f29eb04..0000000000000000000000000000000000000000 Binary files a/gdbm-1.20.tar.gz and /dev/null differ diff --git a/gdbm-1.22.tar.gz b/gdbm-1.22.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..dd5350d2fcffaaa22507e60b8d3c01991e30afa2 Binary files /dev/null and b/gdbm-1.22.tar.gz differ diff --git a/gdbm.spec b/gdbm.spec index c986bb123cca97dfc8a33965b2bdcff98324fc17..2117fcd371430cdf6a8a1eb75b32bcbe038a009e 100644 --- a/gdbm.spec +++ b/gdbm.spec @@ -1,14 +1,12 @@ Name: gdbm -Version: 1.20 -Release: 3 +Version: 1.22 +Release: 1 Epoch: 1 Summary: A library of database functions that work similar to the standard UNIX dbm License: GPLv3+ URL: http://www.gnu.org/software/gdbm/ Source0: http://ftp.gnu.org/gnu/gdbm/gdbm-%{version}.tar.gz -Patch0: 0000-fix-gdbm_dump-usage-stack-overflow.patch - BuildRequires: gcc libtool gettext readline-devel Provides: %{name}-libs @@ -98,6 +96,9 @@ fi %{_infodir}/*.info* %changelog +* Wed Nov 17 2021 Wenchao Hao - 1.22-1 +- Update to gdbm-1.22 + * Fri Sep 10 2021 geruijun - 1.20-3 - DESC: fix stack overflow in print_usage