Dataset Viewer
Auto-converted to Parquet Duplicate
unique_id
float64
200
186k
target
stringclasses
21 values
__index_level_0__
float64
0
139
code
stringlengths
1.09k
15.1k
73,752
Poor_Code_Quality
0
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE398_simple__empty_if_14.c Label Definition File: CWE398_simple.label.xml Template File: point-flaw-14.tmpl.c */ /* * @description * CWE: 398 Poor Code Quality * Sinks: empty_if * GoodSink: If statement contains code * BadSink : An empty if statement has no eff...
54,196
Poor_Code_Quality
1
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE398_simple__empty_case_09.c Label Definition File: CWE398_simple.label.xml Template File: point-flaw-09.tmpl.c */ /* * @description * CWE: 398 Poor Code Quality * Sinks: empty_case * GoodSink: Case statement contains code * BadSink : An empty case statement ha...
169,124
Poor_Code_Quality
2
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE398_simple__empty_if_09.c Label Definition File: CWE398_simple.label.xml Template File: point-flaw-09.tmpl.c */ /* * @description * CWE: 398 Poor Code Quality * Sinks: empty_if * GoodSink: If statement contains code * BadSink : An empty if statement has no eff...
109,551
Poor_Code_Quality
3
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE398_simple__semicolon_03.c Label Definition File: CWE398_simple.label.xml Template File: point-flaw-03.tmpl.c */ /* * @description * CWE: 398 Poor Code Quality * Sinks: semicolon * GoodSink: Removed statement that has no effect * BadSink : A statement that has...
78,906
Poor_Code_Quality
4
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE398_simple__empty_else_17.c Label Definition File: CWE398_simple.label.xml Template File: point-flaw-17.tmpl.c */ /* * @description * CWE: 398 Poor Code Quality * Sinks: empty_else * GoodSink: Else statement contains code * BadSink : An empty else statement ha...
169,746
Poor_Code_Quality
5
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE398_simple__addition_02.c Label Definition File: CWE398_simple.label.xml Template File: point-flaw-02.tmpl.c */ /* * @description * CWE: 398 Poor Code Quality * Sinks: addition * GoodSink: Adding two ints and storing the result * BadSink : Adding two ints but ...
145,939
Poor_Code_Quality
6
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE398_simple__empty_case_10.c Label Definition File: CWE398_simple.label.xml Template File: point-flaw-10.tmpl.c */ /* * @description * CWE: 398 Poor Code Quality * Sinks: empty_case * GoodSink: Case statement contains code * BadSink : An empty case statement ha...
154,252
Poor_Code_Quality
7
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE398_simple__empty_else_04.c Label Definition File: CWE398_simple.label.xml Template File: point-flaw-04.tmpl.c */ /* * @description * CWE: 398 Poor Code Quality * Sinks: empty_else * GoodSink: Else statement contains code * BadSink : An empty else statement ha...
38,512
Poor_Code_Quality
8
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE398_simple__empty_else_16.c Label Definition File: CWE398_simple.label.xml Template File: point-flaw-16.tmpl.c */ /* * @description * CWE: 398 Poor Code Quality * Sinks: empty_else * GoodSink: Else statement contains code * BadSink : An empty else statement ha...
96,336
Poor_Code_Quality
9
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE398_simple__empty_case_02.c Label Definition File: CWE398_simple.label.xml Template File: point-flaw-02.tmpl.c */ /* * @description * CWE: 398 Poor Code Quality * Sinks: empty_case * GoodSink: Case statement contains code * BadSink : An empty case statement ha...
123,788
Numeric_Truncation_Error
10
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE197_simple__int_fscanf_to_short_15.c Label Definition File: CWE197_simple__int.label.xml Template File: sources-sink-15.tmpl.c */ /* * @description * CWE: 197 Numeric Truncation Error * BadSource: fscanf Read data from the console using fscanf() * GoodSource: Less th...
185,961
Numeric_Truncation_Error
11
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE197_simple__short_connect_socket_72a.cpp Label Definition File: CWE197_simple__short.label.xml Template File: sources-sink-72a.tmpl.cpp */ /* * @description * CWE: 197 Numeric Truncation Error * BadSource: connect_socket Read data using a connect socket (client side) ...
158,921
Numeric_Truncation_Error
12
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE197_simple__short_rand_84_goodG2B.cpp Label Definition File: CWE197_simple__short.label.xml Template File: sources-sink-84_goodG2B.tmpl.cpp */ /* * @description * CWE: 197 Numeric Truncation Error * BadSource: rand Set data to result of RAND32(), which could be negati...
28,508
Numeric_Truncation_Error
13
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE197_simple__short_listen_socket_83_bad.cpp Label Definition File: CWE197_simple__short.label.xml Template File: sources-sink-83_bad.tmpl.cpp */ /* * @description * CWE: 197 Numeric Truncation Error * BadSource: listen_socket Read data using a listen socket (server sid...
83,192
Numeric_Truncation_Error
14
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE197_simple__short_fscanf_14.c Label Definition File: CWE197_simple__short.label.xml Template File: sources-sink-14.tmpl.c */ /* * @description * CWE: 197 Numeric Truncation Error * BadSource: fscanf Read data from the console using fscanf() * GoodSource: Less than CH...
111,482
Numeric_Truncation_Error
15
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE197_simple__short_connect_socket_01.c Label Definition File: CWE197_simple__short.label.xml Template File: sources-sink-01.tmpl.c */ /* * @description * CWE: 197 Numeric Truncation Error * BadSource: connect_socket Read data using a connect socket (client side) * Goo...
35,780
Numeric_Truncation_Error
16
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE197_simple__int_rand_to_char_63b.c Label Definition File: CWE197_simple__int.label.xml Template File: sources-sink-63b.tmpl.c */ /* * @description * CWE: 197 Numeric Truncation Error * BadSource: rand Set data to result of rand(), which may be zero * GoodSource: Less...
137,451
Numeric_Truncation_Error
17
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE197_simple__int_rand_to_short_68b.c Label Definition File: CWE197_simple__int.label.xml Template File: sources-sink-68b.tmpl.c */ /* * @description * CWE: 197 Numeric Truncation Error * BadSource: rand Set data to result of rand(), which may be zero * GoodSource: Les...
145,716
Numeric_Truncation_Error
18
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE197_simple__short_fgets_73a.cpp Label Definition File: CWE197_simple__short.label.xml Template File: sources-sink-73a.tmpl.cpp */ /* * @description * CWE: 197 Numeric Truncation Error * BadSource: fgets Read data from the console using fgets() * GoodSource: Less than...
113,535
Numeric_Truncation_Error
19
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE197_simple__int_rand_to_short_83_goodG2B.cpp Label Definition File: CWE197_simple__int.label.xml Template File: sources-sink-83_goodG2B.tmpl.cpp */ /* * @description * CWE: 197 Numeric Truncation Error * BadSource: rand Set data to result of rand(), which may be zero ...
163,328
Improper_Access_Control
20
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE284_simple__w32_wchar_t_CreateFile_07.c Label Definition File: CWE284_simple__w32.label.xml Template File: point-flaw-07.tmpl.c */ /* * @description * CWE: 284 Improper Access Control * Sinks: CreateFile * GoodSink: Create a file using CreateFileW() without excess...
10,336
Improper_Access_Control
21
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE284_simple__w32_wchar_t_CreateDesktop_18.c Label Definition File: CWE284_simple__w32.label.xml Template File: point-flaw-18.tmpl.c */ /* * @description * CWE: 284 Improper Access Control * Sinks: CreateDesktop * GoodSink: Create a desktop using CreateDesktopW() wi...
99,329
Improper_Access_Control
22
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE284_simple__w32_char_CreateWindowStation_04.c Label Definition File: CWE284_simple__w32.label.xml Template File: point-flaw-04.tmpl.c */ /* * @description * CWE: 284 Improper Access Control * Sinks: CreateWindowStation * GoodSink: Create a windows station using Cr...
120,922
Improper_Access_Control
23
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE284_simple__w32_char_SHRegCreateUSKey_11.c Label Definition File: CWE284_simple__w32.label.xml Template File: point-flaw-11.tmpl.c */ /* * @description * CWE: 284 Improper Access Control * Sinks: SHRegCreateUSKey * GoodSink: Create a registry key using SHRegCreate...
146,584
Improper_Access_Control
24
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE284_simple__w32_wchar_t_SHRegCreateUSKey_13.c Label Definition File: CWE284_simple__w32.label.xml Template File: point-flaw-13.tmpl.c */ /* * @description * CWE: 284 Improper Access Control * Sinks: SHRegCreateUSKey * GoodSink: Create a registry key using SHRegCre...
164,683
Improper_Access_Control
25
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE284_simple__w32_char_CreateDesktop_13.c Label Definition File: CWE284_simple__w32.label.xml Template File: point-flaw-13.tmpl.c */ /* * @description * CWE: 284 Improper Access Control * Sinks: CreateDesktop * GoodSink: Create a desktop using CreateDesktopA() witho...
146,404
Improper_Access_Control
26
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE284_simple__w32_wchar_t_RegCreateKeyEx_15.c Label Definition File: CWE284_simple__w32.label.xml Template File: point-flaw-15.tmpl.c */ /* * @description * CWE: 284 Improper Access Control * Sinks: RegCreateKeyEx * GoodSink: Create a registry key using RegCreateKey...
25,240
Improper_Access_Control
27
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE284_simple__w32_wchar_t_CreateDesktop_08.c Label Definition File: CWE284_simple__w32.label.xml Template File: point-flaw-08.tmpl.c */ /* * @description * CWE: 284 Improper Access Control * Sinks: CreateDesktop * GoodSink: Create a desktop using CreateDesktopW() wi...
157,744
Improper_Access_Control
28
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE284_simple__w32_wchar_t_CreateWindowStation_14.c Label Definition File: CWE284_simple__w32.label.xml Template File: point-flaw-14.tmpl.c */ /* * @description * CWE: 284 Improper Access Control * Sinks: CreateWindowStation * GoodSink: Create a windows station using...
122,434
Improper_Access_Control
29
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE284_simple__w32_wchar_t_CreateFile_12.c Label Definition File: CWE284_simple__w32.label.xml Template File: point-flaw-12.tmpl.c */ /* * @description * CWE: 284 Improper Access Control * Sinks: CreateFile * GoodSink: Create a file using CreateFileW() without excess...
111,495
Uncontrolled_Search_Path_Element
30
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE427_simple__char_console_18.c Label Definition File: CWE427_simple.label.xml Template File: sources-sink-18.tmpl.c */ /* * @description * CWE: 427 Uncontrolled Search Path Element * BadSource: console Read input from the console * GoodSource: Use a hardcoded path * ...
63,007
Uncontrolled_Search_Path_Element
31
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE427_simple__wchar_t_connect_socket_53c.c Label Definition File: CWE427_simple.label.xml Template File: sources-sink-53c.tmpl.c */ /* * @description * CWE: 427 Uncontrolled Search Path Element * BadSource: connect_socket Read data using a connect socket (client side) ...
104,976
Uncontrolled_Search_Path_Element
32
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE427_simple__char_console_52a.c Label Definition File: CWE427_simple.label.xml Template File: sources-sink-52a.tmpl.c */ /* * @description * CWE: 427 Uncontrolled Search Path Element * BadSource: console Read input from the console * GoodSource: Use a hardcoded path ...
157,963
Uncontrolled_Search_Path_Element
33
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE427_simple__char_file_67b.c Label Definition File: CWE427_simple.label.xml Template File: sources-sink-67b.tmpl.c */ /* * @description * CWE: 427 Uncontrolled Search Path Element * BadSource: file Read input from a file * GoodSource: Use a hardcoded path * Sinks: *...
119,849
Uncontrolled_Search_Path_Element
34
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE427_simple__wchar_t_file_64b.c Label Definition File: CWE427_simple.label.xml Template File: sources-sink-64b.tmpl.c */ /* * @description * CWE: 427 Uncontrolled Search Path Element * BadSource: file Read input from a file * GoodSource: Use a hardcoded path * Sinks:...
154,658
Uncontrolled_Search_Path_Element
35
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE427_simple__wchar_t_console_09.c Label Definition File: CWE427_simple.label.xml Template File: sources-sink-09.tmpl.c */ /* * @description * CWE: 427 Uncontrolled Search Path Element * BadSource: console Read input from the console * GoodSource: Use a hardcoded path ...
150,349
Uncontrolled_Search_Path_Element
36
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE427_simple__char_file_05.c Label Definition File: CWE427_simple.label.xml Template File: sources-sink-05.tmpl.c */ /* * @description * CWE: 427 Uncontrolled Search Path Element * BadSource: file Read input from a file * GoodSource: Use a hardcoded path * Sink: * ...
81,848
Uncontrolled_Search_Path_Element
37
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE427_simple__char_file_54e.c Label Definition File: CWE427_simple.label.xml Template File: sources-sink-54e.tmpl.c */ /* * @description * CWE: 427 Uncontrolled Search Path Element * BadSource: file Read input from a file * GoodSource: Use a hardcoded path * Sink: * ...
27,200
Uncontrolled_Search_Path_Element
38
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE427_simple__char_console_34.c Label Definition File: CWE427_simple.label.xml Template File: sources-sink-34.tmpl.c */ /* * @description * CWE: 427 Uncontrolled Search Path Element * BadSource: console Read input from the console * GoodSource: Use a hardcoded path * ...
84,129
Uncontrolled_Search_Path_Element
39
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE427_simple__char_console_64a.c Label Definition File: CWE427_simple.label.xml Template File: sources-sink-64a.tmpl.c */ /* * @description * CWE: 427 Uncontrolled Search Path Element * BadSource: console Read input from the console * GoodSource: Use a hardcoded path ...
58,019
TOC_TOU
40
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE367_simple__access_11.c Label Definition File: CWE367_simple.label.xml Template File: point-flaw-11.tmpl.c */ /* * @description * CWE: 367 Time-of-Check Time-Of-Use Race Condition * Sinks: access * GoodSink: Open the file without checking the status information *...
88,033
TOC_TOU
41
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE367_simple__access_10.c Label Definition File: CWE367_simple.label.xml Template File: point-flaw-10.tmpl.c */ /* * @description * CWE: 367 Time-of-Check Time-Of-Use Race Condition * Sinks: access * GoodSink: Open the file without checking the status information *...
64,809
TOC_TOU
42
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE367_simple__access_04.c Label Definition File: CWE367_simple.label.xml Template File: point-flaw-04.tmpl.c */ /* * @description * CWE: 367 Time-of-Check Time-Of-Use Race Condition * Sinks: access * GoodSink: Open the file without checking the status information *...
6,158
TOC_TOU
43
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE367_simple__access_16.c Label Definition File: CWE367_simple.label.xml Template File: point-flaw-16.tmpl.c */ /* * @description * CWE: 367 Time-of-Check Time-Of-Use Race Condition * Sinks: access * GoodSink: Open the file without checking the status information *...
127,755
TOC_TOU
44
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE367_simple__access_09.c Label Definition File: CWE367_simple.label.xml Template File: point-flaw-09.tmpl.c */ /* * @description * CWE: 367 Time-of-Check Time-Of-Use Race Condition * Sinks: access * GoodSink: Open the file without checking the status information *...
73,161
TOC_TOU
45
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE367_simple__stat_17.c Label Definition File: CWE367_simple.label.xml Template File: point-flaw-17.tmpl.c */ /* * @description * CWE: 367 Time-of-Check Time-Of-Use Race Condition * Sinks: stat * GoodSink: Open the file without checking the status information * ...
1,981
TOC_TOU
46
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE367_simple__access_02.c Label Definition File: CWE367_simple.label.xml Template File: point-flaw-02.tmpl.c */ /* * @description * CWE: 367 Time-of-Check Time-Of-Use Race Condition * Sinks: access * GoodSink: Open the file without checking the status information *...
45,141
TOC_TOU
47
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE367_simple__stat_04.c Label Definition File: CWE367_simple.label.xml Template File: point-flaw-04.tmpl.c */ /* * @description * CWE: 367 Time-of-Check Time-Of-Use Race Condition * Sinks: stat * GoodSink: Open the file without checking the status information * ...
4,741
TOC_TOU
48
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE367_simple__stat_02.c Label Definition File: CWE367_simple.label.xml Template File: point-flaw-02.tmpl.c */ /* * @description * CWE: 367 Time-of-Check Time-Of-Use Race Condition * Sinks: stat * GoodSink: Open the file without checking the status information * ...
1,591
TOC_TOU
49
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE367_simple__stat_05.c Label Definition File: CWE367_simple.label.xml Template File: point-flaw-05.tmpl.c */ /* * @description * CWE: 367 Time-of-Check Time-Of-Use Race Condition * Sinks: stat * GoodSink: Open the file without checking the status information * ...
147,185
Untrusted_Search_Path
50
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE426_simple__char_popen_54e.c Label Definition File: CWE426_simple.label.xml Template File: sources-sink-54e.tmpl.c */ /* * @description * CWE: 426 Untrusted Search Path * BadSource: Don't specify the full path in the OS command * GoodSource: Specify the full path in...
86,705
Untrusted_Search_Path
51
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE426_simple__char_popen_16.c Label Definition File: CWE426_simple.label.xml Template File: sources-sink-16.tmpl.c */ /* * @description * CWE: 426 Untrusted Search Path * BadSource: Don't specify the full path in the OS command * GoodSource: Specify the full path in t...
46,166
Untrusted_Search_Path
52
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE426_simple__char_popen_08.c Label Definition File: CWE426_simple.label.xml Template File: sources-sink-08.tmpl.c */ /* * @description * CWE: 426 Untrusted Search Path * BadSource: Don't specify the full path in the OS command * GoodSource: Specify the full path in t...
28,360
Untrusted_Search_Path
53
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE426_simple__char_popen_11.c Label Definition File: CWE426_simple.label.xml Template File: sources-sink-11.tmpl.c */ /* * @description * CWE: 426 Untrusted Search Path * BadSource: Don't specify the full path in the OS command * GoodSource: Specify the full path in t...
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
13