diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-08-29 18:55:29 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-08-30 17:41:11 +0200 |
commit | 4d9e3247718654cfce75e847615d0dcebbc1dba6 (patch) | |
tree | 65d8758830bd60c3f6ee1891b02d9b3eb8421f7a | |
parent | db8f760319668548d93ab0c023633293514d8137 (diff) |
quiche: decrease available buffer size, don't assign it!
Found-by: Jeremy Lainé
-rw-r--r-- | lib/vquic/quiche.c | 2 |
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 */ } |