National Institute of Standards and Technology
Package illustrating a test case

Test case 34414

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.

Description

CWE: 469 Use Of Pointer Subtraction To Determine Size
Sinks: loop
GoodSink: using correct pointer subtraction to determine length in loop
BadSink : Beginning and end pointers are switched leading to an incorrect length in the loop
Flow Variant: 18 Control flow: goto statements

Flaws

Test Suites

Documentation

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