From 54a2b63c704cd963dd17101477c62afd30d1b319 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 6 May 2020 23:31:43 +0200 Subject: 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/http.h | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/http.h') diff --git a/lib/http.h b/lib/http.h index 9ea3eb283..641bc0b93 100644 --- a/lib/http.h +++ b/lib/http.h @@ -148,7 +148,6 @@ struct HTTP { struct dynbuf header_recvbuf; size_t nread_header_recvbuf; /* number of bytes in header_recvbuf fed into upper layer */ - struct dynbuf trailer_recvbuf; int status_code; /* HTTP status code */ const uint8_t *pausedata; /* pointer to data received in on_data_chunk */ size_t pauselen; /* the number of bytes left in data */ -- cgit v1.2.1