diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-05-06 23:31:43 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-05-07 09:49:51 +0200 |
commit | 54a2b63c704cd963dd17101477c62afd30d1b319 (patch) | |
tree | f9d033beb66bf57e02c83c025e9bcac15421296c /lib/dynbuf.h | |
parent | 7ae880190126bb5c5a4698f1b290457ea54d78c0 (diff) |
http2: simplify and clean up trailer handling
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
Closes #5348
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) |