SAMATE Logo NIST Logo The SAMATE Project Department of Homeland Security
Downloads:  Download this Test Case #38

Back to the previous page... Back to the previous page

Test Case IDCandidate38
Bad / Good / MixedBadBad test case
AuthorSecureSoftware
Associations
Added bySecureSoftware
LanguageC
Type of test caseSource Code
Input string
Expected Output
Instructions
Submission date2005-10-28
DescriptionIf the variable which is switched on is changed while the switch statement is still in progress undefined activity may occur. (from TCCLASP-5_4_6_10)
File(s)
Flaw

There are no comments
Have any comments on this test case? Please, .

File Contains:
CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') on line(s): 0, 9, 10, 11