aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2002-06-07 15:06:57 +0800
committerkris <kris@FreeBSD.org>2002-06-07 15:06:57 +0800
commit17cac00384a89cc12309776cf6ac0ffc0f2a8642 (patch)
tree7791ec9d8b0ba95851e9affe2fb1c26e56515d82 /net
parent86f6aaadefdc90570e46b7bdd7c9a735d692784a (diff)
downloadfreebsd-ports-gnome-17cac00384a89cc12309776cf6ac0ffc0f2a8642.tar.gz
freebsd-ports-gnome-17cac00384a89cc12309776cf6ac0ffc0f2a8642.tar.zst
freebsd-ports-gnome-17cac00384a89cc12309776cf6ac0ffc0f2a8642.zip
Fix a potentially exploitable format string vulnerability and bump
PORTREVISION
Diffstat (limited to 'net')
-rw-r--r--net/icmpmonitor/Makefile1
-rw-r--r--net/icmpmonitor/files/patch-aa20
2 files changed, 21 insertions, 0 deletions
diff --git a/net/icmpmonitor/Makefile b/net/icmpmonitor/Makefile
index be42b8e60a33..a3917d77da36 100644
--- a/net/icmpmonitor/Makefile
+++ b/net/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/icmpmonitor/files/patch-aa b/net/icmpmonitor/files/patch-aa
new file mode 100644
index 000000000000..b13715ae0e7f
--- /dev/null
+++ b/net/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
+ {