qt6-bb10/tests/auto/corelib/plugin
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
..
qfactoryloader Android: Pass tst_QFactoryLoader 2018-06-30 19:32:51 +00:00
qlibrary Android: Pass tst_qlibrary 2018-06-29 19:02:09 +00:00
qplugin Plugins: fix crash if the binary JSON data contains invalid size 2018-07-19 07:27:02 +00:00
qpluginloader QPluginLoader: limit the amount of memory used when scanning plugins 2018-07-14 04:37:46 +00:00
quuid Android: Pass tst_QUuid 2018-06-28 07:12:47 +00:00
plugin.pro Convert the old feature system 2016-09-15 08:24:10 +00:00