aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-05-31 17:44:47 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-05-31 17:45:57 +0200
commit8346c90b789e249e42cd1e9f4542f5c55a1cc917 (patch)
tree1f8c9e1756bfb59d08c7248935242aa931b85a32 /lib
parent4bd09877e31845172b27d0d6af7d0adec009d41f (diff)
conncache: download buffer needs +1 size for trailing zero
Follow-up to c4e6968127e Detected by OSS-Fuzz: https://oss-fuzz.com/testcase-detail/5727799779524608
Diffstat (limited to 'lib')
-rw-r--r--lib/conncache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/conncache.c b/lib/conncache.c
index f98e22978..d21a00cfd 100644
--- a/lib/conncache.c
+++ b/lib/conncache.c
@@ -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;