summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/plugin/qplugin/invalidplugin/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Plugins: fix crash if the binary JSON data contains invalid sizeThiago Macieira2018-07-191-0/+49
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>