Validate chunk size and reject malformed or out-of-range values


getChunkSize() parsed the chunk-size line with toLong(&ok, 16) and
ignored ok.

Parse with toULongLong() at qsizetype width, check ok, and reject a
value that does not fit qsizetype with 400 Bad Request.

Task-number: QTBUG-150270
Pick-to: 6.12 6.12.0 6.11
Change-Id: I2b42a7971f2bb2f909477bb7e1a6cb120be2aca5
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
commit283ee840051532421dcc5788b4233b23eaec1752
parent988f1d72679f4fe55442af4f431d1c5b11171656
authorMate Barany <mate.barany@qt.io>
committerMate Barany <mate.barany@qt.io>
commit timeMon, 21 Sep 2026 11:01:19 +0000