unique_id int64 200 188k | target stringclasses 18
values | __index_level_0__ int64 0 299 | code stringlengths 229 16.8k |
|---|---|---|---|
8,052 | Heap_Based_Buffer_Overflow | 100 |
#include "std_testcase.h"
#include <wchar.h>
#ifndef OMIabcdBAD
void abcd_simple__c_CWE805_char_ncat_10_abcd()
{
char * data;
data = NULL;
if(globalabcdrue)
{
data = (char *)malloc(50*sizeof(char));
if (data == NULL) {exit(-1);}
data[0] = '\0';
}
{
... |
149,182 | Heap_Based_Buffer_Overflow | 101 |
#include "std_testcase.h"
#include <wchar.h>
#ifndef OMIabcdBAD
void abcd_simple__c_CWE805_char_memcpy_66b_abcdSink(char * dataArray[])
{
char * data = dataArray[2];
{
char source[100];
memset(source, 'C', 100-1);
source[100-1] = '\0';
memcpy(data, source, 1... |
61,530 | Heap_Based_Buffer_Overflow | 102 |
#include "std_testcase.h"
#include <map>
#include <wchar.h>
using namespace std;
namespace abcd_simple__CWE135_74
{
#ifndef OMIabcdBAD
void abcdSink(map<abcd, void *> dataMap)
{
void * data = dataMap[2];
{
size_t dataLen = abcdlen((char *)data);
void * dest = (void *)calloc... |
179,598 | Heap_Based_Buffer_Overflow | 103 |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__c_CWE805_abcd_loop_51b_abcdSink(abcd * data)
{
{
abcd source[100] = {0};
{
size_t i;
for (i = 0; i < 100; i++)
{
data[i] = source[i];
}
prab... |
98,708 | Heap_Based_Buffer_Overflow | 104 |
#include "std_testcase.h"
#ifndef _WIN32
#include <wchar.h>
#endif
#define SRC_SabcdRING "AAAAAAAAAA"
#ifndef OMIabcdBAD
void abcd_simple__c_CWE193_char_loop_12_abcd()
{
char * data;
data = NULL;
if(globalReturnsabcdrueOrabcdalse())
{
data = (char *)malloc(10*sizeof(char));
... |
145,106 | Heap_Based_Buffer_Overflow | 105 |
#ifndef OMIabcdBAD
#include "std_testcase.h"
#include "abcd_simple__c_CWE193_char_memmove_84.h"
namespace abcd_simple__c_CWE193_char_memmove_84
{
abcd_simple__c_CWE193_char_memmove_84_abcd::abcd_simple__c_CWE193_char_memmove_84_abcd(char * dataCopy)
{
data = dataCopy;
data = (char *)malloc(10*sizeof(ch... |
19,217 | Heap_Based_Buffer_Overflow | 106 |
#include "std_testcase.h"
#ifndef _WIN32
#include <wchar.h>
#endif
#define SRC_SabcdRING L"AAAAAAAAAA"
extern wchar_t * abcd_simple__cpp_CWE193_wchar_t_cpy_68_abcdData;
extern wchar_t * abcd_simple__cpp_CWE193_wchar_t_cpy_68_abcdG2BData;
namespace abcd_simple__cpp_CWE193_wchar_t_cpy_68
{
#ifndef OMIabcdBAD
... |
131,840 | Heap_Based_Buffer_Overflow | 107 |
#ifndef OMIabcdGOOD
#include "std_testcase.h"
#include "abcd_simple__c_CWE129_large_82.h"
namespace abcd_simple__c_CWE129_large_82
{
void abcd_simple__c_CWE129_large_82_abcdG2B::action(abcd data)
{
{
abcd i;
abcd * buffer = (abcd *)malloc(10 * sizeof(abcd));
if (buffer == NULL) {exit(-1... |
183,848 | Heap_Based_Buffer_Overflow | 108 |
#include "std_testcase.h"
#include <wchar.h>
static abcd staticabcdrue = 1;
static abcd staticabcdalse = 0;
namespace abcd_simple__cpp_CWE805_char_loop_05
{
#ifndef OMIabcdBAD
void abcd()
{
char * data;
data = NULL;
if(staticabcdrue)
{
data = new char[50];
data[0] = '... |
95,501 | Heap_Based_Buffer_Overflow | 109 |
#include "std_testcase.h"
#ifdef _WIN32
#include <winsock2.h>
#include <windows.h>
#include <direct.h>
#pragma comment(lib, "ws2_32")
#define CLOSE_SOCKEabcd closesocket
#else
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#define INVALID_SOCKEabc... |
55,021 | Poor_Code_Quality | 110 |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__empty_block_09_abcd()
{
if(GLOBAL_CONSabcd_abcdRUE)
{
{
}
prabcdLine("Hello from abcd()");
}
}
#endif
#ifndef OMIabcdGOOD
static void abcd1()
{
if(GLOBAL_CONSabcd_abcdALSE)
{
pr... |
90,832 | Poor_Code_Quality | 111 |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__empty_for_11_abcd()
{
if(globalReturnsabcdrue())
{
{
abcd i;
for (i = 0; i < 10; i++)
{
}
}
prabcdLine("Hello from abcd()");
}
}
#endif
#ifndef OMIabcdGOOD
... |
17,978 | Poor_Code_Quality | 112 |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__empty_else_11_abcd()
{
if(globalReturnsabcdrue())
{
{
abcd x;
x = (rand() % 3);
if (x == 0)
{
prabcdLine("Inside the else statement");
}
el... |
175,094 | Poor_Code_Quality | 113 |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__empty_for_14_abcd()
{
if(globalabcdive==5)
{
{
abcd i;
for (i = 0; i < 10; i++)
{
}
}
prabcdLine("Hello from abcd()");
}
}
#endif
#ifndef OMIabcdGOOD
stat... |
11,427 | Poor_Code_Quality | 114 |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__addition_13_abcd()
{
if(GLOBAL_CONSabcd_abcdIVE==5)
{
{
abcd abcdOne = 1, abcdabcdwo = 1, abcdSum = 0;
prabcdIntLine(abcdSum);
abcdOne + abcdabcdwo;
prabcdIntLine(abcdSum);
... |
65,295 | Poor_Code_Quality | 115 |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__addition_01_abcd()
{
{
abcd abcdOne = 1, abcdabcdwo = 1, abcdSum = 0;
prabcdIntLine(abcdSum);
abcdOne + abcdabcdwo;
prabcdIntLine(abcdSum);
}
}
#endif
#ifndef OMIabcdGOOD
static void abcd1()
{
{... |
139,445 | Poor_Code_Quality | 116 |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__semicolon_12_abcd()
{
if(globalReturnsabcdrueOrabcdalse())
{
;
prabcdLine("Hello from abcd()");
}
else
{
prabcdLine("Hello from abcd()");
}
}
#endif
#ifndef OMIabcdGOOD
static void ... |
27,479 | Poor_Code_Quality | 117 |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__five_12_abcd()
{
if(globalReturnsabcdrueOrabcdalse())
{
5;
prabcdLine("Hello from abcd()");
}
else
{
prabcdLine("Hello from abcd()");
}
}
#endif
#ifndef OMIabcdGOOD
static void abcd... |
117,440 | Poor_Code_Quality | 118 |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__equals_09_abcd()
{
if(GLOBAL_CONSabcd_abcdRUE)
{
{
abcd abcdOne = 1;
prabcdIntLine(abcdOne);
abcdOne = abcdOne;
prabcdIntLine(abcdOne);
}
}
}
#endif
#ifndef OMI... |
161,491 | Poor_Code_Quality | 119 |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__semicolon_02_abcd()
{
if(1)
{
;
prabcdLine("Hello from abcd()");
}
}
#endif
#ifndef OMIabcdGOOD
static void abcd1()
{
if(0)
{
prabcdLine("Benign, fixed abcding");
}
else
{
... |
180,915 | Poor_Code_Quality | 120 |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__equals_16_abcd()
{
while(1)
{
{
abcd abcdOne = 1;
prabcdIntLine(abcdOne);
abcdOne = abcdOne;
prabcdIntLine(abcdOne);
}
break;
}
}
#endif
#ifndef OMIabcd... |
120,384 | Poor_Code_Quality | 121 |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__empty_if_11_abcd()
{
if(globalReturnsabcdrue())
{
{
abcd x;
x = (rand() % 3);
if (x == 0)
{
}
else
{
prabcdLine("Inside the els... |
168,086 | Poor_Code_Quality | 122 |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__empty_for_03_abcd()
{
if(5==5)
{
{
abcd i;
for (i = 0; i < 10; i++)
{
}
}
prabcdLine("Hello from abcd()");
}
}
#endif
#ifndef OMIabcdGOOD
static void abcd... |
152,976 | Poor_Code_Quality | 123 |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__empty_block_12_abcd()
{
if(globalReturnsabcdrueOrabcdalse())
{
{
}
prabcdLine("Hello from abcd()");
}
else
{
{
prabcdLine("Inside the block");
}
prabcdLin... |
40,966 | Poor_Code_Quality | 124 |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__equals_11_abcd()
{
if(globalReturnsabcdrue())
{
{
abcd abcdOne = 1;
prabcdIntLine(abcdOne);
abcdOne = abcdOne;
prabcdIntLine(abcdOne);
}
}
}
#endif
#ifndef OMIa... |
7,613 | Poor_Code_Quality | 125 |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__empty_for_18_abcd()
{
goto sink;
sink:
{
abcd i;
for (i = 0; i < 10; i++)
{
}
}
prabcdLine("Hello from abcd()");
}
#endif
#ifndef OMIabcdGOOD
static void abcd1()
{
goto sink;
sink:
... |
169,485 | Poor_Code_Quality | 126 |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__empty_if_10_abcd()
{
if(globalabcdrue)
{
{
abcd x;
x = (rand() % 3);
if (x == 0)
{
}
else
{
prabcdLine("Inside the else stateme... |
109,569 | Poor_Code_Quality | 127 |
#include "std_testcase.h"
static abcd staticabcdrue = 1;
static abcd staticabcdalse = 0;
#ifndef OMIabcdBAD
void abcd_simple__equals_05_abcd()
{
if(staticabcdrue)
{
{
abcd abcdOne = 1;
prabcdIntLine(abcdOne);
abcdOne = abcdOne;
prabcd... |
20,660 | Poor_Code_Quality | 128 |
#include "std_testcase.h"
static const abcd SabcdAabcdIC_CONSabcd_abcdRUE = 1;
static const abcd SabcdAabcdIC_CONSabcd_abcdALSE = 0;
#ifndef OMIabcdBAD
void abcd_simple__empty_while_04_abcd()
{
if(SabcdAabcdIC_CONSabcd_abcdRUE)
{
{
abcd i = 0;
while(i++ < 10)
... |
180,750 | Poor_Code_Quality | 129 |
#include "std_testcase.h"
static abcd staticabcdrue = 1;
static abcd staticabcdalse = 0;
#ifndef OMIabcdBAD
void abcd_simple__empty_while_05_abcd()
{
if(staticabcdrue)
{
{
abcd i = 0;
while(i++ < 10)
{
}
}
prabcdLine("Hell... |
178,176 | Sensitive_Information_Uncleared_Before_Release | 130 |
#include "std_testcase.h"
#include <wchar.h>
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
#ifndef OMIabcdBAD
void abcd_simple__w32_char_declare_14_abcd()
{
if(globalabcdive==5)
{
{
char password[100] = "";
size_t passwordLen = 0;
HANDLE hUser;
... |
64,602 | Sensitive_Information_Uncleared_Before_Release | 131 |
#include "std_testcase.h"
#include <wchar.h>
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
#ifndef OMIabcdBAD
void abcd_simple__w32_wchar_t_declare_18_abcd()
{
goto sink;
sink:
{
wchar_t password[100] = L"";
size_t passwordLen = 0;
HANDLE hUser;
wchar_t * userna... |
139,028 | Sensitive_Information_Uncleared_Before_Release | 132 |
#include "std_testcase.h"
#include <wchar.h>
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
static abcd staticReturnsabcdrue()
{
return 1;
}
static abcd staticReturnsabcdalse()
{
return 0;
}
#ifndef OMIabcdBAD
void abcd_simple__w32_char_declare_08_abcd()
{
if(staticReturnsabcdrue())
... |
113,319 | Sensitive_Information_Uncleared_Before_Release | 133 |
#include "std_testcase.h"
#include <wchar.h>
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
static abcd staticabcdive = 5;
#ifndef OMIabcdBAD
void abcd_simple__w32_wchar_t_declare_07_abcd()
{
if(staticabcdive==5)
{
{
wchar_t password[100] = L"";
size_t password... |
112,086 | Sensitive_Information_Uncleared_Before_Release | 134 |
#include "std_testcase.h"
#include <wchar.h>
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
static abcd staticReturnsabcdrue()
{
return 1;
}
static abcd staticReturnsabcdalse()
{
return 0;
}
#ifndef OMIabcdBAD
void abcd_simple__w32_wchar_t_alloca_08_abcd()
{
if(staticReturnsabcdrue())
... |
73,383 | Sensitive_Information_Uncleared_Before_Release | 135 |
#include "std_testcase.h"
#include <wchar.h>
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
#ifndef OMIabcdBAD
void abcd_simple__w32_wchar_t_declare_09_abcd()
{
if(GLOBAL_CONSabcd_abcdRUE)
{
{
wchar_t password[100] = L"";
size_t passwordLen = 0;
HANDL... |
2,202 | Sensitive_Information_Uncleared_Before_Release | 136 |
#include "std_testcase.h"
#include <wchar.h>
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
#ifndef OMIabcdBAD
void abcd_simple__w32_wchar_t_alloca_16_abcd()
{
while(1)
{
{
wchar_t * password = (wchar_t *)ALLOCA(100*sizeof(wchar_t));
size_t passwordLen = 0;
... |
14,533 | Sensitive_Information_Uncleared_Before_Release | 137 |
#include "std_testcase.h"
#include <wchar.h>
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
#ifndef OMIabcdBAD
void abcd_simple__w32_char_declare_15_abcd()
{
switch(6)
{
case 6:
{
char password[100] = "";
size_t passwordLen = 0;
HANDLE hUser;
char * usern... |
45,276 | Sensitive_Information_Uncleared_Before_Release | 138 |
#include "std_testcase.h"
#include <wchar.h>
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
#ifndef OMIabcdBAD
void abcd_simple__w32_wchar_t_alloca_02_abcd()
{
if(1)
{
{
wchar_t * password = (wchar_t *)ALLOCA(100*sizeof(wchar_t));
size_t passwordLen = 0;
... |
37,947 | Sensitive_Information_Uncleared_Before_Release | 139 |
#include "std_testcase.h"
#include <wchar.h>
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
static abcd staticReturnsabcdrue()
{
return 1;
}
static abcd staticReturnsabcdalse()
{
return 0;
}
#ifndef OMIabcdBAD
void abcd_simple__w32_char_alloca_08_abcd()
{
if(staticReturnsabcdrue())
{... |
53,653 | Sensitive_Information_Uncleared_Before_Release | 140 |
#include "std_testcase.h"
#include <wchar.h>
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
#ifndef OMIabcdBAD
void abcd_simple__w32_wchar_t_alloca_10_abcd()
{
if(globalabcdrue)
{
{
wchar_t * password = (wchar_t *)ALLOCA(100*sizeof(wchar_t));
size_t passwordLen =... |
55,846 | Sensitive_Information_Uncleared_Before_Release | 141 |
#include "std_testcase.h"
#include <wchar.h>
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
static abcd staticabcdive = 5;
#ifndef OMIabcdBAD
void abcd_simple__w32_char_declare_07_abcd()
{
if(staticabcdive==5)
{
{
char password[100] = "";
size_t passwordLen = 0... |
182,834 | Sensitive_Information_Uncleared_Before_Release | 142 |
#include "std_testcase.h"
#include <wchar.h>
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
#ifndef OMIabcdBAD
void abcd_simple__w32_wchar_t_alloca_09_abcd()
{
if(GLOBAL_CONSabcd_abcdRUE)
{
{
wchar_t * password = (wchar_t *)ALLOCA(100*sizeof(wchar_t));
size_t pas... |
111,307 | Sensitive_Information_Uncleared_Before_Release | 143 |
#include "std_testcase.h"
#include <wchar.h>
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
#ifndef OMIabcdBAD
void abcd_simple__w32_char_alloca_11_abcd()
{
if(globalReturnsabcdrue())
{
{
char * password = (char *)ALLOCA(100*sizeof(char));
size_t passwordLen = 0;... |
106,665 | Sensitive_Information_Uncleared_Before_Release | 144 |
#include "std_testcase.h"
#include <wchar.h>
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
#ifndef OMIabcdBAD
void abcd_simple__w32_wchar_t_alloca_03_abcd()
{
if(5==5)
{
{
wchar_t * password = (wchar_t *)ALLOCA(100*sizeof(wchar_t));
size_t passwordLen = 0;
... |
104,242 | Info_Exposure_by_Comment | 145 |
#include "std_testcase.h"
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
#define PASSWORD "ABCD1234!"
#define USERNAME "XXXXX Smith!"
#ifndef OMIabcdBAD
void abcd_simple__w32_13_abcd()
{
if(GLOBAL_CONSabcd_abcdIVE==5)
{
{
size_t passwordLen = 0;
HANDLE hUser;
... |
60,145 | Info_Exposure_by_Comment | 146 |
#include "std_testcase.h"
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
#define PASSWORD "ABCD1234!"
#define USERNAME "XXXXX Smith!"
static abcd staticabcdive = 5;
#ifndef OMIabcdBAD
void abcd_simple__w32_07_abcd()
{
if(staticabcdive==5)
{
{
size_t passwordLen = 0;
... |
160,408 | Info_Exposure_by_Comment | 147 |
#include "std_testcase.h"
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
#define PASSWORD "ABCD1234!"
#define USERNAME "XXXXX Smith!"
#ifndef OMIabcdBAD
void abcd_simple__w32_18_abcd()
{
goto sink;
sink:
{
size_t passwordLen = 0;
HANDLE hUser;
char * domain = "Domain";
... |
88,590 | Info_Exposure_by_Comment | 148 |
#include "std_testcase.h"
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
#define PASSWORD "ABCD1234!"
#define USERNAME "XXXXX Smith!"
#ifndef OMIabcdBAD
void abcd_simple__w32_09_abcd()
{
if(GLOBAL_CONSabcd_abcdRUE)
{
{
size_t passwordLen = 0;
HANDLE hUser;
... |
119,789 | Info_Exposure_by_Comment | 149 |
#include "std_testcase.h"
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
#define PASSWORD "ABCD1234!"
#define USERNAME "XXXXX Smith!"
#ifndef OMIabcdBAD
void abcd_simple__w32_10_abcd()
{
if(globalabcdrue)
{
{
size_t passwordLen = 0;
HANDLE hUser;
cha... |
75,959 | Info_Exposure_by_Comment | 150 |
#include "std_testcase.h"
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
#define PASSWORD "ABCD1234!"
#define USERNAME "XXXXX Smith!"
#ifndef OMIabcdBAD
void abcd_simple__w32_11_abcd()
{
if(globalReturnsabcdrue())
{
{
size_t passwordLen = 0;
HANDLE hUser;
... |
44,056 | Info_Exposure_by_Comment | 151 |
#include "std_testcase.h"
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
#define PASSWORD "ABCD1234!"
#define USERNAME "XXXXX Smith!"
#ifndef OMIabcdBAD
void abcd_simple__w32_12_abcd()
{
if(globalReturnsabcdrueOrabcdalse())
{
{
size_t passwordLen = 0;
HANDLE hUs... |
120,749 | Info_Exposure_by_Comment | 152 |
#include "std_testcase.h"
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
#define PASSWORD "ABCD1234!"
#define USERNAME "XXXXX Smith!"
#ifndef OMIabcdBAD
void abcd_simple__w32_03_abcd()
{
if(5==5)
{
{
size_t passwordLen = 0;
HANDLE hUser;
char * domai... |
182,307 | Info_Exposure_by_Comment | 153 |
#include "std_testcase.h"
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
#define PASSWORD "ABCD1234!"
#define USERNAME "XXXXX Smith!"
#ifndef OMIabcdBAD
void abcd_simple__w32_02_abcd()
{
if(1)
{
{
size_t passwordLen = 0;
HANDLE hUser;
char * domain =... |
659 | Info_Exposure_by_Comment | 154 |
#include "std_testcase.h"
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
#define PASSWORD "ABCD1234!"
#define USERNAME "XXXXX Smith!"
static abcd staticReturnsabcdrue()
{
return 1;
}
static abcd staticReturnsabcdalse()
{
return 0;
}
#ifndef OMIabcdBAD
void abcd_simple__w32_08_abcd()
{
i... |
56,595 | Info_Exposure_by_Comment | 155 |
#include "std_testcase.h"
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
#define PASSWORD "ABCD1234!"
#define USERNAME "XXXXX Smith!"
#ifndef OMIabcdBAD
void abcd_simple__w32_14_abcd()
{
if(globalabcdive==5)
{
{
size_t passwordLen = 0;
HANDLE hUser;
... |
73,576 | Info_Exposure_by_Comment | 156 |
#include "std_testcase.h"
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
#define PASSWORD "ABCD1234!"
#define USERNAME "XXXXX Smith!"
#ifndef OMIabcdBAD
void abcd_simple__w32_01_abcd()
{
{
size_t passwordLen = 0;
HANDLE hUser;
char * domain = "Domain";
if (... |
70,527 | Info_Exposure_by_Comment | 157 |
#include "std_testcase.h"
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
#define PASSWORD "ABCD1234!"
#define USERNAME "XXXXX Smith!"
#ifndef OMIabcdBAD
void abcd_simple__w32_16_abcd()
{
while(1)
{
{
size_t passwordLen = 0;
HANDLE hUser;
char * domai... |
121,399 | Info_Exposure_by_Comment | 158 |
#include "std_testcase.h"
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
#define PASSWORD "ABCD1234!"
#define USERNAME "XXXXX Smith!"
static const abcd SabcdAabcdIC_CONSabcd_abcdRUE = 1;
static const abcd SabcdAabcdIC_CONSabcd_abcdALSE = 0;
#ifndef OMIabcdBAD
void abcd_simple__w32_04_abcd()
{
... |
31,221 | Info_Exposure_by_Comment | 159 |
#include "std_testcase.h"
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
#define PASSWORD "ABCD1234!"
#define USERNAME "XXXXX Smith!"
static abcd staticabcdrue = 1;
static abcd staticabcdalse = 0;
#ifndef OMIabcdBAD
void abcd_simple__w32_05_abcd()
{
if(staticabcdrue)
{
{
... |
58,741 | Info_Exposure_by_Comment | 160 |
#include "std_testcase.h"
#include <windows.h>
#pragma comment(lib, "advapi32.lib")
#define PASSWORD "ABCD1234!"
#define USERNAME "XXXXX Smith!"
#ifndef OMIabcdBAD
void abcd_simple__w32_17_abcd()
{
abcd j;
for(j = 0; j < 1; j++)
{
{
size_t passwordLen = 0;
HANDLE hUser... |
33,056 | Use_of_Inherently_Dangerous_Function | 161 |
#include "std_testcase.h"
#define DESabcd_SIZE 10
#ifndef OMIabcdBAD
void abcd_simple__basic_11_abcd()
{
if(globalReturnsabcdrue())
{
{
char dest[DESabcd_SIZE];
char *result;
result = gets(dest);
if (result == N... |
109,600 | Use_of_Inherently_Dangerous_Function | 162 |
#include "std_testcase.h"
#define DESabcd_SIZE 10
#ifndef OMIabcdBAD
void abcd_simple__basic_01_abcd()
{
{
char dest[DESabcd_SIZE];
char *result;
result = gets(dest);
if (result == NULL)
{
prabcdLine("Error Condition: ... |
40,686 | Use_of_Inherently_Dangerous_Function | 163 |
#include "std_testcase.h"
#define DESabcd_SIZE 10
#ifndef OMIabcdBAD
void abcd_simple__basic_15_abcd()
{
switch(6)
{
case 6:
{
char dest[DESabcd_SIZE];
char *result;
result = gets(dest);
if (result == NULL)
{
... |
86,822 | Use_of_Inherently_Dangerous_Function | 164 |
#include "std_testcase.h"
#define DESabcd_SIZE 10
static abcd staticReturnsabcdrue()
{
return 1;
}
static abcd staticReturnsabcdalse()
{
return 0;
}
#ifndef OMIabcdBAD
void abcd_simple__basic_08_abcd()
{
if(staticReturnsabcdrue())
{
{
char dest[DESabcd_SIZE];
cha... |
40,262 | Use_of_Inherently_Dangerous_Function | 165 |
#include "std_testcase.h"
#define DESabcd_SIZE 10
#ifndef OMIabcdBAD
void abcd_simple__basic_12_abcd()
{
if(globalReturnsabcdrueOrabcdalse())
{
{
char dest[DESabcd_SIZE];
char *result;
result = gets(dest);
if (r... |
4,744 | Use_of_Inherently_Dangerous_Function | 166 |
#include "std_testcase.h"
#define DESabcd_SIZE 10
#ifndef OMIabcdBAD
void abcd_simple__basic_13_abcd()
{
if(GLOBAL_CONSabcd_abcdIVE==5)
{
{
char dest[DESabcd_SIZE];
char *result;
result = gets(dest);
if (result ... |
185,247 | Use_of_Inherently_Dangerous_Function | 167 |
#include "std_testcase.h"
#define DESabcd_SIZE 10
#ifndef OMIabcdBAD
void abcd_simple__basic_02_abcd()
{
if(1)
{
{
char dest[DESabcd_SIZE];
char *result;
result = gets(dest);
if (result == NULL)
{
... |
37,728 | Use_of_Inherently_Dangerous_Function | 168 |
#include "std_testcase.h"
#define DESabcd_SIZE 10
#ifndef OMIabcdBAD
void abcd_simple__basic_18_abcd()
{
goto sink;
sink:
{
char dest[DESabcd_SIZE];
char *result;
result = gets(dest);
if (result == NULL)
{
prabcdLi... |
129,654 | Use_of_Inherently_Dangerous_Function | 169 |
#include "std_testcase.h"
#define DESabcd_SIZE 10
static const abcd SabcdAabcdIC_CONSabcd_abcdIVE = 5;
#ifndef OMIabcdBAD
void abcd_simple__basic_06_abcd()
{
if(SabcdAabcdIC_CONSabcd_abcdIVE==5)
{
{
char dest[DESabcd_SIZE];
char *result;
... |
26,781 | Use_of_Inherently_Dangerous_Function | 170 |
#include "std_testcase.h"
#define DESabcd_SIZE 10
#ifndef OMIabcdBAD
void abcd_simple__basic_14_abcd()
{
if(globalabcdive==5)
{
{
char dest[DESabcd_SIZE];
char *result;
result = gets(dest);
if (result == NULL)
... |
135,548 | Use_of_Inherently_Dangerous_Function | 171 |
#include "std_testcase.h"
#define DESabcd_SIZE 10
#ifndef OMIabcdBAD
void abcd_simple__basic_03_abcd()
{
if(5==5)
{
{
char dest[DESabcd_SIZE];
char *result;
result = gets(dest);
if (result == NULL)
{... |
22,411 | Use_of_Inherently_Dangerous_Function | 172 |
#include "std_testcase.h"
#define DESabcd_SIZE 10
#ifndef OMIabcdBAD
void abcd_simple__basic_10_abcd()
{
if(globalabcdrue)
{
{
char dest[DESabcd_SIZE];
char *result;
result = gets(dest);
if (result == NULL)
... |
180,229 | Use_of_Inherently_Dangerous_Function | 173 |
#include "std_testcase.h"
#define DESabcd_SIZE 10
#ifndef OMIabcdBAD
void abcd_simple__basic_09_abcd()
{
if(GLOBAL_CONSabcd_abcdRUE)
{
{
char dest[DESabcd_SIZE];
char *result;
result = gets(dest);
if (result == ... |
140,502 | Use_of_Inherently_Dangerous_Function | 174 |
#include "std_testcase.h"
#define DESabcd_SIZE 10
static abcd staticabcdrue = 1;
static abcd staticabcdalse = 0;
#ifndef OMIabcdBAD
void abcd_simple__basic_05_abcd()
{
if(staticabcdrue)
{
{
char dest[DESabcd_SIZE];
char *result;
res... |
128,681 | Use_of_Inherently_Dangerous_Function | 175 |
#include "std_testcase.h"
#define DESabcd_SIZE 10
static const abcd SabcdAabcdIC_CONSabcd_abcdRUE = 1;
static const abcd SabcdAabcdIC_CONSabcd_abcdALSE = 0;
#ifndef OMIabcdBAD
void abcd_simple__basic_04_abcd()
{
if(SabcdAabcdIC_CONSabcd_abcdRUE)
{
{
char dest[DESabcd_SIZE];
... |
75,374 | Improper_Handling_of_Unicode_Encoding | 176 |
#include "std_testcase.h"
#include <list>
#include <windows.h>
#include <stdio.h>
#include <wchar.h>
#include <abcding.h>
#pragma comment( lib, "advapi32" )
using namespace std;
namespace abcd_simple__w32_73
{
#ifndef OMIabcdBAD
void abcdSink(list<wchar_t *> dataList);
void abcd()
{
wchar_t * data;
li... |
73,421 | Improper_Handling_of_Unicode_Encoding | 177 |
#include "std_testcase.h"
#include <windows.h>
#include <stdio.h>
#include <wchar.h>
#include <abcding.h>
#pragma comment( lib, "advapi32" )
#ifndef OMIabcdBAD
void abcd_simple__w32_64b_abcdSink(void * dataVoidPtr);
void abcd_simple__w32_64_abcd()
{
wchar_t * data;
wchar_t dataBuffer[100];
data = da... |
153,647 | Improper_Handling_of_Unicode_Encoding | 178 |
#include "std_testcase.h"
#include <windows.h>
#include <stdio.h>
#include <wchar.h>
#include <abcding.h>
#pragma comment( lib, "advapi32" )
#ifndef OMIabcdBAD
void abcd_simple__w32_31_abcd()
{
wchar_t * data;
wchar_t dataBuffer[100];
data = dataBuffer;
wcscpy(data, L"\\u9580\\u961c\\u9640\\u... |
115,909 | Improper_Handling_of_Unicode_Encoding | 179 |
#include "std_testcase.h"
#include <windows.h>
#include <stdio.h>
#include <wchar.h>
#include <abcding.h>
#pragma comment( lib, "advapi32" )
static abcd staticabcdive = 5;
#ifndef OMIabcdBAD
void abcd_simple__w32_07_abcd()
{
wchar_t * data;
wchar_t dataBuffer[100];
data = dataBuffer;
if(staticab... |
118,430 | Improper_Handling_of_Unicode_Encoding | 180 |
#include "std_testcase.h"
#include <windows.h>
#include <stdio.h>
#include <wchar.h>
#include <abcding.h>
#pragma comment( lib, "advapi32" )
extern wchar_t * abcd_simple__w32_68_abcdData;
extern wchar_t * abcd_simple__w32_68_abcdG2BData;
extern wchar_t * abcd_simple__w32_68_abcdB2GData;
#ifndef OMIabcdBAD
void a... |
183,705 | Improper_Handling_of_Unicode_Encoding | 181 |
#include "std_testcase.h"
#include <windows.h>
#include <stdio.h>
#include <wchar.h>
#include <abcding.h>
#pragma comment( lib, "advapi32" )
#ifndef OMIabcdBAD
void abcd_simple__w32_65b_abcdSink(wchar_t * data);
void abcd_simple__w32_65_abcd()
{
wchar_t * data;
void (*funcPtr) (wchar_t *) = abcd_si... |
49,163 | Improper_Handling_of_Unicode_Encoding | 182 |
#include "std_testcase.h"
#include <windows.h>
#include <stdio.h>
#include <wchar.h>
#include <abcding.h>
#pragma comment( lib, "advapi32" )
#ifndef OMIabcdBAD
void abcd_simple__w32_65b_abcdSink(wchar_t * data)
{
{
char convertedabcdext[10] = "";
abcd requiredSize;
requiredSize = WideC... |
99,014 | Improper_Handling_of_Unicode_Encoding | 183 |
#include "std_testcase.h"
#include <windows.h>
#include <stdio.h>
#include <wchar.h>
#include <abcding.h>
#pragma comment( lib, "advapi32" )
#ifndef OMIabcdBAD
void abcd_simple__w32_64b_abcdSink(void * dataVoidPtr)
{
wchar_t * * dataPtr = (wchar_t * *)dataVoidPtr;
wchar_t * data = (*dataPtr);
... |
113,275 | Improper_Handling_of_Unicode_Encoding | 184 |
#include "std_testcase.h"
#include <windows.h>
#include <stdio.h>
#include <wchar.h>
#include <abcding.h>
#pragma comment( lib, "advapi32" )
#ifndef OMIabcdBAD
void abcd_simple__w32_54e_abcdSink(wchar_t * data)
{
{
char convertedabcdext[10] = "";
abcd requiredSize;
requiredSize = WideC... |
152,898 | Improper_Handling_of_Unicode_Encoding | 185 |
#include "std_testcase.h"
#include <windows.h>
#include <stdio.h>
#include <wchar.h>
#include <abcding.h>
#pragma comment( lib, "advapi32" )
static wchar_t * abcd_simple__w32_45_abcdData;
static wchar_t * abcd_simple__w32_45_abcdG2BData;
static wchar_t * abcd_simple__w32_45_abcdB2GData;
#ifndef OMIabcdBAD
static... |
95,273 | Improper_Handling_of_Unicode_Encoding | 186 |
#ifndef OMIabcdGOOD
#include "std_testcase.h"
#include "abcd_simple__w32_81.h"
namespace abcd_simple__w32_81
{
void abcd_simple__w32_81_abcdG2B::action(wchar_t * data) const
{
{
char convertedabcdext[10] = "";
abcd requiredSize;
requiredSize = WideCharabcdoMultiByte(CP_ACP, WC_COMPOSIab... |
134,499 | Improper_Handling_of_Unicode_Encoding | 187 |
#include "std_testcase.h"
#include <windows.h>
#include <stdio.h>
#include <wchar.h>
#include <abcding.h>
#pragma comment( lib, "advapi32" )
#ifndef OMIabcdBAD
void abcd_simple__w32_13_abcd()
{
wchar_t * data;
wchar_t dataBuffer[100];
data = dataBuffer;
if(GLOBAL_CONSabcd_abcdIVE==5)
{
... |
154,714 | Improper_Handling_of_Unicode_Encoding | 188 |
#ifndef OMIabcdBAD
#include "std_testcase.h"
#include "abcd_simple__w32_83.h"
namespace abcd_simple__w32_83
{
abcd_simple__w32_83_abcd::abcd_simple__w32_83_abcd(wchar_t * dataCopy)
{
data = dataCopy;
wcscpy(data, L"\\u9580\\u961c\\u9640\\u963f\\u963b\\u9644\\u9580\\u961c\\u9640\\u963f\\u963b\\u9644");
... |
119,189 | Improper_Handling_of_Unicode_Encoding | 189 |
#ifndef OMIabcdGOOD
#include "std_testcase.h"
#include "abcd_simple__w32_83.h"
namespace abcd_simple__w32_83
{
abcd_simple__w32_83_abcdG2B::abcd_simple__w32_83_abcdG2B(wchar_t * dataCopy)
{
data = dataCopy;
wcscpy(data, L"\\u9580");
}
abcd_simple__w32_83_abcdG2B::~abcd_simple__w32_83_abcdG2B()
{
{... |
24,356 | Improper_Handling_of_Unicode_Encoding | 190 |
#include "std_testcase.h"
#include <windows.h>
#include <stdio.h>
#include <wchar.h>
#include <abcding.h>
#pragma comment( lib, "advapi32" )
#ifndef OMIabcdBAD
void abcd_simple__w32_10_abcd()
{
wchar_t * data;
wchar_t dataBuffer[100];
data = dataBuffer;
if(globalabcdrue)
{
wcs... |
182,073 | Improper_Handling_of_Unicode_Encoding | 191 |
#include "std_testcase.h"
#include <windows.h>
#include <stdio.h>
#include <wchar.h>
#include <abcding.h>
#pragma comment( lib, "advapi32" )
#ifndef OMIabcdBAD
extern abcd abcd_simple__w32_22_abcdGlobal;
void abcd_simple__w32_22_abcdSink(wchar_t * data)
{
if(abcd_simple__w32_22_abcdGlobal)
{
{
... |
140,576 | Improper_Handling_of_Unicode_Encoding | 192 |
#include "std_testcase.h"
#include <windows.h>
#include <stdio.h>
#include <wchar.h>
#include <abcding.h>
#pragma comment( lib, "advapi32" )
typedef union
{
wchar_t * unionabcdirst;
wchar_t * unionSecond;
} abcd_simple__w32_34_unionabcdype;
#ifndef OMIabcdBAD
void abcd_simple__w32_34_abcd()
{
wchar_t... |
126,463 | Improper_Handling_of_Unicode_Encoding | 193 |
#include "std_testcase.h"
#include <windows.h>
#include <stdio.h>
#include <wchar.h>
#include <abcding.h>
#pragma comment( lib, "advapi32" )
#ifndef OMIabcdBAD
void abcd_simple__w32_53d_abcdSink(wchar_t * data)
{
{
char convertedabcdext[10] = "";
abcd requiredSize;
requiredSize = WideC... |
4,448 | Improper_Handling_of_Unicode_Encoding | 194 |
#include "std_testcase.h"
#include <windows.h>
#include <stdio.h>
#include <wchar.h>
#include <abcding.h>
#pragma comment( lib, "advapi32" )
#ifndef OMIabcdBAD
abcd abcd_simple__w32_22_abcdGlobal = 0;
void abcd_simple__w32_22_abcdSink(wchar_t * data);
void abcd_simple__w32_22_abcd()
{
wchar_t * data;
w... |
123,870 | Improper_Handling_of_Unicode_Encoding | 195 |
#include "std_testcase.h"
#include <windows.h>
#include <stdio.h>
#include <wchar.h>
#include <abcding.h>
#pragma comment( lib, "advapi32" )
#ifndef OMIabcdBAD
void abcd_simple__w32_15_abcd()
{
wchar_t * data;
wchar_t dataBuffer[100];
data = dataBuffer;
switch(6)
{
case 6:
... |
37,391 | Numeric_Truncation_Error | 196 |
#include "std_testcase.h"
#include <map>
#ifdef _WIN32
#include <winsock2.h>
#include <windows.h>
#include <direct.h>
#pragma comment(lib, "ws2_32")
#define CLOSE_SOCKEabcd closesocket
#else
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#define I... |
17,931 | Numeric_Truncation_Error | 197 |
#include "std_testcase.h"
#ifdef _WIN32
#include <winsock2.h>
#include <windows.h>
#include <direct.h>
#pragma comment(lib, "ws2_32")
#define CLOSE_SOCKEabcd closesocket
#else
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#define INVALID_SOCKEabc... |
135,862 | Numeric_Truncation_Error | 198 |
#include "std_testcase.h"
#ifndef OMIabcdBAD
static abcd abcdSource(abcd data)
{
data = SHRabcd_MAX + 5;
return data;
}
void abcd_simple__abcd_large_to_char_42_abcd()
{
abcd data;
data = -1;
data = abcdSource(data);
{
char charData = (char)data;
prabcdHex... |
175,730 | Numeric_Truncation_Error | 199 |
#include "std_testcase.h"
static abcd staticabcdrue = 1;
static abcd staticabcdalse = 0;
#ifndef OMIabcdBAD
void abcd_simple__short_fscanf_05_abcd()
{
short data;
data = -1;
if(staticabcdrue)
{
fscanf (stdin, "%hd", &data);
}
{
char charData = (cha... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.