summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/http-fetcher/files')
-rw-r--r--dev-libs/http-fetcher/files/buffer-overflow-gentoo.patch35
-rw-r--r--dev-libs/http-fetcher/files/digest-http-fetcher-1.0.11
-rw-r--r--dev-libs/http-fetcher/files/digest-http-fetcher-1.0.1-r11
-rw-r--r--dev-libs/http-fetcher/files/digest-http-fetcher-1.0.21
-rw-r--r--dev-libs/http-fetcher/files/errno-link-gentoo.patch20
5 files changed, 58 insertions, 0 deletions
diff --git a/dev-libs/http-fetcher/files/buffer-overflow-gentoo.patch b/dev-libs/http-fetcher/files/buffer-overflow-gentoo.patch
new file mode 100644
index 000000000000..ac54815a0758
--- /dev/null
+++ b/dev-libs/http-fetcher/files/buffer-overflow-gentoo.patch
@@ -0,0 +1,35 @@
+--- http_fetcher.c Tue Jul 31 03:47:15 2001
++++ http_fetcher.patch.c Thu Jan 2 22:24:48 2003
+@@ -94,7 +94,7 @@
+ * request */
+ sprintf(requestBuf, "GET / %s\n", HTTP_VERSION);
+ else
+- sprintf(requestBuf, "GET %s %s\n", charIndex, HTTP_VERSION);
++ snprintf(requestBuf, sizeof(requestBuf)/4-1,"GET %s %s\n", charIndex, HTTP_VERSION);
+
+ /* Null out the end of the hostname if need be */
+ if(charIndex != NULL)
+@@ -102,13 +102,13 @@
+ /* Use Host: even though 1.0 doesn't specify it. Some servers
+ * won't play nice if we don't send Host, and it shouldn't hurt anything */
+ strcat(requestBuf, "Host: ");
+- strcat(requestBuf, host);
++ strncat(requestBuf, host, sizeof(requestBuf)/4-1);
+ strcat(requestBuf, "\n");
+
+ if(!hideReferer && referer != NULL) /* NO default referer */
+ {
+ strcat(requestBuf, "Referer: ");
+- strcat(requestBuf, referer);
++ strncat(requestBuf, referer, sizeof(requestBuf)/4-1);
+ strcat(requestBuf, "\n");
+ }
+
+@@ -123,7 +123,7 @@
+ else if(!hideUserAgent)
+ {
+ strcat(requestBuf, "User-Agent: ");
+- strcat(requestBuf, userAgent);
++ strncat(requestBuf, userAgent, sizeof(requestBuf)/4-1);
+ strcat(requestBuf, "\n");
+ }
diff --git a/dev-libs/http-fetcher/files/digest-http-fetcher-1.0.1 b/dev-libs/http-fetcher/files/digest-http-fetcher-1.0.1
new file mode 100644
index 000000000000..49a19aef6bdb
--- /dev/null
+++ b/dev-libs/http-fetcher/files/digest-http-fetcher-1.0.1
@@ -0,0 +1 @@
+MD5 3fd1b6c1cada35279f08bf6874dab98e http_fetcher-1.0.1.tar.gz 173544
diff --git a/dev-libs/http-fetcher/files/digest-http-fetcher-1.0.1-r1 b/dev-libs/http-fetcher/files/digest-http-fetcher-1.0.1-r1
new file mode 100644
index 000000000000..49a19aef6bdb
--- /dev/null
+++ b/dev-libs/http-fetcher/files/digest-http-fetcher-1.0.1-r1
@@ -0,0 +1 @@
+MD5 3fd1b6c1cada35279f08bf6874dab98e http_fetcher-1.0.1.tar.gz 173544
diff --git a/dev-libs/http-fetcher/files/digest-http-fetcher-1.0.2 b/dev-libs/http-fetcher/files/digest-http-fetcher-1.0.2
new file mode 100644
index 000000000000..6e838952469e
--- /dev/null
+++ b/dev-libs/http-fetcher/files/digest-http-fetcher-1.0.2
@@ -0,0 +1 @@
+MD5 e522fc221e94fa1735667a5d61a72b78 http_fetcher-1.0.2.tar.gz 277015
diff --git a/dev-libs/http-fetcher/files/errno-link-gentoo.patch b/dev-libs/http-fetcher/files/errno-link-gentoo.patch
new file mode 100644
index 000000000000..4ba2771291fa
--- /dev/null
+++ b/dev-libs/http-fetcher/files/errno-link-gentoo.patch
@@ -0,0 +1,20 @@
+diff -ur http_fetcher-1.0.1/src/http_fetcher.c http_fetcher-1.0.1~/src/http_fetcher.c
+--- http_fetcher-1.0.1/src/http_fetcher.c 2001-07-30 13:47:15.000000000 -0500
++++ http_fetcher-1.0.1~/src/http_fetcher.c 2003-03-24 11:38:19.000000000 -0600
+@@ -24,6 +24,7 @@
+ #include <netinet/in.h>
+ #include <sys/types.h>
+ #include <sys/time.h>
++#include <errno.h>
+ #include "http_fetcher.h"
+
+ /* Globals */
+@@ -457,7 +458,6 @@
+ */
+ const char *http_strerror()
+ {
+- extern int errno;
+ extern int *sys_errlist[];
+
+ if(errorSource == ERRNO)
+Only in http_fetcher-1.0.1~/src: http_fetcher.c~