Commit 0870e670 authored by Marc Mutz's avatar Marc Mutz
Browse files

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: default avatarEirik Aavitsland <eirik.aavitsland@qt.io>
parent 33b9fc4e
Showing with 1 addition and 1 deletion
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment