diff options
| author | Laurent Vivier | 2016-05-09 15:24:59 +0200 |
|---|---|---|
| committer | Michael Tokarev | 2016-06-07 17:02:49 +0200 |
| commit | a2c5eaf7a9f6172e8dc5cfeb283e086f592cf50a (patch) | |
| tree | dbf04fabd9084c6baec5bc087a90e98142682f32 /scripts/create_config | |
| parent | replace muldiv64(a, b, c) by (uint64_t)a * b / c (diff) | |
| download | qemu-a2c5eaf7a9f6172e8dc5cfeb283e086f592cf50a.tar.gz qemu-a2c5eaf7a9f6172e8dc5cfeb283e086f592cf50a.tar.xz qemu-a2c5eaf7a9f6172e8dc5cfeb283e086f592cf50a.zip | |
ppc: Remove a potential overflow in muldiv64()
The coccinelle script:
scripts/coccinelle/overflow_muldiv64.cocci
gives us a list of potential overflows in muldiv64()
(the two first parameters are 64bit values).
This patch fixes one, as the fix seems obvious:
replace muldiv64(a, b, c) by muldiv64(b, a, c)
as "a" and "b" are 64bit values but a <= NANOSECONDS_PER_SECOND.
(10^9 -> 30bit value).
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'scripts/create_config')
0 files changed, 0 insertions, 0 deletions
