Deprecated test case
Description
CWE: 197 Numeric Truncation Error
BadSource: rand Set data to result of rand(), which could be negative
GoodSource: Less than CHAR_MAX
Sink:
BadSink : Convert data to a char
Flow Variant: 09 Control flow: if(global_const_t) and if(global_const_f)
Flaws
Test Suites
Documentation
Have any comments on this test case? Please, send us an email.