qt5base-lts/tests/auto/corelib/plugin/qpluginloader
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
..
almostplugin Updated license headers 2016-01-21 18:55:18 +00:00
elftest Remove spurious execute permissions 2017-12-08 13:27:42 +00:00
lib Merge remote-tracking branch 'origin/5.6' into dev 2016-02-02 15:57:44 +01:00
machtest Share the multi-arch infrastructure between UIKit and macOS 2016-09-29 21:51:18 +00:00
theplugin Merge remote-tracking branch 'origin/5.6' into dev 2016-02-02 15:57:44 +01:00
tst macOS: Don't build auto-tests as application bundles unless explicitly requested 2016-10-23 10:39:56 +00: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 Update the Intel copyright year 2016-01-21 22:44:16 +00:00
qpluginloader.pro Use dependencies instead of CONFIG+=ordered 2017-12-02 11:09:15 +00:00
tst_qpluginloader.cpp QPluginLoader: limit the amount of memory used when scanning plugins 2018-07-14 04:37:46 +00:00
winrt.pri winrt: cleanup testcases 2016-01-29 13:35:48 +00:00