qt5base-lts/tests/auto/corelib/plugin/qplugin
Thiago Macieira 8a5267e4d9 Plugins: fix crash if the binary JSON data contains invalid size
Eight bytes into the Binary JSON header there's a 32-bit little-endian
size, which qJsonFromRawLibraryMetaData uses to determine the size of
the stored metadata. That value is passed as a size to QByteArray, which
means certain values could cause crashes due to being too big or via
sign-extension in 64-bit.

[ChangeLog][QtCore][QPluginLoader] Fixed an issue that could cause a
crash when certain damaged or corrupt plugin files were scanned.

Change-Id: I117816bf0f5e469b8d34fffd153dc5425cec39a7
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2018-07-19 07:27:02 +00:00
..
debugplugin Updated license headers 2016-01-21 18:55:18 +00:00
invalidplugin Plugins: fix crash if the binary JSON data contains invalid size 2018-07-19 07:27:02 +00:00
releaseplugin Updated license headers 2016-01-21 18:55:18 +00:00
.gitignore
qplugin.pro Plugins: fix crash if the binary JSON data contains invalid size 2018-07-19 07:27:02 +00:00
tst_qplugin.cpp Plugins: fix crash if the binary JSON data contains invalid size 2018-07-19 07:27:02 +00:00
tst_qplugin.pro Tests: Remove CONFIG += parallel_test. 2015-09-05 07:16:50 +00:00