qt6-bb10/tests/auto/corelib/serialization/json/invalidBinaryData
Jüri Valdmann d3935cbd71 QJsonDocument::fromRawData: Fix out-of-bounds access
This method takes a pointer+size pair, but begins reading through the pointer
without first checking the size parameter. Fixed by checking the size parameter.

A new test case is added with an empty binary json file. Although the test does
not fail under normal conditions, the problem can be detected using valgrind or
AddressSanitizer.

Task-number: QTBUG-61969
Change-Id: Ie91cc9a56dbc3c676472c614d4e633d7721b8481
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2018-05-04 11:53:03 +00:00
..
10.bjson Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
11.bjson Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
12.bjson Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
13.bjson Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
14.bjson Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
15.bjson Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
16.bjson Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
17.bjson Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
18.bjson Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
19.bjson Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
20.bjson Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
21.bjson Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
22.bjson Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
23.bjson Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
24.bjson Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
25.bjson Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
26.bjson Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
27.bjson Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
28.bjson Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
29.bjson Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
30.bjson Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
31.bjson Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
32.bjson Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
33.bjson Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
34.bjson Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
35.bjson Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
36.bjson Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
37.bjson Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
38.bjson QJsonDocument::fromRawData: Fix out-of-bounds access 2018-05-04 11:53:03 +00:00