qt5base-lts/tests/auto/corelib/plugin/qpluginloader
Thiago Macieira 53bcd63061 Make the Mach-O size checking a little more robust
It's not necessary to check at every point if we know the minimum file
size: it must contain at least the header, one segment (__TEXT) and one
section (qtmetadata). Most files have more than one segment and more
than one loader command, so this check does not mean we can eliminate
the checks further down.

Also be more resilient against corruptions in the header data: check not
only the additions, but the values themselves. For example, an offset +
size addition could be smaller than the file size when the addition
overflows in 32-bit. Another thing is that the cmdsize fields could be
corrupt too.

Change-Id: I7968a769c1cbe9150270c91823cafc4f8f833876
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
2013-07-20 02:09:41 +02:00
..
almostplugin Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
elftest Moving relevant tests to corelib/plugin 2011-09-01 12:42:51 +02:00
lib Make sure that the reference count for plugins is kept correctly 2013-02-27 07:09:18 +01:00
machtest Make the Mach-O size checking a little more robust 2013-07-20 02:09:41 +02:00
theplugin Make sure that the reference count for plugins is kept correctly 2013-02-27 07:09:18 +01:00
tst Add a Mach-O decoder to the QPluginLoader 2013-07-20 02:09:26 +02:00
.gitignore Moving relevant tests to corelib/plugin 2011-09-01 12:42:51 +02:00
empty.json Use new plugin system in plugin autotest. 2012-02-23 16:38:45 +01:00
fakeplugin.cpp Add a Mach-O decoder to the QPluginLoader 2013-07-20 02:09:26 +02:00
qpluginloader.pro Add a Mach-O decoder to the QPluginLoader 2013-07-20 02:09:26 +02:00
tst_qpluginloader.cpp Make the Mach-O size checking a little more robust 2013-07-20 02:09:41 +02:00