National Institute of Standards and Technology
Package illustrating a test case

Test case 241496

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. The latest version of this test case is available here.

Description

CWE: 761 Free Pointer not at Start of Buffer
BadSource: listen_socket Read data using a listen socket (server side)
Sinks:
GoodSink: free() memory correctly at the start of the buffer
BadSink : free() memory not at the start of the buffer
Flow Variant: 08 Control flow: if(staticReturnsTrue()) and if(staticReturnsFalse())

Flaws

Test Suites

Documentation

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