pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/inputmethod Fix buffer over run in mkdic, found by sta...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/269e0a972802
branches:  trunk
changeset: 377798:269e0a972802
user:      rin <rin%pkgsrc.org@localhost>
date:      Fri Mar 23 04:43:36 2018 +0000

description:
Fix buffer over run in mkdic, found by stack protector.
Bump PKGREVISION for Canna-server.

diffstat:

 inputmethod/canna-server/Makefile                  |   3 ++-
 inputmethod/canna/distinfo                         |   3 ++-
 inputmethod/canna/patches/patch-cmd_catdic_rutil.c |  15 +++++++++++++++
 3 files changed, 19 insertions(+), 2 deletions(-)

diffs (47 lines):

diff -r 8ea530d334e5 -r 269e0a972802 inputmethod/canna-server/Makefile
--- a/inputmethod/canna-server/Makefile Fri Mar 23 04:31:53 2018 +0000
+++ b/inputmethod/canna-server/Makefile Fri Mar 23 04:43:36 2018 +0000
@@ -1,5 +1,6 @@
-# $NetBSD: Makefile,v 1.24 2015/10/18 03:58:31 tsutsui Exp $
+# $NetBSD: Makefile,v 1.25 2018/03/23 04:43:36 rin Exp $
 
+PKGREVISION=   1
 CANNA_MODULE=  server
 
 .include "../../inputmethod/canna/Makefile.common"
diff -r 8ea530d334e5 -r 269e0a972802 inputmethod/canna/distinfo
--- a/inputmethod/canna/distinfo        Fri Mar 23 04:31:53 2018 +0000
+++ b/inputmethod/canna/distinfo        Fri Mar 23 04:43:36 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.17 2017/07/22 17:53:16 maya Exp $
+$NetBSD: distinfo,v 1.18 2018/03/23 04:43:36 rin Exp $
 
 SHA1 (Canna37p3.tar.bz2) = e39eece7c70c669dd46dd74b26121a60a2496fde
 RMD160 (Canna37p3.tar.bz2) = 33e5eb9e2dc144835db838612897e652acbc60ed
@@ -16,6 +16,7 @@
 SHA1 (patch-canuum_printf.c) = c05ef114fae689855989d5d5eded2f734c62e12e
 SHA1 (patch-canuum_termcap.c) = 958015b3bf4e9f89703e198c1ed28d51ae3f8c4e
 SHA1 (patch-canuum_termio.c) = df9e68c8fb564ee4c4367acf6b042c253d17e525
+SHA1 (patch-cmd_catdic_rutil.c) = f9b3d866c089cc6a49d8f90c216fb27cbbc55e19
 SHA1 (patch-cmd_cmd.tmpl) = f6ec97c273aa84eb84bdd24cbe16aaf7e696e041
 SHA1 (patch-dic_phono_Imakefile) = 4e1210517317b57796cad5b350de41e1f0d8157d
 SHA1 (patch-lib_RKC_convert.c) = f196cfa3db3ef163c1869ca6bfd3f22170997aef
diff -r 8ea530d334e5 -r 269e0a972802 inputmethod/canna/patches/patch-cmd_catdic_rutil.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/inputmethod/canna/patches/patch-cmd_catdic_rutil.c        Fri Mar 23 04:43:36 2018 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-cmd_catdic_rutil.c,v 1.1 2018/03/23 04:43:36 rin Exp $
+
+Fix buffer over run in mkdic, found by stack protector.
+
+--- cmd/catdic/rutil.c.orig    2018-03-23 13:28:58.453648806 +0900
++++ cmd/catdic/rutil.c 2018-03-23 13:29:11.364912041 +0900
+@@ -308,7 +308,7 @@ int cn;
+ unsigned char *dicname;
+ int mode ;
+ {
+-  char ans[79];
++  char ans[80];
+   int ret = 0;
+ 
+   static int  majv , minv , bak ;



Home | Main Index | Thread Index | Old Index