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,000 | void CWE78_OS_Command_Injection__char_environment_execl_52c_goodG2BSink(char * data)
{
/* execl - specify the path where the command is located */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECL(COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* execl - specify the path where the command is located */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118933/CWE78_OS_Command_Injection__char_environment_execl_52c.c | CWE78_OS_Command_Injection__char_environment_execl_52c_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_execl_52c_goodG2BSink(undefined8 param_1)
{
func_0x00400a80(&UNK_0040121b,&UNK_0040121b,&UNK_00401218,&UNK_00401214,param_1,0);
return;
}
| ['gcc'] |
13,001 | void CWE78_OS_Command_Injection__char_environment_execl_53_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
{
/* 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_execl_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/118934/CWE78_OS_Command_Injection__char_environment_execl_53a.c | CWE78_OS_Command_Injection__char_environment_execl_53_bad |
void CWE78_OS_Command_Injection__char_environment_execl_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 = 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;
uStack_30 = 0;
uStack_28 = 0;
puStack_10 = &uStack_88;
lStack_18 = func_0x00400ac0(puStack_10);
lStack_20 = func_0x00400a90(&UNK_00401324);
if (lStack_20 != 0) {
func_0x00400ae0((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
CWE78_OS_Command_Injection__char_environment_execl_53b_badSink(puStack_10);
return;
}
| ['gcc'] |
13,002 | void CWE78_OS_Command_Injection__char_environment_execl_53_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118934/CWE78_OS_Command_Injection__char_environment_execl_53a.c | CWE78_OS_Command_Injection__char_environment_execl_53_good |
void CWE78_OS_Command_Injection__char_environment_execl_53_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,003 | void CWE78_OS_Command_Injection__char_environment_execl_53b_badSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_execl_53c_badSink(data);
} | [] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118934/CWE78_OS_Command_Injection__char_environment_execl_53b.c | CWE78_OS_Command_Injection__char_environment_execl_53b_badSink |
void CWE78_OS_Command_Injection__char_environment_execl_53b_badSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_execl_53c_badSink(param_1);
return;
}
| ['gcc'] |
13,004 | void CWE78_OS_Command_Injection__char_environment_execl_53b_goodG2BSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_execl_53c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118934/CWE78_OS_Command_Injection__char_environment_execl_53b.c | CWE78_OS_Command_Injection__char_environment_execl_53b_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_execl_53b_goodG2BSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_execl_53c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
13,005 | void CWE78_OS_Command_Injection__char_environment_execl_53c_badSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_execl_53d_badSink(data);
} | [] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118934/CWE78_OS_Command_Injection__char_environment_execl_53c.c | CWE78_OS_Command_Injection__char_environment_execl_53c_badSink |
void CWE78_OS_Command_Injection__char_environment_execl_53c_badSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_execl_53d_badSink(param_1);
return;
}
| ['gcc'] |
13,006 | void CWE78_OS_Command_Injection__char_environment_execl_53c_goodG2BSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_execl_53d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118934/CWE78_OS_Command_Injection__char_environment_execl_53c.c | CWE78_OS_Command_Injection__char_environment_execl_53c_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_execl_53c_goodG2BSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_execl_53d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
13,007 | void CWE78_OS_Command_Injection__char_environment_execl_53d_badSink(char * data)
{
/* execl - specify the path where the command is located */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECL(COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* execl - specify the path where the command is located */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118934/CWE78_OS_Command_Injection__char_environment_execl_53d.c | CWE78_OS_Command_Injection__char_environment_execl_53d_badSink |
void CWE78_OS_Command_Injection__char_environment_execl_53d_badSink(undefined8 param_1)
{
func_0x00400b60(&UNK_0040132b,&UNK_0040132b,&UNK_00401328,&UNK_00401324,param_1,0);
return;
}
| ['gcc'] |
13,008 | void CWE78_OS_Command_Injection__char_environment_execl_53d_goodG2BSink(char * data)
{
/* execl - specify the path where the command is located */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECL(COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* execl - specify the path where the command is located */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118934/CWE78_OS_Command_Injection__char_environment_execl_53d.c | CWE78_OS_Command_Injection__char_environment_execl_53d_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_execl_53d_goodG2BSink(undefined8 param_1)
{
func_0x00400a80(&UNK_0040123b,&UNK_0040123b,&UNK_00401238,&UNK_00401234,param_1,0);
return;
}
| ['gcc'] |
13,009 | void CWE78_OS_Command_Injection__char_environment_execl_54_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
{
/* 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_execl_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/118935/CWE78_OS_Command_Injection__char_environment_execl_54a.c | CWE78_OS_Command_Injection__char_environment_execl_54_bad |
void CWE78_OS_Command_Injection__char_environment_execl_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 = 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;
uStack_30 = 0;
uStack_28 = 0;
puStack_10 = &uStack_88;
lStack_18 = func_0x00400ac0(puStack_10);
lStack_20 = func_0x00400a90(&UNK_00401344);
if (lStack_20 != 0) {
func_0x00400ae0((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
CWE78_OS_Command_Injection__char_environment_execl_54b_badSink(puStack_10);
return;
}
| ['gcc'] |
13,010 | void CWE78_OS_Command_Injection__char_environment_execl_54_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118935/CWE78_OS_Command_Injection__char_environment_execl_54a.c | CWE78_OS_Command_Injection__char_environment_execl_54_good |
void CWE78_OS_Command_Injection__char_environment_execl_54_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,011 | void CWE78_OS_Command_Injection__char_environment_execl_54b_badSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_execl_54c_badSink(data);
} | [] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118935/CWE78_OS_Command_Injection__char_environment_execl_54b.c | CWE78_OS_Command_Injection__char_environment_execl_54b_badSink |
void CWE78_OS_Command_Injection__char_environment_execl_54b_badSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_execl_54c_badSink(param_1);
return;
}
| ['gcc'] |
13,012 | void CWE78_OS_Command_Injection__char_environment_execl_54b_goodG2BSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_execl_54c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118935/CWE78_OS_Command_Injection__char_environment_execl_54b.c | CWE78_OS_Command_Injection__char_environment_execl_54b_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_execl_54b_goodG2BSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_execl_54c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
13,013 | void CWE78_OS_Command_Injection__char_environment_execl_54c_badSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_execl_54d_badSink(data);
} | [] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118935/CWE78_OS_Command_Injection__char_environment_execl_54c.c | CWE78_OS_Command_Injection__char_environment_execl_54c_badSink |
void CWE78_OS_Command_Injection__char_environment_execl_54c_badSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_execl_54d_badSink(param_1);
return;
}
| ['gcc'] |
13,014 | void CWE78_OS_Command_Injection__char_environment_execl_54c_goodG2BSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_execl_54d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118935/CWE78_OS_Command_Injection__char_environment_execl_54c.c | CWE78_OS_Command_Injection__char_environment_execl_54c_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_execl_54c_goodG2BSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_execl_54d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
13,015 | void CWE78_OS_Command_Injection__char_environment_execl_54d_badSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_execl_54e_badSink(data);
} | [] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118935/CWE78_OS_Command_Injection__char_environment_execl_54d.c | CWE78_OS_Command_Injection__char_environment_execl_54d_badSink |
void CWE78_OS_Command_Injection__char_environment_execl_54d_badSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_execl_54e_badSink(param_1);
return;
}
| ['gcc'] |
13,016 | void CWE78_OS_Command_Injection__char_environment_execl_54d_goodG2BSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_execl_54e_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118935/CWE78_OS_Command_Injection__char_environment_execl_54d.c | CWE78_OS_Command_Injection__char_environment_execl_54d_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_execl_54d_goodG2BSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_execl_54e_goodG2BSink(param_1);
return;
}
| ['gcc'] |
13,017 | void CWE78_OS_Command_Injection__char_environment_execl_54e_badSink(char * data)
{
/* execl - specify the path where the command is located */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECL(COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* execl - specify the path where the command is located */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118935/CWE78_OS_Command_Injection__char_environment_execl_54e.c | CWE78_OS_Command_Injection__char_environment_execl_54e_badSink |
void CWE78_OS_Command_Injection__char_environment_execl_54e_badSink(undefined8 param_1)
{
func_0x00400b60(&UNK_0040134b,&UNK_0040134b,&UNK_00401348,&UNK_00401344,param_1,0);
return;
}
| ['gcc'] |
13,018 | void CWE78_OS_Command_Injection__char_environment_execl_54e_goodG2BSink(char * data)
{
/* execl - specify the path where the command is located */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECL(COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* execl - specify the path where the command is located */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118935/CWE78_OS_Command_Injection__char_environment_execl_54e.c | CWE78_OS_Command_Injection__char_environment_execl_54e_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_execl_54e_goodG2BSink(undefined8 param_1)
{
func_0x00400a80(&UNK_0040125b,&UNK_0040125b,&UNK_00401258,&UNK_00401254,param_1,0);
return;
}
| ['gcc'] |
13,019 | void CWE78_OS_Command_Injection__char_environment_execl_61_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
data = CWE78_OS_Command_Injection__char_environment_execl_61b_badSource(data);
/* execl - specify the path where the command is located */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECL(COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* execl - specify the path where the command is located */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118936/CWE78_OS_Command_Injection__char_environment_execl_61a.c | CWE78_OS_Command_Injection__char_environment_execl_61_bad |
void CWE78_OS_Command_Injection__char_environment_execl_61_bad(void)
{
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;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
undefined8 *puStack_10;
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;
uStack_20 = 0;
uStack_18 = 0;
puStack_10 = &uStack_78;
puStack_10 = (undefined8 *)
CWE78_OS_Command_Injection__char_environment_execl_61b_badSource(puStack_10);
func_0x00400b60(&UNK_004012fb,&UNK_004012fb,&UNK_004012f8,&UNK_004012f4,puStack_10,0);
return;
}
| ['gcc'] |
13,020 | void CWE78_OS_Command_Injection__char_environment_execl_61_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118936/CWE78_OS_Command_Injection__char_environment_execl_61a.c | CWE78_OS_Command_Injection__char_environment_execl_61_good |
void CWE78_OS_Command_Injection__char_environment_execl_61_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,021 | char * CWE78_OS_Command_Injection__char_environment_execl_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/118936/CWE78_OS_Command_Injection__char_environment_execl_61b.c | CWE78_OS_Command_Injection__char_environment_execl_61b_badSource |
long CWE78_OS_Command_Injection__char_environment_execl_61b_badSource(long param_1)
{
long lVar1;
long lVar2;
lVar1 = func_0x00400ac0(param_1);
lVar2 = func_0x00400a90(&UNK_004012f4);
if (lVar2 != 0) {
func_0x00400ae0(param_1 + lVar1,lVar2,99 - lVar1);
}
return param_1;
}
| ['gcc'] |
13,022 | char * CWE78_OS_Command_Injection__char_environment_execl_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/118936/CWE78_OS_Command_Injection__char_environment_execl_61b.c | CWE78_OS_Command_Injection__char_environment_execl_61b_goodG2BSource |
char * CWE78_OS_Command_Injection__char_environment_execl_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,023 | void CWE78_OS_Command_Injection__char_environment_execl_63_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
{
/* 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_execl_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/118938/CWE78_OS_Command_Injection__char_environment_execl_63a.c | CWE78_OS_Command_Injection__char_environment_execl_63_bad |
void CWE78_OS_Command_Injection__char_environment_execl_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 = 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;
uStack_30 = 0;
uStack_28 = 0;
puStack_20 = &uStack_88;
lStack_10 = func_0x00400ac0(puStack_20);
lStack_18 = func_0x00400a90(&UNK_004012f4);
if (lStack_18 != 0) {
func_0x00400ae0((long)puStack_20 + lStack_10,lStack_18,99 - lStack_10);
}
CWE78_OS_Command_Injection__char_environment_execl_63b_badSink(&puStack_20);
return;
}
| ['gcc'] |
13,024 | void CWE78_OS_Command_Injection__char_environment_execl_63_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118938/CWE78_OS_Command_Injection__char_environment_execl_63a.c | CWE78_OS_Command_Injection__char_environment_execl_63_good |
void CWE78_OS_Command_Injection__char_environment_execl_63_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,025 | void CWE78_OS_Command_Injection__char_environment_execl_63b_badSink(char * * dataPtr)
{
char * data = *dataPtr;
/* execl - specify the path where the command is located */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECL(COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* execl - specify the path where the command is located */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118938/CWE78_OS_Command_Injection__char_environment_execl_63b.c | CWE78_OS_Command_Injection__char_environment_execl_63b_badSink |
void CWE78_OS_Command_Injection__char_environment_execl_63b_badSink(undefined8 *param_1)
{
func_0x00400b60(&UNK_004012fb,&UNK_004012fb,&UNK_004012f8,&UNK_004012f4,*param_1,0);
return;
}
| ['gcc'] |
13,026 | void CWE78_OS_Command_Injection__char_environment_execl_63b_goodG2BSink(char * * dataPtr)
{
char * data = *dataPtr;
/* execl - specify the path where the command is located */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECL(COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* execl - specify the path where the command is located */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118938/CWE78_OS_Command_Injection__char_environment_execl_63b.c | CWE78_OS_Command_Injection__char_environment_execl_63b_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_execl_63b_goodG2BSink(undefined8 *param_1)
{
func_0x00400a80(&UNK_0040120b,&UNK_0040120b,&UNK_00401208,&UNK_00401204,*param_1,0);
return;
}
| ['gcc'] |
13,027 | void CWE78_OS_Command_Injection__char_environment_execl_64_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
{
/* 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_execl_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/118939/CWE78_OS_Command_Injection__char_environment_execl_64a.c | CWE78_OS_Command_Injection__char_environment_execl_64_bad |
void CWE78_OS_Command_Injection__char_environment_execl_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 = 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;
uStack_30 = 0;
uStack_28 = 0;
puStack_20 = &uStack_88;
lStack_10 = func_0x00400ac0(puStack_20);
lStack_18 = func_0x00400a90(&UNK_00401304);
if (lStack_18 != 0) {
func_0x00400ae0((long)puStack_20 + lStack_10,lStack_18,99 - lStack_10);
}
CWE78_OS_Command_Injection__char_environment_execl_64b_badSink(&puStack_20);
return;
}
| ['gcc'] |
13,028 | void CWE78_OS_Command_Injection__char_environment_execl_64_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118939/CWE78_OS_Command_Injection__char_environment_execl_64a.c | CWE78_OS_Command_Injection__char_environment_execl_64_good |
void CWE78_OS_Command_Injection__char_environment_execl_64_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,029 | void CWE78_OS_Command_Injection__char_environment_execl_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);
/* execl - specify the path where the command is located */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECL(COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* execl - specify the path where the command is located */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118939/CWE78_OS_Command_Injection__char_environment_execl_64b.c | CWE78_OS_Command_Injection__char_environment_execl_64b_badSink |
void CWE78_OS_Command_Injection__char_environment_execl_64b_badSink(undefined8 *param_1)
{
func_0x00400b60(&UNK_0040130b,&UNK_0040130b,&UNK_00401308,&UNK_00401304,*param_1,0);
return;
}
| ['gcc'] |
13,030 | void CWE78_OS_Command_Injection__char_environment_execl_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);
/* execl - specify the path where the command is located */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECL(COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* execl - specify the path where the command is located */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118939/CWE78_OS_Command_Injection__char_environment_execl_64b.c | CWE78_OS_Command_Injection__char_environment_execl_64b_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_execl_64b_goodG2BSink(undefined8 *param_1)
{
func_0x00400a80(&UNK_0040121b,&UNK_0040121b,&UNK_00401218,&UNK_00401214,*param_1,0);
return;
}
| ['gcc'] |
13,031 | void CWE78_OS_Command_Injection__char_environment_execl_66_bad()
{
char * data;
char * dataArray[5];
char dataBuffer[100] = "";
data = dataBuffer;
{
/* 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_execl_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/118941/CWE78_OS_Command_Injection__char_environment_execl_66a.c | CWE78_OS_Command_Injection__char_environment_execl_66_bad |
void CWE78_OS_Command_Injection__char_environment_execl_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 = 0;
uStack_b0 = 0;
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_0x00400ac0(puStack_10);
lStack_20 = func_0x00400a90(&UNK_00401314);
if (lStack_20 != 0) {
func_0x00400ae0((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
puStack_38 = puStack_10;
CWE78_OS_Command_Injection__char_environment_execl_66b_badSink(auStack_48);
return;
}
| ['gcc'] |
13,032 | void CWE78_OS_Command_Injection__char_environment_execl_66_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118941/CWE78_OS_Command_Injection__char_environment_execl_66a.c | CWE78_OS_Command_Injection__char_environment_execl_66_good |
void CWE78_OS_Command_Injection__char_environment_execl_66_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,033 | void CWE78_OS_Command_Injection__char_environment_execl_66b_badSink(char * dataArray[])
{
/* copy data out of dataArray */
char * data = dataArray[2];
/* execl - specify the path where the command is located */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECL(COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* copy data out of dataArray */', '/* execl - specify the path where the command is located */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118941/CWE78_OS_Command_Injection__char_environment_execl_66b.c | CWE78_OS_Command_Injection__char_environment_execl_66b_badSink |
void CWE78_OS_Command_Injection__char_environment_execl_66b_badSink(long param_1)
{
func_0x00400b60(&UNK_0040131b,&UNK_0040131b,&UNK_00401318,&UNK_00401314,
*(undefined8 *)(param_1 + 0x10),0);
return;
}
| ['gcc'] |
13,034 | void CWE78_OS_Command_Injection__char_environment_execl_66b_goodG2BSink(char * dataArray[])
{
char * data = dataArray[2];
/* execl - specify the path where the command is located */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECL(COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* execl - specify the path where the command is located */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118941/CWE78_OS_Command_Injection__char_environment_execl_66b.c | CWE78_OS_Command_Injection__char_environment_execl_66b_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_execl_66b_goodG2BSink(long param_1)
{
func_0x00400a80(&UNK_0040122b,&UNK_0040122b,&UNK_00401228,&UNK_00401224,
*(undefined8 *)(param_1 + 0x10),0);
return;
}
| ['gcc'] |
13,035 | void CWE78_OS_Command_Injection__char_environment_execl_67_bad()
{
char * data;
CWE78_OS_Command_Injection__char_environment_execl_67_structType myStruct;
char dataBuffer[100] = "";
data = dataBuffer;
{
/* 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_execl_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/118942/CWE78_OS_Command_Injection__char_environment_execl_67a.c | CWE78_OS_Command_Injection__char_environment_execl_67_bad |
void CWE78_OS_Command_Injection__char_environment_execl_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 = 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;
uStack_40 = 0;
uStack_38 = 0;
puStack_10 = &uStack_98;
lStack_18 = func_0x00400ac0(puStack_10);
lStack_20 = func_0x00400a90(&UNK_00401304);
if (lStack_20 != 0) {
func_0x00400ae0((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
puStack_28 = puStack_10;
CWE78_OS_Command_Injection__char_environment_execl_67b_badSink(puStack_10);
return;
}
| ['gcc'] |
13,036 | void CWE78_OS_Command_Injection__char_environment_execl_67_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118942/CWE78_OS_Command_Injection__char_environment_execl_67a.c | CWE78_OS_Command_Injection__char_environment_execl_67_good |
void CWE78_OS_Command_Injection__char_environment_execl_67_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,037 | void CWE78_OS_Command_Injection__char_environment_execl_67b_badSink(CWE78_OS_Command_Injection__char_environment_execl_67_structType myStruct)
{
char * data = myStruct.structFirst;
/* execl - specify the path where the command is located */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECL(COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* execl - specify the path where the command is located */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118942/CWE78_OS_Command_Injection__char_environment_execl_67b.c | CWE78_OS_Command_Injection__char_environment_execl_67b_badSink |
void CWE78_OS_Command_Injection__char_environment_execl_67b_badSink(undefined8 param_1)
{
func_0x00400b60(&UNK_0040130b,&UNK_0040130b,&UNK_00401308,&UNK_00401304,param_1,0);
return;
}
| ['gcc'] |
13,038 | void CWE78_OS_Command_Injection__char_environment_execl_67b_goodG2BSink(CWE78_OS_Command_Injection__char_environment_execl_67_structType myStruct)
{
char * data = myStruct.structFirst;
/* execl - specify the path where the command is located */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECL(COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* execl - specify the path where the command is located */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118942/CWE78_OS_Command_Injection__char_environment_execl_67b.c | CWE78_OS_Command_Injection__char_environment_execl_67b_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_execl_67b_goodG2BSink(undefined8 param_1)
{
func_0x00400a80(&UNK_0040121b,&UNK_0040121b,&UNK_00401218,&UNK_00401214,param_1,0);
return;
}
| ['gcc'] |
13,039 | void CWE78_OS_Command_Injection__char_environment_execlp_08_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
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);
}
}
}
/* execlp - searches for the location of the command among
* the directories specified by the PATH environment variable */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* execlp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118958/CWE78_OS_Command_Injection__char_environment_execlp_08.c | CWE78_OS_Command_Injection__char_environment_execlp_08_bad |
void CWE78_OS_Command_Injection__char_environment_execlp_08_bad(void)
{
int iVar1;
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 = 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;
uStack_30 = 0;
uStack_28 = 0;
puStack_10 = &uStack_88;
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
lStack_18 = func_0x00400ac0(puStack_10);
lStack_20 = func_0x00400a90(&UNK_004012f4);
if (lStack_20 != 0) {
func_0x00400ae0((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
}
func_0x00400b60(&UNK_004012ff,&UNK_004012ff,&UNK_004012fc,&UNK_004012f8,puStack_10,0);
return;
}
| ['gcc'] |
13,040 | void CWE78_OS_Command_Injection__char_environment_execlp_08_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118958/CWE78_OS_Command_Injection__char_environment_execlp_08.c | CWE78_OS_Command_Injection__char_environment_execlp_08_good |
void CWE78_OS_Command_Injection__char_environment_execlp_08_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
13,041 | void CWE78_OS_Command_Injection__char_environment_execlp_11_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
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);
}
}
}
/* execlp - searches for the location of the command among
* the directories specified by the PATH environment variable */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* execlp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118961/CWE78_OS_Command_Injection__char_environment_execlp_11.c | CWE78_OS_Command_Injection__char_environment_execlp_11_bad |
void CWE78_OS_Command_Injection__char_environment_execlp_11_bad(void)
{
int iVar1;
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 = 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;
uStack_30 = 0;
uStack_28 = 0;
puStack_10 = &uStack_88;
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
lStack_18 = func_0x00400ac0(puStack_10);
lStack_20 = func_0x00400a90(&UNK_004012e4);
if (lStack_20 != 0) {
func_0x00400ae0((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
}
func_0x00400b60(&UNK_004012ef,&UNK_004012ef,&UNK_004012ec,&UNK_004012e8,puStack_10,0);
return;
}
| ['gcc'] |
13,042 | void CWE78_OS_Command_Injection__char_environment_execlp_11_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118961/CWE78_OS_Command_Injection__char_environment_execlp_11.c | CWE78_OS_Command_Injection__char_environment_execlp_11_good |
void CWE78_OS_Command_Injection__char_environment_execlp_11_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
13,043 | void CWE78_OS_Command_Injection__char_environment_execlp_12_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
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, "*.*");
}
/* execlp - searches for the location of the command among
* the directories specified by the PATH environment variable */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* 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) */', '/* execlp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118962/CWE78_OS_Command_Injection__char_environment_execlp_12.c | CWE78_OS_Command_Injection__char_environment_execlp_12_bad |
void CWE78_OS_Command_Injection__char_environment_execlp_12_bad(void)
{
char cVar1;
int iVar2;
ulong uVar3;
undefined8 *puVar4;
byte bVar5;
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;
bVar5 = 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;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
puStack_10 = &uStack_88;
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_0x00400ac0(puStack_10);
lStack_20 = func_0x00400a90(&UNK_00401314);
if (lStack_20 != 0) {
func_0x00400ae0((char *)((long)puStack_10 + lStack_18),lStack_20,99 - lStack_18);
}
}
func_0x00400b60(&UNK_0040131f,&UNK_0040131f,&UNK_0040131c,&UNK_00401318,puStack_10,0);
return;
}
| ['gcc'] |
13,044 | void CWE78_OS_Command_Injection__char_environment_execlp_12_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118962/CWE78_OS_Command_Injection__char_environment_execlp_12.c | CWE78_OS_Command_Injection__char_environment_execlp_12_good |
void CWE78_OS_Command_Injection__char_environment_execlp_12_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,045 | void CWE78_OS_Command_Injection__char_environment_execlp_17_bad()
{
int i;
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
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);
}
}
}
/* execlp - searches for the location of the command among
* the directories specified by the PATH environment variable */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* execlp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118967/CWE78_OS_Command_Injection__char_environment_execlp_17.c | CWE78_OS_Command_Injection__char_environment_execlp_17_bad |
void CWE78_OS_Command_Injection__char_environment_execlp_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_28;
long lStack_20;
undefined8 *puStack_18;
int iStack_c;
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;
uStack_40 = 0;
uStack_38 = 0;
puStack_18 = &uStack_98;
for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) {
lStack_20 = func_0x00400ac0(puStack_18);
lStack_28 = func_0x00400a90(&UNK_004012f4);
if (lStack_28 != 0) {
func_0x00400ae0((long)puStack_18 + lStack_20,lStack_28,99 - lStack_20);
}
}
func_0x00400b60(&UNK_004012ff,&UNK_004012ff,&UNK_004012fc,&UNK_004012f8,puStack_18,0);
return;
}
| ['gcc'] |
13,046 | void CWE78_OS_Command_Injection__char_environment_execlp_17_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118967/CWE78_OS_Command_Injection__char_environment_execlp_17.c | CWE78_OS_Command_Injection__char_environment_execlp_17_good |
void CWE78_OS_Command_Injection__char_environment_execlp_17_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,047 | void CWE78_OS_Command_Injection__char_environment_execlp_21_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
badStatic = 1; /* true */
data = badSource(data);
/* execlp - searches for the location of the command among
* the directories specified by the PATH environment variable */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* true */', '/* execlp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118969/CWE78_OS_Command_Injection__char_environment_execlp_21.c | CWE78_OS_Command_Injection__char_environment_execlp_21_bad |
void CWE78_OS_Command_Injection__char_environment_execlp_21_bad(void)
{
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;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
undefined8 *puStack_10;
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;
uStack_20 = 0;
uStack_18 = 0;
puStack_10 = &uStack_78;
badStatic = 1;
puStack_10 = (undefined8 *)badSource(puStack_10);
func_0x00400b60(&UNK_0040130f,&UNK_0040130f,&UNK_0040130c,&UNK_00401308,puStack_10,0);
return;
}
| ['gcc'] |
13,048 | void CWE78_OS_Command_Injection__char_environment_execlp_21_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118969/CWE78_OS_Command_Injection__char_environment_execlp_21.c | CWE78_OS_Command_Injection__char_environment_execlp_21_good |
void CWE78_OS_Command_Injection__char_environment_execlp_21_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
13,049 | void CWE78_OS_Command_Injection__char_environment_execlp_51_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
{
/* 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_execlp_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/118980/CWE78_OS_Command_Injection__char_environment_execlp_51a.c | CWE78_OS_Command_Injection__char_environment_execlp_51_bad |
void CWE78_OS_Command_Injection__char_environment_execlp_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 = 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;
uStack_30 = 0;
uStack_28 = 0;
puStack_10 = &uStack_88;
lStack_18 = func_0x00400ac0(puStack_10);
lStack_20 = func_0x00400a90(&UNK_004012e4);
if (lStack_20 != 0) {
func_0x00400ae0((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
CWE78_OS_Command_Injection__char_environment_execlp_51b_badSink(puStack_10);
return;
}
| ['gcc'] |
13,050 | void CWE78_OS_Command_Injection__char_environment_execlp_51_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118980/CWE78_OS_Command_Injection__char_environment_execlp_51a.c | CWE78_OS_Command_Injection__char_environment_execlp_51_good |
void CWE78_OS_Command_Injection__char_environment_execlp_51_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,051 | void CWE78_OS_Command_Injection__char_environment_execlp_51b_badSink(char * data)
{
/* execlp - searches for the location of the command among
* the directories specified by the PATH environment variable */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* execlp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118980/CWE78_OS_Command_Injection__char_environment_execlp_51b.c | CWE78_OS_Command_Injection__char_environment_execlp_51b_badSink |
void CWE78_OS_Command_Injection__char_environment_execlp_51b_badSink(undefined8 param_1)
{
func_0x00400b60(&UNK_004012eb,&UNK_004012eb,&UNK_004012e8,&UNK_004012e4,param_1,0);
return;
}
| ['gcc'] |
13,052 | void CWE78_OS_Command_Injection__char_environment_execlp_51b_goodG2BSink(char * data)
{
/* execlp - searches for the location of the command among
* the directories specified by the PATH environment variable */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* execlp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118980/CWE78_OS_Command_Injection__char_environment_execlp_51b.c | CWE78_OS_Command_Injection__char_environment_execlp_51b_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_execlp_51b_goodG2BSink(undefined8 param_1)
{
func_0x00400a80(&UNK_0040120b,&UNK_0040120b,&UNK_00401208,&UNK_00401204,param_1,0);
return;
}
| ['gcc'] |
13,053 | void CWE78_OS_Command_Injection__char_environment_execlp_52_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
{
/* 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_execlp_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/118981/CWE78_OS_Command_Injection__char_environment_execlp_52a.c | CWE78_OS_Command_Injection__char_environment_execlp_52_bad |
void CWE78_OS_Command_Injection__char_environment_execlp_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 = 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;
uStack_30 = 0;
uStack_28 = 0;
puStack_10 = &uStack_88;
lStack_18 = func_0x00400ac0(puStack_10);
lStack_20 = func_0x00400a90(&UNK_00401304);
if (lStack_20 != 0) {
func_0x00400ae0((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
CWE78_OS_Command_Injection__char_environment_execlp_52b_badSink(puStack_10);
return;
}
| ['gcc'] |
13,054 | void CWE78_OS_Command_Injection__char_environment_execlp_52_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118981/CWE78_OS_Command_Injection__char_environment_execlp_52a.c | CWE78_OS_Command_Injection__char_environment_execlp_52_good |
void CWE78_OS_Command_Injection__char_environment_execlp_52_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,055 | void CWE78_OS_Command_Injection__char_environment_execlp_52b_badSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_execlp_52c_badSink(data);
} | [] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118981/CWE78_OS_Command_Injection__char_environment_execlp_52b.c | CWE78_OS_Command_Injection__char_environment_execlp_52b_badSink |
void CWE78_OS_Command_Injection__char_environment_execlp_52b_badSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_execlp_52c_badSink(param_1);
return;
}
| ['gcc'] |
13,056 | void CWE78_OS_Command_Injection__char_environment_execlp_52b_goodG2BSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_execlp_52c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118981/CWE78_OS_Command_Injection__char_environment_execlp_52b.c | CWE78_OS_Command_Injection__char_environment_execlp_52b_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_execlp_52b_goodG2BSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_execlp_52c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
13,057 | void CWE78_OS_Command_Injection__char_environment_execlp_52c_badSink(char * data)
{
/* execlp - searches for the location of the command among
* the directories specified by the PATH environment variable */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* execlp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118981/CWE78_OS_Command_Injection__char_environment_execlp_52c.c | CWE78_OS_Command_Injection__char_environment_execlp_52c_badSink |
void CWE78_OS_Command_Injection__char_environment_execlp_52c_badSink(undefined8 param_1)
{
func_0x00400b60(&UNK_0040130b,&UNK_0040130b,&UNK_00401308,&UNK_00401304,param_1,0);
return;
}
| ['gcc'] |
13,058 | void CWE78_OS_Command_Injection__char_environment_execlp_52c_goodG2BSink(char * data)
{
/* execlp - searches for the location of the command among
* the directories specified by the PATH environment variable */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* execlp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118981/CWE78_OS_Command_Injection__char_environment_execlp_52c.c | CWE78_OS_Command_Injection__char_environment_execlp_52c_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_execlp_52c_goodG2BSink(undefined8 param_1)
{
func_0x00400a80(&UNK_0040121b,&UNK_0040121b,&UNK_00401218,&UNK_00401214,param_1,0);
return;
}
| ['gcc'] |
13,059 | void CWE78_OS_Command_Injection__char_environment_execlp_53_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
{
/* 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_execlp_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/118982/CWE78_OS_Command_Injection__char_environment_execlp_53a.c | CWE78_OS_Command_Injection__char_environment_execlp_53_bad |
void CWE78_OS_Command_Injection__char_environment_execlp_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 = 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;
uStack_30 = 0;
uStack_28 = 0;
puStack_10 = &uStack_88;
lStack_18 = func_0x00400ac0(puStack_10);
lStack_20 = func_0x00400a90(&UNK_00401324);
if (lStack_20 != 0) {
func_0x00400ae0((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
CWE78_OS_Command_Injection__char_environment_execlp_53b_badSink(puStack_10);
return;
}
| ['gcc'] |
13,060 | void CWE78_OS_Command_Injection__char_environment_execlp_53_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118982/CWE78_OS_Command_Injection__char_environment_execlp_53a.c | CWE78_OS_Command_Injection__char_environment_execlp_53_good |
void CWE78_OS_Command_Injection__char_environment_execlp_53_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,061 | void CWE78_OS_Command_Injection__char_environment_execlp_53b_badSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_execlp_53c_badSink(data);
} | [] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118982/CWE78_OS_Command_Injection__char_environment_execlp_53b.c | CWE78_OS_Command_Injection__char_environment_execlp_53b_badSink |
void CWE78_OS_Command_Injection__char_environment_execlp_53b_badSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_execlp_53c_badSink(param_1);
return;
}
| ['gcc'] |
13,062 | void CWE78_OS_Command_Injection__char_environment_execlp_53b_goodG2BSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_execlp_53c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118982/CWE78_OS_Command_Injection__char_environment_execlp_53b.c | CWE78_OS_Command_Injection__char_environment_execlp_53b_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_execlp_53b_goodG2BSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_execlp_53c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
13,063 | void CWE78_OS_Command_Injection__char_environment_execlp_53c_badSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_execlp_53d_badSink(data);
} | [] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118982/CWE78_OS_Command_Injection__char_environment_execlp_53c.c | CWE78_OS_Command_Injection__char_environment_execlp_53c_badSink |
void CWE78_OS_Command_Injection__char_environment_execlp_53c_badSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_execlp_53d_badSink(param_1);
return;
}
| ['gcc'] |
13,064 | void CWE78_OS_Command_Injection__char_environment_execlp_53c_goodG2BSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_execlp_53d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118982/CWE78_OS_Command_Injection__char_environment_execlp_53c.c | CWE78_OS_Command_Injection__char_environment_execlp_53c_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_execlp_53c_goodG2BSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_execlp_53d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
13,065 | void CWE78_OS_Command_Injection__char_environment_execlp_53d_badSink(char * data)
{
/* execlp - searches for the location of the command among
* the directories specified by the PATH environment variable */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* execlp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118982/CWE78_OS_Command_Injection__char_environment_execlp_53d.c | CWE78_OS_Command_Injection__char_environment_execlp_53d_badSink |
void CWE78_OS_Command_Injection__char_environment_execlp_53d_badSink(undefined8 param_1)
{
func_0x00400b60(&UNK_0040132b,&UNK_0040132b,&UNK_00401328,&UNK_00401324,param_1,0);
return;
}
| ['gcc'] |
13,066 | void CWE78_OS_Command_Injection__char_environment_execlp_53d_goodG2BSink(char * data)
{
/* execlp - searches for the location of the command among
* the directories specified by the PATH environment variable */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* execlp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118982/CWE78_OS_Command_Injection__char_environment_execlp_53d.c | CWE78_OS_Command_Injection__char_environment_execlp_53d_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_execlp_53d_goodG2BSink(undefined8 param_1)
{
func_0x00400a80(&UNK_0040123b,&UNK_0040123b,&UNK_00401238,&UNK_00401234,param_1,0);
return;
}
| ['gcc'] |
13,067 | void CWE78_OS_Command_Injection__char_environment_execlp_54_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
{
/* 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_execlp_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/118983/CWE78_OS_Command_Injection__char_environment_execlp_54a.c | CWE78_OS_Command_Injection__char_environment_execlp_54_bad |
void CWE78_OS_Command_Injection__char_environment_execlp_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 = 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;
uStack_30 = 0;
uStack_28 = 0;
puStack_10 = &uStack_88;
lStack_18 = func_0x00400ac0(puStack_10);
lStack_20 = func_0x00400a90(&UNK_00401344);
if (lStack_20 != 0) {
func_0x00400ae0((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
CWE78_OS_Command_Injection__char_environment_execlp_54b_badSink(puStack_10);
return;
}
| ['gcc'] |
13,068 | void CWE78_OS_Command_Injection__char_environment_execlp_54_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118983/CWE78_OS_Command_Injection__char_environment_execlp_54a.c | CWE78_OS_Command_Injection__char_environment_execlp_54_good |
void CWE78_OS_Command_Injection__char_environment_execlp_54_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,069 | void CWE78_OS_Command_Injection__char_environment_execlp_54b_badSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_execlp_54c_badSink(data);
} | [] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118983/CWE78_OS_Command_Injection__char_environment_execlp_54b.c | CWE78_OS_Command_Injection__char_environment_execlp_54b_badSink |
void CWE78_OS_Command_Injection__char_environment_execlp_54b_badSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_execlp_54c_badSink(param_1);
return;
}
| ['gcc'] |
13,070 | void CWE78_OS_Command_Injection__char_environment_execlp_54b_goodG2BSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_execlp_54c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118983/CWE78_OS_Command_Injection__char_environment_execlp_54b.c | CWE78_OS_Command_Injection__char_environment_execlp_54b_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_execlp_54b_goodG2BSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_execlp_54c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
13,071 | void CWE78_OS_Command_Injection__char_environment_execlp_54c_badSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_execlp_54d_badSink(data);
} | [] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118983/CWE78_OS_Command_Injection__char_environment_execlp_54c.c | CWE78_OS_Command_Injection__char_environment_execlp_54c_badSink |
void CWE78_OS_Command_Injection__char_environment_execlp_54c_badSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_execlp_54d_badSink(param_1);
return;
}
| ['gcc'] |
13,072 | void CWE78_OS_Command_Injection__char_environment_execlp_54c_goodG2BSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_execlp_54d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118983/CWE78_OS_Command_Injection__char_environment_execlp_54c.c | CWE78_OS_Command_Injection__char_environment_execlp_54c_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_execlp_54c_goodG2BSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_execlp_54d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
13,073 | void CWE78_OS_Command_Injection__char_environment_execlp_54d_badSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_execlp_54e_badSink(data);
} | [] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118983/CWE78_OS_Command_Injection__char_environment_execlp_54d.c | CWE78_OS_Command_Injection__char_environment_execlp_54d_badSink |
void CWE78_OS_Command_Injection__char_environment_execlp_54d_badSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_execlp_54e_badSink(param_1);
return;
}
| ['gcc'] |
13,074 | void CWE78_OS_Command_Injection__char_environment_execlp_54d_goodG2BSink(char * data)
{
CWE78_OS_Command_Injection__char_environment_execlp_54e_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118983/CWE78_OS_Command_Injection__char_environment_execlp_54d.c | CWE78_OS_Command_Injection__char_environment_execlp_54d_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_execlp_54d_goodG2BSink(undefined8 param_1)
{
CWE78_OS_Command_Injection__char_environment_execlp_54e_goodG2BSink(param_1);
return;
}
| ['gcc'] |
13,075 | void CWE78_OS_Command_Injection__char_environment_execlp_54e_badSink(char * data)
{
/* execlp - searches for the location of the command among
* the directories specified by the PATH environment variable */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* execlp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118983/CWE78_OS_Command_Injection__char_environment_execlp_54e.c | CWE78_OS_Command_Injection__char_environment_execlp_54e_badSink |
void CWE78_OS_Command_Injection__char_environment_execlp_54e_badSink(undefined8 param_1)
{
func_0x00400b60(&UNK_0040134b,&UNK_0040134b,&UNK_00401348,&UNK_00401344,param_1,0);
return;
}
| ['gcc'] |
13,076 | void CWE78_OS_Command_Injection__char_environment_execlp_54e_goodG2BSink(char * data)
{
/* execlp - searches for the location of the command among
* the directories specified by the PATH environment variable */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* execlp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118983/CWE78_OS_Command_Injection__char_environment_execlp_54e.c | CWE78_OS_Command_Injection__char_environment_execlp_54e_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_execlp_54e_goodG2BSink(undefined8 param_1)
{
func_0x00400a80(&UNK_0040125b,&UNK_0040125b,&UNK_00401258,&UNK_00401254,param_1,0);
return;
}
| ['gcc'] |
13,077 | void CWE78_OS_Command_Injection__char_environment_execlp_61_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
data = CWE78_OS_Command_Injection__char_environment_execlp_61b_badSource(data);
/* execlp - searches for the location of the command among
* the directories specified by the PATH environment variable */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* execlp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118984/CWE78_OS_Command_Injection__char_environment_execlp_61a.c | CWE78_OS_Command_Injection__char_environment_execlp_61_bad |
void CWE78_OS_Command_Injection__char_environment_execlp_61_bad(void)
{
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;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
undefined8 *puStack_10;
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;
uStack_20 = 0;
uStack_18 = 0;
puStack_10 = &uStack_78;
puStack_10 = (undefined8 *)
CWE78_OS_Command_Injection__char_environment_execlp_61b_badSource(puStack_10);
func_0x00400b60(&UNK_004012fb,&UNK_004012fb,&UNK_004012f8,&UNK_004012f4,puStack_10,0);
return;
}
| ['gcc'] |
13,078 | void CWE78_OS_Command_Injection__char_environment_execlp_61_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118984/CWE78_OS_Command_Injection__char_environment_execlp_61a.c | CWE78_OS_Command_Injection__char_environment_execlp_61_good |
void CWE78_OS_Command_Injection__char_environment_execlp_61_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,079 | char * CWE78_OS_Command_Injection__char_environment_execlp_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/118984/CWE78_OS_Command_Injection__char_environment_execlp_61b.c | CWE78_OS_Command_Injection__char_environment_execlp_61b_badSource |
long CWE78_OS_Command_Injection__char_environment_execlp_61b_badSource(long param_1)
{
long lVar1;
long lVar2;
lVar1 = func_0x00400ac0(param_1);
lVar2 = func_0x00400a90(&UNK_004012f4);
if (lVar2 != 0) {
func_0x00400ae0(param_1 + lVar1,lVar2,99 - lVar1);
}
return param_1;
}
| ['gcc'] |
13,080 | char * CWE78_OS_Command_Injection__char_environment_execlp_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/118984/CWE78_OS_Command_Injection__char_environment_execlp_61b.c | CWE78_OS_Command_Injection__char_environment_execlp_61b_goodG2BSource |
char * CWE78_OS_Command_Injection__char_environment_execlp_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,081 | void CWE78_OS_Command_Injection__char_environment_execlp_63_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
{
/* 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_execlp_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/118986/CWE78_OS_Command_Injection__char_environment_execlp_63a.c | CWE78_OS_Command_Injection__char_environment_execlp_63_bad |
void CWE78_OS_Command_Injection__char_environment_execlp_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 = 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;
uStack_30 = 0;
uStack_28 = 0;
puStack_20 = &uStack_88;
lStack_10 = func_0x00400ac0(puStack_20);
lStack_18 = func_0x00400a90(&UNK_004012f4);
if (lStack_18 != 0) {
func_0x00400ae0((long)puStack_20 + lStack_10,lStack_18,99 - lStack_10);
}
CWE78_OS_Command_Injection__char_environment_execlp_63b_badSink(&puStack_20);
return;
}
| ['gcc'] |
13,082 | void CWE78_OS_Command_Injection__char_environment_execlp_63_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118986/CWE78_OS_Command_Injection__char_environment_execlp_63a.c | CWE78_OS_Command_Injection__char_environment_execlp_63_good |
void CWE78_OS_Command_Injection__char_environment_execlp_63_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,083 | void CWE78_OS_Command_Injection__char_environment_execlp_63b_badSink(char * * dataPtr)
{
char * data = *dataPtr;
/* execlp - searches for the location of the command among
* the directories specified by the PATH environment variable */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* execlp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118986/CWE78_OS_Command_Injection__char_environment_execlp_63b.c | CWE78_OS_Command_Injection__char_environment_execlp_63b_badSink |
void CWE78_OS_Command_Injection__char_environment_execlp_63b_badSink(undefined8 *param_1)
{
func_0x00400b60(&UNK_004012fb,&UNK_004012fb,&UNK_004012f8,&UNK_004012f4,*param_1,0);
return;
}
| ['gcc'] |
13,084 | void CWE78_OS_Command_Injection__char_environment_execlp_63b_goodG2BSink(char * * dataPtr)
{
char * data = *dataPtr;
/* execlp - searches for the location of the command among
* the directories specified by the PATH environment variable */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* execlp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118986/CWE78_OS_Command_Injection__char_environment_execlp_63b.c | CWE78_OS_Command_Injection__char_environment_execlp_63b_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_execlp_63b_goodG2BSink(undefined8 *param_1)
{
func_0x00400a80(&UNK_0040120b,&UNK_0040120b,&UNK_00401208,&UNK_00401204,*param_1,0);
return;
}
| ['gcc'] |
13,085 | void CWE78_OS_Command_Injection__char_environment_execlp_64_bad()
{
char * data;
char dataBuffer[100] = "";
data = dataBuffer;
{
/* 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_execlp_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/118987/CWE78_OS_Command_Injection__char_environment_execlp_64a.c | CWE78_OS_Command_Injection__char_environment_execlp_64_bad |
void CWE78_OS_Command_Injection__char_environment_execlp_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 = 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;
uStack_30 = 0;
uStack_28 = 0;
puStack_20 = &uStack_88;
lStack_10 = func_0x00400ac0(puStack_20);
lStack_18 = func_0x00400a90(&UNK_00401304);
if (lStack_18 != 0) {
func_0x00400ae0((long)puStack_20 + lStack_10,lStack_18,99 - lStack_10);
}
CWE78_OS_Command_Injection__char_environment_execlp_64b_badSink(&puStack_20);
return;
}
| ['gcc'] |
13,086 | void CWE78_OS_Command_Injection__char_environment_execlp_64_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118987/CWE78_OS_Command_Injection__char_environment_execlp_64a.c | CWE78_OS_Command_Injection__char_environment_execlp_64_good |
void CWE78_OS_Command_Injection__char_environment_execlp_64_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,087 | void CWE78_OS_Command_Injection__char_environment_execlp_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);
/* execlp - searches for the location of the command among
* the directories specified by the PATH environment variable */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* execlp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118987/CWE78_OS_Command_Injection__char_environment_execlp_64b.c | CWE78_OS_Command_Injection__char_environment_execlp_64b_badSink |
void CWE78_OS_Command_Injection__char_environment_execlp_64b_badSink(undefined8 *param_1)
{
func_0x00400b60(&UNK_0040130b,&UNK_0040130b,&UNK_00401308,&UNK_00401304,*param_1,0);
return;
}
| ['gcc'] |
13,088 | void CWE78_OS_Command_Injection__char_environment_execlp_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);
/* execlp - searches for the location of the command among
* the directories specified by the PATH environment variable */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* execlp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118987/CWE78_OS_Command_Injection__char_environment_execlp_64b.c | CWE78_OS_Command_Injection__char_environment_execlp_64b_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_execlp_64b_goodG2BSink(undefined8 *param_1)
{
func_0x00400a80(&UNK_0040121b,&UNK_0040121b,&UNK_00401218,&UNK_00401214,*param_1,0);
return;
}
| ['gcc'] |
13,089 | void CWE78_OS_Command_Injection__char_environment_execlp_66_bad()
{
char * data;
char * dataArray[5];
char dataBuffer[100] = "";
data = dataBuffer;
{
/* 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_execlp_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/118989/CWE78_OS_Command_Injection__char_environment_execlp_66a.c | CWE78_OS_Command_Injection__char_environment_execlp_66_bad |
void CWE78_OS_Command_Injection__char_environment_execlp_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 = 0;
uStack_b0 = 0;
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_0x00400ac0(puStack_10);
lStack_20 = func_0x00400a90(&UNK_00401314);
if (lStack_20 != 0) {
func_0x00400ae0((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
puStack_38 = puStack_10;
CWE78_OS_Command_Injection__char_environment_execlp_66b_badSink(auStack_48);
return;
}
| ['gcc'] |
13,090 | void CWE78_OS_Command_Injection__char_environment_execlp_66_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118989/CWE78_OS_Command_Injection__char_environment_execlp_66a.c | CWE78_OS_Command_Injection__char_environment_execlp_66_good |
void CWE78_OS_Command_Injection__char_environment_execlp_66_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,091 | void CWE78_OS_Command_Injection__char_environment_execlp_66b_badSink(char * dataArray[])
{
/* copy data out of dataArray */
char * data = dataArray[2];
/* execlp - searches for the location of the command among
* the directories specified by the PATH environment variable */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* copy data out of dataArray */', '/* execlp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118989/CWE78_OS_Command_Injection__char_environment_execlp_66b.c | CWE78_OS_Command_Injection__char_environment_execlp_66b_badSink |
void CWE78_OS_Command_Injection__char_environment_execlp_66b_badSink(long param_1)
{
func_0x00400b60(&UNK_0040131b,&UNK_0040131b,&UNK_00401318,&UNK_00401314,
*(undefined8 *)(param_1 + 0x10),0);
return;
}
| ['gcc'] |
13,092 | void CWE78_OS_Command_Injection__char_environment_execlp_66b_goodG2BSink(char * dataArray[])
{
char * data = dataArray[2];
/* execlp - searches for the location of the command among
* the directories specified by the PATH environment variable */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* execlp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118989/CWE78_OS_Command_Injection__char_environment_execlp_66b.c | CWE78_OS_Command_Injection__char_environment_execlp_66b_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_execlp_66b_goodG2BSink(long param_1)
{
func_0x00400a80(&UNK_0040122b,&UNK_0040122b,&UNK_00401228,&UNK_00401224,
*(undefined8 *)(param_1 + 0x10),0);
return;
}
| ['gcc'] |
13,093 | void CWE78_OS_Command_Injection__char_environment_execlp_67_bad()
{
char * data;
CWE78_OS_Command_Injection__char_environment_execlp_67_structType myStruct;
char dataBuffer[100] = "";
data = dataBuffer;
{
/* 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_execlp_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/118990/CWE78_OS_Command_Injection__char_environment_execlp_67a.c | CWE78_OS_Command_Injection__char_environment_execlp_67_bad |
void CWE78_OS_Command_Injection__char_environment_execlp_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 = 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;
uStack_40 = 0;
uStack_38 = 0;
puStack_10 = &uStack_98;
lStack_18 = func_0x00400ac0(puStack_10);
lStack_20 = func_0x00400a90(&UNK_00401304);
if (lStack_20 != 0) {
func_0x00400ae0((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18);
}
puStack_28 = puStack_10;
CWE78_OS_Command_Injection__char_environment_execlp_67b_badSink(puStack_10);
return;
}
| ['gcc'] |
13,094 | void CWE78_OS_Command_Injection__char_environment_execlp_67_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118990/CWE78_OS_Command_Injection__char_environment_execlp_67a.c | CWE78_OS_Command_Injection__char_environment_execlp_67_good |
void CWE78_OS_Command_Injection__char_environment_execlp_67_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,095 | void CWE78_OS_Command_Injection__char_environment_execlp_67b_badSink(CWE78_OS_Command_Injection__char_environment_execlp_67_structType myStruct)
{
char * data = myStruct.structFirst;
/* execlp - searches for the location of the command among
* the directories specified by the PATH environment variable */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* execlp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | ['CWE78'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118990/CWE78_OS_Command_Injection__char_environment_execlp_67b.c | CWE78_OS_Command_Injection__char_environment_execlp_67b_badSink |
void CWE78_OS_Command_Injection__char_environment_execlp_67b_badSink(undefined8 param_1)
{
func_0x00400b60(&UNK_0040130b,&UNK_0040130b,&UNK_00401308,&UNK_00401304,param_1,0);
return;
}
| ['gcc'] |
13,096 | void CWE78_OS_Command_Injection__char_environment_execlp_67b_goodG2BSink(CWE78_OS_Command_Injection__char_environment_execlp_67_structType myStruct)
{
char * data = myStruct.structFirst;
/* execlp - searches for the location of the command among
* the directories specified by the PATH environment variable */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL);
} | ['/* execlp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118990/CWE78_OS_Command_Injection__char_environment_execlp_67b.c | CWE78_OS_Command_Injection__char_environment_execlp_67b_goodG2BSink |
void CWE78_OS_Command_Injection__char_environment_execlp_67b_goodG2BSink(undefined8 param_1)
{
func_0x00400a80(&UNK_0040121b,&UNK_0040121b,&UNK_00401218,&UNK_00401214,param_1,0);
return;
}
| ['gcc'] |
13,097 | void CWE78_OS_Command_Injection__char_environment_popen_01_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);
}
}
{
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/118999/CWE78_OS_Command_Injection__char_environment_popen_01.c | CWE78_OS_Command_Injection__char_environment_popen_01_bad |
void CWE78_OS_Command_Injection__char_environment_popen_01_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,098 | void CWE78_OS_Command_Injection__char_environment_popen_01_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/118999/CWE78_OS_Command_Injection__char_environment_popen_01.c | CWE78_OS_Command_Injection__char_environment_popen_01_good |
void CWE78_OS_Command_Injection__char_environment_popen_01_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
13,099 | void CWE78_OS_Command_Injection__char_environment_popen_02_bad()
{
char * data;
char data_buf[100] = FULL_COMMAND;
data = data_buf;
if(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);
}
}
}
{
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/119000/CWE78_OS_Command_Injection__char_environment_popen_02.c | CWE78_OS_Command_Injection__char_environment_popen_02_bad |
void CWE78_OS_Command_Injection__char_environment_popen_02_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'] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.