]> git.ipfire.org Git - thirdparty/curl.git/commit
http2: simplify and clean up trailer handling
authorDaniel Stenberg <daniel@haxx.se>
Wed, 6 May 2020 21:31:43 +0000 (23:31 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 7 May 2020 07:49:51 +0000 (09:49 +0200)
commit54a2b63c704cd963dd17101477c62afd30d1b319
treef9d033beb66bf57e02c83c025e9bcac15421296c
parent7ae880190126bb5c5a4698f1b290457ea54d78c0
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
lib/dynbuf.h
lib/http.h
lib/http2.c