National Institute of Standards and Technology
Package illustrating a test case

Test case 37832

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: 666 Operation on Resource in Wrong Phase of Lifetime
Sinks: listen_accept_bind
GoodSink: Create a listen socket correctly by placing bind(), listen(), and accept() in the correct order
BadSink : Attempt to listen(), accept(), then bind()
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.