summaryrefslogtreecommitdiff
path: root/net-misc/axel/files/axel-2.4-bffr-overflow.patch
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/axel/files/axel-2.4-bffr-overflow.patch')
-rw-r--r--net-misc/axel/files/axel-2.4-bffr-overflow.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/net-misc/axel/files/axel-2.4-bffr-overflow.patch b/net-misc/axel/files/axel-2.4-bffr-overflow.patch
new file mode 100644
index 000000000000..24fae8ce19c0
--- /dev/null
+++ b/net-misc/axel/files/axel-2.4-bffr-overflow.patch
@@ -0,0 +1,16 @@
+ http.c | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/http.c b/http.c
+index 5d64e9b..db91701 100644
+--- a/http.c
++++ b/http.c
+@@ -164,7 +164,7 @@ int http_exec( http_t *conn )
+ {
+ i ++;
+ }
+- strncat( conn->headers, s, MAX_QUERY );
++ strncat( conn->headers, s, MAX_QUERY - 1);
+ }
+
+ #ifdef DEBUG