summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonny Davies <woodchip@gentoo.org>2003-10-08 00:57:55 +0000
committerDonny Davies <woodchip@gentoo.org>2003-10-08 00:57:55 +0000
commit091f629fadcaeb2df6ce5bb10ad4c2aa43dc546c (patch)
treeb41d386a165a37cadaca028df38a08c32744dd82 /net-www/mod_gzip/files
parentAdd patch for #22256 (diff)
downloadgentoo-2-091f629fadcaeb2df6ce5bb10ad4c2aa43dc546c.tar.gz
gentoo-2-091f629fadcaeb2df6ce5bb10ad4c2aa43dc546c.tar.bz2
gentoo-2-091f629fadcaeb2df6ce5bb10ad4c2aa43dc546c.zip
Add patch for #22256
Diffstat (limited to 'net-www/mod_gzip/files')
-rw-r--r--net-www/mod_gzip/files/digest-mod_gzip-1.3.26.1a-r11
-rw-r--r--net-www/mod_gzip/files/mod-gzip-debug.patch49
2 files changed, 50 insertions, 0 deletions
diff --git a/net-www/mod_gzip/files/digest-mod_gzip-1.3.26.1a-r1 b/net-www/mod_gzip/files/digest-mod_gzip-1.3.26.1a-r1
new file mode 100644
index 000000000000..2e5c711c6990
--- /dev/null
+++ b/net-www/mod_gzip/files/digest-mod_gzip-1.3.26.1a-r1
@@ -0,0 +1 @@
+MD5 080ccc5d789ed5efa0c0a7625e4fa02d mod_gzip-1.3.26.1a.tgz 137394
diff --git a/net-www/mod_gzip/files/mod-gzip-debug.patch b/net-www/mod_gzip/files/mod-gzip-debug.patch
new file mode 100644
index 000000000000..b1b6d330a4c2
--- /dev/null
+++ b/net-www/mod_gzip/files/mod-gzip-debug.patch
@@ -0,0 +1,49 @@
+--- mod_gzip_debug.c 2003-10-06 18:10:47.000000000 +0200
++++ mod_gzip_debug.patch 2003-10-06 18:13:53.000000000 +0200
+@@ -94,6 +94,7 @@
+ #include "httpd.h"
+ #include "http_config.h"
+ #include "http_log.h"
++#include <stdlib.h>
+
+ #include "mod_gzip.h"
+ #include "mod_gzip_debug.h"
+@@ -125,7 +126,7 @@ void mod_gzip_printf( const char *fmt, .
+
+ va_start( ap, fmt );
+
+- l = vsprintf( log_line, fmt, ap );
++ l = vsnprintf( log_line, sizeof(log_line), "%s", fmt, ap );
+
+ va_end(ap);
+
+@@ -138,6 +139,8 @@ void mod_gzip_printf( const char *fmt, .
+
+ void mod_gzip_printf( const char *fmt, ... )
+ {
++ long rndNum;
++ time_t seed = time(NULL);
+ int l;
+ char *p1;
+ FILE *log;
+@@ -153,6 +156,11 @@ void mod_gzip_printf( const char *fmt, .
+ long pid = (long) getpid();
+ #endif
+
++ srand(seed);
++
++ rndNum = 1+ (int)(1000.0*rand()/(RAND_MAX+1.0));
++ rndNum *= pid;
++
+ #ifdef WIN32
+ sprintf( logname, "c:\\temp\\t%ld.log",(long)pid);
+ #else
+@@ -168,7 +176,7 @@ void mod_gzip_printf( const char *fmt, .
+
+ va_start( ap, fmt );
+
+- l = vsprintf(log_line, fmt, ap);
++ l = vsnprintf(log_line, sizeof(log_line), "%s",fmt, ap);
+
+ p1=log_line;
+ while((*p1!=0)&&(*p1!=13)&&(*p1!=10)) p1++;