qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] hw/misc: cast rpm to uint64_t


From: Peter Maydell
Subject: Re: [PATCH] hw/misc: cast rpm to uint64_t
Date: Fri, 10 Jan 2025 12:46:25 +0000

On Thu, 26 Dec 2024 at 13:59, Tigran Sogomonian
<tsogomonian@astralinux.ru> wrote:
>
> The value of an arithmetic expression
> 'rpm * NPCM7XX_MFT_PULSE_PER_REVOLUTION' is a subject
> to overflow because its operands are not cast to
> a larger data type before performing arithmetic. Thus, need
> to cast rpm to uint64_t.
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
>
> Signed-off-by: Tigran Sogomonian <tsogomonian@astralinux.ru>


Applied to target-arm.next, thanks.

-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]