National Institute of Standards and Technology
Package illustrating a test case

Test case 66990

Description

CWE: 121 Stack Based Buffer Overflow
BadSource: Initialize data to a small buffer
GoodSource: Initialize data to a buffer large enough to hold a TwoIntsClass
Sinks:
GoodSink: Allocate a new class using placement new and a buffer that is large enough to hold the class
BadSink : Allocate a new class using placement new and a buffer that is too small
Flow Variant: 07 Control flow: if(staticFive==5) and if(staticFive!=5)

Flaws

Test Suites

Documentation

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