National Institute of Standards and Technology
Package illustrating a test case

Test case 17703

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: 188 Reliance on Data Memory Layout
Sinks: modify_local
GoodSink: Modify the second field of the struct using the field name
BadSink : Attempt to modify second field in struct, assuming the first field is an int
Flow Variant: 13 Control flow: if(global_const_five==5) and if(global_const_five!=5)

Flaws

Test Suites

Documentation

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