cppcheck icon indicating copy to clipboard operation
cppcheck copied to clipboard

Fix 11203: false positive: knownConditionTrueFalse 'always false' when comparing integer with floating-point

Open pfultz2 opened this issue 3 years ago • 1 comments

pfultz2 avatar Aug 09 '22 21:08 pfultz2

If this actually overflows should the overflow be more "controlled" so the result does not flip? Is this a case like https://trac.cppcheck.net/ticket/9994 where the value actually should be 128-bit?

Or even being reported as a finding?

firewave avatar Aug 10 '22 09:08 firewave

I am no longer disabling UBSAN for this case.

pfultz2 avatar Sep 06 '22 03:09 pfultz2

Anymow feedback on this?

pfultz2 avatar Sep 07 '22 05:09 pfultz2