diff options
author | Michael Goddard <michael.goddard@nokia.com> | 2011-10-21 11:32:21 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-21 03:39:15 +0200 |
commit | cbb21e30d5cd18d17d60a049087f98a82c2862b9 (patch) | |
tree | f169c6c608c6b2eaaf0d793fd53d7e2175e32d7e /tests | |
parent | 4be55afa6c4da44bbc56122e8785a221f2fe4c4e (diff) |
Limit the sequential bytes skipping to a max 16kB at a time.
Otherwise QIODevice::read will try and allocate whatever junk is
passed in, so a corrupt chunk can result in 1GB+ allocations which
are never actually used.
Change-Id: I1ea4a5c1a5d21b1ee6f7e428105c52c0ee6ca7f7
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions