Gerd Hoffmann 6b9b3c1e30 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
2018-06-26 16:04:01 +02:00
..
2017-03-27 12:14:45 +02:00
2018-03-06 14:00:58 +01:00
2017-05-10 10:19:24 +03:00
2018-05-07 11:47:57 +02:00
2018-06-26 16:04:01 +02:00
2017-04-24 12:32:12 +01:00
2016-09-22 18:13:08 +01:00
2018-06-26 16:03:40 +02:00
2018-06-26 16:03:40 +02:00
2018-06-04 09:44:10 +02:00
2018-06-26 16:03:40 +02:00