qt5base-lts/tests/auto/corelib
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
..
animation qtbase: cleanup BLACKLIST files 2018-02-13 15:20:33 +00:00
codecs Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
global Android: fix tst_qlogging 2018-06-28 07:29:30 +00:00
io Android: Make tst_qfile pass 2018-06-28 07:31:27 +00:00
itemmodels QSortFilterProxyModel unittest: add test for filtered-out-after-setData 2018-06-28 07:00:00 +00:00
kernel Fix metatype trait for types that are both QObject and Q_GADGET 2018-06-30 13:23:03 +00:00
mimetypes QMimeDatabase: fix assert when fetching data for invalid mimetype 2018-04-06 07:19:01 +00:00
plugin QPluginLoader: limit the amount of memory used when scanning plugins 2018-07-14 04:37:46 +00:00
serialization QJsonDocument: Avoid overflow of string lengths 2018-05-14 10:52:47 +00:00
statemachine tst_QStateMachine: Don't use unconditional waits 2018-04-04 07:07:40 +00:00
thread tst_qthreadpool: Skip "stackSize" if unsupported 2018-06-27 17:40:28 +00:00
tools Fix regression in QPointF::operator== 2018-07-09 15:38:31 +00:00
corelib.pro Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00