National Institute of Standards and Technology
Package illustrating a test case

Test case 125074

Description

CWE: 129 Improper Validation of Array Index
BadSource: console_readLine Read data from the console using readLine
GoodSource: A hardcoded non-zero, non-min, non-max, even number
Sinks: array_write_no_check
GoodSink: Write to array after verifying index
BadSink : Write to array without any verification of index
Flow Variant: 61 Data flow: data returned from one method to another in different classes in the same package

Flaws

Test Suites

Documentation

Have any comments on this test case? Please, send us an email.