diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-06-25 14:04:41 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-06-25 14:29:06 (GMT) |
commit | e6647776249e0e3ac9bac38d72965aa87b607859 (patch) | |
tree | 813eea38a44f7b914c2a64e844bf35c9d0832133 /tests/auto | |
parent | d5b75962ee2e22b5a6b061430f936fc663d7122b (diff) | |
download | Qt-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')
0 files changed, 0 insertions, 0 deletions