aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-06-09 14:34:22 +0800
committerkris <kris@FreeBSD.org>2000-06-09 14:34:22 +0800
commit7721c5342d42de108da545fc7ed79299e5ab9c09 (patch)
treeeb4372a083dd15467344a1a4b543c52a9a006042
parent758202824d52e2a8e5011dfca9f8e56d4c1a91ed (diff)
downloadfreebsd-ports-gnome-7721c5342d42de108da545fc7ed79299e5ab9c09.tar.gz
freebsd-ports-gnome-7721c5342d42de108da545fc7ed79299e5ab9c09.tar.zst
freebsd-ports-gnome-7721c5342d42de108da545fc7ed79299e5ab9c09.zip
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)
-rw-r--r--x11/XFree86-4/files/patch-j15
1 files changed, 15 insertions, 0 deletions
diff --git a/x11/XFree86-4/files/patch-j b/x11/XFree86-4/files/patch-j
new file mode 100644
index 000000000000..2711f24562b3
--- /dev/null
+++ b/x11/XFree86-4/files/patch-j
@@ -0,0 +1,15 @@
+--- 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);
+ }