mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 09:21:50 -05:00
conncache: download buffer needs +1 size for trailing zero
Follow-up to c4e6968127e Detected by OSS-Fuzz: https://oss-fuzz.com/testcase-detail/5727799779524608
This commit is contained in:
parent
4bd09877e3
commit
8346c90b78
@ -534,7 +534,7 @@ Curl_conncache_extract_oldest(struct Curl_easy *data)
|
||||
void Curl_conncache_close_all_connections(struct conncache *connc)
|
||||
{
|
||||
struct connectdata *conn;
|
||||
char buffer[READBUFFER_MIN];
|
||||
char buffer[READBUFFER_MIN + 1];
|
||||
if(!connc->closure_handle)
|
||||
return;
|
||||
connc->closure_handle->state.buffer = buffer;
|
||||
|
Loading…
x
Reference in New Issue
Block a user