qt5base-lts/tests/auto/corelib/plugin
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
..
qfactoryloader Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qlibrary Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qplugin Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qpluginloader Make the Mach-O size checking a little more robust 2013-07-20 02:09:41 +02:00
quuid Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
plugin.pro Fix a crash in QFactoryLoader 2012-03-29 13:58:13 +02:00