forked from pool/dictd
Update to 1.13.3:
- dictd: fix buffer overflow in first/last search strategies.
This commit is contained in:
parent
e0a55a2436
commit
f2921cc646
BIN
dictd-1.13.2.tar.gz
(Stored with Git LFS)
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
BIN
dictd-1.13.3.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -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>
|
||||
|
||||
|
11
dictd.spec
11
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
|
||||
|
@ -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));
|
Loading…
Reference in New Issue
Block a user