National Institute of Standards and Technology
Package illustrating a test case

Test case 240662

Deprecated test case

This version contains mistakes, making it deprecated. Deprecated test cases should not be used for new work. However, They remain in the SARD as a reference to redo previous work. The latest version of this test case is available here.

Description

CWE: 467 Use of sizeof() on a Pointer Type
Sinks: int
GoodSink: Use sizeof() the data type
BadSink : Use sizeof() the pointer and not the data type
Flow Variant: 08 Control flow: if(staticReturnsTrue()) and if(staticReturnsFalse())

Flaws

Test Suites

Documentation

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