Files
qemu/hw
Peter Maydell fb6971c110 hw/ppc/ppc405_uc.c: Avoid integer overflows
When performing clock calculations, the ppc405_uc code
has several places where it multiplies together two
32-bit variables and assigns the result to a 64-bit
variable. This doesn't quite do what is intended because
C will compute a 32-bit multiply result. Add casts to
ensure we don't truncate the result.

(Spotted by Coverity, CID 1005504, 1005505.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2017-02-22 14:28:53 +11:00
..
2017-02-22 11:28:28 +11:00
2016-10-04 13:28:07 +01:00
2017-01-27 18:08:00 +01:00
2017-01-31 10:10:13 +11:00
2017-01-20 11:15:06 +00:00
2017-02-06 12:33:21 +11:00
2017-01-27 18:07:59 +01:00
2017-02-17 21:52:31 +02:00
2016-10-28 18:17:24 +03:00
2016-09-15 15:32:22 +03:00