summaryrefslogtreecommitdiffstats
path: root/tests/auto/qscriptengine
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-06-25 14:04:41 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-06-25 14:29:06 (GMT)
commite6647776249e0e3ac9bac38d72965aa87b607859 (patch)
tree813eea38a44f7b914c2a64e844bf35c9d0832133 /tests/auto/qscriptengine
parentd5b75962ee2e22b5a6b061430f936fc663d7122b (diff)
downloadQt-e6647776249e0e3ac9bac38d72965aa87b607859.zip
Qt-e6647776249e0e3ac9bac38d72965aa87b607859.tar.gz
Qt-e6647776249e0e3ac9bac38d72965aa87b607859.tar.bz2
don't crash when QTextCodec::codecForUtfText() is passed -1 bytes
It's possible that the function gets called with a bytearray of size -1 (for example, by QTextStreamPrivate::fillReadBuffer()). Since the size was erroneously cast to a uint, the subsequent comparison (arraySize > 3) succeeded and caused a crash. Reviewed-by: Denis Dzyubenko
Diffstat (limited to 'tests/auto/qscriptengine')
0 files changed, 0 insertions, 0 deletions