From 1b247c2bf9018c77563962ce8ddcd2c40b493c4d Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Fri, 7 Jun 2002 07:06:57 +0000 Subject: Fix a potentially exploitable format string vulnerability and bump PORTREVISION --- net-mgmt/icmpmonitor/Makefile | 1 + net-mgmt/icmpmonitor/files/patch-aa | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 net-mgmt/icmpmonitor/files/patch-aa (limited to 'net-mgmt') diff --git a/net-mgmt/icmpmonitor/Makefile b/net-mgmt/icmpmonitor/Makefile index be42b8e60a33..a3917d77da36 100644 --- a/net-mgmt/icmpmonitor/Makefile +++ b/net-mgmt/icmpmonitor/Makefile @@ -7,6 +7,7 @@ PORTNAME= icmpmonitor PORTVERSION= 1.1 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= icmpmonitor diff --git a/net-mgmt/icmpmonitor/files/patch-aa b/net-mgmt/icmpmonitor/files/patch-aa new file mode 100644 index 000000000000..b13715ae0e7f --- /dev/null +++ b/net-mgmt/icmpmonitor/files/patch-aa @@ -0,0 +1,20 @@ +--- icmpmonitor.c.orig Fri Jun 7 00:05:24 2002 ++++ icmpmonitor.c Fri Jun 7 00:05:11 2002 +@@ -160,7 +160,7 @@ + /* protos */ + static void logopen(void); + static void logclose(void); +-static void log(int type, char *format, ...); ++static void log(int type, char *format, ...) __printflike(2, 3); + static int gethostaddr(const char *name); + static void read_hosts(const char *cfg_file_name); + static void init_hosts(void); +@@ -698,7 +698,7 @@ + # endif + #endif + #if HAVE_SYSLOG +- syslog(type,buffer); ++ syslog(type,"%s",buffer); + #endif + } else + { -- cgit v1.2.3