qt5base-lts/tests/auto/corelib/plugin
Thiago Macieira 1f27c1161b QPluginLoader: limit the amount of memory used when scanning plugins
When using actual memory allocation, limit to 64 MB, not the full file
size. On most systems, the memory map technique will work, so this won't
even be tried. In any case, we don't need the fix for the OOM situation
that was applied in commit e211ab76d7.

As for the memory mapping technique, this commit limits the allocation
to reasonable values given the virtual memory addressing space. Half a
gigabyte is probably acceptable on 32-bit systems, where there should be
a contiguous space for the OS to allocate the file in. This commit also
fixes an overflow when converting from qint64 of the file size to ulong
(32-bit on 32-bit platforms and on Windows).

For 64-bit systems, we currently limit to 1 TB.

Change-Id: I117816bf0f5e469b8d34fffd153dc1705a8eedc4
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2018-07-14 04:37:46 +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 tests/auto/corelib/plugin: clean up 2016-08-27 05:09:07 +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