SHA256
1
0
forked from pool/dictd

Update to 1.13.3:

- dictd: fix buffer overflow in first/last search strategies.
This commit is contained in:
Matej Cepl 2024-11-18 12:10:58 +01:00
parent e0a55a2436
commit f2921cc646
Signed by: mcepl
GPG Key ID: 79205802880BC9D8
5 changed files with 13 additions and 33 deletions

BIN
dictd-1.13.2.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
dictd-1.13.3.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Nov 18 11:00:22 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- 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 <mcepl@cepl.eu>

View File

@ -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

View File

@ -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));