]> granicus.if.org Git - curl/commitdiff
quiche: decrease available buffer size, don't assign it!
authorDaniel Stenberg <daniel@haxx.se>
Thu, 29 Aug 2019 16:55:29 +0000 (18:55 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 30 Aug 2019 15:41:11 +0000 (17:41 +0200)
Found-by: Jeremy Lainé
lib/vquic/quiche.c

index a17bd6a1cb5f5502cf7f2b039967188a0d705d7f..7968f7e179c8432f7f17e9e8507b0046460e6c27 100644 (file)
@@ -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 */
       }