qt6-bb10/tests/auto/network
Marc Mutz 98b034e53a QRestReply: make charset parsing more robust
The old code was based on QString::split and e.g. didn't handle
escapes in quoted-strings.

Write a modern recursive-descent parser to parse out type/subtype and
charset parameter. Since we don't, yet, support CFWS (see below),
recursion depth is strictly limited, so we're not susceptible to
recursion bombs here.

It currently handles only RFC9110-style grammar, but can be easily
extended to support CFWS (RFC2822-style comments and folding
white-space) or RFC2231-style continuuations, if needed.

It's a bit more general than strictly required, because I expect this
to be reused elsewhere ere long.

Pick-to: 6.7
Fixes: QTBUG-120307
Change-Id: I309928dc350a043672dffb4a259b457764c031be
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
2024-04-26 02:24:53 +02:00
..
access QRestReply: make charset parsing more robust 2024-04-26 02:24:53 +02:00
kernel tst_QDnsLookup: add testing of PTR records on global names 2024-04-22 21:36:30 -07:00
selftest Change license for tests files 2024-02-04 09:56:42 +01:00
socket UDP: don't disable read notification unless we have a datagram 2024-03-02 22:57:09 +01:00
ssl Tests: check the output of QFile::open 2024-03-27 04:24:11 +01:00
CMakeLists.txt Rid of 'special case' markers 2023-04-13 18:30:58 +02:00