diff options
author | martin <martin@pkgsrc.org> | 2006-06-20 09:36:20 +0000 |
---|---|---|
committer | martin <martin@pkgsrc.org> | 2006-06-20 09:36:20 +0000 |
commit | 8fbd8c8f2214a617f31053275b7d8cf27f45c185 (patch) | |
tree | 0d9111b6825d726caf0b5825902e3c921346f04e /x11 | |
parent | 5fd850086425ec69d3af656c0a55e93df260da61 (diff) | |
download | pkgsrc-8fbd8c8f2214a617f31053275b7d8cf27f45c185.tar.gz |
Avoid a NULL pointer deref.
Diffstat (limited to 'x11')
-rw-r--r-- | x11/xmon/distinfo | 3 | ||||
-rw-r--r-- | x11/xmon/patches/patch-ad | 11 |
2 files changed, 13 insertions, 1 deletions
diff --git a/x11/xmon/distinfo b/x11/xmon/distinfo index 448fcb76b57..6edf46fc305 100644 --- a/x11/xmon/distinfo +++ b/x11/xmon/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.3 2005/02/23 17:36:24 wiz Exp $ +$NetBSD: distinfo,v 1.4 2006/06/20 09:36:20 martin Exp $ SHA1 (xmon.1.5.4.tar.gz) = 646236e6abe38d8049112eea534423550431cd1a RMD160 (xmon.1.5.4.tar.gz) = a0d304769348215756de085ab1e14bbd2541cb25 @@ -6,3 +6,4 @@ Size (xmon.1.5.4.tar.gz) = 69490 bytes SHA1 (patch-aa) = 6f927e32fc7097f5a16355e3312b470d979be985 SHA1 (patch-ab) = 2b23ab7d8f9fcc2d627320a2aa23e425365a59ec SHA1 (patch-ac) = f532bb53d4c08b507595116e09e2f7a2de5c6b9e +SHA1 (patch-ad) = 1a4692da5bd330196a17e2cbe8e20650f3faec83 diff --git a/x11/xmon/patches/patch-ad b/x11/xmon/patches/patch-ad new file mode 100644 index 00000000000..f2179afde89 --- /dev/null +++ b/x11/xmon/patches/patch-ad @@ -0,0 +1,11 @@ +--- decode11.c.orig 1997-02-07 03:45:32.000000000 +0100 ++++ decode11.c 2006-06-20 11:32:55.000000000 +0200 +@@ -1080,7 +1080,7 @@ + Bool real_event; + { + short Event = IByte (&buf[0]) & 0x7f; +- int fd = server->fdd->fd; ++ int fd = server ? server->fdd->fd : -1; + Bool extended_event = False; + + if (real_event) |