aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/FreeWnn-lib/files/patch-ab
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>2000-03-12 15:21:27 +0800
committerasami <asami@FreeBSD.org>2000-03-12 15:21:27 +0800
commit9589c958f4bc5133479d4b6bc2b98d1bb4a59a33 (patch)
treea029152f2fb82c3786902cf5883c7fb4efc144f1 /japanese/FreeWnn-lib/files/patch-ab
parent4a5313a14dfbd8256d173bcd69d62099a5b8cf42 (diff)
downloadfreebsd-ports-gnome-9589c958f4bc5133479d4b6bc2b98d1bb4a59a33.tar.gz
freebsd-ports-gnome-9589c958f4bc5133479d4b6bc2b98d1bb4a59a33.tar.zst
freebsd-ports-gnome-9589c958f4bc5133479d4b6bc2b98d1bb4a59a33.zip
Fix another remote buffer overflow.
Obtained from: Bugtraq-JP (SPS Advisory #34) Submitted by: kuriyama
Diffstat (limited to 'japanese/FreeWnn-lib/files/patch-ab')
-rw-r--r--japanese/FreeWnn-lib/files/patch-ab39
1 files changed, 37 insertions, 2 deletions
diff --git a/japanese/FreeWnn-lib/files/patch-ab b/japanese/FreeWnn-lib/files/patch-ab
index 92af97ad2933..c811c85af5e8 100644
--- a/japanese/FreeWnn-lib/files/patch-ab
+++ b/japanese/FreeWnn-lib/files/patch-ab
@@ -1,5 +1,5 @@
---- ./Wnn/jserver/de.c.orig Fri Aug 19 10:31:23 1994
-+++ ./Wnn/jserver/de.c Fri Aug 1 18:54:55 1997
+--- Wnn/jserver/de.c~ Fri Aug 19 10:31:23 1994
++++ Wnn/jserver/de.c Fri Mar 10 00:44:42 2000
@@ -65,6 +65,9 @@
#include <sys/ioctl.h>
@@ -27,3 +27,38 @@
}
#if defined(hpux) || defined(SOLARIS)
+@@ -542,10 +554,14 @@
+
+ /** **/
+ void
+-gets_cur(cp)
++gets_cur(cp, len)
+ register char *cp;
++int len;
+ {
+- while((*cp++ = getc_cur()) != '\0');
++ int i;
++
++ for (i = 0; i < len; i++)
++ if ((*(cp + i) = getc_cur()) == '\0') break;
+ }
+
+ /** **/
+@@ -648,6 +664,17 @@
+ {
+ register int c;
+ while(c= *p++) putc_cur(c);
++ putc_cur(0);
++}
++
++/** **/
++void
++puts_n_cur(p,n)
++char *p;
++int n;
++{
++ register int c;
++ while((c = *p++) && --n >= 0) putc_cur(c);
+ putc_cur(0);
+ }
+