lkml.org 
[lkml]   [2024]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH 07/18] clk: imx: pll14xx: potential integer overflow eliminated by casting to u64
Date
> Subject: Re: [PATCH 07/18] clk: imx: pll14xx: potential integer overflow
> eliminated by casting to u64
>
> Hello Peng,
>
> On Sat, May 04, 2024 at 08:49:00AM +0800, Peng Fan (OSS) wrote:
> > From: Florin Pavelescu <florin.pavelescu@nxp.com>
> >
> > Cast to u64, so that multiplications and additions will be done in
> > 64-bit arithmetic (and the results will also be 64-bit) and the
> > possibility of integer overflow is eliminated.
> >
> > Fix Unintentional integer overflow reported by Coverity
>
> Fixes tag if this is a fix?
>
> It would be interesting in general if this can be trigger in real life and with
> which side effects or if we are just silencing the tool

This is just to silencing the tool, maybe this patch is no needed.

Thanks,
Peng.


\
 
 \ /
  Last update: 2024-05-27 18:15    [W:0.062 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site