National Institute of Standards and Technology
Package illustrating a test case

Test case 110058

Description

CWE: 672 Operation on Resource After Expiration or Release
BadSource: Add values to the list, including the number zero
GoodSource: Add value to the list that are not zero
Sinks:
GoodSink: Iterate through the list without attempting to clear its contents
BadSink : Iterate through the list, but clear the list if it contains a zero
Flow Variant: 06 Control flow: if(STATIC_CONST_FIVE==5) and if(STATIC_CONST_FIVE!=5)

Flaws

Test Suites

Documentation

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