itc-benchmarks icon indicating copy to clipboard operation
itc-benchmarks copied to clipboard

Problem in data_underflow.c

Open tomgu1991 opened this issue 6 years ago • 0 comments

For the last example,

void data_underflow_012 () { int min = -2147483647; int dlist[4] = {0, 1, -2, -1}; int ret; ret = min - dlist[2]; /Tool should detect this line as error/ /ERROR:Data underflow/ }

min - (-2) = min + 2; it will not be an error

tomgu1991 avatar Mar 21 '18 01:03 tomgu1991