diff --git a/dictd-1.13.2.tar.gz b/dictd-1.13.2.tar.gz deleted file mode 100644 index b1e0b32..0000000 --- a/dictd-1.13.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cf4e2fba0127098968b4b9163c76bd3c44c3f395d541afcb8339fb71b1f8f6f3 -size 317290 diff --git a/dictd-1.13.3.tar.gz b/dictd-1.13.3.tar.gz new file mode 100644 index 0000000..7deec31 --- /dev/null +++ b/dictd-1.13.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:192129dfb38fa723f48a9586c79c5198fc4904fec1757176917314dd073f1171 +size 390047 diff --git a/dictd.changes b/dictd.changes index 6c891df..aee65ff 100644 --- a/dictd.changes +++ b/dictd.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Nov 18 11:00:22 UTC 2024 - Matej Cepl + +- Update to 1.13.3: + - dictd: fix buffer overflow in first/last search strategies. +- Remove upstreamed index-buf-ovrflw.patch. + ------------------------------------------------------------------- Fri Nov 15 12:58:53 UTC 2024 - Matej Cepl diff --git a/dictd.spec b/dictd.spec index 44f1460..0581975 100644 --- a/dictd.spec +++ b/dictd.spec @@ -17,22 +17,19 @@ Name: dictd -Version: 1.13.2 +Version: 1.13.3 Release: 0 Summary: DICT protocol (RFC 2229) server and command-line client License: BSD-3-Clause AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND MIT AND SUSE-Public-Domain Group: Productivity/Office/Dictionary URL: https://github.com/cheusov/dictd -Source0: https://github.com/cheusov/dictd/archive/%{version}.tar.gz#/dictd-%{version}.tar.gz +# Source0: https://github.com/cheusov/dictd/archive/%%{version}.tar.gz#/dictd-%%{version}.tar.gz +Source0: https://sourceforge.net/projects/dict/files/dictd/dictd-%{version}/dictd-%{version}.tar.gz Source1: colorit.conf Source2: dictd.service Source99: dictd-rpmlintrc Patch0: dictd-1.12.1-unused-return.patch -# PATCH-FIX-UPSTREAM index-buf-ovrflw.patch mcepl@suse.com -# A buffer overflow -Patch1: index-buf-ovrflw.patch # BuildRequires: mk-configure -BuildRequires: autoconf BuildRequires: bison BuildRequires: flex BuildRequires: gawk @@ -75,8 +72,6 @@ This package contains development files for the dictd package. %prep %autosetup -p1 -autoreconf --force --install --verbose - %build export LDFLAGS="%{?__global_ldflags}" CPPFLAGS="%{optflags} -fPIC" # export USE_PLUGIN=1 diff --git a/index-buf-ovrflw.patch b/index-buf-ovrflw.patch deleted file mode 100644 index 26b055e..0000000 --- a/index-buf-ovrflw.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff --git a/index.c b/index.c -index ced1459..883a12d 100644 ---- a/index.c -+++ b/index.c -@@ -1505,7 +1505,7 @@ static int dict_search_suffix( - assert (database); - - if (database->index_suffix){ -- buf = (char *) alloca (strlen (word)); -+ buf = (char *) alloca (strlen (word) + 1); - strcpy (buf, word); - - PRINTF(DBG_SEARCH, ("anagram: '%s' ==> ", buf)); -@@ -1549,7 +1549,7 @@ static int dict_search_last ( - assert (database); - - if (database->index_suffix){ -- buf = (char *) alloca (strlen (word)); -+ buf = (char *) alloca (strlen (word) + 1); - strcpy (buf, word); - - PRINTF(DBG_SEARCH, ("anagram: '%s' ==> ", buf));