1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/japanese/FreeWnn-server/files/patch-bl
Satoshi Asami b578202a58 Fix another remote buffer overflow.
Obtained from:	Bugtraq-JP (SPS Advisory #34)
Submitted by:	kuriyama
2000-03-12 07:21:27 +00:00

28 lines
955 B
Plaintext

By KATAYAMA Yoshio <kate@pfu.co.jp>
--- Wnn/jserver/de_header.h.ORG Tue Jun 28 11:06:53 1994
+++ Wnn/jserver/de_header.h Sun Jan 24 14:45:58 1999
@@ -240,6 +240,7 @@
extern int get4_cur();
extern int getc_cur();
extern void puts_cur();
+extern void puts_n_cur();
extern void putws_cur();
extern void putnws_cur();
extern void put2_cur();
--- Wnn/jserver/do_dic_no.c.ORG Tue Sep 22 13:49:03 1992
+++ Wnn/jserver/do_dic_no.c Sun Jan 24 14:45:03 1999
@@ -119,9 +119,9 @@
puts_cur(files[fid].name);
if(hfid >= 0) puts_cur(files[hfid].name);
else puts_cur("");
- puts_cur(files[fid].passwd);
- if(hfid >= 0) puts_cur(files[hfid].passwd);
- else puts_cur(jtl->hpasswd);
+ puts_n_cur(files[fid].passwd, WNN_PASSWD_LEN);
+ if(hfid >= 0) puts_n_cur(files[hfid].passwd, WNN_PASSWD_LEN);
+ else puts_n_cur(jtl->hpasswd, WNN_PASSWD_LEN);
put4_cur(jtl->syurui);
put4_cur(jtl->gosuu);
put4_cur(files[fid].localf);