National Institute of Standards and Technology
Package illustrating a test case

Test case 140076

Description

CWE: 477 Use of Obsolete Functions
Sinks: String_getBytes
GoodSink: Use of preferred java.lang.String.getBytes() method
BadSink : Use of deprecated java.lang.String.getBytes(int, int, byte[], int) method
Flow Variant: 11 Control flow: if(IO.staticReturnsTrue()) and if(IO.staticReturnsFalse())

Flaws

Test Suites

Documentation

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