diff options
author | Nick Ratelle <nratelle@qnx.com> | 2012-01-06 17:09:54 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-09 19:28:02 (GMT) |
commit | a903d59b9a353d10862dd975db11b1b3d132bdf5 (patch) | |
tree | 361302190832e7bb941016b3eb86bf02cdb5ff73 /tests/auto/qdbuspendingcall | |
parent | 6c5e12a40ac8b2613c415349dc8b59bbe99b909e (diff) | |
download | Qt-a903d59b9a353d10862dd975db11b1b3d132bdf5.zip Qt-a903d59b9a353d10862dd975db11b1b3d132bdf5.tar.gz Qt-a903d59b9a353d10862dd975db11b1b3d132bdf5.tar.bz2 |
Fixes a possible out-of-bound write in QByteArray.
The QByteArray::QByteArray(int size, Qt::Initialization) constructor does not
validate the 'size' parameter, allowing for negative values, for example.
Use shared_empty on QByteArray(int, Qt::Initialization) for future compatibility.
Change-Id: I25ba1918faa53eaaf3564c57cf28a27f93c42922
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
Diffstat (limited to 'tests/auto/qdbuspendingcall')
0 files changed, 0 insertions, 0 deletions