Dissector bug, protocol HTTP failed assertion "saved_layers_len < 500" with chunked/multipart
Summary
Using the HTTP filter to display a HTTP webservice call using chunking and multipart, when the content reaches a certain size the filter fails with [Dissector bug, protocol HTTP: C:\gitlab-builds\builds-fyeYoMP\0\wireshark\wireshark\epan\packet.c:812: failed assertion "saved_layers_len < 500"]
Steps to reproduce
Open the attached capture file and use http filter
What is the current bug behavior?
The filter fails to process the stream [Dissector bug, protocol HTTP: C:\gitlab-builds\builds-fyeYoMP\0\wireshark\wireshark\epan\packet.c:812: failed assertion "saved_layers_len < 500"]
What is the expected correct behavior?
The filters should show the differents encaplusations. reassemble TCP, reassemble Chunks, differents parts of the multiparts, differents lines for the text/plain part.
The filter usually works for similar queries, once the result reaches a certain size, the dissector fails.
Sample capture file
Build information
Version 3.6.5 (v3.6.5-0-g21f79ddb) Copyright 1998-2022 Gerald Combs gerald@wireshark.org and contributors. License GPLv2+: GNU GPL version 2 or later https://www.gnu.org/licenses/gpl-2.0.html This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Compiled (64-bit) using Microsoft Visual Studio 2019 (VC++ 14.31, build 31107), with Qt 5.15.2, with libpcap, with GLib 2.66.4, with zlib 1.2.11, with Lua 5.2.4, with GnuTLS 3.6.3 and PKCS #11 (closed) support, with Gcrypt 1.8.3, with MIT Kerberos, with MaxMind DB resolver, with nghttp2 1.44.0, with brotli, with LZ4, with Zstandard, with Snappy, with libxml2 2.9.10, with libsmi 0.4.8, with QtMultimedia, with automatic updates using WinSparkle 0.5.7, with AirPcap, with SpeexDSP (using bundled resampler), with Minizip. Running on 64-bit Windows 10 (21H2), build 22000, with Intel(R) Core(TM) i9-9900 CPU @ 3.10GHz (with SSE4.2), with 32549 MB of physical memory, with GLib 2.66.4, with Qt 5.15.2, with Npcap version 1.55, based on libpcap version 1.10.2-PRE-GIT, with c-ares 1.17.0, with GnuTLS 3.6.3, with Gcrypt 1.8.3, with nghttp2 1.44.0, with brotli 1.0.9, with LZ4 1.9.3, with Zstandard 1.4.0, without AirPcap, with light display mode, without HiDPI, with LC_TYPE=English_Belgium.utf8, binary plugins supported (21 loaded).