mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-11 01:30:00 -04:00
check_curl: fixed a potential buffer overflow in url buffer
This commit is contained in:
parent
0484aed02b
commit
d5b81e8966
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