qt6-bb10/tests/auto/corelib
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
..
animation qtbase: cleanup BLACKLIST files 2018-02-13 15:20:33 +00:00
codecs Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
global Fix thread_local test 2018-02-23 13:23:01 +00:00
io tst_QFile: Don't expect Windows HANDLE equality in nativeHandleLeaks() 2018-04-23 12:45:32 +00:00
itemmodels QItemSelectionModel: More fixes for is(Column/Row)Selected 2018-04-30 19:01:14 +00:00
kernel tst_QEventLoop: Remove unconditional qWait() 2018-04-10 08:32:21 +00:00
mimetypes QMimeDatabase: fix assert when fetching data for invalid mimetype 2018-04-06 07:19:01 +00:00
plugin tst_QLibrary: Ensure installation order of testdata libs 2018-03-02 07:20:04 +00:00
serialization QJsonDocument::fromRawData: Fix out-of-bounds access 2018-05-04 11:53:03 +00:00
statemachine tst_QStateMachine: Don't use unconditional waits 2018-04-04 07:07:40 +00:00
thread Atomics: remove requirement for alignment equality with plain types 2018-04-24 17:36:42 +00:00
tools Tests: Fix clang warnings about unused variables and captures 2018-05-02 09:36:00 +00:00
corelib.pro Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00