mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-24 15:53:05 -04:00
check_curl: fixed a potential buffer overflow in url buffer
This commit is contained in:
parent
ede8defad4
commit
d9a5d1faf0
1 changed files with 1 additions and 1 deletions
|
|
@ -1041,7 +1041,7 @@ redir (curlhelp_write_curlbuf* header_buf)
|
|||
const UriPathSegmentA* p = uri.pathHead;
|
||||
for (; p; p = p->next) {
|
||||
strncat (new_url, "/", DEFAULT_BUFFER_SIZE);
|
||||
strncat (new_url, uri_string (p->text, buf, DEFAULT_BUFFER_SIZE), DEFAULT_BUFFER_SIZE);
|
||||
strncat (new_url, uri_string (p->text, buf, DEFAULT_BUFFER_SIZE), DEFAULT_BUFFER_SIZE-1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue