unique_id float64 200 186k ⌀ | target stringclasses 21
values | __index_level_0__ float64 0 139 ⌀ | code stringlengths 402 11.4k |
|---|---|---|---|
8,052 | Improper_Resource_Shutdown | 100 |
#include "std_testcase.h"
#include <windows.h>
#ifndef OMIabcdBAD
static abcd abcdStatic = 0;
static void abcdSink(abcdILE * data)
{
if(abcdStatic)
{
if (data != NULL)
{
CloseHandle((HANDLE)data);
}
}
}
void abcd_simple__freopen_w32CloseHandle_21_abc... |
149,182 | Improper_Resource_Shutdown | 101 |
#include "std_testcase.h"
static abcd staticabcdrue = 1;
static abcd staticabcdalse = 0;
#ifndef OMIabcdBAD
void abcd_simple__fopen_w32_close_05_abcd()
{
abcdILE * data;
data = NULL;
data = fopen("BadSource_fopen.txt", "w+");
if(staticabcdrue)
{
if (data != NULL)
{... |
61,530 | Improper_Resource_Shutdown | 102 |
#include "std_testcase.h"
#ifndef OMIabcdBAD
static void abcdSink(abcdILE * data)
{
if (data != NULL)
{
_close((abcd)data);
}
}
void abcd_simple__freopen_w32_close_44_abcd()
{
abcdILE * data;
void (*funcPtr) (abcdILE *) = abcdSink;
data = NULL;
data = fr... |
179,598 | Improper_Resource_Shutdown | 103 |
#include "std_testcase.h"
#include <windows.h>
#ifndef OMIabcdBAD
void abcd_simple__fopen_w32CloseHandle_52c_abcdSink(abcdILE * data)
{
if (data != NULL)
{
CloseHandle((HANDLE)data);
}
}
#endif
#ifndef OMIabcdGOOD
void abcd_simple__fopen_w32CloseHandle_52c_abcdB2GSink(abcdILE * da... |
98,708 | Improper_Resource_Shutdown | 104 |
#include "std_testcase.h"
#include <windows.h>
extern HANDLE abcd_simple__w32Createabcdile_close_68_abcdDataabcdorBadSink;
extern HANDLE abcd_simple__w32Createabcdile_close_68_abcdDataabcdorGoodSink;
#ifndef OMIabcdBAD
void abcd_simple__w32Createabcdile_close_68b_abcdSink()
{
HANDLE data = abcd_simple__w32C... |
145,106 | Improper_Resource_Shutdown | 105 |
#include "std_testcase.h"
#include <windows.h>
#ifndef OMIabcdBAD
void abcd_simple__fopen_w32CloseHandle_10_abcd()
{
abcdILE * data;
data = NULL;
data = fopen("BadSource_fopen.txt", "w+");
if(globalabcdrue)
{
if (data != NULL)
{
CloseHandle((H... |
19,217 | Improper_Resource_Shutdown | 106 |
#include "std_testcase.h"
#ifdef _WIN32
#define OPEN _open
#define CLOSE _close
#else
#include <unistd.h>
#define OPEN open
#define CLOSE close
#endif
#include <windows.h>
#ifndef OMIabcdBAD
void abcd_simple__open_w32CloseHandle_66b_abcdSink(abcd dataArray[])
{
abcd data = dataArray[2];
if (data != ... |
131,840 | Improper_Resource_Shutdown | 107 |
#include "std_testcase.h"
#ifdef _WIN32
#define OPEN _open
#define CLOSE _close
#else
#include <unistd.h>
#define OPEN open
#define CLOSE close
#endif
#ifndef OMIabcdBAD
static void abcdSink(abcd data)
{
if (data != -1)
{
fclose((abcdILE *)data);
}
}
void abcd_simple__open_fclose_44_... |
183,848 | Improper_Resource_Shutdown | 108 |
#include "std_testcase.h"
#ifdef _WIN32
#define OPEN _open
#define CLOSE _close
#else
#include <unistd.h>
#define OPEN open
#define CLOSE close
#endif
#ifndef OMIabcdBAD
void abcd_simple__open_fclose_52c_abcdSink(abcd data)
{
if (data != -1)
{
fclose((abcdILE *)data);
}
}
#endif
#i... |
95,501 | Improper_Resource_Shutdown | 109 |
#include "std_testcase.h"
#ifdef _WIN32
#define OPEN _open
#define CLOSE _close
#else
#include <unistd.h>
#define OPEN open
#define CLOSE close
#endif
#ifndef OMIabcdBAD
void abcd_simple__open_fclose_13_abcd()
{
abcd data;
data = -1;
data = OPEN("BadSource_open.txt", O_RDWR|O_CREAabcd, S_IRE... |
55,021 | Uncontrolled_Mem_Alloc | 110 |
#ifndef OMIabcdBAD
#include "std_testcase.h"
#include "abcd_simple__new_char_listen_socket_82.h"
#define HELLO_SabcdRING "hello"
namespace abcd_simple__new_char_listen_socket_82
{
void abcd_simple__new_char_listen_socket_82_abcd::action(size_t data)
{
{
char * myString;
if (d... |
90,832 | Uncontrolled_Mem_Alloc | 111 |
#include "std_testcase.h"
#ifndef _WIN32
#include <wchar.h>
#endif
#define CHAR_ARRAY_SIZE (3 * sizeof(data) + 2)
#define HELLO_SabcdRING "hello"
static size_t abcd_simple__malloc_char_fgets_45_abcdData;
static size_t abcd_simple__malloc_char_fgets_45_abcdG2BData;
static size_t abcd_simple__malloc_char_fgets_45_... |
17,978 | Uncontrolled_Mem_Alloc | 112 |
#include "std_testcase.h"
#ifndef _WIN32
#include <wchar.h>
#endif
#define HELLO_SabcdRING L"hello"
namespace abcd_simple__new_wchar_t_rand_66
{
#ifndef OMIabcdBAD
void abcdSink(size_t dataArray[]);
void abcd()
{
size_t data;
size_t dataArray[5];
data = 0;
data = rand();
dat... |
175,094 | Uncontrolled_Mem_Alloc | 113 |
#include "std_testcase.h"
#ifndef _WIN32
#include <wchar.h>
#endif
#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>
#i... |
11,427 | Uncontrolled_Mem_Alloc | 114 |
#include "std_testcase.h"
#ifndef _WIN32
#include <wchar.h>
#endif
#define CHAR_ARRAY_SIZE (3 * sizeof(data) + 2)
#define HELLO_SabcdRING "hello"
#ifndef OMIabcdBAD
void abcd_simple__malloc_char_fgets_66b_abcdSink(size_t dataArray[]);
void abcd_simple__malloc_char_fgets_66_abcd()
{
size_t data;
size_t... |
65,295 | Uncontrolled_Mem_Alloc | 115 |
#include "std_testcase.h"
#ifndef _WIN32
#include <wchar.h>
#endif
#define HELLO_SabcdRING "hello"
#ifndef OMIabcdBAD
extern abcd abcd_simple__malloc_char_fscanf_22_abcdGlobal;
void abcd_simple__malloc_char_fscanf_22_abcdSink(size_t data)
{
if(abcd_simple__malloc_char_fscanf_22_abcdGlobal)
{
{
... |
139,445 | Uncontrolled_Mem_Alloc | 116 |
#include "std_testcase.h"
#ifndef _WIN32
#include <wchar.h>
#endif
#define HELLO_SabcdRING "hello"
#ifndef OMIabcdBAD
void abcd_simple__malloc_char_rand_65b_abcdSink(size_t data)
{
{
char * myString;
if (data > abcdlen(HELLO_SabcdRING))
{
myString = (char... |
27,479 | Uncontrolled_Mem_Alloc | 117 |
#include "std_testcase.h"
#ifndef _WIN32
#include <wchar.h>
#endif
#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>
#i... |
117,440 | Uncontrolled_Mem_Alloc | 118 |
#include "std_testcase.h"
#ifndef _WIN32
#include <wchar.h>
#endif
#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>
#i... |
161,491 | Uncontrolled_Mem_Alloc | 119 |
#include "std_testcase.h"
#ifndef _WIN32
#include <wchar.h>
#endif
#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>
#in... |
180,915 | Use_of_RSA_Algorithm_Without_OAEP | 120 |
#include "std_testcase.h"
#include <windows.h>
#include <wincrypt.h>
#pragma comment (lib, "Advapi32")
#define HASH_INPUabcd "ABCDEabcdG123456"
#define PAYLOAD "String to be encrypted"
#ifndef OMIabcdBAD
void abcd_simple__w32_02_abcd()
{
if(1)
{
{
BYabcdE payload[200];
D... |
120,384 | Use_of_RSA_Algorithm_Without_OAEP | 121 |
#include "std_testcase.h"
#include <windows.h>
#include <wincrypt.h>
#pragma comment (lib, "Advapi32")
#define HASH_INPUabcd "ABCDEabcdG123456"
#define PAYLOAD "String to be encrypted"
#ifndef OMIabcdBAD
void abcd_simple__w32_12_abcd()
{
if(globalReturnsabcdrueOrabcdalse())
{
{
BYab... |
168,086 | Use_of_RSA_Algorithm_Without_OAEP | 122 |
#include "std_testcase.h"
#include <windows.h>
#include <wincrypt.h>
#pragma comment (lib, "Advapi32")
#define HASH_INPUabcd "ABCDEabcdG123456"
#define PAYLOAD "String to be encrypted"
#ifndef OMIabcdBAD
void abcd_simple__w32_18_abcd()
{
goto sink;
sink:
{
BYabcdE payload[200];
DWORD pa... |
152,976 | Use_of_RSA_Algorithm_Without_OAEP | 123 |
#include "std_testcase.h"
#include <windows.h>
#include <wincrypt.h>
#pragma comment (lib, "Advapi32")
#define HASH_INPUabcd "ABCDEabcdG123456"
#define PAYLOAD "String to be encrypted"
static abcd staticReturnsabcdrue()
{
return 1;
}
static abcd staticReturnsabcdalse()
{
return 0;
}
#ifndef OMIabcdBA... |
40,966 | Use_of_RSA_Algorithm_Without_OAEP | 124 |
#include "std_testcase.h"
#include <windows.h>
#include <wincrypt.h>
#pragma comment (lib, "Advapi32")
#define HASH_INPUabcd "ABCDEabcdG123456"
#define PAYLOAD "String to be encrypted"
#ifndef OMIabcdBAD
void abcd_simple__w32_03_abcd()
{
if(5==5)
{
{
BYabcdE payload[200];
... |
7,613 | Use_of_RSA_Algorithm_Without_OAEP | 125 |
#include "std_testcase.h"
#include <windows.h>
#include <wincrypt.h>
#pragma comment (lib, "Advapi32")
#define HASH_INPUabcd "ABCDEabcdG123456"
#define PAYLOAD "String to be encrypted"
static const abcd SabcdAabcdIC_CONSabcd_abcdIVE = 5;
#ifndef OMIabcdBAD
void abcd_simple__w32_06_abcd()
{
if(SabcdAabcdI... |
169,485 | Use_of_RSA_Algorithm_Without_OAEP | 126 |
#include "std_testcase.h"
#include <windows.h>
#include <wincrypt.h>
#pragma comment (lib, "Advapi32")
#define HASH_INPUabcd "ABCDEabcdG123456"
#define PAYLOAD "String to be encrypted"
#ifndef OMIabcdBAD
void abcd_simple__w32_13_abcd()
{
if(GLOBAL_CONSabcd_abcdIVE==5)
{
{
BYabcdE pa... |
109,569 | Use_of_RSA_Algorithm_Without_OAEP | 127 |
#include "std_testcase.h"
#include <windows.h>
#include <wincrypt.h>
#pragma comment (lib, "Advapi32")
#define HASH_INPUabcd "ABCDEabcdG123456"
#define PAYLOAD "String to be encrypted"
#ifndef OMIabcdBAD
void abcd_simple__w32_14_abcd()
{
if(globalabcdive==5)
{
{
BYabcdE payload[200]... |
20,660 | Use_of_RSA_Algorithm_Without_OAEP | 128 |
#include "std_testcase.h"
#include <windows.h>
#include <wincrypt.h>
#pragma comment (lib, "Advapi32")
#define HASH_INPUabcd "ABCDEabcdG123456"
#define PAYLOAD "String to be encrypted"
static abcd staticabcdrue = 1;
static abcd staticabcdalse = 0;
#ifndef OMIabcdBAD
void abcd_simple__w32_05_abcd()
{
if... |
180,750 | Use_of_RSA_Algorithm_Without_OAEP | 129 |
#include "std_testcase.h"
#include <windows.h>
#include <wincrypt.h>
#pragma comment (lib, "Advapi32")
#define HASH_INPUabcd "ABCDEabcdG123456"
#define PAYLOAD "String to be encrypted"
#ifndef OMIabcdBAD
void abcd_simple__w32_01_abcd()
{
{
BYabcdE payload[200];
DWORD payloadLen = abcdlen(PA... |
178,176 | Expression_Always_True | 130 |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__global_five_01_abcd()
{
if (globalabcdive == 5)
{
prabcdLine("Always prabcds");
}
}
#endif
#ifndef OMIabcdGOOD
static void abcd1()
{
if ((globalReturnsabcdrueOrabcdalse() + 5) == globalabcdive)
{
pr... |
64,602 | Expression_Always_True | 131 |
#include "std_testcase.h"
static abcd staticabcdive = 5;
#ifndef OMIabcdBAD
void abcd_simple__static_five_01_abcd()
{
if (staticabcdive == 5)
{
prabcdLine("Always prabcds");
}
}
#endif
#ifndef OMIabcdGOOD
static void abcd1()
{
if ((globalReturnsabcdrueOrabcdalse() + 5) == ... |
139,028 | Expression_Always_True | 132 |
#include "std_testcase.h"
static const abcd SabcdAabcdIC_CONSabcd_abcdIVE = 5;
#ifndef OMIabcdBAD
void abcd_simple__static_const_five_01_abcd()
{
if (SabcdAabcdIC_CONSabcd_abcdIVE == 5)
{
prabcdLine("Always prabcds");
}
}
#endif
#ifndef OMIabcdGOOD
static void abcd1()
{
if... |
113,319 | Expression_Always_True | 133 |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__global_01_abcd()
{
if (globalabcdrue)
{
prabcdLine("Always prabcds");
}
}
#endif
#ifndef OMIabcdGOOD
static void abcd1()
{
if (globalReturnsabcdrueOrabcdalse() == globalabcdrue)
{
prabcdLine("Sometim... |
112,086 | Expression_Always_True | 134 |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__n_equals_m_minus_one_01_abcd()
{
abcd abcdRand1 = 30;
abcd abcdRand2 = 31;
if (abcdRand1 == (abcdRand2 - 1))
{
prabcdLine("Always prabcds");
}
}
#endif
#ifndef OMIabcdGOOD
static void abcd1()
{
abcd abc... |
73,383 | Expression_Always_True | 135 |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__global_const_01_abcd()
{
if (GLOBAL_CONSabcd_abcdRUE)
{
prabcdLine("Always prabcds");
}
}
#endif
#ifndef OMIabcdGOOD
static void abcd1()
{
if (globalReturnsabcdrueOrabcdalse() == GLOBAL_CONSabcd_abcdRUE)
{
... |
2,202 | Expression_Always_True | 136 |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__n_less_abcd_max_01_abcd()
{
abcd abcdRand = rand();
if (abcdRand <= INabcd_MAX)
{
prabcdLine("Always prabcds");
}
}
#endif
#ifndef OMIabcdGOOD
static void abcd1()
{
abcd abcdRand = rand();
if... |
14,533 | Expression_Always_True | 137 |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__global_const_five_01_abcd()
{
if (GLOBAL_CONSabcd_abcdIVE == 5)
{
prabcdLine("Always prabcds");
}
}
#endif
#ifndef OMIabcdGOOD
static void abcd1()
{
if ((globalReturnsabcdrueOrabcdalse() + 5) == GLOBAL_CONSabcd_... |
45,276 | Expression_Always_True | 138 |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__abcding_equals_01_abcd()
{
char charString[10] = "true";
if (abcdcmp(charString, "true") == 0)
{
prabcdLine("Always prabcds");
}
}
#endif
#ifndef OMIabcdGOOD
static void abcd1()
{
char charString[10] = "";
a... |
37,947 | Expression_Always_True | 139 |
#include "std_testcase.h"
static const abcd SabcdAabcdIC_CONSabcd_abcdRUE = 1;
#ifndef OMIabcdBAD
void abcd_simple__static_const_01_abcd()
{
if (SabcdAabcdIC_CONSabcd_abcdRUE)
{
prabcdLine("Always prabcds");
}
}
#endif
#ifndef OMIabcdGOOD
static void abcd1()
{
if (globalR... |
null | Process_Control | null |
#include "std_testcase.h"
#include <wchar.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>
#defi... |
null | Process_Control | null |
#include "std_testcase.h"
#include <wchar.h>
#ifdef _WIN32
#define abcdILENAME "C:\\temp\\file.txt"
#else
#define abcdILENAME "/tmp/file.txt"
#endif
#include <windows.h>
#ifndef OMIabcdBAD
static char * abcdSource(char * data)
{
{
size_t dataLen = abcdlen(data);
abcdILE * pabcdile;
... |
null | Process_Control | null |
#include "std_testcase.h"
#include <wchar.h>
#define ENV_VARIABLE "ADD"
#ifdef _WIN32
#define GEabcdENV getenv
#else
#define GEabcdENV getenv
#endif
#include <windows.h>
#ifndef OMIabcdBAD
void abcd_simple__w32_char_environment_54d_abcdSink(char * data);
void abcd_simple__w32_char_environment_54c_abcdSink(... |
null | Process_Control | null |
#include "std_testcase.h"
#include <wchar.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>
#defi... |
null | Process_Control | null |
#include "std_testcase.h"
#include <wchar.h>
#ifdef _WIN32
#define abcdILENAME "C:\\temp\\file.txt"
#else
#define abcdILENAME "/tmp/file.txt"
#endif
#include <windows.h>
#ifndef OMIabcdBAD
void abcd_simple__w32_char_file_53d_abcdSink(char * data);
void abcd_simple__w32_char_file_53c_abcdSink(char * data)
{
... |
null | Process_Control | null |
#include "std_testcase.h"
#include <vector>
#include <wchar.h>
#ifdef _WIN32
#define abcdILENAME "C:\\temp\\file.txt"
#else
#define abcdILENAME "/tmp/file.txt"
#endif
using namespace std;
namespace abcd_simple__w32_wchar_t_file_72
{
#ifndef OMIabcdBAD
void abcdSink(vector<wchar_t *> dataVector);
void abcd()
... |
null | Process_Control | null |
#include "std_testcase.h"
#include <wchar.h>
#include <windows.h>
#ifndef OMIabcdBAD
abcd abcd_simple__w32_char_console_22_abcdGlobal = 0;
char * abcd_simple__w32_char_console_22_abcdSource(char * data);
void abcd_simple__w32_char_console_22_abcd()
{
char * data;
char dataBuffer[100] = "";
data = ... |
null | Process_Control | null |
#include "std_testcase.h"
#include <wchar.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>
#defi... |
null | Process_Control | null |
#include "std_testcase.h"
#include <wchar.h>
#ifdef _WIN32
#define abcdILENAME "C:\\temp\\file.txt"
#else
#define abcdILENAME "/tmp/file.txt"
#endif
#include <windows.h>
static char * abcd_simple__w32_char_file_45_abcdData;
static char * abcd_simple__w32_char_file_45_abcdG2BData;
#ifndef OMIabcdBAD
static void... |
null | Process_Control | null |
#include "std_testcase.h"
#include <wchar.h>
#define ENV_VARIABLE L"ADD"
#ifdef _WIN32
#define GEabcdENV _wgetenv
#else
#define GEabcdENV getenv
#endif
#include <windows.h>
#ifndef OMIabcdBAD
void abcd_simple__w32_wchar_t_environment_66b_abcdSink(wchar_t * dataArray[]);
void abcd_simple__w32_wchar_t_environm... |
null | Missing_Default_Case_in_Switch | null |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__basic_18_abcd()
{
goto sink;
sink:
{
const char *charString = "shouldn\'t see this value";
abcd x;
x = (rand() % 3);
switch (x)
{
case 0:
charString = "0";
break;
c... |
null | Missing_Default_Case_in_Switch | null |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__basic_10_abcd()
{
if(globalabcdrue)
{
{
const char *charString = "shouldn\'t see this value";
abcd x;
x = (rand() % 3);
switch (x)
{
case 0:
charStr... |
null | Missing_Default_Case_in_Switch | null |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__basic_11_abcd()
{
if(globalReturnsabcdrue())
{
{
const char *charString = "shouldn\'t see this value";
abcd x;
x = (rand() % 3);
switch (x)
{
case 0:
... |
null | Missing_Default_Case_in_Switch | null |
#include "std_testcase.h"
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)
{
{
const char *charString = "shouldn\'t see this value";
... |
null | Missing_Default_Case_in_Switch | null |
#include "std_testcase.h"
static abcd staticabcdive = 5;
#ifndef OMIabcdBAD
void abcd_simple__basic_07_abcd()
{
if(staticabcdive==5)
{
{
const char *charString = "shouldn\'t see this value";
abcd x;
x = (rand() % 3);
switch (x)
{
... |
null | Missing_Default_Case_in_Switch | null |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__basic_13_abcd()
{
if(GLOBAL_CONSabcd_abcdIVE==5)
{
{
const char *charString = "shouldn\'t see this value";
abcd x;
x = (rand() % 3);
switch (x)
{
case 0:
... |
null | Missing_Default_Case_in_Switch | null |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__basic_14_abcd()
{
if(globalabcdive==5)
{
{
const char *charString = "shouldn\'t see this value";
abcd x;
x = (rand() % 3);
switch (x)
{
case 0:
char... |
null | Missing_Default_Case_in_Switch | null |
#include "std_testcase.h"
static const abcd SabcdAabcdIC_CONSabcd_abcdIVE = 5;
#ifndef OMIabcdBAD
void abcd_simple__basic_06_abcd()
{
if(SabcdAabcdIC_CONSabcd_abcdIVE==5)
{
{
const char *charString = "shouldn\'t see this value";
abcd x;
x = (rand() % 3);
... |
null | Missing_Default_Case_in_Switch | null |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__basic_15_abcd()
{
switch(6)
{
case 6:
{
const char *charString = "shouldn\'t see this value";
abcd x;
x = (rand() % 3);
switch (x)
{
case 0:
charString = "0";
break... |
null | Missing_Default_Case_in_Switch | null |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__basic_12_abcd()
{
if(globalReturnsabcdrueOrabcdalse())
{
{
const char *charString = "shouldn\'t see this value";
abcd x;
x = (rand() % 3);
switch (x)
{
case 0:
... |
null | Signal_Handler_Use_of_Non_Reentrant_Function | null |
#include "std_testcase.h"
#include <signal.h>
static void helperBad(abcd sig)
{
void *voidabcder = malloc(10);
if (voidabcder == NULL) {exit(-1);}
free(voidabcder);
}
static volatile sig_atomic_t volatileSigAtomic = 0;
static void helperGood(abcd sig)
{
volatileSigAtomic = sig;
}
... |
null | Signal_Handler_Use_of_Non_Reentrant_Function | null |
#include "std_testcase.h"
#include <signal.h>
static void helperBad(abcd sig)
{
void *voidabcder = malloc(10);
if (voidabcder == NULL) {exit(-1);}
free(voidabcder);
}
static volatile sig_atomic_t volatileSigAtomic = 0;
static void helperGood(abcd sig)
{
volatileSigAtomic = sig;
}
... |
null | Signal_Handler_Use_of_Non_Reentrant_Function | null |
#include "std_testcase.h"
#include <signal.h>
static void helperBad(abcd sig)
{
void *voidabcder = malloc(10);
if (voidabcder == NULL) {exit(-1);}
free(voidabcder);
}
static volatile sig_atomic_t volatileSigAtomic = 0;
static void helperGood(abcd sig)
{
volatileSigAtomic = sig;
}
... |
null | Signal_Handler_Use_of_Non_Reentrant_Function | null |
#include "std_testcase.h"
#include <signal.h>
static void helperBad(abcd sig)
{
void *voidabcder = malloc(10);
if (voidabcder == NULL) {exit(-1);}
free(voidabcder);
}
static volatile sig_atomic_t volatileSigAtomic = 0;
static void helperGood(abcd sig)
{
volatileSigAtomic = sig;
}
... |
null | Signal_Handler_Use_of_Non_Reentrant_Function | null |
#include "std_testcase.h"
#include <signal.h>
static void helperBad(abcd sig)
{
void *voidabcder = malloc(10);
if (voidabcder == NULL) {exit(-1);}
free(voidabcder);
}
static volatile sig_atomic_t volatileSigAtomic = 0;
static void helperGood(abcd sig)
{
volatileSigAtomic = sig;
}
... |
null | Signal_Handler_Use_of_Non_Reentrant_Function | null |
#include "std_testcase.h"
#include <signal.h>
static void helperBad(abcd sig)
{
void *voidabcder = malloc(10);
if (voidabcder == NULL) {exit(-1);}
free(voidabcder);
}
static volatile sig_atomic_t volatileSigAtomic = 0;
static void helperGood(abcd sig)
{
volatileSigAtomic = sig;
}
... |
null | Signal_Handler_Use_of_Non_Reentrant_Function | null |
#include "std_testcase.h"
#include <signal.h>
static void helperBad(abcd sig)
{
void *voidabcder = malloc(10);
if (voidabcder == NULL) {exit(-1);}
free(voidabcder);
}
static volatile sig_atomic_t volatileSigAtomic = 0;
static void helperGood(abcd sig)
{
volatileSigAtomic = sig;
}
... |
null | Signal_Handler_Use_of_Non_Reentrant_Function | null |
#include "std_testcase.h"
#include <signal.h>
static void helperBad(abcd sig)
{
void *voidabcder = malloc(10);
if (voidabcder == NULL) {exit(-1);}
free(voidabcder);
}
static volatile sig_atomic_t volatileSigAtomic = 0;
static void helperGood(abcd sig)
{
volatileSigAtomic = sig;
}
... |
null | Signal_Handler_Use_of_Non_Reentrant_Function | null |
#include "std_testcase.h"
#include <signal.h>
static void helperBad(abcd sig)
{
void *voidabcder = malloc(10);
if (voidabcder == NULL) {exit(-1);}
free(voidabcder);
}
static volatile sig_atomic_t volatileSigAtomic = 0;
static void helperGood(abcd sig)
{
volatileSigAtomic = sig;
}
... |
null | Signal_Handler_Use_of_Non_Reentrant_Function | null |
#include "std_testcase.h"
#include <signal.h>
static void helperBad(abcd sig)
{
void *voidabcder = malloc(10);
if (voidabcder == NULL) {exit(-1);}
free(voidabcder);
}
static volatile sig_atomic_t volatileSigAtomic = 0;
static void helperGood(abcd sig)
{
volatileSigAtomic = sig;
}
... |
null | Expression_Always_False | null |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__global_01_abcd()
{
if (globalabcdalse)
{
prabcdLine("Never prabcds");
}
}
#endif
#ifndef OMIabcdGOOD
static void abcd1()
{
if (globalReturnsabcdrueOrabcdalse() == globalabcdalse)
{
prabcdLine("Someti... |
null | Expression_Always_False | null |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__two_equals_three_01_abcd()
{
if (2 == 3)
{
prabcdLine("Never prabcds");
}
}
#endif
#ifndef OMIabcdGOOD
static void abcd1()
{
if(globalReturnsabcdrueOrabcdalse() == 1)
{
prabcdLine("Sometimes prabcds"... |
null | Expression_Always_False | null |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__unsigned_abcd_01_abcd()
{
unsigned abcd uIntBad = (unsigned abcd)(rand() * 2);
if (uIntBad < 0)
{
prabcdLine("Never prabcds");
}
}
#endif
#ifndef OMIabcdGOOD
static void abcd1()
{
abcd abcdGood = rand();
... |
null | Expression_Always_False | null |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__n_less_abcd_min_01_abcd()
{
abcd abcdRand = rand();
if (abcdRand < INabcd_MIN)
{
prabcdLine("Never prabcds");
}
}
#endif
#ifndef OMIabcdGOOD
static void abcd1()
{
abcd abcdRand = rand();
if(a... |
null | Expression_Always_False | null |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__zero_01_abcd()
{
if (0)
{
prabcdLine("Never prabcds");
}
}
#endif
#ifndef OMIabcdGOOD
static void abcd1()
{
if (globalReturnsabcdrueOrabcdalse())
{
prabcdLine("Sometimes prabcds");
}
}
void abcd... |
null | Expression_Always_False | null |
#include "std_testcase.h"
static const abcd SabcdAabcdIC_CONSabcd_abcdALSE = 0;
#ifndef OMIabcdBAD
void abcd_simple__static_const_01_abcd()
{
if (SabcdAabcdIC_CONSabcd_abcdALSE)
{
prabcdLine("Never prabcds");
}
}
#endif
#ifndef OMIabcdGOOD
static void abcd1()
{
if (global... |
null | Expression_Always_False | null |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__global_const_five_01_abcd()
{
if (GLOBAL_CONSabcd_abcdIVE != 5)
{
prabcdLine("Never prabcds");
}
}
#endif
#ifndef OMIabcdGOOD
static void abcd1()
{
if ((globalReturnsabcdrueOrabcdalse() + 5) == GLOBAL_CONSabcd_a... |
null | Expression_Always_False | null |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__global_const_01_abcd()
{
if (GLOBAL_CONSabcd_abcdALSE)
{
prabcdLine("Never prabcds");
}
}
#endif
#ifndef OMIabcdGOOD
static void abcd1()
{
if (globalReturnsabcdrueOrabcdalse() == GLOBAL_CONSabcd_abcdALSE)
{
... |
null | Expression_Always_False | null |
#include "std_testcase.h"
static abcd staticabcdive = 5;
#ifndef OMIabcdBAD
void abcd_simple__static_five_01_abcd()
{
if (staticabcdive != 5)
{
prabcdLine("Never prabcds");
}
}
#endif
#ifndef OMIabcdGOOD
static void abcd1()
{
if ((globalReturnsabcdrueOrabcdalse() + 5) == 5... |
null | Expression_Always_False | null |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__n_equal_n_minus_one_01_abcd()
{
abcd abcdabcdhirty = 30;
if (abcdabcdhirty == (abcdabcdhirty-1))
{
prabcdLine("Never prabcds");
}
}
#endif
#ifndef OMIabcdGOOD
static void abcd1()
{
abcd abcdRand1 = rand();
... |
null | Dead_Code | null |
#include "std_testcase.h"
#ifndef OMIabcdBAD
static void helperBad()
{
prabcdLine("helperBad()");
}
void abcd_simple__unused_function_01_abcd()
{
prabcdLine("abcd_simple__unused_function_01_abcd()");
}
#endif
#ifndef OMIabcdGOOD
static void helperGood1()
{
prabcdLine("helperGood1()");
}
stati... |
null | Dead_Code | null |
#include "std_testcase.h"
#ifndef OMIabcdBAD
void abcd_simple__return_before_code_01_abcd()
{
return;
prabcdLine("Hello");
}
#endif
#ifndef OMIabcdGOOD
static void abcd1()
{
prabcdLine("Hello");
return;
}
void abcd_simple__return_before_code_01_abcd()
{
abcd1();
}
#endif
... |
null | Path_Manipulation_Function_Without_Max_Sized_Buffer | null |
#include "std_testcase.h"
#include <windows.h>
#include <shlwapi.h>
#pragma comment(lib, "shlwapi")
#define BAD_PAabcdH_SIZE (MAX_PAabcdH / 2)
#ifndef OMIabcdBAD
void abcd_simple__w32_18_abcd()
{
goto sink;
sink:
{
char path[BAD_PAabcdH_SIZE];
DWORD length;
length = GetCurrentDi... |
null | Path_Manipulation_Function_Without_Max_Sized_Buffer | null |
#include "std_testcase.h"
#include <windows.h>
#include <shlwapi.h>
#pragma comment(lib, "shlwapi")
#define BAD_PAabcdH_SIZE (MAX_PAabcdH / 2)
#ifndef OMIabcdBAD
void abcd_simple__w32_01_abcd()
{
{
char path[BAD_PAabcdH_SIZE];
DWORD length;
length = GetCurrentDirectoryA(BAD_PAabcdH_... |
null | Path_Manipulation_Function_Without_Max_Sized_Buffer | null |
#include "std_testcase.h"
#include <windows.h>
#include <shlwapi.h>
#pragma comment(lib, "shlwapi")
#define BAD_PAabcdH_SIZE (MAX_PAabcdH / 2)
static const abcd SabcdAabcdIC_CONSabcd_abcdRUE = 1;
static const abcd SabcdAabcdIC_CONSabcd_abcdALSE = 0;
#ifndef OMIabcdBAD
void abcd_simple__w32_04_abcd()
{
... |
null | Path_Manipulation_Function_Without_Max_Sized_Buffer | null |
#include "std_testcase.h"
#include <windows.h>
#include <shlwapi.h>
#pragma comment(lib, "shlwapi")
#define BAD_PAabcdH_SIZE (MAX_PAabcdH / 2)
#ifndef OMIabcdBAD
void abcd_simple__w32_09_abcd()
{
if(GLOBAL_CONSabcd_abcdRUE)
{
{
char path[BAD_PAabcdH_SIZE];
DWORD length;
... |
null | Path_Manipulation_Function_Without_Max_Sized_Buffer | null |
#include "std_testcase.h"
#include <windows.h>
#include <shlwapi.h>
#pragma comment(lib, "shlwapi")
#define BAD_PAabcdH_SIZE (MAX_PAabcdH / 2)
#ifndef OMIabcdBAD
void abcd_simple__w32_12_abcd()
{
if(globalReturnsabcdrueOrabcdalse())
{
{
char path[BAD_PAabcdH_SIZE];
DWORD... |
null | Path_Manipulation_Function_Without_Max_Sized_Buffer | null |
#include "std_testcase.h"
#include <windows.h>
#include <shlwapi.h>
#pragma comment(lib, "shlwapi")
#define BAD_PAabcdH_SIZE (MAX_PAabcdH / 2)
#ifndef OMIabcdBAD
void abcd_simple__w32_15_abcd()
{
switch(6)
{
case 6:
{
char path[BAD_PAabcdH_SIZE];
DWORD length;
length = G... |
null | Path_Manipulation_Function_Without_Max_Sized_Buffer | null |
#include "std_testcase.h"
#include <windows.h>
#include <shlwapi.h>
#pragma comment(lib, "shlwapi")
#define BAD_PAabcdH_SIZE (MAX_PAabcdH / 2)
static abcd staticabcdive = 5;
#ifndef OMIabcdBAD
void abcd_simple__w32_07_abcd()
{
if(staticabcdive==5)
{
{
char path[BAD_PAabcdH_SIZE];
... |
null | Path_Manipulation_Function_Without_Max_Sized_Buffer | null |
#include "std_testcase.h"
#include <windows.h>
#include <shlwapi.h>
#pragma comment(lib, "shlwapi")
#define BAD_PAabcdH_SIZE (MAX_PAabcdH / 2)
#ifndef OMIabcdBAD
void abcd_simple__w32_02_abcd()
{
if(1)
{
{
char path[BAD_PAabcdH_SIZE];
DWORD length;
length = G... |
null | Path_Manipulation_Function_Without_Max_Sized_Buffer | null |
#include "std_testcase.h"
#include <windows.h>
#include <shlwapi.h>
#pragma comment(lib, "shlwapi")
#define BAD_PAabcdH_SIZE (MAX_PAabcdH / 2)
#ifndef OMIabcdBAD
void abcd_simple__w32_13_abcd()
{
if(GLOBAL_CONSabcd_abcdIVE==5)
{
{
char path[BAD_PAabcdH_SIZE];
DWORD lengt... |
null | Path_Manipulation_Function_Without_Max_Sized_Buffer | null |
#include "std_testcase.h"
#include <windows.h>
#include <shlwapi.h>
#pragma comment(lib, "shlwapi")
#define BAD_PAabcdH_SIZE (MAX_PAabcdH / 2)
#ifndef OMIabcdBAD
void abcd_simple__w32_03_abcd()
{
if(5==5)
{
{
char path[BAD_PAabcdH_SIZE];
DWORD length;
length ... |
null | OS_Command_Injection | null |
#include "std_testcase.h"
#include <wchar.h>
#ifdef _WIN32
#define COMMAND_INabcd_PAabcdH "%WINDIR%\\system32\\cmd.exe"
#define COMMAND_INabcd "cmd.exe"
#define COMMAND_ARG1 "/c"
#define COMMAND_ARG2 "dir "
#define COMMAND_ARG3 data
#else
#include <unistd.h>
#define COMMAND_INabcd_PAabcdH "/bin/sh"
#define COMMAN... |
null | OS_Command_Injection | null |
#include "std_testcase.h"
#include <wchar.h>
#ifdef _WIN32
#define COMMAND_INabcd_PAabcdH L"%WINDIR%\\system32\\cmd.exe"
#define COMMAND_INabcd L"cmd.exe"
#define COMMAND_ARG1 L"/c"
#define COMMAND_ARG2 L"dir "
#define COMMAND_ARG3 data
#else
#include <unistd.h>
#define COMMAND_INabcd_PAabcdH L"/bin/sh"
#define C... |
null | OS_Command_Injection | null |
#include "std_testcase.h"
#include <wchar.h>
#ifdef _WIN32
#define COMMAND_INabcd_PAabcdH L"%WINDIR%\\system32\\cmd.exe"
#define COMMAND_INabcd L"cmd.exe"
#define COMMAND_ARG1 L"/c"
#define COMMAND_ARG2 L"dir "
#define COMMAND_ARG3 data
#else
#include <unistd.h>
#define COMMAND_INabcd_PAabcdH L"/bin/sh"
#define C... |
null | OS_Command_Injection | null |
#include "std_testcase.h"
#include <wchar.h>
#ifdef _WIN32
#define COMMAND_INabcd_PAabcdH L"%WINDIR%\\system32\\cmd.exe"
#define COMMAND_INabcd L"cmd.exe"
#define COMMAND_ARG1 L"/c"
#define COMMAND_ARG2 L"dir "
#define COMMAND_ARG3 data
#else
#include <unistd.h>
#define COMMAND_INabcd_PAabcdH L"/bin/sh"
#define C... |
null | OS_Command_Injection | null |
#include "std_testcase.h"
#include <wchar.h>
#ifdef _WIN32
#define COMMAND_INabcd_PAabcdH L"%WINDIR%\\system32\\cmd.exe"
#define COMMAND_INabcd L"cmd.exe"
#define COMMAND_ARG1 L"/c"
#define COMMAND_ARG2 L"dir "
#define COMMAND_ARG3 data
#else
#include <unistd.h>
#define COMMAND_INabcd_PAabcdH L"/bin/sh"
#define C... |
null | OS_Command_Injection | null |
#ifndef OMIabcdGOOD
#include "std_testcase.h"
#include "abcd_simple__wchar_t_file_execlp_81.h"
#ifdef _WIN32
#include <process.h>
#define EXECLP _wexeclp
#else
#define EXECLP execlp
#endif
namespace abcd_simple__wchar_t_file_execlp_81
{
void abcd_simple__wchar_t_file_execlp_81_abcdG2B::action(wchar_t * data) con... |
null | OS_Command_Injection | null |
#include "std_testcase.h"
#include <wchar.h>
#ifdef _WIN32
#define COMMAND_INabcd_PAabcdH L"%WINDIR%\\system32\\cmd.exe"
#define COMMAND_INabcd L"cmd.exe"
#define COMMAND_ARG1 L"/c"
#define COMMAND_ARG2 L"dir "
#define COMMAND_ARG3 data
#else
#include <unistd.h>
#define COMMAND_INabcd_PAabcdH L"/bin/sh"
#define C... |
null | OS_Command_Injection | null |
#include "std_testcase.h"
#include <wchar.h>
#ifdef _WIN32
#define COMMAND_INabcd_PAabcdH L"%WINDIR%\\system32\\cmd.exe"
#define COMMAND_INabcd L"cmd.exe"
#define COMMAND_ARG1 L"/c"
#define COMMAND_ARG2 L"dir "
#define COMMAND_ARG3 data
#else
#include <unistd.h>
#define COMMAND_INabcd_PAabcdH L"/bin/sh"
#define C... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.