National Institute of Standards and Technology
Package illustrating a test case

Test case 104445

Description

CWE: 468 Incorrect Pointer Scaling
Sinks: int
GoodSink: Do not include sizeof(int) since pointer arithmetic is automatically scaled
BadSink : Included sizeof(int) which is unnecessary since pointer arithmetic is automatically scaled
Flow Variant: 04 Control flow: if(STATIC_CONST_TRUE) and if(STATIC_CONST_FALSE)

Flaws

Test Suites

Documentation

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