National Institute of Standards and Technology
Package illustrating a test case

Test case 104443

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: 02 Control flow: if(1) and if(0)

Flaws

Test Suites

Documentation

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