Go to file
Peter Kümmel a47f21edd6 Make QVarLengthArray exception safe in case of OOM
After a exception is thrown in resize(), QVarLengthArray has an
invalid state with ptr == 0. On the next resize call when malloc
returns a valid pointer, oldPtr is 0 and it could crash in
memcpy because the pointer to the source is 0.
The patch ensures the valid pointer isn't overwritten with NULL.
When exceptions are disabled the user must ensure that malloc will
not fail.

Change-Id: Id12a5e3e1eacc551e4d1b64cba8e8414cfebd6e1
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2012-10-11 02:47:40 +02:00
bin Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
config.tests config.tests/glib: remove app_bundle config (mac compatibility) 2012-10-09 18:00:25 +02:00
dist Invalidate old QImage data if load()/loadFromData() has failed 2012-10-10 13:24:23 +02:00
doc HTML template: Updated copyright information from Nokia to Digia Plc 2012-09-27 02:29:35 +02:00
examples Delete the QVariant ctors taking global Qt enum values. 2012-10-10 08:45:22 +02:00
lib Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
mkspecs Modularize documenation build 2012-10-10 23:27:03 +02:00
qmake qmake: fix .pc install target dir separators on windows 2012-10-10 08:45:22 +02:00
src Make QVarLengthArray exception safe in case of OOM 2012-10-11 02:47:40 +02:00
tests Revert "Handle additional format ranges when itemizing." 2012-10-10 23:27:03 +02:00
tools Modularize documenation build 2012-10-10 23:27:03 +02:00
util Update the Unicode Data and Algorithms up to Unicode 6.2 2012-10-09 03:04:41 +02:00
.gitattributes Update the git-archive export options 2012-09-07 15:39:31 +02:00
.gitignore Remove the <module>version.h files from .gitignore. 2012-09-27 23:51:30 +02:00
.tag Update the git-archive export options 2012-09-07 15:39:31 +02:00
configure Modularize documenation build 2012-10-10 23:27:03 +02:00
configure.bat Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
header.BSD Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
header.FDL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
header.LGPL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
header.LGPL-ONLY Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
INSTALL fix links in INSTALL 2012-10-10 08:45:22 +02:00
LGPL_EXCEPTION.txt Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
LICENSE.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.GPL Add the LICENSE.GPL file to the module referenced from license headers 2012-05-20 22:41:08 +02:00
LICENSE.LGPL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
LICENSE.PREVIEW.COMMERCIAL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qtbase.pro Modularize documenation build 2012-10-10 23:27:03 +02:00
sync.profile Revert "Move QWindowSystemInterface out of qpa." 2012-08-03 00:38:09 +02:00