diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2021-01-19 18:35:41 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2021-01-19 18:35:41 +0100 |
commit | d9a5d1faf0400b9da47dee516c035da1a93dc12c (patch) | |
tree | bfb6aee8a66a612618e56874a933b3b98529adb9 /plugins/check_curl.c | |
parent | ede8defad4f44478f69e148022b542a694498087 (diff) | |
download | monitoring-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c index ef77918b..a3f63f16 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 | ||