No underflow checks in Polyspace Numerical Defects
이전 댓글 표시
In following link https://www.mathworks.com/help/bugfinder/numerical-checks.html, different overflow checks are listed, but no underflow checks.
That is why, for example, following will not be detected:
signed char foo = CHAR_MIN;
printf("foo: %d\n", foo); // foo: -128
foo--;
printf("foo: %d", foo); // foo: 127
Any idea on why that check is not available?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Common Weakness Enumeration (CWE)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!