aboutsummaryrefslogtreecommitdiffstats
path: root/main/nginx/nginx-module-vts~fix-uri-overflow.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/nginx/nginx-module-vts~fix-uri-overflow.patch')
-rw-r--r--main/nginx/nginx-module-vts~fix-uri-overflow.patch30
1 files changed, 0 insertions, 30 deletions
diff --git a/main/nginx/nginx-module-vts~fix-uri-overflow.patch b/main/nginx/nginx-module-vts~fix-uri-overflow.patch
deleted file mode 100644
index 840b5bc0805..00000000000
--- a/main/nginx/nginx-module-vts~fix-uri-overflow.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From 5c58aaaa0e3ade270ef0d0534def769a4b3a8b26 Mon Sep 17 00:00:00 2001
-From: spacewander <spacewanderlzx@gmail.com>
-Date: Thu, 20 Aug 2020 16:34:58 +0800
-Subject: [PATCH] fix: limit the r->uri search scope to avoid overflow
-
-r->uri doesn't end with '\0'.
-
----
- src/ngx_http_vhost_traffic_status_display.c | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-Patch-Source: https://github.com/vozlt/nginx-module-vts/pull/188
-
-diff --git a/src/ngx_http_vhost_traffic_status_display.c b/src/ngx_http_vhost_traffic_status_display.c
-index c0d106a..10b5a62 100644
---- a/src/ngx_http_vhost_traffic_status_display.c
-+++ b/src/ngx_http_vhost_traffic_status_display.c
-@@ -38,10 +38,10 @@ ngx_http_vhost_traffic_status_display_handler(ngx_http_request_t *r)
-
- len = 0;
-
-- p = (u_char *) ngx_strchr(r->uri.data, '/');
-+ p = (u_char *) ngx_strlchr(r->uri.data, r->uri.data + r->uri.len, '/');
-
- if (p) {
-- p = (u_char *) ngx_strchr(p + 1, '/');
-+ p = (u_char *) ngx_strlchr(p + 1, r->uri.data + r->uri.len, '/');
- len = r->uri.len - (p - r->uri.data);
- }
-