Re: [PATCH v2] net/i40e: fix unintentional integer overflow

2022-02-24 Thread Ferruh Yigit
On 2/24/2022 6:21 AM, Yang, SteveX wrote: -Original Message- From: Stephen Hemminger Sent: Thursday, February 24, 2022 12:11 PM To: Yang, SteveX Cc: dev@dpdk.org; Yigit, Ferruh ; Xing, Beilei ; sta...@dpdk.org Subject: Re: [PATCH v2] net/i40e: fix unintentional integer overflow On

RE: [PATCH v2] net/i40e: fix unintentional integer overflow

2022-02-23 Thread Yang, SteveX
> -Original Message- > From: Stephen Hemminger > Sent: Thursday, February 24, 2022 12:11 PM > To: Yang, SteveX > Cc: dev@dpdk.org; Yigit, Ferruh ; Xing, Beilei > ; sta...@dpdk.org > Subject: Re: [PATCH v2] net/i40e: fix unintentional integer overflow > > O

Re: [PATCH v2] net/i40e: fix unintentional integer overflow

2022-02-23 Thread Stephen Hemminger
On Thu, 24 Feb 2022 01:17:22 + Steve Yang wrote: > Cast 1 to type uint64_t to avoid overflow. > > CID 375812 (#1 of 1): > Unintentional integer overflow (OVERFLOW_BEFORE_WIDEN) > overflow_before_widen: Potentially overflowing expression 1 << 2 * i + 1 > with type int (32 bits, signed) is eva

RE: [PATCH v2] net/i40e: fix unintentional integer overflow

2022-02-23 Thread Zhang, Qi Z
> -Original Message- > From: Steve Yang > Sent: Thursday, February 24, 2022 9:17 AM > To: dev@dpdk.org > Cc: Yigit, Ferruh ; Xing, Beilei > ; > Yang, SteveX ; sta...@dpdk.org > Subject: [PATCH v2] net/i40e: fix unintentional integer overflow > > Cast 1 to type uint64_t to avoid overfl