Re: [PATCH] eal: simplify code to avoid Coverity false positive

2025-05-15 Thread David Marchand
On Mon, Apr 14, 2025 at 10:29 PM Andre Muezerie wrote: > > Coverity complained about an overflow in a recently added function: > > https://scan4.scan.coverity.com/#/project-view/66295/10075?selectedIssue=461876 > > CID 461876: (#1 of 1): Overflowed constant (INTEGER_OVERFLOW) > 21. overflow_const:

[PATCH] eal: simplify code to avoid Coverity false positive

2025-04-14 Thread Andre Muezerie
Coverity complained about an overflow in a recently added function: https://scan4.scan.coverity.com/#/project-view/66295/10075?selectedIssue=461876 CID 461876: (#1 of 1): Overflowed constant (INTEGER_OVERFLOW) 21. overflow_const: Expression powi, which is equal to 0, where base is known to be equ