summaryrefslogtreecommitdiffstats
path: root/plugins/check_curl.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2021-01-19 17:35:41 (GMT)
committerAndreas Baumann <mail@andreasbaumann.cc>2021-01-19 17:35:41 (GMT)
commitd9a5d1faf0400b9da47dee516c035da1a93dc12c (patch)
treebfb6aee8a66a612618e56874a933b3b98529adb9 /plugins/check_curl.c
parentede8defad4f44478f69e148022b542a694498087 (diff)
downloadmonitoring-plugins-d9a5d1faf0400b9da47dee516c035da1a93dc12c.tar.gz
check_curl: fixed a potential buffer overflow in url buffer
Diffstat (limited to 'plugins/check_curl.c')
-rw-r--r--plugins/check_curl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c
index ef77918..a3f63f1 100644
--- a/plugins/check_curl.c
+++ b/plugins/check_curl.c
@@ -1041,7 +1041,7 @@ redir (curlhelp_write_curlbuf* header_buf)
1041 const UriPathSegmentA* p = uri.pathHead; 1041 const UriPathSegmentA* p = uri.pathHead;
1042 for (; p; p = p->next) { 1042 for (; p; p = p->next) {
1043 strncat (new_url, "/", DEFAULT_BUFFER_SIZE); 1043 strncat (new_url, "/", DEFAULT_BUFFER_SIZE);
1044 strncat (new_url, uri_string (p->text, buf, DEFAULT_BUFFER_SIZE), DEFAULT_BUFFER_SIZE); 1044 strncat (new_url, uri_string (p->text, buf, DEFAULT_BUFFER_SIZE), DEFAULT_BUFFER_SIZE-1);
1045 } 1045 }
1046 } 1046 }
1047 1047