summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2021-01-19 17:35:41 (GMT)
committerJan Wagner <waja@cyconet.org>2021-04-10 11:43:12 (GMT)
commitd5b81e8966d71ac2f13465fa308c9910b0e31992 (patch)
tree76deca16c3e8341cb914bbcec349e7ec7b97374b
parent0484aed02bd8fbe07f2b9a1dd8357d12b7112018 (diff)
downloadmonitoring-plugins-d5b81e8.tar.gz
check_curl: fixed a potential buffer overflow in url buffer
-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