qt5base-lts/tests/auto
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
..
android
bic/data Add binary compatibility files for 5.11 for QtBase 2018-06-05 06:00:28 +00:00
cmake CMake: Restore qt5_use_modules() function 2018-06-15 07:29:09 +00:00
concurrent Fix of flaky qFutureAssignmentLeak test 2018-02-15 16:24:38 +00:00
corelib QPluginLoader: limit the amount of memory used when scanning plugins 2018-07-14 04:37:46 +00:00
dbus tests/auto/dbus: Avoid unconditional qWait()s 2018-04-12 05:49:07 +00:00
gui Android: QEXPECT_FAIL tst_QTextDocument::task240325 2018-07-04 14:32:23 +00:00
guiapplauncher
installed_cmake
network tst_qnetworkinterface: Fix for case of zero interface 2018-07-06 06:39:36 +00:00
opengl tst_QGL: Use qWaitForWindowExposed() 2018-04-11 06:05:46 +00:00
other Reduce amount of log output of the qcomplextext autotest 2018-06-30 18:34:20 +00:00
printsupport If the page size is not valid on the new printer, set a custom size 2018-05-02 13:32:09 +00:00
shared
sql Remove a reference to a no longer used database server 2018-05-16 14:40:19 +00:00
testlib Make tests compile for Android 2018-06-25 08:01:19 +00:00
tools qmake: make VFS aware of exact vs. cumulative evaluation 2018-03-29 18:15:10 +00:00
widgets Return a correct filter from QFileDialog::selectedMimeTypeFilter() 2018-06-27 12:14:44 +00:00
xml Don't indefinitely wait for data if it was able to read some data 2018-01-24 05:54:31 +00:00
auto.pro tests/auto/auto.pro: Use correct null device for DBUS check 2017-12-01 09:53:07 +00:00
network-settings.h