1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/x11/XFree86-4/files/patch-j
Kris Kennaway ea98d5a80b Fix the known root hole. This port is still dangerous.
Submitted by:	Trevor Johnson <trevor@jpj.net> (patch-i)
		Doug Rabson <dfr@freebsd.org> (patch-j)
2000-06-09 06:34:22 +00:00

16 lines
409 B
Plaintext

--- programs/Xserver/xkb/ddxLoad.c~ 1999/12/05 01:22:09
+++ programs/Xserver/xkb/ddxLoad.c 2000/05/24 15:08:12
@@ -237,6 +237,13 @@
sprintf(keymap,"server-%s",display);
}
else {
+ if (strlen(names->keymap) > PATH_MAX - 1) {
+#ifdef DEBUG
+ ErrorF("name of keymap (%s) exceeds max length\n",
+ names->keymap);
+#endif
+ return False;
+ }
strcpy(keymap,names->keymap);
}