summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-08-29 18:55:29 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-08-29 18:55:29 +0200
commitdea1d0a0d15dc732ad62f6378432f6a27bcca541 (patch)
treebe8679af002b5703481cce9795a21abdf9a2fe55
parent0690b3330cee7f7d9469300d2c16c7a6b850281a (diff)
downloadcurl-dea1d0a0d15dc732ad62f6378432f6a27bcca541.tar.gz
quiche: decrease available buffer size, don't assign it!
Found-by: Jeremy Lainé
-rw-r--r--lib/vquic/quiche.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vquic/quiche.c b/lib/vquic/quiche.c
index a17bd6a1c..7968f7e17 100644
--- a/lib/vquic/quiche.c
+++ b/lib/vquic/quiche.c
@@ -442,7 +442,7 @@ static ssize_t h3_stream_recv(struct connectdata *conn,
buf[0] = '\r';
buf[1] = '\n';
buf += 2;
- buffersize = 2;
+ buffersize -= 2;
stream->firstbody = TRUE;
recvd = 2; /* two bytes already */
}