Unnamed: 0 int64 0 56k | source_code stringlengths 55 5.98k | comments stringlengths 2 1.76k | label stringclasses 68 values | dataset_name stringclasses 1 value | file_name stringlengths 208 265 | function stringlengths 27 87 | decompiled_code stringlengths 68 3.97k | compiler_options stringclasses 1 value |
|---|---|---|---|---|---|---|---|---|
13,100 | void CWE78_OS_Command_Injection__char_environment_popen_02_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119000/CWE78_OS_Command_Injection__char_environment_popen_02.c | CWE78_OS_Command_Injection__char_environment_popen_02_good |
void CWE78_OS_Command_Injection__char_environment_popen_02_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
13,101 | void CWE78_OS_Command_Injection__char_environment_popen_03_bad()
{
char * data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
if(5==5)
{
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
}
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119001/CWE78_OS_Command_Injection__char_environment_popen_03.c | CWE78_OS_Command_Injection__char_environment_popen_03_bad |
void CWE78_OS_Command_Injection__char_environment_popen_03_bad(void)
{
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined4 uStack_38;
long lStack_28;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_98 = 0x2068732f6e69622f;
uStack_90 = 0x20616c2d20736c;
uStack_88 = 0;
uStack_80 = 0;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
puStack_10 = &uStack_98;
lStack_18 = func_0x00400b40(puStack_10);
lStack_20 = func_0x00400b10(&UNK_00401374);
if (lStack_20 != 0) {
func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
lStack_28 = func_0x00400bf0(puStack_10,&UNK_00401378);
if (lStack_28 != 0) {
func_0x00400b60(lStack_28);
}
return;
}
| ['gcc'] |
13,102 | void CWE78_OS_Command_Injection__char_environment_popen_03_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119001/CWE78_OS_Command_Injection__char_environment_popen_03.c | CWE78_OS_Command_Injection__char_environment_popen_03_good |
void CWE78_OS_Command_Injection__char_environment_popen_03_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
13,103 | void CWE78_OS_Command_Injection__char_environment_popen_04_bad()
{
char * data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
if(STATIC_CONST_TRUE)
{
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
}
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119002/CWE78_OS_Command_Injection__char_environment_popen_04.c | CWE78_OS_Command_Injection__char_environment_popen_04_bad |
void CWE78_OS_Command_Injection__char_environment_popen_04_bad(void)
{
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined4 uStack_38;
long lStack_28;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_98 = 0x2068732f6e69622f;
uStack_90 = 0x20616c2d20736c;
uStack_88 = 0;
uStack_80 = 0;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
puStack_10 = &uStack_98;
lStack_18 = func_0x00400b40(puStack_10);
lStack_20 = func_0x00400b10(&UNK_0040138c);
if (lStack_20 != 0) {
func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
lStack_28 = func_0x00400bf0(puStack_10,&UNK_00401390);
if (lStack_28 != 0) {
func_0x00400b60(lStack_28);
}
return;
}
| ['gcc'] |
13,104 | void CWE78_OS_Command_Injection__char_environment_popen_04_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119002/CWE78_OS_Command_Injection__char_environment_popen_04.c | CWE78_OS_Command_Injection__char_environment_popen_04_good |
void CWE78_OS_Command_Injection__char_environment_popen_04_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
13,105 | void CWE78_OS_Command_Injection__char_environment_popen_05_bad()
{
char * data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
if(staticTrue)
{
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
}
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119003/CWE78_OS_Command_Injection__char_environment_popen_05.c | CWE78_OS_Command_Injection__char_environment_popen_05_bad |
void CWE78_OS_Command_Injection__char_environment_popen_05_bad(void)
{
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined4 uStack_38;
long lStack_28;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_98 = 0x2068732f6e69622f;
uStack_90 = 0x20616c2d20736c;
uStack_88 = 0;
uStack_80 = 0;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
puStack_10 = &uStack_98;
if (staticTrue != 0) {
lStack_18 = func_0x00400b40(puStack_10);
lStack_20 = func_0x00400b10(&UNK_00401384);
if (lStack_20 != 0) {
func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
}
lStack_28 = func_0x00400bf0(puStack_10,&UNK_00401388);
if (lStack_28 != 0) {
func_0x00400b60(lStack_28);
}
return;
}
| ['gcc'] |
13,106 | void CWE78_OS_Command_Injection__char_environment_popen_05_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119003/CWE78_OS_Command_Injection__char_environment_popen_05.c | CWE78_OS_Command_Injection__char_environment_popen_05_good |
void CWE78_OS_Command_Injection__char_environment_popen_05_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
13,107 | void CWE78_OS_Command_Injection__char_environment_popen_06_bad()
{
char * data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
if(STATIC_CONST_FIVE==5)
{
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
}
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119004/CWE78_OS_Command_Injection__char_environment_popen_06.c | CWE78_OS_Command_Injection__char_environment_popen_06_bad |
void CWE78_OS_Command_Injection__char_environment_popen_06_bad(void)
{
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined4 uStack_38;
long lStack_28;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_98 = 0x2068732f6e69622f;
uStack_90 = 0x20616c2d20736c;
uStack_88 = 0;
uStack_80 = 0;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
puStack_10 = &uStack_98;
lStack_18 = func_0x00400b40(puStack_10);
lStack_20 = func_0x00400b10(&UNK_00401388);
if (lStack_20 != 0) {
func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
lStack_28 = func_0x00400bf0(puStack_10,&UNK_0040138c);
if (lStack_28 != 0) {
func_0x00400b60(lStack_28);
}
return;
}
| ['gcc'] |
13,108 | void CWE78_OS_Command_Injection__char_environment_popen_06_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119004/CWE78_OS_Command_Injection__char_environment_popen_06.c | CWE78_OS_Command_Injection__char_environment_popen_06_good |
void CWE78_OS_Command_Injection__char_environment_popen_06_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
13,109 | void CWE78_OS_Command_Injection__char_environment_popen_07_bad()
{
char * data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
if(staticFive==5)
{
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
}
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119005/CWE78_OS_Command_Injection__char_environment_popen_07.c | CWE78_OS_Command_Injection__char_environment_popen_07_bad |
void CWE78_OS_Command_Injection__char_environment_popen_07_bad(void)
{
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined4 uStack_38;
long lStack_28;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_98 = 0x2068732f6e69622f;
uStack_90 = 0x20616c2d20736c;
uStack_88 = 0;
uStack_80 = 0;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
puStack_10 = &uStack_98;
if (staticFive == 5) {
lStack_18 = func_0x00400b40(puStack_10);
lStack_20 = func_0x00400b10(&UNK_00401384);
if (lStack_20 != 0) {
func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
}
lStack_28 = func_0x00400bf0(puStack_10,&UNK_00401388);
if (lStack_28 != 0) {
func_0x00400b60(lStack_28);
}
return;
}
| ['gcc'] |
13,110 | void CWE78_OS_Command_Injection__char_environment_popen_07_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119005/CWE78_OS_Command_Injection__char_environment_popen_07.c | CWE78_OS_Command_Injection__char_environment_popen_07_good |
void CWE78_OS_Command_Injection__char_environment_popen_07_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
13,111 | void CWE78_OS_Command_Injection__char_environment_popen_08_bad()
{
char * data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
if(staticReturnsTrue())
{
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
}
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119006/CWE78_OS_Command_Injection__char_environment_popen_08.c | CWE78_OS_Command_Injection__char_environment_popen_08_bad |
void CWE78_OS_Command_Injection__char_environment_popen_08_bad(void)
{
int iVar1;
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined4 uStack_38;
long lStack_28;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_98 = 0x2068732f6e69622f;
uStack_90 = 0x20616c2d20736c;
uStack_88 = 0;
uStack_80 = 0;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
puStack_10 = &uStack_98;
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
lStack_18 = func_0x00400b40(puStack_10);
lStack_20 = func_0x00400b10(&UNK_00401394);
if (lStack_20 != 0) {
func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
}
lStack_28 = func_0x00400bf0(puStack_10,&UNK_00401398);
if (lStack_28 != 0) {
func_0x00400b60(lStack_28);
}
return;
}
| ['gcc'] |
13,112 | void CWE78_OS_Command_Injection__char_environment_popen_08_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119006/CWE78_OS_Command_Injection__char_environment_popen_08.c | CWE78_OS_Command_Injection__char_environment_popen_08_good |
void CWE78_OS_Command_Injection__char_environment_popen_08_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
13,113 | void CWE78_OS_Command_Injection__char_environment_popen_09_bad()
{
char * data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
if(GLOBAL_CONST_TRUE)
{
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
}
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119007/CWE78_OS_Command_Injection__char_environment_popen_09.c | CWE78_OS_Command_Injection__char_environment_popen_09_bad |
void CWE78_OS_Command_Injection__char_environment_popen_09_bad(void)
{
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined4 uStack_38;
long lStack_28;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_98 = 0x2068732f6e69622f;
uStack_90 = 0x20616c2d20736c;
uStack_88 = 0;
uStack_80 = 0;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
puStack_10 = &uStack_98;
if (GLOBAL_CONST_TRUE != 0) {
lStack_18 = func_0x00400b40(puStack_10);
lStack_20 = func_0x00400b10(&UNK_00401384);
if (lStack_20 != 0) {
func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
}
lStack_28 = func_0x00400bf0(puStack_10,&UNK_00401388);
if (lStack_28 != 0) {
func_0x00400b60(lStack_28);
}
return;
}
| ['gcc'] |
13,114 | void CWE78_OS_Command_Injection__char_environment_popen_09_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119007/CWE78_OS_Command_Injection__char_environment_popen_09.c | CWE78_OS_Command_Injection__char_environment_popen_09_good |
void CWE78_OS_Command_Injection__char_environment_popen_09_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
13,115 | void CWE78_OS_Command_Injection__char_environment_popen_10_bad()
{
char * data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
if(globalTrue)
{
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
}
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119008/CWE78_OS_Command_Injection__char_environment_popen_10.c | CWE78_OS_Command_Injection__char_environment_popen_10_bad |
void CWE78_OS_Command_Injection__char_environment_popen_10_bad(void)
{
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined4 uStack_38;
long lStack_28;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_98 = 0x2068732f6e69622f;
uStack_90 = 0x20616c2d20736c;
uStack_88 = 0;
uStack_80 = 0;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
puStack_10 = &uStack_98;
if (globalTrue != 0) {
lStack_18 = func_0x00400b40(puStack_10);
lStack_20 = func_0x00400b10(&UNK_00401384);
if (lStack_20 != 0) {
func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
}
lStack_28 = func_0x00400bf0(puStack_10,&UNK_00401388);
if (lStack_28 != 0) {
func_0x00400b60(lStack_28);
}
return;
}
| ['gcc'] |
13,116 | void CWE78_OS_Command_Injection__char_environment_popen_10_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119008/CWE78_OS_Command_Injection__char_environment_popen_10.c | CWE78_OS_Command_Injection__char_environment_popen_10_good |
void CWE78_OS_Command_Injection__char_environment_popen_10_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
13,117 | void CWE78_OS_Command_Injection__char_environment_popen_11_bad()
{
char * data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
if(globalReturnsTrue())
{
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
}
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119009/CWE78_OS_Command_Injection__char_environment_popen_11.c | CWE78_OS_Command_Injection__char_environment_popen_11_bad |
void CWE78_OS_Command_Injection__char_environment_popen_11_bad(void)
{
int iVar1;
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined4 uStack_38;
long lStack_28;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_98 = 0x2068732f6e69622f;
uStack_90 = 0x20616c2d20736c;
uStack_88 = 0;
uStack_80 = 0;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
puStack_10 = &uStack_98;
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
lStack_18 = func_0x00400b40(puStack_10);
lStack_20 = func_0x00400b10(&UNK_00401384);
if (lStack_20 != 0) {
func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
}
lStack_28 = func_0x00400bf0(puStack_10,&UNK_00401388);
if (lStack_28 != 0) {
func_0x00400b60(lStack_28);
}
return;
}
| ['gcc'] |
13,118 | void CWE78_OS_Command_Injection__char_environment_popen_11_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119009/CWE78_OS_Command_Injection__char_environment_popen_11.c | CWE78_OS_Command_Injection__char_environment_popen_11_good |
void CWE78_OS_Command_Injection__char_environment_popen_11_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
13,119 | void CWE78_OS_Command_Injection__char_environment_popen_12_bad()
{
char * data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
if(globalReturnsTrueOrFalse())
{
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
}
else
{
/* FIX: Append a fixed string to data (not user / external input) */
strcat(data, "*.*");
}
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* FIX: Append a fixed string to data (not user / external input) */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119010/CWE78_OS_Command_Injection__char_environment_popen_12.c | CWE78_OS_Command_Injection__char_environment_popen_12_bad |
void CWE78_OS_Command_Injection__char_environment_popen_12_bad(void)
{
char cVar1;
int iVar2;
ulong uVar3;
undefined8 *puVar4;
byte bVar5;
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined4 uStack_38;
long lStack_28;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
bVar5 = 0;
uStack_98 = 0x2068732f6e69622f;
uStack_90 = 0x20616c2d20736c;
uStack_88 = 0;
uStack_80 = 0;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
puStack_10 = &uStack_98;
iVar2 = globalReturnsTrueOrFalse();
if (iVar2 == 0) {
uVar3 = 0xffffffffffffffff;
puVar4 = puStack_10;
do {
if (uVar3 == 0) break;
uVar3 = uVar3 - 1;
cVar1 = *(char *)puVar4;
puVar4 = (undefined8 *)((long)puVar4 + (ulong)bVar5 * -2 + 1);
} while (cVar1 != '\0');
*(undefined4 *)((long)puStack_10 + (~uVar3 - 1)) = 0x2a2e2a;
}
else {
lStack_18 = func_0x00400b40(puStack_10);
lStack_20 = func_0x00400b10(&UNK_004013b4);
if (lStack_20 != 0) {
func_0x00400b70((char *)((long)puStack_10 + lStack_18),lStack_20,99 - lStack_18);
}
}
lStack_28 = func_0x00400bf0(puStack_10,&UNK_004013b8);
if (lStack_28 != 0) {
func_0x00400b60(lStack_28);
}
return;
}
| ['gcc'] |
13,120 | void CWE78_OS_Command_Injection__char_environment_popen_12_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119010/CWE78_OS_Command_Injection__char_environment_popen_12.c | CWE78_OS_Command_Injection__char_environment_popen_12_good |
void CWE78_OS_Command_Injection__char_environment_popen_12_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,121 | void CWE78_OS_Command_Injection__char_environment_popen_13_bad()
{
char * data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
if(GLOBAL_CONST_FIVE==5)
{
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
}
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119011/CWE78_OS_Command_Injection__char_environment_popen_13.c | CWE78_OS_Command_Injection__char_environment_popen_13_bad |
void CWE78_OS_Command_Injection__char_environment_popen_13_bad(void)
{
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined4 uStack_38;
long lStack_28;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_98 = 0x2068732f6e69622f;
uStack_90 = 0x20616c2d20736c;
uStack_88 = 0;
uStack_80 = 0;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
puStack_10 = &uStack_98;
if (GLOBAL_CONST_FIVE == 5) {
lStack_18 = func_0x00400b40(puStack_10);
lStack_20 = func_0x00400b10(&UNK_00401384);
if (lStack_20 != 0) {
func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
}
lStack_28 = func_0x00400bf0(puStack_10,&UNK_00401388);
if (lStack_28 != 0) {
func_0x00400b60(lStack_28);
}
return;
}
| ['gcc'] |
13,122 | void CWE78_OS_Command_Injection__char_environment_popen_13_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119011/CWE78_OS_Command_Injection__char_environment_popen_13.c | CWE78_OS_Command_Injection__char_environment_popen_13_good |
void CWE78_OS_Command_Injection__char_environment_popen_13_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
13,123 | void CWE78_OS_Command_Injection__char_environment_popen_14_bad()
{
char * data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
if(globalFive==5)
{
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
}
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119012/CWE78_OS_Command_Injection__char_environment_popen_14.c | CWE78_OS_Command_Injection__char_environment_popen_14_bad |
void CWE78_OS_Command_Injection__char_environment_popen_14_bad(void)
{
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined4 uStack_38;
long lStack_28;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_98 = 0x2068732f6e69622f;
uStack_90 = 0x20616c2d20736c;
uStack_88 = 0;
uStack_80 = 0;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
puStack_10 = &uStack_98;
if (globalFive == 5) {
lStack_18 = func_0x00400b40(puStack_10);
lStack_20 = func_0x00400b10(&UNK_00401384);
if (lStack_20 != 0) {
func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
}
lStack_28 = func_0x00400bf0(puStack_10,&UNK_00401388);
if (lStack_28 != 0) {
func_0x00400b60(lStack_28);
}
return;
}
| ['gcc'] |
13,124 | void CWE78_OS_Command_Injection__char_environment_popen_14_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119012/CWE78_OS_Command_Injection__char_environment_popen_14.c | CWE78_OS_Command_Injection__char_environment_popen_14_good |
void CWE78_OS_Command_Injection__char_environment_popen_14_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
13,125 | void CWE78_OS_Command_Injection__char_environment_popen_15_bad()
{
char * data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
switch(6)
{
case 6:
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
break;
default:
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
break;
}
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119013/CWE78_OS_Command_Injection__char_environment_popen_15.c | CWE78_OS_Command_Injection__char_environment_popen_15_bad |
void CWE78_OS_Command_Injection__char_environment_popen_15_bad(void)
{
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined4 uStack_38;
long lStack_28;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_98 = 0x2068732f6e69622f;
uStack_90 = 0x20616c2d20736c;
uStack_88 = 0;
uStack_80 = 0;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
puStack_10 = &uStack_98;
lStack_18 = func_0x00400b40(puStack_10);
lStack_20 = func_0x00400b10(&UNK_00401374);
if (lStack_20 != 0) {
func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
lStack_28 = func_0x00400bf0(puStack_10,&UNK_00401378);
if (lStack_28 != 0) {
func_0x00400b60(lStack_28);
}
return;
}
| ['gcc'] |
13,126 | void CWE78_OS_Command_Injection__char_environment_popen_15_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119013/CWE78_OS_Command_Injection__char_environment_popen_15.c | CWE78_OS_Command_Injection__char_environment_popen_15_good |
void CWE78_OS_Command_Injection__char_environment_popen_15_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
13,127 | void CWE78_OS_Command_Injection__char_environment_popen_16_bad()
{
char * data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
while(1)
{
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
break;
}
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119014/CWE78_OS_Command_Injection__char_environment_popen_16.c | CWE78_OS_Command_Injection__char_environment_popen_16_bad |
void CWE78_OS_Command_Injection__char_environment_popen_16_bad(void)
{
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined4 uStack_38;
long lStack_28;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_98 = 0x2068732f6e69622f;
uStack_90 = 0x20616c2d20736c;
uStack_88 = 0;
uStack_80 = 0;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
puStack_10 = &uStack_98;
lStack_18 = func_0x00400b40(puStack_10);
lStack_20 = func_0x00400b10(&UNK_00401374);
if (lStack_20 != 0) {
func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
lStack_28 = func_0x00400bf0(puStack_10,&UNK_00401378);
if (lStack_28 != 0) {
func_0x00400b60(lStack_28);
}
return;
}
| ['gcc'] |
13,128 | void CWE78_OS_Command_Injection__char_environment_popen_16_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119014/CWE78_OS_Command_Injection__char_environment_popen_16.c | CWE78_OS_Command_Injection__char_environment_popen_16_good |
void CWE78_OS_Command_Injection__char_environment_popen_16_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,129 | void CWE78_OS_Command_Injection__char_environment_popen_17_bad()
{
int i;
char * data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
for(i = 0; i < 1; i++)
{
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
}
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119015/CWE78_OS_Command_Injection__char_environment_popen_17.c | CWE78_OS_Command_Injection__char_environment_popen_17_bad |
void CWE78_OS_Command_Injection__char_environment_popen_17_bad(void)
{
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined4 uStack_38;
long lStack_30;
long lStack_28;
long lStack_20;
undefined8 *puStack_18;
int iStack_c;
uStack_98 = 0x2068732f6e69622f;
uStack_90 = 0x20616c2d20736c;
uStack_88 = 0;
uStack_80 = 0;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
puStack_18 = &uStack_98;
for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) {
lStack_28 = func_0x00400b40(puStack_18);
lStack_30 = func_0x00400b10(&UNK_00401384);
if (lStack_30 != 0) {
func_0x00400b70((long)puStack_18 + lStack_28,lStack_30,99 - lStack_28);
}
}
lStack_20 = func_0x00400bf0(puStack_18,&UNK_00401388);
if (lStack_20 != 0) {
func_0x00400b60(lStack_20);
}
return;
}
| ['gcc'] |
13,130 | void CWE78_OS_Command_Injection__char_environment_popen_17_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119015/CWE78_OS_Command_Injection__char_environment_popen_17.c | CWE78_OS_Command_Injection__char_environment_popen_17_good |
void CWE78_OS_Command_Injection__char_environment_popen_17_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,131 | void CWE78_OS_Command_Injection__char_environment_popen_18_bad()
{
char * data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
goto source;
source:
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119016/CWE78_OS_Command_Injection__char_environment_popen_18.c | CWE78_OS_Command_Injection__char_environment_popen_18_bad |
void CWE78_OS_Command_Injection__char_environment_popen_18_bad(void)
{
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined4 uStack_38;
long lStack_28;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_98 = 0x2068732f6e69622f;
uStack_90 = 0x20616c2d20736c;
uStack_88 = 0;
uStack_80 = 0;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
puStack_10 = &uStack_98;
lStack_18 = func_0x00400b40(puStack_10);
lStack_20 = func_0x00400b10(&UNK_00401374);
if (lStack_20 != 0) {
func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
lStack_28 = func_0x00400bf0(puStack_10,&UNK_00401378);
if (lStack_28 != 0) {
func_0x00400b60(lStack_28);
}
return;
}
| ['gcc'] |
13,132 | void CWE78_OS_Command_Injection__char_environment_popen_18_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119016/CWE78_OS_Command_Injection__char_environment_popen_18.c | CWE78_OS_Command_Injection__char_environment_popen_18_good |
void CWE78_OS_Command_Injection__char_environment_popen_18_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,133 | void CWE78_OS_Command_Injection__char_environment_popen_21_bad()
{
char * data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
badStatic = 1; /* true */
data = badSource(data);
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* true */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119017/CWE78_OS_Command_Injection__char_environment_popen_21.c | CWE78_OS_Command_Injection__char_environment_popen_21_bad |
void CWE78_OS_Command_Injection__char_environment_popen_21_bad(void)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined4 uStack_28;
long lStack_18;
undefined8 *puStack_10;
uStack_88 = 0x2068732f6e69622f;
uStack_80 = 0x20616c2d20736c;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
puStack_10 = &uStack_88;
badStatic = 1;
puStack_10 = (undefined8 *)badSource(puStack_10);
lStack_18 = func_0x00400bf0(puStack_10,&UNK_004013a8);
if (lStack_18 != 0) {
func_0x00400b60(lStack_18);
}
return;
}
| ['gcc'] |
13,134 | void CWE78_OS_Command_Injection__char_environment_popen_21_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119017/CWE78_OS_Command_Injection__char_environment_popen_21.c | CWE78_OS_Command_Injection__char_environment_popen_21_good |
void CWE78_OS_Command_Injection__char_environment_popen_21_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
13,135 | void CWE78_OS_Command_Injection__char_environment_popen_22_bad()
{
char * data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
CWE78_OS_Command_Injection__char_environment_popen_22_badGlobal = 1; /* true */
data = CWE78_OS_Command_Injection__char_environment_popen_22_badSource(data);
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* true */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119018/CWE78_OS_Command_Injection__char_environment_popen_22a.c | CWE78_OS_Command_Injection__char_environment_popen_22_bad |
void CWE78_OS_Command_Injection__char_environment_popen_22_bad(void)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined4 uStack_28;
long lStack_18;
undefined8 *puStack_10;
uStack_88 = 0x2068732f6e69622f;
uStack_80 = 0x20616c2d20736c;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
puStack_10 = &uStack_88;
CWE78_OS_Command_Injection__char_environment_popen_22_badGlobal = 1;
puStack_10 = (undefined8 *)
CWE78_OS_Command_Injection__char_environment_popen_22_badSource(puStack_10);
lStack_18 = func_0x00400bf0(puStack_10,&UNK_004013a4);
if (lStack_18 != 0) {
func_0x00400b60(lStack_18);
}
return;
}
| ['gcc'] |
13,136 | void CWE78_OS_Command_Injection__char_environment_popen_22_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119018/CWE78_OS_Command_Injection__char_environment_popen_22a.c | CWE78_OS_Command_Injection__char_environment_popen_22_good |
void CWE78_OS_Command_Injection__char_environment_popen_22_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
13,137 | char * CWE78_OS_Command_Injection__char_environment_popen_22_badSource(char * data)
{
if(CWE78_OS_Command_Injection__char_environment_popen_22_badGlobal)
{
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
}
return data;
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119018/CWE78_OS_Command_Injection__char_environment_popen_22b.c | CWE78_OS_Command_Injection__char_environment_popen_22_badSource |
long CWE78_OS_Command_Injection__char_environment_popen_22_badSource(long param_1)
{
long lVar1;
long lVar2;
if (CWE78_OS_Command_Injection__char_environment_popen_22_badGlobal != 0) {
lVar1 = func_0x00400b40(param_1);
lVar2 = func_0x00400b10(&UNK_004013a4);
if (lVar2 != 0) {
func_0x00400b70(param_1 + lVar1,lVar2,99 - lVar1);
}
}
return param_1;
}
| ['gcc'] |
13,138 | char * CWE78_OS_Command_Injection__char_environment_popen_22_goodG2B1Source(char * data)
{
if(CWE78_OS_Command_Injection__char_environment_popen_22_goodG2B1Global)
{
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
}
else
{
/* FIX: Append a fixed string to data (not user / external input) */
strcat(data, "*.*");
}
return data;
} | ['/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* FIX: Append a fixed string to data (not user / external input) */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119018/CWE78_OS_Command_Injection__char_environment_popen_22b.c | CWE78_OS_Command_Injection__char_environment_popen_22_goodG2B1Source |
char * CWE78_OS_Command_Injection__char_environment_popen_22_goodG2B1Source(char *param_1)
{
char cVar1;
ulong uVar2;
char *pcVar3;
if (CWE78_OS_Command_Injection__char_environment_popen_22_goodG2B1Global == 0) {
uVar2 = 0xffffffffffffffff;
pcVar3 = param_1;
do {
if (uVar2 == 0) break;
uVar2 = uVar2 - 1;
cVar1 = *pcVar3;
pcVar3 = pcVar3 + 1;
} while (cVar1 != '\0');
*(undefined4 *)(param_1 + (~uVar2 - 1)) = 0x2a2e2a;
}
else {
printLine(&UNK_00401394);
}
return param_1;
}
| ['gcc'] |
13,139 | char * CWE78_OS_Command_Injection__char_environment_popen_22_goodG2B2Source(char * data)
{
if(CWE78_OS_Command_Injection__char_environment_popen_22_goodG2B2Global)
{
/* FIX: Append a fixed string to data (not user / external input) */
strcat(data, "*.*");
}
return data;
} | ['/* FIX: Append a fixed string to data (not user / external input) */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119018/CWE78_OS_Command_Injection__char_environment_popen_22b.c | CWE78_OS_Command_Injection__char_environment_popen_22_goodG2B2Source |
char * CWE78_OS_Command_Injection__char_environment_popen_22_goodG2B2Source(char *param_1)
{
char cVar1;
ulong uVar2;
char *pcVar3;
if (CWE78_OS_Command_Injection__char_environment_popen_22_goodG2B2Global != 0) {
uVar2 = 0xffffffffffffffff;
pcVar3 = param_1;
do {
if (uVar2 == 0) break;
uVar2 = uVar2 - 1;
cVar1 = *pcVar3;
pcVar3 = pcVar3 + 1;
} while (cVar1 != '\0');
*(undefined4 *)(param_1 + (~uVar2 - 1)) = 0x2a2e2a;
}
return param_1;
}
| ['gcc'] |
13,140 | void CWE78_OS_Command_Injection__char_environment_popen_31_bad()
{
char * data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
{
char * dataCopy = data;
char * data = dataCopy;
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119019/CWE78_OS_Command_Injection__char_environment_popen_31.c | CWE78_OS_Command_Injection__char_environment_popen_31_bad |
void CWE78_OS_Command_Injection__char_environment_popen_31_bad(void)
{
undefined8 uStack_a8;
undefined8 uStack_a0;
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined4 uStack_48;
long lStack_38;
undefined8 *puStack_30;
undefined8 *puStack_28;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_a8 = 0x2068732f6e69622f;
uStack_a0 = 0x20616c2d20736c;
uStack_98 = 0;
uStack_90 = 0;
uStack_88 = 0;
uStack_80 = 0;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
puStack_10 = &uStack_a8;
lStack_18 = func_0x00400b40(puStack_10);
lStack_20 = func_0x00400b10(&UNK_00401384);
if (lStack_20 != 0) {
func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
puStack_28 = puStack_10;
puStack_30 = puStack_10;
lStack_38 = func_0x00400bf0(puStack_10,&UNK_00401388);
if (lStack_38 != 0) {
func_0x00400b60(lStack_38);
}
return;
}
| ['gcc'] |
13,141 | void CWE78_OS_Command_Injection__char_environment_popen_31_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119019/CWE78_OS_Command_Injection__char_environment_popen_31.c | CWE78_OS_Command_Injection__char_environment_popen_31_good |
void CWE78_OS_Command_Injection__char_environment_popen_31_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,142 | void CWE78_OS_Command_Injection__char_environment_popen_32_bad()
{
char * data;
char * *dataPtr1 = &data;
char * *dataPtr2 = &data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
{
char * data = *dataPtr1;
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
*dataPtr1 = data;
}
{
char * data = *dataPtr2;
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119020/CWE78_OS_Command_Injection__char_environment_popen_32.c | CWE78_OS_Command_Injection__char_environment_popen_32_bad |
/* WARNING: Restarted to delay deadcode elimination for space: stack */
void CWE78_OS_Command_Injection__char_environment_popen_32_bad(void)
{
undefined8 uStack_b8;
undefined8 uStack_b0;
undefined8 uStack_a8;
undefined8 uStack_a0;
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined4 uStack_58;
undefined8 *puStack_48;
long lStack_40;
undefined8 *puStack_38;
long lStack_30;
long lStack_28;
undefined8 *puStack_20;
undefined8 **ppuStack_18;
undefined8 **ppuStack_10;
ppuStack_10 = &puStack_48;
ppuStack_18 = &puStack_48;
uStack_b8 = 0x2068732f6e69622f;
uStack_b0 = 0x20616c2d20736c;
uStack_a8 = 0;
uStack_a0 = 0;
uStack_98 = 0;
uStack_90 = 0;
uStack_88 = 0;
uStack_80 = 0;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
puStack_48 = &uStack_b8;
puStack_20 = puStack_48;
lStack_28 = func_0x00400b40(puStack_48);
lStack_30 = func_0x00400b10(&UNK_004013b4);
if (lStack_30 != 0) {
func_0x00400b70((long)puStack_20 + lStack_28,lStack_30,99 - lStack_28);
}
*ppuStack_10 = puStack_20;
puStack_38 = *ppuStack_18;
lStack_40 = func_0x00400bf0(puStack_38,&UNK_004013b8);
if (lStack_40 != 0) {
func_0x00400b60(lStack_40);
}
return;
}
| ['gcc'] |
13,143 | void CWE78_OS_Command_Injection__char_environment_popen_32_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119020/CWE78_OS_Command_Injection__char_environment_popen_32.c | CWE78_OS_Command_Injection__char_environment_popen_32_good |
void CWE78_OS_Command_Injection__char_environment_popen_32_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,144 | void CWE78_OS_Command_Injection__char_environment_popen_34_bad()
{
char * data;
CWE78_OS_Command_Injection__char_environment_popen_34_unionType myUnion;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
myUnion.unionFirst = data;
{
char * data = myUnion.unionSecond;
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
}
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119022/CWE78_OS_Command_Injection__char_environment_popen_34.c | CWE78_OS_Command_Injection__char_environment_popen_34_bad |
void CWE78_OS_Command_Injection__char_environment_popen_34_bad(void)
{
undefined8 uStack_a8;
undefined8 uStack_a0;
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined4 uStack_48;
undefined8 *puStack_38;
long lStack_30;
undefined8 *puStack_28;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_a8 = 0x2068732f6e69622f;
uStack_a0 = 0x20616c2d20736c;
uStack_98 = 0;
uStack_90 = 0;
uStack_88 = 0;
uStack_80 = 0;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
puStack_10 = &uStack_a8;
lStack_18 = func_0x00400b40(puStack_10);
lStack_20 = func_0x00400b10(&UNK_00401384);
if (lStack_20 != 0) {
func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
puStack_38 = puStack_10;
puStack_28 = puStack_10;
lStack_30 = func_0x00400bf0(puStack_10,&UNK_00401388);
if (lStack_30 != 0) {
func_0x00400b60(lStack_30);
}
return;
}
| ['gcc'] |
13,145 | void CWE78_OS_Command_Injection__char_environment_popen_34_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119022/CWE78_OS_Command_Injection__char_environment_popen_34.c | CWE78_OS_Command_Injection__char_environment_popen_34_good |
void CWE78_OS_Command_Injection__char_environment_popen_34_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,146 | void CWE78_OS_Command_Injection__char_environment_popen_41_badSink(char * data)
{
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119023/CWE78_OS_Command_Injection__char_environment_popen_41.c | CWE78_OS_Command_Injection__char_environment_popen_41_badSink |
void CWE78_OS_Command_Injection__char_environment_popen_41_badSink(undefined8 param_1)
{
long lVar1;
lVar1 = func_0x00400bf0(param_1,&UNK_00401384);
if (lVar1 != 0) {
func_0x00400b60(lVar1);
}
return;
}
| ['gcc'] |
13,147 | void CWE78_OS_Command_Injection__char_environment_popen_41_bad()
{
char * data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
CWE78_OS_Command_Injection__char_environment_popen_41_badSink(data);
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119023/CWE78_OS_Command_Injection__char_environment_popen_41.c | CWE78_OS_Command_Injection__char_environment_popen_41_bad |
void CWE78_OS_Command_Injection__char_environment_popen_41_bad(void)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined4 uStack_28;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_88 = 0x2068732f6e69622f;
uStack_80 = 0x20616c2d20736c;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
puStack_10 = &uStack_88;
lStack_18 = func_0x00400b40(puStack_10);
lStack_20 = func_0x00400b10(&UNK_00401387);
if (lStack_20 != 0) {
func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
CWE78_OS_Command_Injection__char_environment_popen_41_badSink(puStack_10);
return;
}
| ['gcc'] |
13,148 | void CWE78_OS_Command_Injection__char_environment_popen_41_goodG2BSink(char * data)
{
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119023/CWE78_OS_Command_Injection__char_environment_popen_41.c | CWE78_OS_Command_Injection__char_environment_popen_41_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_popen_41_goodG2BSink(undefined8 param_1)
{
long lVar1;
lVar1 = func_0x00400ad0(param_1,&UNK_00401254);
if (lVar1 != 0) {
func_0x00400a50(lVar1);
}
return;
}
| ['gcc'] |
13,149 | void CWE78_OS_Command_Injection__char_environment_popen_41_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119023/CWE78_OS_Command_Injection__char_environment_popen_41.c | CWE78_OS_Command_Injection__char_environment_popen_41_good |
void CWE78_OS_Command_Injection__char_environment_popen_41_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,150 | void CWE78_OS_Command_Injection__char_environment_popen_42_bad()
{
char * data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
data = badSource(data);
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119024/CWE78_OS_Command_Injection__char_environment_popen_42.c | CWE78_OS_Command_Injection__char_environment_popen_42_bad |
void CWE78_OS_Command_Injection__char_environment_popen_42_bad(void)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined4 uStack_28;
long lStack_18;
undefined8 *puStack_10;
uStack_88 = 0x2068732f6e69622f;
uStack_80 = 0x20616c2d20736c;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
puStack_10 = &uStack_88;
puStack_10 = (undefined8 *)badSource(puStack_10);
lStack_18 = func_0x00400bf0(puStack_10,&UNK_00401388);
if (lStack_18 != 0) {
func_0x00400b60(lStack_18);
}
return;
}
| ['gcc'] |
13,151 | void CWE78_OS_Command_Injection__char_environment_popen_42_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119024/CWE78_OS_Command_Injection__char_environment_popen_42.c | CWE78_OS_Command_Injection__char_environment_popen_42_good |
void CWE78_OS_Command_Injection__char_environment_popen_42_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,152 | void CWE78_OS_Command_Injection__char_environment_popen_51_bad()
{
char * data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
CWE78_OS_Command_Injection__char_environment_popen_51b_badSink(data);
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119028/CWE78_OS_Command_Injection__char_environment_popen_51a.c | CWE78_OS_Command_Injection__char_environment_popen_51_bad |
void CWE78_OS_Command_Injection__char_environment_popen_51_bad(void)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined4 uStack_28;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_88 = 0x2068732f6e69622f;
uStack_80 = 0x20616c2d20736c;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
puStack_10 = &uStack_88;
lStack_18 = func_0x00400b40(puStack_10);
lStack_20 = func_0x00400b10(&UNK_00401384);
if (lStack_20 != 0) {
func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
CWE78_OS_Command_Injection__char_environment_popen_51b_badSink(puStack_10);
return;
}
| ['gcc'] |
13,153 | void CWE78_OS_Command_Injection__char_environment_popen_51_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119028/CWE78_OS_Command_Injection__char_environment_popen_51a.c | CWE78_OS_Command_Injection__char_environment_popen_51_good |
void CWE78_OS_Command_Injection__char_environment_popen_51_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,154 | void CWE78_OS_Command_Injection__char_environment_popen_51b_badSink(char * data)
{
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119028/CWE78_OS_Command_Injection__char_environment_popen_51b.c | CWE78_OS_Command_Injection__char_environment_popen_51b_badSink |
void CWE78_OS_Command_Injection__char_environment_popen_51b_badSink(undefined8 param_1)
{
long lVar1;
lVar1 = func_0x00400bf0(param_1,&UNK_00401384);
if (lVar1 != 0) {
func_0x00400b60(lVar1);
}
return;
}
| ['gcc'] |
13,155 | void CWE78_OS_Command_Injection__char_environment_popen_51b_goodG2BSink(char * data)
{
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119028/CWE78_OS_Command_Injection__char_environment_popen_51b.c | CWE78_OS_Command_Injection__char_environment_popen_51b_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_popen_51b_goodG2BSink(undefined8 param_1)
{
long lVar1;
lVar1 = func_0x00400ad0(param_1,&UNK_00401254);
if (lVar1 != 0) {
func_0x00400a50(lVar1);
}
return;
}
| ['gcc'] |
13,156 | void CWE78_OS_Command_Injection__char_environment_popen_52_bad()
{
char * data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
CWE78_OS_Command_Injection__char_environment_popen_52b_badSink(data);
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119029/CWE78_OS_Command_Injection__char_environment_popen_52a.c | CWE78_OS_Command_Injection__char_environment_popen_52_bad |
void CWE78_OS_Command_Injection__char_environment_popen_52_bad(void)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined4 uStack_28;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_88 = 0x2068732f6e69622f;
uStack_80 = 0x20616c2d20736c;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
puStack_10 = &uStack_88;
lStack_18 = func_0x00400b40(puStack_10);
lStack_20 = func_0x00400b10(&UNK_004013a4);
if (lStack_20 != 0) {
func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
CWE78_OS_Command_Injection__char_environment_popen_52b_badSink(puStack_10);
return;
}
| ['gcc'] |
13,157 | void CWE78_OS_Command_Injection__char_environment_popen_52_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119029/CWE78_OS_Command_Injection__char_environment_popen_52a.c | CWE78_OS_Command_Injection__char_environment_popen_52_good |
void CWE78_OS_Command_Injection__char_environment_popen_52_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,158 | void CWE78_OS_Command_Injection__char_environment_popen_52b_badSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_popen_52c_badSink(data);
} | [] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119029/CWE78_OS_Command_Injection__char_environment_popen_52b.c | CWE78_OS_Command_Injection__char_environment_popen_52b_badSink |
void CWE78_OS_Command_Injection__char_environment_popen_52b_badSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_popen_52c_badSink(param_1);
return;
}
| ['gcc'] |
13,159 | void CWE78_OS_Command_Injection__char_environment_popen_52b_goodG2BSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_popen_52c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119029/CWE78_OS_Command_Injection__char_environment_popen_52b.c | CWE78_OS_Command_Injection__char_environment_popen_52b_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_popen_52b_goodG2BSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_popen_52c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
13,160 | void CWE78_OS_Command_Injection__char_environment_popen_52c_badSink(char * data)
{
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119029/CWE78_OS_Command_Injection__char_environment_popen_52c.c | CWE78_OS_Command_Injection__char_environment_popen_52c_badSink |
void CWE78_OS_Command_Injection__char_environment_popen_52c_badSink(undefined8 param_1)
{
long lVar1;
lVar1 = func_0x00400bf0(param_1,&UNK_004013a4);
if (lVar1 != 0) {
func_0x00400b60(lVar1);
}
return;
}
| ['gcc'] |
13,161 | void CWE78_OS_Command_Injection__char_environment_popen_52c_goodG2BSink(char * data)
{
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119029/CWE78_OS_Command_Injection__char_environment_popen_52c.c | CWE78_OS_Command_Injection__char_environment_popen_52c_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_popen_52c_goodG2BSink(undefined8 param_1)
{
long lVar1;
lVar1 = func_0x00400ad0(param_1,&UNK_00401274);
if (lVar1 != 0) {
func_0x00400a50(lVar1);
}
return;
}
| ['gcc'] |
13,162 | void CWE78_OS_Command_Injection__char_environment_popen_53_bad()
{
char * data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
CWE78_OS_Command_Injection__char_environment_popen_53b_badSink(data);
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119030/CWE78_OS_Command_Injection__char_environment_popen_53a.c | CWE78_OS_Command_Injection__char_environment_popen_53_bad |
void CWE78_OS_Command_Injection__char_environment_popen_53_bad(void)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined4 uStack_28;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_88 = 0x2068732f6e69622f;
uStack_80 = 0x20616c2d20736c;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
puStack_10 = &uStack_88;
lStack_18 = func_0x00400b40(puStack_10);
lStack_20 = func_0x00400b10(&UNK_004013b4);
if (lStack_20 != 0) {
func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
CWE78_OS_Command_Injection__char_environment_popen_53b_badSink(puStack_10);
return;
}
| ['gcc'] |
13,163 | void CWE78_OS_Command_Injection__char_environment_popen_53_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119030/CWE78_OS_Command_Injection__char_environment_popen_53a.c | CWE78_OS_Command_Injection__char_environment_popen_53_good |
void CWE78_OS_Command_Injection__char_environment_popen_53_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,164 | void CWE78_OS_Command_Injection__char_environment_popen_53b_badSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_popen_53c_badSink(data);
} | [] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119030/CWE78_OS_Command_Injection__char_environment_popen_53b.c | CWE78_OS_Command_Injection__char_environment_popen_53b_badSink |
void CWE78_OS_Command_Injection__char_environment_popen_53b_badSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_popen_53c_badSink(param_1);
return;
}
| ['gcc'] |
13,165 | void CWE78_OS_Command_Injection__char_environment_popen_53b_goodG2BSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_popen_53c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119030/CWE78_OS_Command_Injection__char_environment_popen_53b.c | CWE78_OS_Command_Injection__char_environment_popen_53b_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_popen_53b_goodG2BSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_popen_53c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
13,166 | void CWE78_OS_Command_Injection__char_environment_popen_53c_badSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_popen_53d_badSink(data);
} | [] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119030/CWE78_OS_Command_Injection__char_environment_popen_53c.c | CWE78_OS_Command_Injection__char_environment_popen_53c_badSink |
void CWE78_OS_Command_Injection__char_environment_popen_53c_badSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_popen_53d_badSink(param_1);
return;
}
| ['gcc'] |
13,167 | void CWE78_OS_Command_Injection__char_environment_popen_53c_goodG2BSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_popen_53d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119030/CWE78_OS_Command_Injection__char_environment_popen_53c.c | CWE78_OS_Command_Injection__char_environment_popen_53c_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_popen_53c_goodG2BSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_popen_53d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
13,168 | void CWE78_OS_Command_Injection__char_environment_popen_53d_badSink(char * data)
{
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119030/CWE78_OS_Command_Injection__char_environment_popen_53d.c | CWE78_OS_Command_Injection__char_environment_popen_53d_badSink |
void CWE78_OS_Command_Injection__char_environment_popen_53d_badSink(undefined8 param_1)
{
long lVar1;
lVar1 = func_0x00400bf0(param_1,&UNK_004013b4);
if (lVar1 != 0) {
func_0x00400b60(lVar1);
}
return;
}
| ['gcc'] |
13,169 | void CWE78_OS_Command_Injection__char_environment_popen_53d_goodG2BSink(char * data)
{
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119030/CWE78_OS_Command_Injection__char_environment_popen_53d.c | CWE78_OS_Command_Injection__char_environment_popen_53d_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_popen_53d_goodG2BSink(undefined8 param_1)
{
long lVar1;
lVar1 = func_0x00400ad0(param_1,&UNK_00401294);
if (lVar1 != 0) {
func_0x00400a50(lVar1);
}
return;
}
| ['gcc'] |
13,170 | void CWE78_OS_Command_Injection__char_environment_popen_54_bad()
{
char * data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
CWE78_OS_Command_Injection__char_environment_popen_54b_badSink(data);
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119031/CWE78_OS_Command_Injection__char_environment_popen_54a.c | CWE78_OS_Command_Injection__char_environment_popen_54_bad |
void CWE78_OS_Command_Injection__char_environment_popen_54_bad(void)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined4 uStack_28;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_88 = 0x2068732f6e69622f;
uStack_80 = 0x20616c2d20736c;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
puStack_10 = &uStack_88;
lStack_18 = func_0x00400b40(puStack_10);
lStack_20 = func_0x00400b10(&UNK_004013d4);
if (lStack_20 != 0) {
func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
CWE78_OS_Command_Injection__char_environment_popen_54b_badSink(puStack_10);
return;
}
| ['gcc'] |
13,171 | void CWE78_OS_Command_Injection__char_environment_popen_54_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119031/CWE78_OS_Command_Injection__char_environment_popen_54a.c | CWE78_OS_Command_Injection__char_environment_popen_54_good |
void CWE78_OS_Command_Injection__char_environment_popen_54_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,172 | void CWE78_OS_Command_Injection__char_environment_popen_54b_badSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_popen_54c_badSink(data);
} | [] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119031/CWE78_OS_Command_Injection__char_environment_popen_54b.c | CWE78_OS_Command_Injection__char_environment_popen_54b_badSink |
void CWE78_OS_Command_Injection__char_environment_popen_54b_badSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_popen_54c_badSink(param_1);
return;
}
| ['gcc'] |
13,173 | void CWE78_OS_Command_Injection__char_environment_popen_54b_goodG2BSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_popen_54c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119031/CWE78_OS_Command_Injection__char_environment_popen_54b.c | CWE78_OS_Command_Injection__char_environment_popen_54b_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_popen_54b_goodG2BSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_popen_54c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
13,174 | void CWE78_OS_Command_Injection__char_environment_popen_54c_badSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_popen_54d_badSink(data);
} | [] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119031/CWE78_OS_Command_Injection__char_environment_popen_54c.c | CWE78_OS_Command_Injection__char_environment_popen_54c_badSink |
void CWE78_OS_Command_Injection__char_environment_popen_54c_badSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_popen_54d_badSink(param_1);
return;
}
| ['gcc'] |
13,175 | void CWE78_OS_Command_Injection__char_environment_popen_54c_goodG2BSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_popen_54d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119031/CWE78_OS_Command_Injection__char_environment_popen_54c.c | CWE78_OS_Command_Injection__char_environment_popen_54c_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_popen_54c_goodG2BSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_popen_54d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
13,176 | void CWE78_OS_Command_Injection__char_environment_popen_54d_badSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_popen_54e_badSink(data);
} | [] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119031/CWE78_OS_Command_Injection__char_environment_popen_54d.c | CWE78_OS_Command_Injection__char_environment_popen_54d_badSink |
void CWE78_OS_Command_Injection__char_environment_popen_54d_badSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_popen_54e_badSink(param_1);
return;
}
| ['gcc'] |
13,177 | void CWE78_OS_Command_Injection__char_environment_popen_54d_goodG2BSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_popen_54e_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119031/CWE78_OS_Command_Injection__char_environment_popen_54d.c | CWE78_OS_Command_Injection__char_environment_popen_54d_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_popen_54d_goodG2BSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_popen_54e_goodG2BSink(param_1);
return;
}
| ['gcc'] |
13,178 | void CWE78_OS_Command_Injection__char_environment_popen_54e_badSink(char * data)
{
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119031/CWE78_OS_Command_Injection__char_environment_popen_54e.c | CWE78_OS_Command_Injection__char_environment_popen_54e_badSink |
void CWE78_OS_Command_Injection__char_environment_popen_54e_badSink(undefined8 param_1)
{
long lVar1;
lVar1 = func_0x00400bf0(param_1,&UNK_004013d4);
if (lVar1 != 0) {
func_0x00400b60(lVar1);
}
return;
}
| ['gcc'] |
13,179 | void CWE78_OS_Command_Injection__char_environment_popen_54e_goodG2BSink(char * data)
{
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119031/CWE78_OS_Command_Injection__char_environment_popen_54e.c | CWE78_OS_Command_Injection__char_environment_popen_54e_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_popen_54e_goodG2BSink(undefined8 param_1)
{
long lVar1;
lVar1 = func_0x00400ad0(param_1,&UNK_004012a4);
if (lVar1 != 0) {
func_0x00400a50(lVar1);
}
return;
}
| ['gcc'] |
13,180 | void CWE78_OS_Command_Injection__char_environment_popen_61_bad()
{
char * data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
data = CWE78_OS_Command_Injection__char_environment_popen_61b_badSource(data);
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119032/CWE78_OS_Command_Injection__char_environment_popen_61a.c | CWE78_OS_Command_Injection__char_environment_popen_61_bad |
void CWE78_OS_Command_Injection__char_environment_popen_61_bad(void)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined4 uStack_28;
long lStack_18;
undefined8 *puStack_10;
uStack_88 = 0x2068732f6e69622f;
uStack_80 = 0x20616c2d20736c;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
puStack_10 = &uStack_88;
puStack_10 = (undefined8 *)
CWE78_OS_Command_Injection__char_environment_popen_61b_badSource(puStack_10);
lStack_18 = func_0x00400bf0(puStack_10,&UNK_00401384);
if (lStack_18 != 0) {
func_0x00400b60(lStack_18);
}
return;
}
| ['gcc'] |
13,181 | void CWE78_OS_Command_Injection__char_environment_popen_61_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119032/CWE78_OS_Command_Injection__char_environment_popen_61a.c | CWE78_OS_Command_Injection__char_environment_popen_61_good |
void CWE78_OS_Command_Injection__char_environment_popen_61_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,182 | char * CWE78_OS_Command_Injection__char_environment_popen_61b_badSource(char * data)
{
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
return data;
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119032/CWE78_OS_Command_Injection__char_environment_popen_61b.c | CWE78_OS_Command_Injection__char_environment_popen_61b_badSource |
long CWE78_OS_Command_Injection__char_environment_popen_61b_badSource(long param_1)
{
long lVar1;
long lVar2;
lVar1 = func_0x00400b40(param_1);
lVar2 = func_0x00400b10(&UNK_00401384);
if (lVar2 != 0) {
func_0x00400b70(param_1 + lVar1,lVar2,99 - lVar1);
}
return param_1;
}
| ['gcc'] |
13,183 | char * CWE78_OS_Command_Injection__char_environment_popen_61b_goodG2BSource(char * data)
{
/* FIX: Append a fixed string to data (not user / external input) */
strcat(data, "*.*");
return data;
} | ['/* FIX: Append a fixed string to data (not user / external input) */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119032/CWE78_OS_Command_Injection__char_environment_popen_61b.c | CWE78_OS_Command_Injection__char_environment_popen_61b_goodG2BSource |
char * CWE78_OS_Command_Injection__char_environment_popen_61b_goodG2BSource(char *param_1)
{
char cVar1;
ulong uVar2;
char *pcVar3;
uVar2 = 0xffffffffffffffff;
pcVar3 = param_1;
do {
if (uVar2 == 0) break;
uVar2 = uVar2 - 1;
cVar1 = *pcVar3;
pcVar3 = pcVar3 + 1;
} while (cVar1 != '\0');
*(undefined4 *)(param_1 + (~uVar2 - 1)) = 0x2a2e2a;
return param_1;
}
| ['gcc'] |
13,184 | void CWE78_OS_Command_Injection__char_environment_popen_63_bad()
{
char * data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
CWE78_OS_Command_Injection__char_environment_popen_63b_badSink(&data);
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119034/CWE78_OS_Command_Injection__char_environment_popen_63a.c | CWE78_OS_Command_Injection__char_environment_popen_63_bad |
void CWE78_OS_Command_Injection__char_environment_popen_63_bad(void)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined4 uStack_28;
undefined8 *puStack_20;
long lStack_18;
long lStack_10;
uStack_88 = 0x2068732f6e69622f;
uStack_80 = 0x20616c2d20736c;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
puStack_20 = &uStack_88;
lStack_10 = func_0x00400b40(puStack_20);
lStack_18 = func_0x00400b10(&UNK_00401394);
if (lStack_18 != 0) {
func_0x00400b70((long)puStack_20 + lStack_10,lStack_18,99 - lStack_10);
}
CWE78_OS_Command_Injection__char_environment_popen_63b_badSink(&puStack_20);
return;
}
| ['gcc'] |
13,185 | void CWE78_OS_Command_Injection__char_environment_popen_63_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119034/CWE78_OS_Command_Injection__char_environment_popen_63a.c | CWE78_OS_Command_Injection__char_environment_popen_63_good |
void CWE78_OS_Command_Injection__char_environment_popen_63_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,186 | void CWE78_OS_Command_Injection__char_environment_popen_63b_badSink(char * * dataPtr)
{
char * data = *dataPtr;
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119034/CWE78_OS_Command_Injection__char_environment_popen_63b.c | CWE78_OS_Command_Injection__char_environment_popen_63b_badSink |
void CWE78_OS_Command_Injection__char_environment_popen_63b_badSink(undefined8 *param_1)
{
long lVar1;
lVar1 = func_0x00400bf0(*param_1,&UNK_00401394);
if (lVar1 != 0) {
func_0x00400b60(lVar1);
}
return;
}
| ['gcc'] |
13,187 | void CWE78_OS_Command_Injection__char_environment_popen_63b_goodG2BSink(char * * dataPtr)
{
char * data = *dataPtr;
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119034/CWE78_OS_Command_Injection__char_environment_popen_63b.c | CWE78_OS_Command_Injection__char_environment_popen_63b_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_popen_63b_goodG2BSink(undefined8 *param_1)
{
long lVar1;
lVar1 = func_0x00400ad0(*param_1,&UNK_00401264);
if (lVar1 != 0) {
func_0x00400a50(lVar1);
}
return;
}
| ['gcc'] |
13,188 | void CWE78_OS_Command_Injection__char_environment_popen_64_bad()
{
char * data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
CWE78_OS_Command_Injection__char_environment_popen_64b_badSink(&data);
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119035/CWE78_OS_Command_Injection__char_environment_popen_64a.c | CWE78_OS_Command_Injection__char_environment_popen_64_bad |
void CWE78_OS_Command_Injection__char_environment_popen_64_bad(void)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined4 uStack_28;
undefined8 *puStack_20;
long lStack_18;
long lStack_10;
uStack_88 = 0x2068732f6e69622f;
uStack_80 = 0x20616c2d20736c;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
puStack_20 = &uStack_88;
lStack_10 = func_0x00400b40(puStack_20);
lStack_18 = func_0x00400b10(&UNK_00401394);
if (lStack_18 != 0) {
func_0x00400b70((long)puStack_20 + lStack_10,lStack_18,99 - lStack_10);
}
CWE78_OS_Command_Injection__char_environment_popen_64b_badSink(&puStack_20);
return;
}
| ['gcc'] |
13,189 | void CWE78_OS_Command_Injection__char_environment_popen_64_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119035/CWE78_OS_Command_Injection__char_environment_popen_64a.c | CWE78_OS_Command_Injection__char_environment_popen_64_good |
void CWE78_OS_Command_Injection__char_environment_popen_64_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,190 | void CWE78_OS_Command_Injection__char_environment_popen_64b_badSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
char * * dataPtr = (char * *)dataVoidPtr;
/* dereference dataPtr into data */
char * data = (*dataPtr);
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119035/CWE78_OS_Command_Injection__char_environment_popen_64b.c | CWE78_OS_Command_Injection__char_environment_popen_64b_badSink |
void CWE78_OS_Command_Injection__char_environment_popen_64b_badSink(undefined8 *param_1)
{
long lVar1;
lVar1 = func_0x00400bf0(*param_1,&UNK_00401394);
if (lVar1 != 0) {
func_0x00400b60(lVar1);
}
return;
}
| ['gcc'] |
13,191 | void CWE78_OS_Command_Injection__char_environment_popen_64b_goodG2BSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
char * * dataPtr = (char * *)dataVoidPtr;
/* dereference dataPtr into data */
char * data = (*dataPtr);
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119035/CWE78_OS_Command_Injection__char_environment_popen_64b.c | CWE78_OS_Command_Injection__char_environment_popen_64b_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_popen_64b_goodG2BSink(undefined8 *param_1)
{
long lVar1;
lVar1 = func_0x00400ad0(*param_1,&UNK_00401264);
if (lVar1 != 0) {
func_0x00400a50(lVar1);
}
return;
}
| ['gcc'] |
13,192 | void CWE78_OS_Command_Injection__char_environment_popen_66_bad()
{
char * data;
char * dataArray[5];
char data_buf[100] = FULL_COMMAND;
data = data_buf;
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
/* put data in array */
dataArray[2] = data;
CWE78_OS_Command_Injection__char_environment_popen_66b_badSink(dataArray);
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* put data in array */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119037/CWE78_OS_Command_Injection__char_environment_popen_66a.c | CWE78_OS_Command_Injection__char_environment_popen_66_bad |
void CWE78_OS_Command_Injection__char_environment_popen_66_bad(void)
{
undefined8 uStack_b8;
undefined8 uStack_b0;
undefined8 uStack_a8;
undefined8 uStack_a0;
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined4 uStack_58;
undefined auStack_48 [16];
undefined8 *puStack_38;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_b8 = 0x2068732f6e69622f;
uStack_b0 = 0x20616c2d20736c;
uStack_a8 = 0;
uStack_a0 = 0;
uStack_98 = 0;
uStack_90 = 0;
uStack_88 = 0;
uStack_80 = 0;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
puStack_10 = &uStack_b8;
lStack_18 = func_0x00400b40(puStack_10);
lStack_20 = func_0x00400b10(&UNK_004013b4);
if (lStack_20 != 0) {
func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
puStack_38 = puStack_10;
CWE78_OS_Command_Injection__char_environment_popen_66b_badSink(auStack_48);
return;
}
| ['gcc'] |
13,193 | void CWE78_OS_Command_Injection__char_environment_popen_66_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119037/CWE78_OS_Command_Injection__char_environment_popen_66a.c | CWE78_OS_Command_Injection__char_environment_popen_66_good |
void CWE78_OS_Command_Injection__char_environment_popen_66_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,194 | void CWE78_OS_Command_Injection__char_environment_popen_66b_badSink(char * dataArray[])
{
/* copy data out of dataArray */
char * data = dataArray[2];
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* copy data out of dataArray */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119037/CWE78_OS_Command_Injection__char_environment_popen_66b.c | CWE78_OS_Command_Injection__char_environment_popen_66b_badSink |
void CWE78_OS_Command_Injection__char_environment_popen_66b_badSink(long param_1)
{
long lVar1;
lVar1 = func_0x00400bf0(*(undefined8 *)(param_1 + 0x10),&UNK_004013b4);
if (lVar1 != 0) {
func_0x00400b60(lVar1);
}
return;
}
| ['gcc'] |
13,195 | void CWE78_OS_Command_Injection__char_environment_popen_66b_goodG2BSink(char * dataArray[])
{
char * data = dataArray[2];
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119037/CWE78_OS_Command_Injection__char_environment_popen_66b.c | CWE78_OS_Command_Injection__char_environment_popen_66b_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_popen_66b_goodG2BSink(long param_1)
{
long lVar1;
lVar1 = func_0x00400ad0(*(undefined8 *)(param_1 + 0x10),&UNK_00401284);
if (lVar1 != 0) {
func_0x00400a50(lVar1);
}
return;
}
| ['gcc'] |
13,196 | void CWE78_OS_Command_Injection__char_environment_popen_67_bad()
{
char * data;
CWE78_OS_Command_Injection__char_environment_popen_67_structType myStruct;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
{
/* Append input from an environment variable to data */
size_t dataLen = strlen(data);
char * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
strncat(data+dataLen, environment, 100-dataLen-1);
}
}
myStruct.structFirst = data;
CWE78_OS_Command_Injection__char_environment_popen_67b_badSink(myStruct);
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119038/CWE78_OS_Command_Injection__char_environment_popen_67a.c | CWE78_OS_Command_Injection__char_environment_popen_67_bad |
void CWE78_OS_Command_Injection__char_environment_popen_67_bad(void)
{
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined4 uStack_38;
undefined8 *puStack_28;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_98 = 0x2068732f6e69622f;
uStack_90 = 0x20616c2d20736c;
uStack_88 = 0;
uStack_80 = 0;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
puStack_10 = &uStack_98;
lStack_18 = func_0x00400b40(puStack_10);
lStack_20 = func_0x00400b10(&UNK_004013a4);
if (lStack_20 != 0) {
func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
puStack_28 = puStack_10;
CWE78_OS_Command_Injection__char_environment_popen_67b_badSink(puStack_10);
return;
}
| ['gcc'] |
13,197 | void CWE78_OS_Command_Injection__char_environment_popen_67_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119038/CWE78_OS_Command_Injection__char_environment_popen_67a.c | CWE78_OS_Command_Injection__char_environment_popen_67_good |
void CWE78_OS_Command_Injection__char_environment_popen_67_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,198 | void CWE78_OS_Command_Injection__char_environment_popen_67b_badSink(CWE78_OS_Command_Injection__char_environment_popen_67_structType myStruct)
{
char * data = myStruct.structFirst;
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119038/CWE78_OS_Command_Injection__char_environment_popen_67b.c | CWE78_OS_Command_Injection__char_environment_popen_67b_badSink |
void CWE78_OS_Command_Injection__char_environment_popen_67b_badSink(undefined8 param_1)
{
long lVar1;
lVar1 = func_0x00400bf0(param_1,&UNK_004013a4);
if (lVar1 != 0) {
func_0x00400b60(lVar1);
}
return;
}
| ['gcc'] |
13,199 | void CWE78_OS_Command_Injection__char_environment_popen_67b_goodG2BSink(CWE78_OS_Command_Injection__char_environment_popen_67_structType myStruct)
{
char * data = myStruct.structFirst;
{
FILE *pipe;
/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */
pipe = POPEN(data, "wb");
if (pipe != NULL)
{
PCLOSE(pipe);
}
}
} | ['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119038/CWE78_OS_Command_Injection__char_environment_popen_67b.c | CWE78_OS_Command_Injection__char_environment_popen_67b_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_popen_67b_goodG2BSink(undefined8 param_1)
{
long lVar1;
lVar1 = func_0x00400ad0(param_1,&UNK_00401264);
if (lVar1 != 0) {
func_0x00400a50(lVar1);
}
return;
}
| ['gcc'] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.