aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2018-06-26 10:31:19 +0200
committerGerd Hoffmann <kraxel@redhat.com>2018-06-26 16:04:01 +0200
commit6b9b3c1e303cc0dda99e326031d2b1b612b80e3b (patch)
treecb668a3a00718eb8cccecd5905ce3ff3bffbc726 /include
parent93abfc88bd649de1933588bfc7175605331b3ea9 (diff)
downloadqemu-6b9b3c1e303cc0dda99e326031d2b1b612b80e3b.zip
qemu-6b9b3c1e303cc0dda99e326031d2b1b612b80e3b.tar.gz
qemu-6b9b3c1e303cc0dda99e326031d2b1b612b80e3b.tar.bz2
ramfb: fix overflow
> CID 1393621: (OVERFLOW_BEFORE_WIDEN) > Potentially overflowing expression "stride * s->height" with type "unsigned > int" (32 bits, unsigned) is evaluated using +32-bit arithmetic, and then used > in a context that expects an expression of type "hwaddr" (64 bits, unsigned). Fix by changing stride from uint32_t to hwaddr. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20180626083120.19515-1-kraxel@redhat.com
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions