summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Popov <pinkbyte@gentoo.org>2016-07-07 22:33:15 +0300
committerSergey Popov <pinkbyte@gentoo.org>2016-07-07 23:50:58 +0300
commit34cabded1facfd9aa06d1b6b4de0bbe4ebc7842e (patch)
tree03da86ea08fb07ff05a8058c468b260c060e5f82 /net-proxy/squidguard/files/squidguard-1.4-vsnprintf.patch
parentnet-news/quiterss: add missing [ssl] USE dep on qtcore/qtnetwork (diff)
downloadgentoo-34cabded1facfd9aa06d1b6b4de0bbe4ebc7842e.tar.gz
gentoo-34cabded1facfd9aa06d1b6b4de0bbe4ebc7842e.tar.bz2
gentoo-34cabded1facfd9aa06d1b6b4de0bbe4ebc7842e.zip
net-proxy/squidguard: drop old vulnerable version
Gentoo-Bug: 586668 Package-Manager: portage-2.3.0_rc1
Diffstat (limited to 'net-proxy/squidguard/files/squidguard-1.4-vsnprintf.patch')
-rw-r--r--net-proxy/squidguard/files/squidguard-1.4-vsnprintf.patch44
1 files changed, 0 insertions, 44 deletions
diff --git a/net-proxy/squidguard/files/squidguard-1.4-vsnprintf.patch b/net-proxy/squidguard/files/squidguard-1.4-vsnprintf.patch
deleted file mode 100644
index bf4efec6042..00000000000
--- a/net-proxy/squidguard/files/squidguard-1.4-vsnprintf.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-diff -Nru squidGuard-1.4.orig/configure.in squidGuard-1.4/configure.in
---- squidGuard-1.4.orig/configure.in 2009-04-26 12:28:49.000000000 +0000
-+++ squidGuard-1.4/configure.in 2009-04-26 12:29:35.000000000 +0000
-@@ -421,7 +421,7 @@
- AC_CHECK_FUNCS(regexec, , AC_MSG_ERROR([No regexec library function.]))
- AC_CHECK_FUNCS(strdup, , AC_MSG_ERROR([No strdup library function.]))
- AC_CHECK_FUNCS(strerror, , AC_MSG_ERROR([No strerror library function.]))
--AC_CHECK_FUNCS(vsprintf, , AC_MSG_ERROR([No vsprintf library function.]))
-+AC_CHECK_FUNCS(vsnprintf, , AC_MSG_ERROR([No vsnprintf library function.]))
- AC_CHECK_FUNCS(sigaction)
- AC_CHECK_FUNCS(signal)
-
-diff -Nru squidGuard-1.4.orig/src/sgLog.c squidGuard-1.4/src/sgLog.c
---- squidGuard-1.4.orig/src/sgLog.c 2007-11-16 16:58:32.000000000 +0000
-+++ squidGuard-1.4/src/sgLog.c 2009-04-26 12:31:40.000000000 +0000
-@@ -55,7 +55,7 @@
- char msg[MAX_BUF];
- va_list ap;
- VA_START(ap, format);
-- if(vsprintf(msg, format, ap) > (MAX_BUF - 1))
-+ if(vsnprintf(msg, MAX_BUF, format, ap) > (MAX_BUF - 1))
- fprintf(stderr,"overflow in vsprintf (sgLog): %s",strerror(errno));
- va_end(ap);
- date = niso(0);
-@@ -87,8 +87,8 @@
- char msg[MAX_BUF];
- va_list ap;
- VA_START(ap, format);
-- if(vsprintf(msg, format, ap) > (MAX_BUF - 1))
-- sgLogFatalError("overflow in vsprintf (sgLogError): %s",strerror(errno));
-+ if(vsnprintf(msg, MAX_BUF, format, ap) > (MAX_BUF - 1))
-+ fprintf(stderr,"overflow in vsprintf (sgLogError): %s",strerror(errno));
- va_end(ap);
- sgLog(globalErrorLog,"%s",msg);
- }
-@@ -104,7 +104,7 @@
- char msg[MAX_BUF];
- va_list ap;
- VA_START(ap, format);
-- if(vsprintf(msg, format, ap) > (MAX_BUF - 1))
-+ if(vsnprintf(msg, MAX_BUF, format, ap) > (MAX_BUF - 1))
- return;
- va_end(ap);
- sgLog(globalErrorLog,"%s",msg);