Dataset Viewer
Auto-converted to Parquet Duplicate
index
int64
0
101k
filename
stringlengths
50
161
class
int64
0
195
good
stringlengths
103
8.98k
bad
stringlengths
141
8.19k
29,645
testcases/CWE126_Buffer_Overread/s02/CWE126_Buffer_Overread__malloc_char_loop_53c.c
138
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE126_Buffer_Overread__malloc_char_loop_53c.c Label Definition File: CWE126_Buffer_Overread__malloc.label.xml Template File: sources-sink-53c.tmpl.c */ /* * @description * CWE: 126 Buffer Over-read * BadSource: Use a small buffer * GoodSource: Use a large buffer * Si...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE126_Buffer_Overread__malloc_char_loop_53c.c Label Definition File: CWE126_Buffer_Overread__malloc.label.xml Template File: sources-sink-53c.tmpl.c */ /* * @description * CWE: 126 Buffer Over-read * BadSource: Use a small buffer * GoodSource: Use a large buffer * Si...
17,546
testcases/CWE121_Stack_Based_Buffer_Overflow/s04/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_02.c
153
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_02.c Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.label.xml Template File: sources-sink-02.tmpl.c */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: Set data po...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_02.c Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.label.xml Template File: sources-sink-02.tmpl.c */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: Set data po...
1,722
testcases/CWE78_OS_Command_Injection/s05/CWE78_OS_Command_Injection__wchar_t_connect_socket_w32_spawnlp_72a.cpp
168
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__wchar_t_connect_socket_w32_spawnlp_72a.cpp Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-72a.tmpl.cpp */ /* * @description * CWE: 78 OS Command Injection * BadSource: connect_socket Read data u...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__wchar_t_connect_socket_w32_spawnlp_72a.cpp Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-72a.tmpl.cpp */ /* * @description * CWE: 78 OS Command Injection * BadSource: connect_socket Read data u...
75,231
testcases/CWE122_Heap_Based_Buffer_Overflow/s06/CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_memcpy_63b.c
125
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_memcpy_63b.c Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE193.label.xml Template File: sources-sink-63b.tmpl.c */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Allocate memory for ...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_memcpy_63b.c Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE193.label.xml Template File: sources-sink-63b.tmpl.c */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Allocate memory for ...
67,923
testcases/CWE122_Heap_Based_Buffer_Overflow/s01/CWE122_Heap_Based_Buffer_Overflow__cpp_CWE129_fscanf_81_bad.cpp
141
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE129_fscanf_81_bad.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE129.label.xml Template File: sources-sinks-81_bad.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: fscanf Read...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE129_fscanf_81_bad.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE129.label.xml Template File: sources-sinks-81_bad.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: fscanf Read...
46,523
testcases/CWE124_Buffer_Underwrite/s03/CWE124_Buffer_Underwrite__new_char_cpy_82_bad.cpp
40
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE124_Buffer_Underwrite__new_char_cpy_82_bad.cpp Label Definition File: CWE124_Buffer_Underwrite__new.label.xml Template File: sources-sink-82_bad.tmpl.cpp */ /* * @description * CWE: 124 Buffer Underwrite * BadSource: Set data pointer to before the allocated memory bu...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE124_Buffer_Underwrite__new_char_cpy_82_bad.cpp Label Definition File: CWE124_Buffer_Underwrite__new.label.xml Template File: sources-sink-82_bad.tmpl.cpp */ /* * @description * CWE: 124 Buffer Underwrite * BadSource: Set data pointer to before the allocated memory bu...
29,020
testcases/CWE126_Buffer_Overread/s02/CWE126_Buffer_Overread__new_wchar_t_memcpy_01.cpp
138
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE126_Buffer_Overread__new_wchar_t_memcpy_01.cpp Label Definition File: CWE126_Buffer_Overread__new.label.xml Template File: sources-sink-01.tmpl.cpp */ /* * @description * CWE: 126 Buffer Over-read * BadSource: Use a small buffer * GoodSource: Use a large buffer * S...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE126_Buffer_Overread__new_wchar_t_memcpy_01.cpp Label Definition File: CWE126_Buffer_Overread__new.label.xml Template File: sources-sink-01.tmpl.cpp */ /* * @description * CWE: 126 Buffer Over-read * BadSource: Use a small buffer * GoodSource: Use a large buffer * S...
59,601
testcases/CWE789_Uncontrolled_Mem_Alloc/s02/CWE789_Uncontrolled_Mem_Alloc__new_wchar_t_rand_72a.cpp
183
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE789_Uncontrolled_Mem_Alloc__new_wchar_t_rand_72a.cpp Label Definition File: CWE789_Uncontrolled_Mem_Alloc__new.label.xml Template File: sources-sinks-72a.tmpl.cpp */ /* * @description * CWE: 789 Uncontrolled Memory Allocation * BadSource: rand Set data to result of ra...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE789_Uncontrolled_Mem_Alloc__new_wchar_t_rand_72a.cpp Label Definition File: CWE789_Uncontrolled_Mem_Alloc__new.label.xml Template File: sources-sinks-72a.tmpl.cpp */ /* * @description * CWE: 789 Uncontrolled Memory Allocation * BadSource: rand Set data to result of ra...
61,112
testcases/CWE127_Buffer_Underread/s01/CWE127_Buffer_Underread__CWE839_fgets_45.c
19
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE127_Buffer_Underread__CWE839_fgets_45.c Label Definition File: CWE127_Buffer_Underread__CWE839.label.xml Template File: sources-sinks-45.tmpl.c */ /* * @description * CWE: 127 Buffer Underread * BadSource: fgets Read data from the console using fgets() * GoodSource: ...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE127_Buffer_Underread__CWE839_fgets_45.c Label Definition File: CWE127_Buffer_Underread__CWE839.label.xml Template File: sources-sinks-45.tmpl.c */ /* * @description * CWE: 127 Buffer Underread * BadSource: fgets Read data from the console using fgets() * GoodSource: ...
35,975
testcases/CWE114_Process_Control/CWE114_Process_Control__w32_char_relativePath_67b.c
92
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE114_Process_Control__w32_char_relativePath_67b.c Label Definition File: CWE114_Process_Control__w32.label.xml Template File: sources-sink-67b.tmpl.c */ /* * @description * CWE: 114 Process Control * BadSource: relativePath Hard code the relative pathname to the librar...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE114_Process_Control__w32_char_relativePath_67b.c Label Definition File: CWE114_Process_Control__w32.label.xml Template File: sources-sink-67b.tmpl.c */ /* * @description * CWE: 114 Process Control * BadSource: relativePath Hard code the relative pathname to the librar...
33,115
testcases/CWE401_Memory_Leak/s02/CWE401_Memory_Leak__new_int64_t_63a.cpp
161
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE401_Memory_Leak__new_int64_t_63a.cpp Label Definition File: CWE401_Memory_Leak__new.label.xml Template File: sources-sinks-63a.tmpl.cpp */ /* * @description * CWE: 401 Memory Leak * BadSource: Allocate data using new * GoodSource: Allocate data on the stack * Sinks...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE401_Memory_Leak__new_int64_t_63a.cpp Label Definition File: CWE401_Memory_Leak__new.label.xml Template File: sources-sinks-63a.tmpl.cpp */ /* * @description * CWE: 401 Memory Leak * BadSource: Allocate data using new * GoodSource: Allocate data on the stack * Sinks...
56,875
testcases/CWE197_Numeric_Truncation_Error/s01/CWE197_Numeric_Truncation_Error__int_connect_socket_to_short_54b.c
149
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE197_Numeric_Truncation_Error__int_connect_socket_to_short_54b.c Label Definition File: CWE197_Numeric_Truncation_Error__int.label.xml Template File: sources-sink-54b.tmpl.c */ /* * @description * CWE: 197 Numeric Truncation Error * BadSource: connect_socket Read data ...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE197_Numeric_Truncation_Error__int_connect_socket_to_short_54b.c Label Definition File: CWE197_Numeric_Truncation_Error__int.label.xml Template File: sources-sink-54b.tmpl.c */ /* * @description * CWE: 197 Numeric Truncation Error * BadSource: connect_socket Read data ...
25,453
testcases/CWE606_Unchecked_Loop_Condition/CWE606_Unchecked_Loop_Condition__wchar_t_console_82_bad.cpp
169
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE606_Unchecked_Loop_Condition__wchar_t_console_82_bad.cpp Label Definition File: CWE606_Unchecked_Loop_Condition.label.xml Template File: sources-sinks-82_bad.tmpl.cpp */ /* * @description * CWE: 606 Unchecked Input For Loop Condition * BadSource: console Read input fr...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE606_Unchecked_Loop_Condition__wchar_t_console_82_bad.cpp Label Definition File: CWE606_Unchecked_Loop_Condition.label.xml Template File: sources-sinks-82_bad.tmpl.cpp */ /* * @description * CWE: 606 Unchecked Input For Loop Condition * BadSource: console Read input fr...
39,240
testcases/CWE134_Uncontrolled_Format_String/s04/CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_84_goodB2G.cpp
119
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_84_goodB2G.cpp Label Definition File: CWE134_Uncontrolled_Format_String.vasinks.label.xml Template File: sources-vasinks-84_goodB2G.tmpl.cpp */ /* * @description * CWE: 134 Uncontrolled Format String * BadSource:...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_84_goodB2G.cpp Label Definition File: CWE134_Uncontrolled_Format_String.vasinks.label.xml Template File: sources-vasinks-84_goodB2G.tmpl.cpp */ /* * @description * CWE: 134 Uncontrolled Format String * BadSource:...
77,622
testcases/CWE415_Double_Free/s01/CWE415_Double_Free__malloc_free_struct_83_bad.cpp
180
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE415_Double_Free__malloc_free_struct_83_bad.cpp Label Definition File: CWE415_Double_Free__malloc_free.label.xml Template File: sources-sinks-83_bad.tmpl.cpp */ /* * @description * CWE: 415 Double Free * BadSource: Allocate data using malloc() and Deallocate data usin...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE415_Double_Free__malloc_free_struct_83_bad.cpp Label Definition File: CWE415_Double_Free__malloc_free.label.xml Template File: sources-sinks-83_bad.tmpl.cpp */ /* * @description * CWE: 415 Double Free * BadSource: Allocate data using malloc() and Deallocate data usin...
83,983
testcases/CWE191_Integer_Underflow/s01/CWE191_Integer_Underflow__int64_t_fscanf_sub_68b.c
150
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE191_Integer_Underflow__int64_t_fscanf_sub_68b.c Label Definition File: CWE191_Integer_Underflow.label.xml Template File: sources-sinks-68b.tmpl.c */ /* * @description * CWE: 191 Integer Underflow * BadSource: fscanf Read data from the console using fscanf() * GoodSou...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE191_Integer_Underflow__int64_t_fscanf_sub_68b.c Label Definition File: CWE191_Integer_Underflow.label.xml Template File: sources-sinks-68b.tmpl.c */ /* * @description * CWE: 191 Integer Underflow * BadSource: fscanf Read data from the console using fscanf() * GoodSou...
92,200
testcases/CWE762_Mismatched_Memory_Management_Routines/s03/CWE762_Mismatched_Memory_Management_Routines__delete_int_malloc_14.cpp
178
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__delete_int_malloc_14.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete.label.xml Template File: sources-sinks-14.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management Routines * B...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__delete_int_malloc_14.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete.label.xml Template File: sources-sinks-14.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management Routines * B...
8,818
testcases/CWE78_OS_Command_Injection/s06/CWE78_OS_Command_Injection__wchar_t_console_w32_execvp_45.c
136
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__wchar_t_console_w32_execvp_45.c Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-45.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: console Read input from the console * G...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__wchar_t_console_w32_execvp_45.c Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-45.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: console Read input from the console * G...
8,033
testcases/CWE78_OS_Command_Injection/s07/CWE78_OS_Command_Injection__wchar_t_environment_w32spawnl_73a.cpp
42
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__wchar_t_environment_w32spawnl_73a.cpp Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-73a.tmpl.cpp */ /* * @description * CWE: 78 OS Command Injection * BadSource: environment Read input from an ...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__wchar_t_environment_w32spawnl_73a.cpp Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-73a.tmpl.cpp */ /* * @description * CWE: 78 OS Command Injection * BadSource: environment Read input from an ...
90,550
testcases/CWE762_Mismatched_Memory_Management_Routines/s02/CWE762_Mismatched_Memory_Management_Routines__delete_array_long_calloc_82a.cpp
70
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__delete_array_long_calloc_82a.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete_array.label.xml Template File: sources-sinks-82a.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Managemen...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__delete_array_long_calloc_82a.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete_array.label.xml Template File: sources-sinks-82a.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Managemen...
64,423
testcases/CWE427_Uncontrolled_Search_Path_Element/CWE427_Uncontrolled_Search_Path_Element__wchar_t_connect_socket_03.c
182
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE427_Uncontrolled_Search_Path_Element__wchar_t_connect_socket_03.c Label Definition File: CWE427_Uncontrolled_Search_Path_Element.label.xml Template File: sources-sink-03.tmpl.c */ /* * @description * CWE: 427 Uncontrolled Search Path Element * BadSource: connect_socke...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE427_Uncontrolled_Search_Path_Element__wchar_t_connect_socket_03.c Label Definition File: CWE427_Uncontrolled_Search_Path_Element.label.xml Template File: sources-sink-03.tmpl.c */ /* * @description * CWE: 427 Uncontrolled Search Path Element * BadSource: connect_socke...
64,459
testcases/CWE427_Uncontrolled_Search_Path_Element/CWE427_Uncontrolled_Search_Path_Element__char_environment_64b.c
182
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE427_Uncontrolled_Search_Path_Element__char_environment_64b.c Label Definition File: CWE427_Uncontrolled_Search_Path_Element.label.xml Template File: sources-sink-64b.tmpl.c */ /* * @description * CWE: 427 Uncontrolled Search Path Element * BadSource: environment Read ...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE427_Uncontrolled_Search_Path_Element__char_environment_64b.c Label Definition File: CWE427_Uncontrolled_Search_Path_Element.label.xml Template File: sources-sink-64b.tmpl.c */ /* * @description * CWE: 427 Uncontrolled Search Path Element * BadSource: environment Read ...
38,951
testcases/CWE134_Uncontrolled_Format_String/s04/CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_67b.c
119
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_67b.c Label Definition File: CWE134_Uncontrolled_Format_String.vasinks.label.xml Template File: sources-vasinks-67b.tmpl.c */ /* * @description * CWE: 134 Uncontrolled Format String * BadSource: console Read inpu...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_67b.c Label Definition File: CWE134_Uncontrolled_Format_String.vasinks.label.xml Template File: sources-vasinks-67b.tmpl.c */ /* * @description * CWE: 134 Uncontrolled Format String * BadSource: console Read inpu...
52,584
testcases/CWE190_Integer_Overflow/s03/CWE190_Integer_Overflow__int_fscanf_multiply_81a.cpp
171
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE190_Integer_Overflow__int_fscanf_multiply_81a.cpp Label Definition File: CWE190_Integer_Overflow__int.label.xml Template File: sources-sinks-81a.tmpl.cpp */ /* * @description * CWE: 190 Integer Overflow * BadSource: fscanf Read data from the console using fscanf() * ...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE190_Integer_Overflow__int_fscanf_multiply_81a.cpp Label Definition File: CWE190_Integer_Overflow__int.label.xml Template File: sources-sinks-81a.tmpl.cpp */ /* * @description * CWE: 190 Integer Overflow * BadSource: fscanf Read data from the console using fscanf() * ...
3,025
testcases/CWE78_OS_Command_Injection/s01/CWE78_OS_Command_Injection__char_connect_socket_execlp_73b.cpp
69
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__char_connect_socket_execlp_73b.cpp Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-73b.tmpl.cpp */ /* * @description * CWE: 78 OS Command Injection * BadSource: connect_socket Read data using a c...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__char_connect_socket_execlp_73b.cpp Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-73b.tmpl.cpp */ /* * @description * CWE: 78 OS Command Injection * BadSource: connect_socket Read data using a c...
18,419
testcases/CWE121_Stack_Based_Buffer_Overflow/s08/CWE121_Stack_Based_Buffer_Overflow__placement_new_declare_52a.cpp
57
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__placement_new_declare_52a.cpp Label Definition File: CWE121_Stack_Based_Buffer_Overflow__placement_new.label.xml Template File: sources-sinks-52a.tmpl.cpp */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: Initia...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__placement_new_declare_52a.cpp Label Definition File: CWE121_Stack_Based_Buffer_Overflow__placement_new.label.xml Template File: sources-sinks-52a.tmpl.cpp */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: Initia...
73,961
testcases/CWE122_Heap_Based_Buffer_Overflow/s07/CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_memmove_53b.c
81
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_memmove_53b.c Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE193.label.xml Template File: sources-sink-53b.tmpl.c */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Allocate memory for...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_memmove_53b.c Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE193.label.xml Template File: sources-sink-53b.tmpl.c */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Allocate memory for...
99,161
testcases/CWE369_Divide_by_Zero/s01/CWE369_Divide_by_Zero__float_zero_52c.c
103
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE369_Divide_by_Zero__float_zero_52c.c Label Definition File: CWE369_Divide_by_Zero__float.label.xml Template File: sources-sinks-52c.tmpl.c */ /* * @description * CWE: 369 Divide by Zero * BadSource: zero Fixed value of zero * GoodSource: A hardcoded non-zero number (...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE369_Divide_by_Zero__float_zero_52c.c Label Definition File: CWE369_Divide_by_Zero__float.label.xml Template File: sources-sinks-52c.tmpl.c */ /* * @description * CWE: 369 Divide by Zero * BadSource: zero Fixed value of zero * GoodSource: A hardcoded non-zero number (...
27,995
testcases/CWE126_Buffer_Overread/s01/CWE126_Buffer_Overread__CWE129_listen_socket_14.c
76
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE126_Buffer_Overread__CWE129_listen_socket_14.c Label Definition File: CWE126_Buffer_Overread__CWE129.label.xml Template File: sources-sinks-14.tmpl.c */ /* * @description * CWE: 126 Buffer Overread * BadSource: listen_socket Read data using a listen socket (server sid...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE126_Buffer_Overread__CWE129_listen_socket_14.c Label Definition File: CWE126_Buffer_Overread__CWE129.label.xml Template File: sources-sinks-14.tmpl.c */ /* * @description * CWE: 126 Buffer Overread * BadSource: listen_socket Read data using a listen socket (server sid...
75,906
testcases/CWE122_Heap_Based_Buffer_Overflow/s06/CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_cpy_53c.c
125
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_cpy_53c.c Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE193.label.xml Template File: sources-sink-53c.tmpl.c */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Allocate memory for a s...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_cpy_53c.c Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE193.label.xml Template File: sources-sink-53c.tmpl.c */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Allocate memory for a s...
37,972
testcases/CWE134_Uncontrolled_Format_String/s01/CWE134_Uncontrolled_Format_String__char_console_vfprintf_07.c
8
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE134_Uncontrolled_Format_String__char_console_vfprintf_07.c Label Definition File: CWE134_Uncontrolled_Format_String.vasinks.label.xml Template File: sources-vasinks-07.tmpl.c */ /* * @description * CWE: 134 Uncontrolled Format String * BadSource: console Read input fr...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE134_Uncontrolled_Format_String__char_console_vfprintf_07.c Label Definition File: CWE134_Uncontrolled_Format_String.vasinks.label.xml Template File: sources-vasinks-07.tmpl.c */ /* * @description * CWE: 134 Uncontrolled Format String * BadSource: console Read input fr...
85,415
testcases/CWE191_Integer_Underflow/s04/CWE191_Integer_Underflow__int64_t_fscanf_postdec_54e.c
95
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE191_Integer_Underflow__int64_t_fscanf_postdec_54e.c Label Definition File: CWE191_Integer_Underflow.label.xml Template File: sources-sinks-54e.tmpl.c */ /* * @description * CWE: 191 Integer Underflow * BadSource: fscanf Read data from the console using fscanf() * Goo...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE191_Integer_Underflow__int64_t_fscanf_postdec_54e.c Label Definition File: CWE191_Integer_Underflow.label.xml Template File: sources-sinks-54e.tmpl.c */ /* * @description * CWE: 191 Integer Underflow * BadSource: fscanf Read data from the console using fscanf() * Goo...
22,476
testcases/CWE121_Stack_Based_Buffer_Overflow/s06/CWE121_Stack_Based_Buffer_Overflow__CWE806_char_alloca_memmove_15.c
96
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__CWE806_char_alloca_memmove_15.c Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE806.label.xml Template File: sources-sink-15.tmpl.c */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: Initialize data...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__CWE806_char_alloca_memmove_15.c Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE806.label.xml Template File: sources-sink-15.tmpl.c */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: Initialize data...
88,667
testcases/CWE762_Mismatched_Memory_Management_Routines/s01/CWE762_Mismatched_Memory_Management_Routines__delete_array_class_realloc_54e.cpp
43
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__delete_array_class_realloc_54e.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete_array.label.xml Template File: sources-sinks-54e.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Managem...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__delete_array_class_realloc_54e.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete_array.label.xml Template File: sources-sinks-54e.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Managem...
100,082
testcases/CWE369_Divide_by_Zero/s02/CWE369_Divide_by_Zero__int_zero_modulo_81_bad.cpp
87
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE369_Divide_by_Zero__int_zero_modulo_81_bad.cpp Label Definition File: CWE369_Divide_by_Zero__int.label.xml Template File: sources-sinks-81_bad.tmpl.cpp */ /* * @description * CWE: 369 Divide by Zero * BadSource: zero Fixed value of zero * GoodSource: Non-zero * Sink...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE369_Divide_by_Zero__int_zero_modulo_81_bad.cpp Label Definition File: CWE369_Divide_by_Zero__int.label.xml Template File: sources-sinks-81_bad.tmpl.cpp */ /* * @description * CWE: 369 Divide by Zero * BadSource: zero Fixed value of zero * GoodSource: Non-zero * Sink...
50,142
testcases/CWE190_Integer_Overflow/s01/CWE190_Integer_Overflow__char_rand_add_62b.cpp
55
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE190_Integer_Overflow__char_rand_add_62b.cpp Label Definition File: CWE190_Integer_Overflow.label.xml Template File: sources-sinks-62b.tmpl.cpp */ /* * @description * CWE: 190 Integer Overflow * BadSource: rand Set data to result of rand() * GoodSource: Set data to a ...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE190_Integer_Overflow__char_rand_add_62b.cpp Label Definition File: CWE190_Integer_Overflow.label.xml Template File: sources-sinks-62b.tmpl.cpp */ /* * @description * CWE: 190 Integer Overflow * BadSource: rand Set data to result of rand() * GoodSource: Set data to a ...
48,026
testcases/CWE416_Use_After_Free/CWE416_Use_After_Free__malloc_free_int64_t_62b.cpp
4
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE416_Use_After_Free__malloc_free_int64_t_62b.cpp Label Definition File: CWE416_Use_After_Free__malloc_free.label.xml Template File: sources-sinks-62b.tmpl.cpp */ /* * @description * CWE: 416 Use After Free * BadSource: Allocate data using malloc(), initialize memory b...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE416_Use_After_Free__malloc_free_int64_t_62b.cpp Label Definition File: CWE416_Use_After_Free__malloc_free.label.xml Template File: sources-sinks-62b.tmpl.cpp */ /* * @description * CWE: 416 Use After Free * BadSource: Allocate data using malloc(), initialize memory b...
4,103
testcases/CWE78_OS_Command_Injection/s08/CWE78_OS_Command_Injection__wchar_t_listen_socket_w32_execvp_09.c
157
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__wchar_t_listen_socket_w32_execvp_09.c Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-09.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: listen_socket Read data using a li...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__wchar_t_listen_socket_w32_execvp_09.c Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-09.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: listen_socket Read data using a li...
90,146
testcases/CWE762_Mismatched_Memory_Management_Routines/s04/CWE762_Mismatched_Memory_Management_Routines__delete_wchar_t_realloc_53d.cpp
53
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__delete_wchar_t_realloc_53d.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete.label.xml Template File: sources-sinks-53d.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management Routin...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__delete_wchar_t_realloc_53d.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete.label.xml Template File: sources-sinks-53d.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management Routin...
67,830
testcases/CWE122_Heap_Based_Buffer_Overflow/s01/CWE122_Heap_Based_Buffer_Overflow__cpp_CWE193_char_memmove_64b.cpp
141
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE193_char_memmove_64b.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE193.label.xml Template File: sources-sink-64b.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Allocate me...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE193_char_memmove_64b.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE193.label.xml Template File: sources-sink-64b.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Allocate me...
92,962
testcases/CWE762_Mismatched_Memory_Management_Routines/s06/CWE762_Mismatched_Memory_Management_Routines__new_delete_array_long_62b.cpp
133
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__new_delete_array_long_62b.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_delete_array.label.xml Template File: sources-sinks-62b.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Manageme...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__new_delete_array_long_62b.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_delete_array.label.xml Template File: sources-sinks-62b.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Manageme...
58,304
testcases/CWE457_Use_of_Uninitialized_Variable/s01/CWE457_Use_of_Uninitialized_Variable__double_pointer_18.c
86
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE457_Use_of_Uninitialized_Variable__double_pointer_18.c Label Definition File: CWE457_Use_of_Uninitialized_Variable.c.label.xml Template File: sources-sinks-18.tmpl.c */ /* * @description * CWE: 457 Use of Uninitialized Variable * BadSource: no_init Don't initialize da...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE457_Use_of_Uninitialized_Variable__double_pointer_18.c Label Definition File: CWE457_Use_of_Uninitialized_Variable.c.label.xml Template File: sources-sinks-18.tmpl.c */ /* * @description * CWE: 457 Use of Uninitialized Variable * BadSource: no_init Don't initialize da...
91,894
testcases/CWE762_Mismatched_Memory_Management_Routines/s03/CWE762_Mismatched_Memory_Management_Routines__delete_class_realloc_12.cpp
178
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__delete_class_realloc_12.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete.label.xml Template File: sources-sinks-12.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management Routines ...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__delete_class_realloc_12.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete.label.xml Template File: sources-sinks-12.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management Routines ...
15,275
testcases/CWE121_Stack_Based_Buffer_Overflow/s05/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_declare_memmove_32.c
7
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_declare_memmove_32.c Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.label.xml Template File: sources-sink-32.tmpl.c */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: Set data poi...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_declare_memmove_32.c Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.label.xml Template File: sources-sink-32.tmpl.c */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: Set data poi...
28,111
testcases/CWE126_Buffer_Overread/s01/CWE126_Buffer_Overread__char_declare_loop_81_bad.cpp
76
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE126_Buffer_Overread__char_declare_loop_81_bad.cpp Label Definition File: CWE126_Buffer_Overread.stack.label.xml Template File: sources-sink-81_bad.tmpl.cpp */ /* * @description * CWE: 126 Buffer Over-read * BadSource: Set data pointer to a small buffer * GoodSource:...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE126_Buffer_Overread__char_declare_loop_81_bad.cpp Label Definition File: CWE126_Buffer_Overread.stack.label.xml Template File: sources-sink-81_bad.tmpl.cpp */ /* * @description * CWE: 126 Buffer Over-read * BadSource: Set data pointer to a small buffer * GoodSource:...
75,826
testcases/CWE122_Heap_Based_Buffer_Overflow/s06/CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_cpy_34.c
125
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_cpy_34.c Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE193.label.xml Template File: sources-sink-34.tmpl.c */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Allocate memory for a str...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_cpy_34.c Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE193.label.xml Template File: sources-sink-34.tmpl.c */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Allocate memory for a str...
100,816
testcases/CWE321_Hard_Coded_Cryptographic_Key/CWE321_Hard_Coded_Cryptographic_Key__w32_wchar_t_67b.c
144
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE321_Hard_Coded_Cryptographic_Key__w32_wchar_t_67b.c Label Definition File: CWE321_Hard_Coded_Cryptographic_Key__w32.label.xml Template File: sources-sink-67b.tmpl.c */ /* * @description * CWE: 321 Use of Hard-coded Cryptographic Key * BadSource: Copy a hardcoded valu...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE321_Hard_Coded_Cryptographic_Key__w32_wchar_t_67b.c Label Definition File: CWE321_Hard_Coded_Cryptographic_Key__w32.label.xml Template File: sources-sink-67b.tmpl.c */ /* * @description * CWE: 321 Use of Hard-coded Cryptographic Key * BadSource: Copy a hardcoded valu...
84,584
testcases/CWE191_Integer_Underflow/s01/CWE191_Integer_Underflow__int64_t_min_multiply_82a.cpp
150
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE191_Integer_Underflow__int64_t_min_multiply_82a.cpp Label Definition File: CWE191_Integer_Underflow.label.xml Template File: sources-sinks-82a.tmpl.cpp */ /* * @description * CWE: 191 Integer Underflow * BadSource: min Set data to the min value for int64_t * GoodSour...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE191_Integer_Underflow__int64_t_min_multiply_82a.cpp Label Definition File: CWE191_Integer_Underflow.label.xml Template File: sources-sinks-82a.tmpl.cpp */ /* * @description * CWE: 191 Integer Underflow * BadSource: min Set data to the min value for int64_t * GoodSour...
46,713
testcases/CWE124_Buffer_Underwrite/s03/CWE124_Buffer_Underwrite__new_char_memcpy_54a.cpp
40
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE124_Buffer_Underwrite__new_char_memcpy_54a.cpp Label Definition File: CWE124_Buffer_Underwrite__new.label.xml Template File: sources-sink-54a.tmpl.cpp */ /* * @description * CWE: 124 Buffer Underwrite * BadSource: Set data pointer to before the allocated memory buffe...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE124_Buffer_Underwrite__new_char_memcpy_54a.cpp Label Definition File: CWE124_Buffer_Underwrite__new.label.xml Template File: sources-sink-54a.tmpl.cpp */ /* * @description * CWE: 124 Buffer Underwrite * BadSource: Set data pointer to before the allocated memory buffe...
28,194
testcases/CWE126_Buffer_Overread/s01/CWE126_Buffer_Overread__CWE129_rand_52c.c
76
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE126_Buffer_Overread__CWE129_rand_52c.c Label Definition File: CWE126_Buffer_Overread__CWE129.label.xml Template File: sources-sinks-52c.tmpl.c */ /* * @description * CWE: 126 Buffer Overread * BadSource: rand Set data to result of rand(), which may be zero * GoodSour...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE126_Buffer_Overread__CWE129_rand_52c.c Label Definition File: CWE126_Buffer_Overread__CWE129.label.xml Template File: sources-sinks-52c.tmpl.c */ /* * @description * CWE: 126 Buffer Overread * BadSource: rand Set data to result of rand(), which may be zero * GoodSour...
80,713
testcases/CWE23_Relative_Path_Traversal/s04/CWE23_Relative_Path_Traversal__wchar_t_file_ofstream_52c.cpp
83
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE23_Relative_Path_Traversal__wchar_t_file_ofstream_52c.cpp Label Definition File: CWE23_Relative_Path_Traversal.label.xml Template File: sources-sink-52c.tmpl.cpp */ /* * @description * CWE: 23 Relative Path Traversal * BadSource: file Read input from a file * GoodSou...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE23_Relative_Path_Traversal__wchar_t_file_ofstream_52c.cpp Label Definition File: CWE23_Relative_Path_Traversal.label.xml Template File: sources-sink-52c.tmpl.cpp */ /* * @description * CWE: 23 Relative Path Traversal * BadSource: file Read input from a file * GoodSou...
52,438
testcases/CWE190_Integer_Overflow/s03/CWE190_Integer_Overflow__int_fscanf_multiply_53a.c
171
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE190_Integer_Overflow__int_fscanf_multiply_53a.c Label Definition File: CWE190_Integer_Overflow__int.label.xml Template File: sources-sinks-53a.tmpl.c */ /* * @description * CWE: 190 Integer Overflow * BadSource: fscanf Read data from the console using fscanf() * Good...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE190_Integer_Overflow__int_fscanf_multiply_53a.c Label Definition File: CWE190_Integer_Overflow__int.label.xml Template File: sources-sinks-53a.tmpl.c */ /* * @description * CWE: 190 Integer Overflow * BadSource: fscanf Read data from the console using fscanf() * Good...
41,709
testcases/CWE134_Uncontrolled_Format_String/s06/CWE134_Uncontrolled_Format_String__wchar_t_listen_socket_printf_81a.cpp
145
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE134_Uncontrolled_Format_String__wchar_t_listen_socket_printf_81a.cpp Label Definition File: CWE134_Uncontrolled_Format_String.label.xml Template File: sources-sinks-81a.tmpl.cpp */ /* * @description * CWE: 134 Uncontrolled Format String * BadSource: listen_socket Read...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE134_Uncontrolled_Format_String__wchar_t_listen_socket_printf_81a.cpp Label Definition File: CWE134_Uncontrolled_Format_String.label.xml Template File: sources-sinks-81a.tmpl.cpp */ /* * @description * CWE: 134 Uncontrolled Format String * BadSource: listen_socket Read...
85,914
testcases/CWE191_Integer_Underflow/s02/CWE191_Integer_Underflow__int_listen_socket_multiply_45.c
132
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE191_Integer_Underflow__int_listen_socket_multiply_45.c Label Definition File: CWE191_Integer_Underflow__int.label.xml Template File: sources-sinks-45.tmpl.c */ /* * @description * CWE: 191 Integer Underflow * BadSource: listen_socket Read data using a listen socket (s...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE191_Integer_Underflow__int_listen_socket_multiply_45.c Label Definition File: CWE191_Integer_Underflow__int.label.xml Template File: sources-sinks-45.tmpl.c */ /* * @description * CWE: 191 Integer Underflow * BadSource: listen_socket Read data using a listen socket (s...
94,524
testcases/CWE511_Logic_Time_Bomb/CWE511_Logic_Time_Bomb__time_02.c
186
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE511_Logic_Time_Bomb__time_02.c Label Definition File: CWE511_Logic_Time_Bomb.label.xml Template File: point-flaw-02.tmpl.c */ /* * @description * CWE: 511 Logic Time Bomb * Sinks: time * GoodSink: After a certain date, do something harmless * BadSink : After a...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE511_Logic_Time_Bomb__time_02.c Label Definition File: CWE511_Logic_Time_Bomb.label.xml Template File: point-flaw-02.tmpl.c */ /* * @description * CWE: 511 Logic Time Bomb * Sinks: time * GoodSink: After a certain date, do something harmless * BadSink : After a...
88,529
testcases/CWE762_Mismatched_Memory_Management_Routines/s05/CWE762_Mismatched_Memory_Management_Routines__new_array_free_long_72b.cpp
62
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__new_array_free_long_72b.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_array_free.label.xml Template File: sources-sinks-72b.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management R...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__new_array_free_long_72b.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_array_free.label.xml Template File: sources-sinks-72b.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management R...
13,416
testcases/CWE590_Free_Memory_Not_on_Heap/s03/CWE590_Free_Memory_Not_on_Heap__delete_int64_t_placement_new_53a.cpp
147
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE590_Free_Memory_Not_on_Heap__delete_int64_t_placement_new_53a.cpp Label Definition File: CWE590_Free_Memory_Not_on_Heap__delete.pointer.label.xml Template File: sources-sink-53a.tmpl.cpp */ /* * @description * CWE: 590 Free Memory Not on Heap * BadSource: placement_ne...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE590_Free_Memory_Not_on_Heap__delete_int64_t_placement_new_53a.cpp Label Definition File: CWE590_Free_Memory_Not_on_Heap__delete.pointer.label.xml Template File: sources-sink-53a.tmpl.cpp */ /* * @description * CWE: 590 Free Memory Not on Heap * BadSource: placement_ne...
64,788
testcases/CWE195_Signed_to_Unsigned_Conversion_Error/s01/CWE195_Signed_to_Unsigned_Conversion_Error__fgets_memmove_51a.c
100
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE195_Signed_to_Unsigned_Conversion_Error__fgets_memmove_51a.c Label Definition File: CWE195_Signed_to_Unsigned_Conversion_Error.label.xml Template File: sources-sink-51a.tmpl.c */ /* * @description * CWE: 195 Signed to Unsigned Conversion Error * BadSource: fgets Read ...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE195_Signed_to_Unsigned_Conversion_Error__fgets_memmove_51a.c Label Definition File: CWE195_Signed_to_Unsigned_Conversion_Error.label.xml Template File: sources-sink-51a.tmpl.c */ /* * @description * CWE: 195 Signed to Unsigned Conversion Error * BadSource: fgets Read ...
16,492
testcases/CWE121_Stack_Based_Buffer_Overflow/s01/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_66a.c
154
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_66a.c Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE193.label.xml Template File: sources-sink-66a.tmpl.c */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: Point data to a b...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_66a.c Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE193.label.xml Template File: sources-sink-66a.tmpl.c */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: Point data to a b...
65,931
testcases/CWE195_Signed_to_Unsigned_Conversion_Error/s02/CWE195_Signed_to_Unsigned_Conversion_Error__negative_memmove_31.c
193
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE195_Signed_to_Unsigned_Conversion_Error__negative_memmove_31.c Label Definition File: CWE195_Signed_to_Unsigned_Conversion_Error.label.xml Template File: sources-sink-31.tmpl.c */ /* * @description * CWE: 195 Signed to Unsigned Conversion Error * BadSource: negative S...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE195_Signed_to_Unsigned_Conversion_Error__negative_memmove_31.c Label Definition File: CWE195_Signed_to_Unsigned_Conversion_Error.label.xml Template File: sources-sink-31.tmpl.c */ /* * @description * CWE: 195 Signed to Unsigned Conversion Error * BadSource: negative S...
3,612
testcases/CWE78_OS_Command_Injection/s04/CWE78_OS_Command_Injection__char_listen_socket_w32_execvp_73b.cpp
52
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__char_listen_socket_w32_execvp_73b.cpp Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-73b.tmpl.cpp */ /* * @description * CWE: 78 OS Command Injection * BadSource: listen_socket Read data using a...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__char_listen_socket_w32_execvp_73b.cpp Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-73b.tmpl.cpp */ /* * @description * CWE: 78 OS Command Injection * BadSource: listen_socket Read data using a...
85,174
testcases/CWE191_Integer_Underflow/s04/CWE191_Integer_Underflow__unsigned_int_min_postdec_52c.c
95
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE191_Integer_Underflow__unsigned_int_min_postdec_52c.c Label Definition File: CWE191_Integer_Underflow.label.xml Template File: sources-sinks-52c.tmpl.c */ /* * @description * CWE: 191 Integer Underflow * BadSource: min Set data to the min value for unsigned int * Goo...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE191_Integer_Underflow__unsigned_int_min_postdec_52c.c Label Definition File: CWE191_Integer_Underflow.label.xml Template File: sources-sinks-52c.tmpl.c */ /* * @description * CWE: 191 Integer Underflow * BadSource: min Set data to the min value for unsigned int * Goo...
End of preview. Expand in Data Studio

Dataset Card for the Juliet Test Suite 1.3

Dataset Summary

This Datasets contains all test cases from the NIST's Juliet test suite for the C and C++ programming languages. The dataset contains a benign and a defective implementation of each sample, which have been extracting by means of the OMITGOOD and OMITBAD preprocessor macros of the Juliet test suite.

Supported Tasks and Leaderboards

Software defect prediction, code clone detection.

Languages

The C and C++ programming languages.

Dataset Structure

Data Instances

Data Fields

index name type description
0 index int The index of each sample in the dataset.
1 filename str The path to the test case including the file name.
2 class int The class of the defect, i.e., the collection by CWE number from which the sample was taken.
3 good str The code of the benign implementation.
4 bad str The code of the defective implementation.

Data Splits

type size
train 80706 cases
test 20177 cases

Dataset Creation

Curation Rationale

Source Data

https://samate.nist.gov/SARD/test-suites/112

Initial Data Collection and Normalization

Who are the source language producers?

Annotations

Annotation process

Who are the annotators?

Personal and Sensitive Information

Considerations for Using the Data

Social Impact of Dataset

Discussion of Biases

Other Known Limitations

The Juliet test suite is a synthetic dataset, meaning that all samples have been manually crafted. Therefore they are not entirely representative of actual software defects found in the wild. A classifier trained on these samples may suffer from decreased predictive performance, leading to gross misclassifactions. Critical software defects may therefore be overlooked, when such model is applied in a realistic environment.

Additional Information

Dataset Curators

https://github.com/lorenz9314/

Licensing Information

Citation Information

Contributions

Downloads last month
81