diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-05-06 23:31:43 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-05-06 23:41:13 +0200 |
commit | ddafe011cce5d2a6c8be4b387a25fd9e0e61aef3 (patch) | |
tree | e3d900427f496010558d9f9af1eee607da4d7f84 /lib/dynbuf.h | |
parent | e1d81b52c0e3207163c18d5b0258e8dd1ab85d1e (diff) | |
download | curl-ddafe011cce5d2a6c8be4b387a25fd9e0e61aef3.tar.gz |
http2: simplify and clean up trailer handlingbagder/http2-trailers-simplified
Triggered by a crash detected by OSS-Fuzz after the dynbuf introduction in
ed35d6590e72. This should make the trailer handling more straight forward and
hopefully less error-prone.
Deliver the trailer header to the callback already at receive-time. No
longer caches the trailers to get delivered at end of stream.
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22030
Diffstat (limited to 'lib/dynbuf.h')
-rw-r--r-- | lib/dynbuf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dynbuf.h b/lib/dynbuf.h index b4932b535..e21294115 100644 --- a/lib/dynbuf.h +++ b/lib/dynbuf.h @@ -53,7 +53,7 @@ size_t Curl_dyn_len(const struct dynbuf *s); #define DYN_HAXPROXY 2048 #define DYN_HTTP_REQUEST (128*1024) #define DYN_H2_HEADERS (128*1024) -#define DYN_H2_TRAILERS (128*1024) +#define DYN_H2_TRAILER 4096 #define DYN_APRINTF 8000000 #define DYN_RTSP_REQ_HEADER (64*1024) #define DYN_TRAILERS (64*1024) |