aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/md
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-03-12 17:06:54 +0100
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2018-03-12 17:06:54 +0100
commitdf7a84a8baf1caf01ded61356b68d5d978b37789 (patch)
tree64172984762db5d8b70bb0368452ddac45d09e62 /Documentation/md
parenta2a348014aad8bdf1466e027aa1dad2f099b7de6 (diff)
downloadlinux-df7a84a8baf1caf01ded61356b68d5d978b37789.tar.gz
video: fbdev: vermilion: use 64-bit arithmetic instead of 32-bit
Cast _pitch_ to u64 in order to give the compiler complete information about the proper arithmetic to use. Notice that this variable is being used in a context that expects an expression of type u64 (64 bits, unsigned). The expression pitch * var->yres_virtual is currently being evaluated using 32-bit arithmetic and the result of the operation is being stored into variable mem, which is a variable of type u64. Based on that, chances are there is a potential integer overflow as a result of the operation. Addresses-Coverity-ID: 200655 ("Unintentional integer overflow") Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'Documentation/md')
0 files changed, 0 insertions, 0 deletions