Re: [Qemu-devel] [PATCH 3/4] lm32: milkymist-tmu2: fix integer overflow

2016-10-13 Thread Peter Maydell
On 12 October 2016 at 23:35, Michael Walle wrote: > Don't truncate the multiplication and do a 64 bit one instead because > because the result is stored in a 64 bit variable. > > Spotted by coverity, CID 1167561. > > Signed-off-by: Michael Walle > --- > hw/display/milkymist-tmu2.c | 2 +- > 1 fi

[Qemu-devel] [PATCH 3/4] lm32: milkymist-tmu2: fix integer overflow

2016-10-12 Thread Michael Walle
Don't truncate the multiplication and do a 64 bit one instead because because the result is stored in a 64 bit variable. Spotted by coverity, CID 1167561. Signed-off-by: Michael Walle --- hw/display/milkymist-tmu2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/display/