This is an automated email from the ASF dual-hosted git repository. zwoop pushed a commit to branch 8.1.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit 492108fde157a4e820ec73eb50d1f613191b861f Author: Alan M. Carroll <[email protected]> AuthorDate: Thu Jun 6 18:22:00 2019 -0500 Fix crash in MIMEScanner::append with std::string. See #5587. (cherry picked from commit b7b6b4bc9a649822376ddeaeaaaf251baa4d0e2d) Conflicts: proxy/http2/Http2Stream.h --- proxy/http2/Http2Stream.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proxy/http2/Http2Stream.cc b/proxy/http2/Http2Stream.cc index 8cd332e..8c9af05 100644 --- a/proxy/http2/Http2Stream.cc +++ b/proxy/http2/Http2Stream.cc @@ -60,6 +60,7 @@ Http2Stream::init(Http2StreamId sid, ssize_t initial_rwnd) // FIXME: Are you sure? every "stream" needs request_header? _req_header.create(HTTP_TYPE_REQUEST); response_header.create(HTTP_TYPE_RESPONSE); + http_parser_init(&http_parser); } int @@ -808,6 +809,7 @@ Http2Stream::destroy() chunked_handler.clear(); clear_timers(); clear_io_events(); + http_parser_clear(&http_parser); super::destroy(); THREAD_FREE(this, http2StreamAllocator, this_ethread());
