diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-10-14 18:33:10 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2017-01-05 15:03:03 +0000 |
commit | 0870e670665a702665948723bb7b1eb61a9572a8 (patch) | |
tree | d374295b5b493729546d4a47876588d6d3896613 /tests/auto/tiff/tst_qtiff.cpp | |
parent | 33b9fc4e062537a5ab8d4c60c72573f868ab3f13 (diff) |
QWbmpHandler: fix integer overflow
Both 'hdr.height' and 'hdr.width' are quint32s. Multiplying them still gives
a quint32, but the lhs expected a qint64.
Fix by casting one of the operands to qint64.
Coverity-Id: 22179
Change-Id: If7385fb42bf994d87ac4e603fa85be4a30ad6d5c
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'tests/auto/tiff/tst_qtiff.cpp')
0 files changed, 0 insertions, 0 deletions