National Institute of Standards and Technology
Package illustrating a test case

Test case 104453

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: 12 Control flow: if(globalReturnsTrueOrFalse())

Flaws

Test Suites

Documentation

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