diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2020-07-23 09:43:52 -0700 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2020-07-28 08:54:02 -0700 |
| commit | efd3c7bf2427c8237857e56ecd51b8da3ce43a6e (patch) | |
| tree | d913fe12d22b6b9b929cb0750f6d67d8879f37ef /src/testlib/doc/snippets/snippets.pro | |
| parent | c13ce05482183c974aebaf8599beaae1869b4c21 (diff) | |
QByteArray::toDouble: fix buffer overflow reads on fromRawData()
If Qt was not compiled with libdouble-conversion, sscanf() requires
null-termination, which fromRawData() does not require. This could be
fixed by making QByteArray pass a reallocated copy if it is operating on
raw data, but fixing qt_asciiToDouble() means we catch all cases and we
optimize for the common case of not-horribly-long strings.
Fixes: QTBUG-85580
Pick-to: 5.15 5.12
Change-Id: Iea47e0f8fc8b40378df7fffd16246f6163b01442
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/testlib/doc/snippets/snippets.pro')
0 files changed, 0 insertions, 0 deletions
