1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-24 21:01:20 +00:00

Fix buffer overflow.

NOTE: kon is installed with root-setuid.  Users are encouraged to update
      this port.

Reported by:	UNYUN <shadowpenguin@BACKSECTION.NET>
	via:	BUGTRAQ-JP List <BUGTRAQ-JP@SECURITYFOCUS.COM>
	 as:	[SPSadvisory#36]Linux /usr/bin/kon buffer overflow
This commit is contained in:
Jun Kuriyama 2000-05-08 06:48:40 +00:00
parent 7945f5e646
commit aa52b608e5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=28359

View File

@ -0,0 +1,11 @@
--- src/mouse.c~ Mon Jan 27 20:40:27 1997
+++ src/mouse.c Mon May 8 15:39:35 2000
@@ -176,7 +176,7 @@
mouseType = MOUSE_NONE;
mInfo.has_mouse = FALSE;
- sscanf(config, "%s", name);
+ strncpy(name, config, MAX_COLS);
for (p = mice; p->name != NULL; p++) {
if (strcasecmp(name, p->name) == 0) {
mouseType = p->type;