National Institute of Standards and Technology
Package illustrating a test case

Test case 135448

Description

CWE: 369 Divide by zero
BadSource: PropertiesFile Read data from a .properties file (in property named data)
GoodSource: A hardcoded non-zero number (two)
Sinks: divide
GoodSink: Check for zero before dividing
BadSink : Dividing by a value that may be zero
Flow Variant: 14 Control flow: if(IO.staticFive==5) and if(IO.staticFive!=5)

Flaws

Test Suites

Documentation

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