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,200
void CWE78_OS_Command_Injection__char_environment_system_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); } } } /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* 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/119048/CWE78_OS_Command_Injection__char_environment_system_02.c
CWE78_OS_Command_Injection__char_environment_system_02_bad
void CWE78_OS_Command_Injection__char_environment_system_02_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 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; lStack_18 = func_0x00400b40(puStack_10); lStack_20 = func_0x00400b10(&UNK_00401364); if (lStack_20 != 0) { func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18); } iVar1 = func_0x00400b50(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401368); func_0x00400bf0(1); } return; }
['gcc']
13,201
void CWE78_OS_Command_Injection__char_environment_system_02_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119048/CWE78_OS_Command_Injection__char_environment_system_02.c
CWE78_OS_Command_Injection__char_environment_system_02_good
void CWE78_OS_Command_Injection__char_environment_system_02_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,202
void CWE78_OS_Command_Injection__char_environment_system_03_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; if(5==5) { { /* Append input from an environment variable to data */ size_t dataLen = strlen(data); char * environment = GETENV(ENV_VARIABLE); /* If there is data in the environment variable */ if (environment != NULL) { /* POTENTIAL FLAW: Read data from an environment variable */ strncat(data+dataLen, environment, 100-dataLen-1); } } } /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* 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/119049/CWE78_OS_Command_Injection__char_environment_system_03.c
CWE78_OS_Command_Injection__char_environment_system_03_bad
void CWE78_OS_Command_Injection__char_environment_system_03_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 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; lStack_18 = func_0x00400b40(puStack_10); lStack_20 = func_0x00400b10(&UNK_00401364); if (lStack_20 != 0) { func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18); } iVar1 = func_0x00400b50(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401368); func_0x00400bf0(1); } return; }
['gcc']
13,203
void CWE78_OS_Command_Injection__char_environment_system_03_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119049/CWE78_OS_Command_Injection__char_environment_system_03.c
CWE78_OS_Command_Injection__char_environment_system_03_good
void CWE78_OS_Command_Injection__char_environment_system_03_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,204
void CWE78_OS_Command_Injection__char_environment_system_05_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; if(staticTrue) { { /* Append input from an environment variable to data */ size_t dataLen = strlen(data); char * environment = GETENV(ENV_VARIABLE); /* If there is data in the environment variable */ if (environment != NULL) { /* POTENTIAL FLAW: Read data from an environment variable */ strncat(data+dataLen, environment, 100-dataLen-1); } } } /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* 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/119051/CWE78_OS_Command_Injection__char_environment_system_05.c
CWE78_OS_Command_Injection__char_environment_system_05_bad
void CWE78_OS_Command_Injection__char_environment_system_05_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 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; if (staticTrue != 0) { 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); } } iVar1 = func_0x00400b50(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401378); func_0x00400bf0(1); } return; }
['gcc']
13,205
void CWE78_OS_Command_Injection__char_environment_system_05_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119051/CWE78_OS_Command_Injection__char_environment_system_05.c
CWE78_OS_Command_Injection__char_environment_system_05_good
void CWE78_OS_Command_Injection__char_environment_system_05_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,206
void CWE78_OS_Command_Injection__char_environment_system_06_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; if(STATIC_CONST_FIVE==5) { { /* Append input from an environment variable to data */ size_t dataLen = strlen(data); char * environment = GETENV(ENV_VARIABLE); /* If there is data in the environment variable */ if (environment != NULL) { /* POTENTIAL FLAW: Read data from an environment variable */ strncat(data+dataLen, environment, 100-dataLen-1); } } } /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* 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/119052/CWE78_OS_Command_Injection__char_environment_system_06.c
CWE78_OS_Command_Injection__char_environment_system_06_bad
void CWE78_OS_Command_Injection__char_environment_system_06_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 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; lStack_18 = func_0x00400b40(puStack_10); lStack_20 = func_0x00400b10(&UNK_00401378); if (lStack_20 != 0) { func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18); } iVar1 = func_0x00400b50(puStack_10); if (iVar1 < 1) { printLine(&UNK_0040137c); func_0x00400bf0(1); } return; }
['gcc']
13,207
void CWE78_OS_Command_Injection__char_environment_system_06_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119052/CWE78_OS_Command_Injection__char_environment_system_06.c
CWE78_OS_Command_Injection__char_environment_system_06_good
void CWE78_OS_Command_Injection__char_environment_system_06_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,208
void CWE78_OS_Command_Injection__char_environment_system_07_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; if(staticFive==5) { { /* Append input from an environment variable to data */ size_t dataLen = strlen(data); char * environment = GETENV(ENV_VARIABLE); /* If there is data in the environment variable */ if (environment != NULL) { /* POTENTIAL FLAW: Read data from an environment variable */ strncat(data+dataLen, environment, 100-dataLen-1); } } } /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* 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/119053/CWE78_OS_Command_Injection__char_environment_system_07.c
CWE78_OS_Command_Injection__char_environment_system_07_bad
void CWE78_OS_Command_Injection__char_environment_system_07_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 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; if (staticFive == 5) { 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); } } iVar1 = func_0x00400b50(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401378); func_0x00400bf0(1); } return; }
['gcc']
13,209
void CWE78_OS_Command_Injection__char_environment_system_07_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119053/CWE78_OS_Command_Injection__char_environment_system_07.c
CWE78_OS_Command_Injection__char_environment_system_07_good
void CWE78_OS_Command_Injection__char_environment_system_07_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,210
void CWE78_OS_Command_Injection__char_environment_system_08_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119054/CWE78_OS_Command_Injection__char_environment_system_08.c
CWE78_OS_Command_Injection__char_environment_system_08_good
void CWE78_OS_Command_Injection__char_environment_system_08_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,211
void CWE78_OS_Command_Injection__char_environment_system_09_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; if(GLOBAL_CONST_TRUE) { { /* Append input from an environment variable to data */ size_t dataLen = strlen(data); char * environment = GETENV(ENV_VARIABLE); /* If there is data in the environment variable */ if (environment != NULL) { /* POTENTIAL FLAW: Read data from an environment variable */ strncat(data+dataLen, environment, 100-dataLen-1); } } } /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* 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/119055/CWE78_OS_Command_Injection__char_environment_system_09.c
CWE78_OS_Command_Injection__char_environment_system_09_bad
void CWE78_OS_Command_Injection__char_environment_system_09_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 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; if (GLOBAL_CONST_TRUE != 0) { 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); } } iVar1 = func_0x00400b50(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401378); func_0x00400bf0(1); } return; }
['gcc']
13,212
void CWE78_OS_Command_Injection__char_environment_system_09_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119055/CWE78_OS_Command_Injection__char_environment_system_09.c
CWE78_OS_Command_Injection__char_environment_system_09_good
void CWE78_OS_Command_Injection__char_environment_system_09_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,213
void CWE78_OS_Command_Injection__char_environment_system_10_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; if(globalTrue) { { /* Append input from an environment variable to data */ size_t dataLen = strlen(data); char * environment = GETENV(ENV_VARIABLE); /* If there is data in the environment variable */ if (environment != NULL) { /* POTENTIAL FLAW: Read data from an environment variable */ strncat(data+dataLen, environment, 100-dataLen-1); } } } /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* 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/119056/CWE78_OS_Command_Injection__char_environment_system_10.c
CWE78_OS_Command_Injection__char_environment_system_10_bad
void CWE78_OS_Command_Injection__char_environment_system_10_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 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; if (globalTrue != 0) { 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); } } iVar1 = func_0x00400b50(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401378); func_0x00400bf0(1); } return; }
['gcc']
13,214
void CWE78_OS_Command_Injection__char_environment_system_10_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119056/CWE78_OS_Command_Injection__char_environment_system_10.c
CWE78_OS_Command_Injection__char_environment_system_10_good
void CWE78_OS_Command_Injection__char_environment_system_10_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,215
void CWE78_OS_Command_Injection__char_environment_system_11_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; if(globalReturnsTrue()) { { /* Append input from an environment variable to data */ size_t dataLen = strlen(data); char * environment = GETENV(ENV_VARIABLE); /* If there is data in the environment variable */ if (environment != NULL) { /* POTENTIAL FLAW: Read data from an environment variable */ strncat(data+dataLen, environment, 100-dataLen-1); } } } /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* 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/119057/CWE78_OS_Command_Injection__char_environment_system_11.c
CWE78_OS_Command_Injection__char_environment_system_11_bad
void CWE78_OS_Command_Injection__char_environment_system_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 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { 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); } } iVar1 = func_0x00400b50(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401378); func_0x00400bf0(1); } return; }
['gcc']
13,216
void CWE78_OS_Command_Injection__char_environment_system_11_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119057/CWE78_OS_Command_Injection__char_environment_system_11.c
CWE78_OS_Command_Injection__char_environment_system_11_good
void CWE78_OS_Command_Injection__char_environment_system_11_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,217
void CWE78_OS_Command_Injection__char_environment_system_22_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; CWE78_OS_Command_Injection__char_environment_system_22_badGlobal = 1; /* true */ data = CWE78_OS_Command_Injection__char_environment_system_22_badSource(data); /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* true */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119066/CWE78_OS_Command_Injection__char_environment_system_22a.c
CWE78_OS_Command_Injection__char_environment_system_22_bad
void CWE78_OS_Command_Injection__char_environment_system_22_bad(void) { int iVar1; 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 = 0x2068732f6e69622f; uStack_70 = 0x20616c2d20736c; 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; CWE78_OS_Command_Injection__char_environment_system_22_badGlobal = 1; puStack_10 = (undefined8 *) CWE78_OS_Command_Injection__char_environment_system_22_badSource(puStack_10); iVar1 = func_0x00400b50(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401394); func_0x00400bf0(1); } return; }
['gcc']
13,218
void CWE78_OS_Command_Injection__char_environment_system_22_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119066/CWE78_OS_Command_Injection__char_environment_system_22a.c
CWE78_OS_Command_Injection__char_environment_system_22_good
void CWE78_OS_Command_Injection__char_environment_system_22_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,219
char * CWE78_OS_Command_Injection__char_environment_system_22_badSource(char * data) { if(CWE78_OS_Command_Injection__char_environment_system_22_badGlobal) { { /* Append input from an environment variable to data */ size_t dataLen = strlen(data); char * environment = GETENV(ENV_VARIABLE); /* If there is data in the environment variable */ if (environment != NULL) { /* POTENTIAL FLAW: Read data from an environment variable */ strncat(data+dataLen, environment, 100-dataLen-1); } } } return data; }
['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119066/CWE78_OS_Command_Injection__char_environment_system_22b.c
CWE78_OS_Command_Injection__char_environment_system_22_badSource
long CWE78_OS_Command_Injection__char_environment_system_22_badSource(long param_1) { long lVar1; long lVar2; if (CWE78_OS_Command_Injection__char_environment_system_22_badGlobal != 0) { lVar1 = func_0x00400b40(param_1); lVar2 = func_0x00400b10(&UNK_00401394); if (lVar2 != 0) { func_0x00400b70(param_1 + lVar1,lVar2,99 - lVar1); } } return param_1; }
['gcc']
13,220
char * CWE78_OS_Command_Injection__char_environment_system_22_goodG2B1Source(char * data) { if(CWE78_OS_Command_Injection__char_environment_system_22_goodG2B1Global) { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); } else { /* FIX: Append a fixed string to data (not user / external input) */ strcat(data, "*.*"); } return data; }
['/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* FIX: Append a fixed string to data (not user / external input) */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119066/CWE78_OS_Command_Injection__char_environment_system_22b.c
CWE78_OS_Command_Injection__char_environment_system_22_goodG2B1Source
char * CWE78_OS_Command_Injection__char_environment_system_22_goodG2B1Source(char *param_1) { char cVar1; ulong uVar2; char *pcVar3; if (CWE78_OS_Command_Injection__char_environment_system_22_goodG2B1Global == 0) { uVar2 = 0xffffffffffffffff; pcVar3 = param_1; do { if (uVar2 == 0) break; uVar2 = uVar2 - 1; cVar1 = *pcVar3; pcVar3 = pcVar3 + 1; } while (cVar1 != '\0'); *(undefined4 *)(param_1 + (~uVar2 - 1)) = 0x2a2e2a; } else { printLine(&UNK_00401394); } return param_1; }
['gcc']
13,221
char * CWE78_OS_Command_Injection__char_environment_system_22_goodG2B2Source(char * data) { if(CWE78_OS_Command_Injection__char_environment_system_22_goodG2B2Global) { /* FIX: Append a fixed string to data (not user / external input) */ strcat(data, "*.*"); } return data; }
['/* FIX: Append a fixed string to data (not user / external input) */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119066/CWE78_OS_Command_Injection__char_environment_system_22b.c
CWE78_OS_Command_Injection__char_environment_system_22_goodG2B2Source
char * CWE78_OS_Command_Injection__char_environment_system_22_goodG2B2Source(char *param_1) { char cVar1; ulong uVar2; char *pcVar3; if (CWE78_OS_Command_Injection__char_environment_system_22_goodG2B2Global != 0) { uVar2 = 0xffffffffffffffff; pcVar3 = param_1; do { if (uVar2 == 0) break; uVar2 = uVar2 - 1; cVar1 = *pcVar3; pcVar3 = pcVar3 + 1; } while (cVar1 != '\0'); *(undefined4 *)(param_1 + (~uVar2 - 1)) = 0x2a2e2a; } return param_1; }
['gcc']
13,222
void CWE78_OS_Command_Injection__char_environment_system_31_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; { /* Append input from an environment variable to data */ size_t dataLen = strlen(data); char * environment = GETENV(ENV_VARIABLE); /* If there is data in the environment variable */ if (environment != NULL) { /* POTENTIAL FLAW: Read data from an environment variable */ strncat(data+dataLen, environment, 100-dataLen-1); } } { char * dataCopy = data; char * data = dataCopy; /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } } }
['/* 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/119067/CWE78_OS_Command_Injection__char_environment_system_31.c
CWE78_OS_Command_Injection__char_environment_system_31_bad
void CWE78_OS_Command_Injection__char_environment_system_31_bad(void) { int iVar1; undefined8 uStack_98; undefined8 uStack_90; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined4 uStack_38; undefined8 *puStack_30; undefined8 *puStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_98 = 0x2068732f6e69622f; uStack_90 = 0x20616c2d20736c; uStack_88 = 0; uStack_80 = 0; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; puStack_10 = &uStack_98; lStack_18 = func_0x00400b40(puStack_10); lStack_20 = func_0x00400b10(&UNK_00401384); if (lStack_20 != 0) { func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18); } puStack_28 = puStack_10; puStack_30 = puStack_10; iVar1 = func_0x00400b50(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401388); func_0x00400bf0(1); } return; }
['gcc']
13,223
void CWE78_OS_Command_Injection__char_environment_system_31_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119067/CWE78_OS_Command_Injection__char_environment_system_31.c
CWE78_OS_Command_Injection__char_environment_system_31_good
void CWE78_OS_Command_Injection__char_environment_system_31_good(void) { goodG2B(); return; }
['gcc']
13,224
void CWE78_OS_Command_Injection__char_environment_system_32_bad() { char * data; char * *dataPtr1 = &data; char * *dataPtr2 = &data; char data_buf[100] = FULL_COMMAND; data = data_buf; { char * data = *dataPtr1; { /* Append input from an environment variable to data */ size_t dataLen = strlen(data); char * environment = GETENV(ENV_VARIABLE); /* If there is data in the environment variable */ if (environment != NULL) { /* POTENTIAL FLAW: Read data from an environment variable */ strncat(data+dataLen, environment, 100-dataLen-1); } } *dataPtr1 = data; } { char * data = *dataPtr2; /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } } }
['/* 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/119068/CWE78_OS_Command_Injection__char_environment_system_32.c
CWE78_OS_Command_Injection__char_environment_system_32_bad
/* WARNING: Restarted to delay deadcode elimination for space: stack */ void CWE78_OS_Command_Injection__char_environment_system_32_bad(void) { int iVar1; undefined8 uStack_a8; undefined8 uStack_a0; undefined8 uStack_98; undefined8 uStack_90; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined4 uStack_48; undefined8 *puStack_40; undefined8 *puStack_38; long lStack_30; long lStack_28; undefined8 *puStack_20; undefined8 **ppuStack_18; undefined8 **ppuStack_10; ppuStack_10 = &puStack_40; ppuStack_18 = &puStack_40; uStack_a8 = 0x2068732f6e69622f; uStack_a0 = 0x20616c2d20736c; uStack_98 = 0; uStack_90 = 0; uStack_88 = 0; uStack_80 = 0; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; puStack_40 = &uStack_a8; puStack_20 = puStack_40; lStack_28 = func_0x00400b40(puStack_40); lStack_30 = func_0x00400b10(&UNK_004013a4); if (lStack_30 != 0) { func_0x00400b70((long)puStack_20 + lStack_28,lStack_30,99 - lStack_28); } *ppuStack_10 = puStack_20; puStack_38 = *ppuStack_18; iVar1 = func_0x00400b50(puStack_38); if (iVar1 < 1) { printLine(&UNK_004013a8); func_0x00400bf0(1); } return; }
['gcc']
13,225
void CWE78_OS_Command_Injection__char_environment_system_32_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119068/CWE78_OS_Command_Injection__char_environment_system_32.c
CWE78_OS_Command_Injection__char_environment_system_32_good
void CWE78_OS_Command_Injection__char_environment_system_32_good(void) { goodG2B(); return; }
['gcc']
13,226
void CWE78_OS_Command_Injection__char_environment_system_34_bad() { char * data; CWE78_OS_Command_Injection__char_environment_system_34_unionType myUnion; char data_buf[100] = FULL_COMMAND; data = data_buf; { /* Append input from an environment variable to data */ size_t dataLen = strlen(data); char * environment = GETENV(ENV_VARIABLE); /* If there is data in the environment variable */ if (environment != NULL) { /* POTENTIAL FLAW: Read data from an environment variable */ strncat(data+dataLen, environment, 100-dataLen-1); } } myUnion.unionFirst = data; { char * data = myUnion.unionSecond; /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } } }
['/* 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/119070/CWE78_OS_Command_Injection__char_environment_system_34.c
CWE78_OS_Command_Injection__char_environment_system_34_bad
void CWE78_OS_Command_Injection__char_environment_system_34_bad(void) { int iVar1; undefined8 uStack_98; undefined8 uStack_90; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined4 uStack_38; undefined8 *puStack_30; undefined8 *puStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_98 = 0x2068732f6e69622f; uStack_90 = 0x20616c2d20736c; uStack_88 = 0; uStack_80 = 0; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; puStack_10 = &uStack_98; lStack_18 = func_0x00400b40(puStack_10); lStack_20 = func_0x00400b10(&UNK_00401384); if (lStack_20 != 0) { func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18); } puStack_30 = puStack_10; puStack_28 = puStack_10; iVar1 = func_0x00400b50(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401388); func_0x00400bf0(1); } return; }
['gcc']
13,227
void CWE78_OS_Command_Injection__char_environment_system_34_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119070/CWE78_OS_Command_Injection__char_environment_system_34.c
CWE78_OS_Command_Injection__char_environment_system_34_good
void CWE78_OS_Command_Injection__char_environment_system_34_good(void) { goodG2B(); return; }
['gcc']
13,228
void CWE78_OS_Command_Injection__char_environment_system_41_badSink(char * data) { /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* 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/119071/CWE78_OS_Command_Injection__char_environment_system_41.c
CWE78_OS_Command_Injection__char_environment_system_41_badSink
void CWE78_OS_Command_Injection__char_environment_system_41_badSink(undefined8 param_1) { int iVar1; iVar1 = func_0x00400b50(param_1); if (iVar1 < 1) { printLine(&UNK_00401384); func_0x00400bf0(1); } return; }
['gcc']
13,229
void CWE78_OS_Command_Injection__char_environment_system_41_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; { /* Append input from an environment variable to data */ size_t dataLen = strlen(data); char * environment = GETENV(ENV_VARIABLE); /* If there is data in the environment variable */ if (environment != NULL) { /* POTENTIAL FLAW: Read data from an environment variable */ strncat(data+dataLen, environment, 100-dataLen-1); } } CWE78_OS_Command_Injection__char_environment_system_41_badSink(data); }
['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119071/CWE78_OS_Command_Injection__char_environment_system_41.c
CWE78_OS_Command_Injection__char_environment_system_41_bad
void CWE78_OS_Command_Injection__char_environment_system_41_bad(void) { undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; lStack_18 = func_0x00400b40(puStack_10); lStack_20 = func_0x00400b10(&UNK_0040139e); if (lStack_20 != 0) { func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18); } CWE78_OS_Command_Injection__char_environment_system_41_badSink(puStack_10); return; }
['gcc']
13,230
void CWE78_OS_Command_Injection__char_environment_system_41_goodG2BSink(char * data) { /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119071/CWE78_OS_Command_Injection__char_environment_system_41.c
CWE78_OS_Command_Injection__char_environment_system_41_goodG2BSink
void CWE78_OS_Command_Injection__char_environment_system_41_goodG2BSink(undefined8 param_1) { int iVar1; iVar1 = func_0x00400a40(param_1); if (iVar1 < 1) { printLine(&UNK_00401254); func_0x00400ad0(1); } return; }
['gcc']
13,231
void CWE78_OS_Command_Injection__char_environment_system_41_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119071/CWE78_OS_Command_Injection__char_environment_system_41.c
CWE78_OS_Command_Injection__char_environment_system_41_good
void CWE78_OS_Command_Injection__char_environment_system_41_good(void) { goodG2B(); return; }
['gcc']
13,232
void CWE78_OS_Command_Injection__char_environment_system_42_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; data = badSource(data); /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* 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/119072/CWE78_OS_Command_Injection__char_environment_system_42.c
CWE78_OS_Command_Injection__char_environment_system_42_bad
void CWE78_OS_Command_Injection__char_environment_system_42_bad(void) { int iVar1; 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 = 0x2068732f6e69622f; uStack_70 = 0x20616c2d20736c; 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 *)badSource(puStack_10); iVar1 = func_0x00400b50(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401388); func_0x00400bf0(1); } return; }
['gcc']
13,233
void CWE78_OS_Command_Injection__char_environment_system_42_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119072/CWE78_OS_Command_Injection__char_environment_system_42.c
CWE78_OS_Command_Injection__char_environment_system_42_good
void CWE78_OS_Command_Injection__char_environment_system_42_good(void) { goodG2B(); return; }
['gcc']
13,234
void CWE78_OS_Command_Injection__char_environment_system_51_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; { /* Append input from an environment variable to data */ size_t dataLen = strlen(data); char * environment = GETENV(ENV_VARIABLE); /* If there is data in the environment variable */ if (environment != NULL) { /* POTENTIAL FLAW: Read data from an environment variable */ strncat(data+dataLen, environment, 100-dataLen-1); } } CWE78_OS_Command_Injection__char_environment_system_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/119076/CWE78_OS_Command_Injection__char_environment_system_51a.c
CWE78_OS_Command_Injection__char_environment_system_51_bad
void CWE78_OS_Command_Injection__char_environment_system_51_bad(void) { undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; lStack_18 = func_0x00400b40(puStack_10); lStack_20 = func_0x00400b10(&UNK_00401384); if (lStack_20 != 0) { func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18); } CWE78_OS_Command_Injection__char_environment_system_51b_badSink(puStack_10); return; }
['gcc']
13,235
void CWE78_OS_Command_Injection__char_environment_system_51_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119076/CWE78_OS_Command_Injection__char_environment_system_51a.c
CWE78_OS_Command_Injection__char_environment_system_51_good
void CWE78_OS_Command_Injection__char_environment_system_51_good(void) { goodG2B(); return; }
['gcc']
13,236
void CWE78_OS_Command_Injection__char_environment_system_51b_badSink(char * data) { /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* 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/119076/CWE78_OS_Command_Injection__char_environment_system_51b.c
CWE78_OS_Command_Injection__char_environment_system_51b_badSink
void CWE78_OS_Command_Injection__char_environment_system_51b_badSink(undefined8 param_1) { int iVar1; iVar1 = func_0x00400b50(param_1); if (iVar1 < 1) { printLine(&UNK_00401384); func_0x00400bf0(1); } return; }
['gcc']
13,237
void CWE78_OS_Command_Injection__char_environment_system_51b_goodG2BSink(char * data) { /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119076/CWE78_OS_Command_Injection__char_environment_system_51b.c
CWE78_OS_Command_Injection__char_environment_system_51b_goodG2BSink
void CWE78_OS_Command_Injection__char_environment_system_51b_goodG2BSink(undefined8 param_1) { int iVar1; iVar1 = func_0x00400a40(param_1); if (iVar1 < 1) { printLine(&UNK_00401254); func_0x00400ad0(1); } return; }
['gcc']
13,238
void CWE78_OS_Command_Injection__char_environment_system_52_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; { /* Append input from an environment variable to data */ size_t dataLen = strlen(data); char * environment = GETENV(ENV_VARIABLE); /* If there is data in the environment variable */ if (environment != NULL) { /* POTENTIAL FLAW: Read data from an environment variable */ strncat(data+dataLen, environment, 100-dataLen-1); } } CWE78_OS_Command_Injection__char_environment_system_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/119077/CWE78_OS_Command_Injection__char_environment_system_52a.c
CWE78_OS_Command_Injection__char_environment_system_52_bad
void CWE78_OS_Command_Injection__char_environment_system_52_bad(void) { undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; lStack_18 = func_0x00400b40(puStack_10); lStack_20 = func_0x00400b10(&UNK_00401394); if (lStack_20 != 0) { func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18); } CWE78_OS_Command_Injection__char_environment_system_52b_badSink(puStack_10); return; }
['gcc']
13,239
void CWE78_OS_Command_Injection__char_environment_system_52_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119077/CWE78_OS_Command_Injection__char_environment_system_52a.c
CWE78_OS_Command_Injection__char_environment_system_52_good
void CWE78_OS_Command_Injection__char_environment_system_52_good(void) { goodG2B(); return; }
['gcc']
13,240
void CWE78_OS_Command_Injection__char_environment_system_52b_badSink(char * data) { CWE78_OS_Command_Injection__char_environment_system_52c_badSink(data); }
[]
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119077/CWE78_OS_Command_Injection__char_environment_system_52b.c
CWE78_OS_Command_Injection__char_environment_system_52b_badSink
void CWE78_OS_Command_Injection__char_environment_system_52b_badSink(undefined8 param_1) { CWE78_OS_Command_Injection__char_environment_system_52c_badSink(param_1); return; }
['gcc']
13,241
void CWE78_OS_Command_Injection__char_environment_system_52b_goodG2BSink(char * data) { CWE78_OS_Command_Injection__char_environment_system_52c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119077/CWE78_OS_Command_Injection__char_environment_system_52b.c
CWE78_OS_Command_Injection__char_environment_system_52b_goodG2BSink
void CWE78_OS_Command_Injection__char_environment_system_52b_goodG2BSink(undefined8 param_1) { CWE78_OS_Command_Injection__char_environment_system_52c_goodG2BSink(param_1); return; }
['gcc']
13,242
void CWE78_OS_Command_Injection__char_environment_system_52c_badSink(char * data) { /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* 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/119077/CWE78_OS_Command_Injection__char_environment_system_52c.c
CWE78_OS_Command_Injection__char_environment_system_52c_badSink
void CWE78_OS_Command_Injection__char_environment_system_52c_badSink(undefined8 param_1) { int iVar1; iVar1 = func_0x00400b50(param_1); if (iVar1 < 1) { printLine(&UNK_00401394); func_0x00400bf0(1); } return; }
['gcc']
13,243
void CWE78_OS_Command_Injection__char_environment_system_52c_goodG2BSink(char * data) { /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119077/CWE78_OS_Command_Injection__char_environment_system_52c.c
CWE78_OS_Command_Injection__char_environment_system_52c_goodG2BSink
void CWE78_OS_Command_Injection__char_environment_system_52c_goodG2BSink(undefined8 param_1) { int iVar1; iVar1 = func_0x00400a40(param_1); if (iVar1 < 1) { printLine(&UNK_00401274); func_0x00400ad0(1); } return; }
['gcc']
13,244
void CWE78_OS_Command_Injection__char_environment_system_53_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; { /* Append input from an environment variable to data */ size_t dataLen = strlen(data); char * environment = GETENV(ENV_VARIABLE); /* If there is data in the environment variable */ if (environment != NULL) { /* POTENTIAL FLAW: Read data from an environment variable */ strncat(data+dataLen, environment, 100-dataLen-1); } } CWE78_OS_Command_Injection__char_environment_system_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/119078/CWE78_OS_Command_Injection__char_environment_system_53a.c
CWE78_OS_Command_Injection__char_environment_system_53_bad
void CWE78_OS_Command_Injection__char_environment_system_53_bad(void) { undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; lStack_18 = func_0x00400b40(puStack_10); lStack_20 = func_0x00400b10(&UNK_004013b4); if (lStack_20 != 0) { func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18); } CWE78_OS_Command_Injection__char_environment_system_53b_badSink(puStack_10); return; }
['gcc']
13,245
void CWE78_OS_Command_Injection__char_environment_system_53_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119078/CWE78_OS_Command_Injection__char_environment_system_53a.c
CWE78_OS_Command_Injection__char_environment_system_53_good
void CWE78_OS_Command_Injection__char_environment_system_53_good(void) { goodG2B(); return; }
['gcc']
13,246
void CWE78_OS_Command_Injection__char_environment_system_53b_badSink(char * data) { CWE78_OS_Command_Injection__char_environment_system_53c_badSink(data); }
[]
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119078/CWE78_OS_Command_Injection__char_environment_system_53b.c
CWE78_OS_Command_Injection__char_environment_system_53b_badSink
void CWE78_OS_Command_Injection__char_environment_system_53b_badSink(undefined8 param_1) { CWE78_OS_Command_Injection__char_environment_system_53c_badSink(param_1); return; }
['gcc']
13,247
void CWE78_OS_Command_Injection__char_environment_system_53b_goodG2BSink(char * data) { CWE78_OS_Command_Injection__char_environment_system_53c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119078/CWE78_OS_Command_Injection__char_environment_system_53b.c
CWE78_OS_Command_Injection__char_environment_system_53b_goodG2BSink
void CWE78_OS_Command_Injection__char_environment_system_53b_goodG2BSink(undefined8 param_1) { CWE78_OS_Command_Injection__char_environment_system_53c_goodG2BSink(param_1); return; }
['gcc']
13,248
void CWE78_OS_Command_Injection__char_environment_system_53c_badSink(char * data) { CWE78_OS_Command_Injection__char_environment_system_53d_badSink(data); }
[]
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119078/CWE78_OS_Command_Injection__char_environment_system_53c.c
CWE78_OS_Command_Injection__char_environment_system_53c_badSink
void CWE78_OS_Command_Injection__char_environment_system_53c_badSink(undefined8 param_1) { CWE78_OS_Command_Injection__char_environment_system_53d_badSink(param_1); return; }
['gcc']
13,249
void CWE78_OS_Command_Injection__char_environment_system_53c_goodG2BSink(char * data) { CWE78_OS_Command_Injection__char_environment_system_53d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119078/CWE78_OS_Command_Injection__char_environment_system_53c.c
CWE78_OS_Command_Injection__char_environment_system_53c_goodG2BSink
void CWE78_OS_Command_Injection__char_environment_system_53c_goodG2BSink(undefined8 param_1) { CWE78_OS_Command_Injection__char_environment_system_53d_goodG2BSink(param_1); return; }
['gcc']
13,250
void CWE78_OS_Command_Injection__char_environment_system_53d_badSink(char * data) { /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* 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/119078/CWE78_OS_Command_Injection__char_environment_system_53d.c
CWE78_OS_Command_Injection__char_environment_system_53d_badSink
void CWE78_OS_Command_Injection__char_environment_system_53d_badSink(undefined8 param_1) { int iVar1; iVar1 = func_0x00400b50(param_1); if (iVar1 < 1) { printLine(&UNK_004013b4); func_0x00400bf0(1); } return; }
['gcc']
13,251
void CWE78_OS_Command_Injection__char_environment_system_53d_goodG2BSink(char * data) { /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119078/CWE78_OS_Command_Injection__char_environment_system_53d.c
CWE78_OS_Command_Injection__char_environment_system_53d_goodG2BSink
void CWE78_OS_Command_Injection__char_environment_system_53d_goodG2BSink(undefined8 param_1) { int iVar1; iVar1 = func_0x00400a40(param_1); if (iVar1 < 1) { printLine(&UNK_00401284); func_0x00400ad0(1); } return; }
['gcc']
13,252
void CWE78_OS_Command_Injection__char_environment_system_54_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; { /* Append input from an environment variable to data */ size_t dataLen = strlen(data); char * environment = GETENV(ENV_VARIABLE); /* If there is data in the environment variable */ if (environment != NULL) { /* POTENTIAL FLAW: Read data from an environment variable */ strncat(data+dataLen, environment, 100-dataLen-1); } } CWE78_OS_Command_Injection__char_environment_system_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/119079/CWE78_OS_Command_Injection__char_environment_system_54a.c
CWE78_OS_Command_Injection__char_environment_system_54_bad
void CWE78_OS_Command_Injection__char_environment_system_54_bad(void) { undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; lStack_18 = func_0x00400b40(puStack_10); lStack_20 = func_0x00400b10(&UNK_004013d4); if (lStack_20 != 0) { func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18); } CWE78_OS_Command_Injection__char_environment_system_54b_badSink(puStack_10); return; }
['gcc']
13,253
void CWE78_OS_Command_Injection__char_environment_system_54_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119079/CWE78_OS_Command_Injection__char_environment_system_54a.c
CWE78_OS_Command_Injection__char_environment_system_54_good
void CWE78_OS_Command_Injection__char_environment_system_54_good(void) { goodG2B(); return; }
['gcc']
13,254
void CWE78_OS_Command_Injection__char_environment_system_54b_badSink(char * data) { CWE78_OS_Command_Injection__char_environment_system_54c_badSink(data); }
[]
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119079/CWE78_OS_Command_Injection__char_environment_system_54b.c
CWE78_OS_Command_Injection__char_environment_system_54b_badSink
void CWE78_OS_Command_Injection__char_environment_system_54b_badSink(undefined8 param_1) { CWE78_OS_Command_Injection__char_environment_system_54c_badSink(param_1); return; }
['gcc']
13,255
void CWE78_OS_Command_Injection__char_environment_system_54b_goodG2BSink(char * data) { CWE78_OS_Command_Injection__char_environment_system_54c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119079/CWE78_OS_Command_Injection__char_environment_system_54b.c
CWE78_OS_Command_Injection__char_environment_system_54b_goodG2BSink
void CWE78_OS_Command_Injection__char_environment_system_54b_goodG2BSink(undefined8 param_1) { CWE78_OS_Command_Injection__char_environment_system_54c_goodG2BSink(param_1); return; }
['gcc']
13,256
void CWE78_OS_Command_Injection__char_environment_system_54c_badSink(char * data) { CWE78_OS_Command_Injection__char_environment_system_54d_badSink(data); }
[]
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119079/CWE78_OS_Command_Injection__char_environment_system_54c.c
CWE78_OS_Command_Injection__char_environment_system_54c_badSink
void CWE78_OS_Command_Injection__char_environment_system_54c_badSink(undefined8 param_1) { CWE78_OS_Command_Injection__char_environment_system_54d_badSink(param_1); return; }
['gcc']
13,257
void CWE78_OS_Command_Injection__char_environment_system_54c_goodG2BSink(char * data) { CWE78_OS_Command_Injection__char_environment_system_54d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119079/CWE78_OS_Command_Injection__char_environment_system_54c.c
CWE78_OS_Command_Injection__char_environment_system_54c_goodG2BSink
void CWE78_OS_Command_Injection__char_environment_system_54c_goodG2BSink(undefined8 param_1) { CWE78_OS_Command_Injection__char_environment_system_54d_goodG2BSink(param_1); return; }
['gcc']
13,258
void CWE78_OS_Command_Injection__char_environment_system_54d_badSink(char * data) { CWE78_OS_Command_Injection__char_environment_system_54e_badSink(data); }
[]
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119079/CWE78_OS_Command_Injection__char_environment_system_54d.c
CWE78_OS_Command_Injection__char_environment_system_54d_badSink
void CWE78_OS_Command_Injection__char_environment_system_54d_badSink(undefined8 param_1) { CWE78_OS_Command_Injection__char_environment_system_54e_badSink(param_1); return; }
['gcc']
13,259
void CWE78_OS_Command_Injection__char_environment_system_54d_goodG2BSink(char * data) { CWE78_OS_Command_Injection__char_environment_system_54e_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119079/CWE78_OS_Command_Injection__char_environment_system_54d.c
CWE78_OS_Command_Injection__char_environment_system_54d_goodG2BSink
void CWE78_OS_Command_Injection__char_environment_system_54d_goodG2BSink(undefined8 param_1) { CWE78_OS_Command_Injection__char_environment_system_54e_goodG2BSink(param_1); return; }
['gcc']
13,260
void CWE78_OS_Command_Injection__char_environment_system_54e_badSink(char * data) { /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* 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/119079/CWE78_OS_Command_Injection__char_environment_system_54e.c
CWE78_OS_Command_Injection__char_environment_system_54e_badSink
void CWE78_OS_Command_Injection__char_environment_system_54e_badSink(undefined8 param_1) { int iVar1; iVar1 = func_0x00400b50(param_1); if (iVar1 < 1) { printLine(&UNK_004013d4); func_0x00400bf0(1); } return; }
['gcc']
13,261
void CWE78_OS_Command_Injection__char_environment_system_54e_goodG2BSink(char * data) { /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119079/CWE78_OS_Command_Injection__char_environment_system_54e.c
CWE78_OS_Command_Injection__char_environment_system_54e_goodG2BSink
void CWE78_OS_Command_Injection__char_environment_system_54e_goodG2BSink(undefined8 param_1) { int iVar1; iVar1 = func_0x00400a40(param_1); if (iVar1 < 1) { printLine(&UNK_004012a4); func_0x00400ad0(1); } return; }
['gcc']
13,262
void CWE78_OS_Command_Injection__char_environment_system_61_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; data = CWE78_OS_Command_Injection__char_environment_system_61b_badSource(data); /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* 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/119080/CWE78_OS_Command_Injection__char_environment_system_61a.c
CWE78_OS_Command_Injection__char_environment_system_61_bad
void CWE78_OS_Command_Injection__char_environment_system_61_bad(void) { int iVar1; 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 = 0x2068732f6e69622f; uStack_70 = 0x20616c2d20736c; 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_system_61b_badSource(puStack_10); iVar1 = func_0x00400b50(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401384); func_0x00400bf0(1); } return; }
['gcc']
13,263
void CWE78_OS_Command_Injection__char_environment_system_61_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119080/CWE78_OS_Command_Injection__char_environment_system_61a.c
CWE78_OS_Command_Injection__char_environment_system_61_good
void CWE78_OS_Command_Injection__char_environment_system_61_good(void) { goodG2B(); return; }
['gcc']
13,264
char * CWE78_OS_Command_Injection__char_environment_system_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/119080/CWE78_OS_Command_Injection__char_environment_system_61b.c
CWE78_OS_Command_Injection__char_environment_system_61b_badSource
long CWE78_OS_Command_Injection__char_environment_system_61b_badSource(long param_1) { long lVar1; long lVar2; lVar1 = func_0x00400b40(param_1); lVar2 = func_0x00400b10(&UNK_00401384); if (lVar2 != 0) { func_0x00400b70(param_1 + lVar1,lVar2,99 - lVar1); } return param_1; }
['gcc']
13,265
char * CWE78_OS_Command_Injection__char_environment_system_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/119080/CWE78_OS_Command_Injection__char_environment_system_61b.c
CWE78_OS_Command_Injection__char_environment_system_61b_goodG2BSource
char * CWE78_OS_Command_Injection__char_environment_system_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,266
void CWE78_OS_Command_Injection__char_environment_system_63_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; { /* Append input from an environment variable to data */ size_t dataLen = strlen(data); char * environment = GETENV(ENV_VARIABLE); /* If there is data in the environment variable */ if (environment != NULL) { /* POTENTIAL FLAW: Read data from an environment variable */ strncat(data+dataLen, environment, 100-dataLen-1); } } CWE78_OS_Command_Injection__char_environment_system_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/119082/CWE78_OS_Command_Injection__char_environment_system_63a.c
CWE78_OS_Command_Injection__char_environment_system_63_bad
void CWE78_OS_Command_Injection__char_environment_system_63_bad(void) { undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; undefined8 *puStack_20; long lStack_18; long lStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_20 = &uStack_88; lStack_10 = func_0x00400b40(puStack_20); lStack_18 = func_0x00400b10(&UNK_00401384); if (lStack_18 != 0) { func_0x00400b70((long)puStack_20 + lStack_10,lStack_18,99 - lStack_10); } CWE78_OS_Command_Injection__char_environment_system_63b_badSink(&puStack_20); return; }
['gcc']
13,267
void CWE78_OS_Command_Injection__char_environment_system_63_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119082/CWE78_OS_Command_Injection__char_environment_system_63a.c
CWE78_OS_Command_Injection__char_environment_system_63_good
void CWE78_OS_Command_Injection__char_environment_system_63_good(void) { goodG2B(); return; }
['gcc']
13,268
void CWE78_OS_Command_Injection__char_environment_system_63b_badSink(char * * dataPtr) { char * data = *dataPtr; /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* 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/119082/CWE78_OS_Command_Injection__char_environment_system_63b.c
CWE78_OS_Command_Injection__char_environment_system_63b_badSink
void CWE78_OS_Command_Injection__char_environment_system_63b_badSink(undefined8 *param_1) { int iVar1; iVar1 = func_0x00400b50(*param_1); if (iVar1 < 1) { printLine(&UNK_00401384); func_0x00400bf0(1); } return; }
['gcc']
13,269
void CWE78_OS_Command_Injection__char_environment_system_63b_goodG2BSink(char * * dataPtr) { char * data = *dataPtr; /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119082/CWE78_OS_Command_Injection__char_environment_system_63b.c
CWE78_OS_Command_Injection__char_environment_system_63b_goodG2BSink
void CWE78_OS_Command_Injection__char_environment_system_63b_goodG2BSink(undefined8 *param_1) { int iVar1; iVar1 = func_0x00400a40(*param_1); if (iVar1 < 1) { printLine(&UNK_00401264); func_0x00400ad0(1); } return; }
['gcc']
13,270
void CWE78_OS_Command_Injection__char_environment_system_64_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; { /* Append input from an environment variable to data */ size_t dataLen = strlen(data); char * environment = GETENV(ENV_VARIABLE); /* If there is data in the environment variable */ if (environment != NULL) { /* POTENTIAL FLAW: Read data from an environment variable */ strncat(data+dataLen, environment, 100-dataLen-1); } } CWE78_OS_Command_Injection__char_environment_system_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/119083/CWE78_OS_Command_Injection__char_environment_system_64a.c
CWE78_OS_Command_Injection__char_environment_system_64_bad
void CWE78_OS_Command_Injection__char_environment_system_64_bad(void) { undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; undefined8 *puStack_20; long lStack_18; long lStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_20 = &uStack_88; lStack_10 = func_0x00400b40(puStack_20); lStack_18 = func_0x00400b10(&UNK_00401394); if (lStack_18 != 0) { func_0x00400b70((long)puStack_20 + lStack_10,lStack_18,99 - lStack_10); } CWE78_OS_Command_Injection__char_environment_system_64b_badSink(&puStack_20); return; }
['gcc']
13,271
void CWE78_OS_Command_Injection__char_environment_system_64_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119083/CWE78_OS_Command_Injection__char_environment_system_64a.c
CWE78_OS_Command_Injection__char_environment_system_64_good
void CWE78_OS_Command_Injection__char_environment_system_64_good(void) { goodG2B(); return; }
['gcc']
13,272
void CWE78_OS_Command_Injection__char_environment_system_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); /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119083/CWE78_OS_Command_Injection__char_environment_system_64b.c
CWE78_OS_Command_Injection__char_environment_system_64b_badSink
void CWE78_OS_Command_Injection__char_environment_system_64b_badSink(undefined8 *param_1) { int iVar1; iVar1 = func_0x00400b50(*param_1); if (iVar1 < 1) { printLine(&UNK_00401394); func_0x00400bf0(1); } return; }
['gcc']
13,273
void CWE78_OS_Command_Injection__char_environment_system_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); /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119083/CWE78_OS_Command_Injection__char_environment_system_64b.c
CWE78_OS_Command_Injection__char_environment_system_64b_goodG2BSink
void CWE78_OS_Command_Injection__char_environment_system_64b_goodG2BSink(undefined8 *param_1) { int iVar1; iVar1 = func_0x00400a40(*param_1); if (iVar1 < 1) { printLine(&UNK_00401264); func_0x00400ad0(1); } return; }
['gcc']
13,274
void CWE78_OS_Command_Injection__char_environment_system_66_bad() { char * data; char * dataArray[5]; char data_buf[100] = FULL_COMMAND; data = data_buf; { /* Append input from an environment variable to data */ size_t dataLen = strlen(data); char * environment = GETENV(ENV_VARIABLE); /* If there is data in the environment variable */ if (environment != NULL) { /* POTENTIAL FLAW: Read data from an environment variable */ strncat(data+dataLen, environment, 100-dataLen-1); } } /* put data in array */ dataArray[2] = data; CWE78_OS_Command_Injection__char_environment_system_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/119085/CWE78_OS_Command_Injection__char_environment_system_66a.c
CWE78_OS_Command_Injection__char_environment_system_66_bad
void CWE78_OS_Command_Injection__char_environment_system_66_bad(void) { undefined8 uStack_b8; undefined8 uStack_b0; undefined8 uStack_a8; undefined8 uStack_a0; undefined8 uStack_98; undefined8 uStack_90; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined4 uStack_58; undefined auStack_48 [16]; undefined8 *puStack_38; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_b8 = 0x2068732f6e69622f; uStack_b0 = 0x20616c2d20736c; uStack_a8 = 0; uStack_a0 = 0; uStack_98 = 0; uStack_90 = 0; uStack_88 = 0; uStack_80 = 0; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; puStack_10 = &uStack_b8; lStack_18 = func_0x00400b40(puStack_10); lStack_20 = func_0x00400b10(&UNK_004013b4); if (lStack_20 != 0) { func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18); } puStack_38 = puStack_10; CWE78_OS_Command_Injection__char_environment_system_66b_badSink(auStack_48); return; }
['gcc']
13,275
void CWE78_OS_Command_Injection__char_environment_system_66_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119085/CWE78_OS_Command_Injection__char_environment_system_66a.c
CWE78_OS_Command_Injection__char_environment_system_66_good
void CWE78_OS_Command_Injection__char_environment_system_66_good(void) { goodG2B(); return; }
['gcc']
13,276
void CWE78_OS_Command_Injection__char_environment_system_66b_badSink(char * dataArray[]) { /* copy data out of dataArray */ char * data = dataArray[2]; /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* copy data out of dataArray */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119085/CWE78_OS_Command_Injection__char_environment_system_66b.c
CWE78_OS_Command_Injection__char_environment_system_66b_badSink
void CWE78_OS_Command_Injection__char_environment_system_66b_badSink(long param_1) { int iVar1; iVar1 = func_0x00400b50(*(undefined8 *)(param_1 + 0x10)); if (iVar1 < 1) { printLine(&UNK_004013b4); func_0x00400bf0(1); } return; }
['gcc']
13,277
void CWE78_OS_Command_Injection__char_environment_system_66b_goodG2BSink(char * dataArray[]) { char * data = dataArray[2]; /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119085/CWE78_OS_Command_Injection__char_environment_system_66b.c
CWE78_OS_Command_Injection__char_environment_system_66b_goodG2BSink
void CWE78_OS_Command_Injection__char_environment_system_66b_goodG2BSink(long param_1) { int iVar1; iVar1 = func_0x00400a40(*(undefined8 *)(param_1 + 0x10)); if (iVar1 < 1) { printLine(&UNK_00401274); func_0x00400ad0(1); } return; }
['gcc']
13,278
void CWE78_OS_Command_Injection__char_environment_system_67_bad() { char * data; CWE78_OS_Command_Injection__char_environment_system_67_structType myStruct; char data_buf[100] = FULL_COMMAND; data = data_buf; { /* Append input from an environment variable to data */ size_t dataLen = strlen(data); char * environment = GETENV(ENV_VARIABLE); /* If there is data in the environment variable */ if (environment != NULL) { /* POTENTIAL FLAW: Read data from an environment variable */ strncat(data+dataLen, environment, 100-dataLen-1); } } myStruct.structFirst = data; CWE78_OS_Command_Injection__char_environment_system_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/119086/CWE78_OS_Command_Injection__char_environment_system_67a.c
CWE78_OS_Command_Injection__char_environment_system_67_bad
void CWE78_OS_Command_Injection__char_environment_system_67_bad(void) { undefined8 uStack_98; undefined8 uStack_90; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined4 uStack_38; undefined8 *puStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_98 = 0x2068732f6e69622f; uStack_90 = 0x20616c2d20736c; uStack_88 = 0; uStack_80 = 0; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; puStack_10 = &uStack_98; lStack_18 = func_0x00400b40(puStack_10); lStack_20 = func_0x00400b10(&UNK_004013a4); if (lStack_20 != 0) { func_0x00400b70((long)puStack_10 + lStack_18,lStack_20,99 - lStack_18); } puStack_28 = puStack_10; CWE78_OS_Command_Injection__char_environment_system_67b_badSink(puStack_10); return; }
['gcc']
13,279
void CWE78_OS_Command_Injection__char_environment_system_67_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119086/CWE78_OS_Command_Injection__char_environment_system_67a.c
CWE78_OS_Command_Injection__char_environment_system_67_good
void CWE78_OS_Command_Injection__char_environment_system_67_good(void) { goodG2B(); return; }
['gcc']
13,280
void CWE78_OS_Command_Injection__char_environment_system_67b_badSink(CWE78_OS_Command_Injection__char_environment_system_67_structType myStruct) { char * data = myStruct.structFirst; /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* 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/119086/CWE78_OS_Command_Injection__char_environment_system_67b.c
CWE78_OS_Command_Injection__char_environment_system_67b_badSink
void CWE78_OS_Command_Injection__char_environment_system_67b_badSink(undefined8 param_1) { int iVar1; iVar1 = func_0x00400b50(param_1); if (iVar1 < 1) { printLine(&UNK_004013a4); func_0x00400bf0(1); } return; }
['gcc']
13,281
void CWE78_OS_Command_Injection__char_environment_system_67b_goodG2BSink(CWE78_OS_Command_Injection__char_environment_system_67_structType myStruct) { char * data = myStruct.structFirst; /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119086/CWE78_OS_Command_Injection__char_environment_system_67b.c
CWE78_OS_Command_Injection__char_environment_system_67b_goodG2BSink
void CWE78_OS_Command_Injection__char_environment_system_67b_goodG2BSink(undefined8 param_1) { int iVar1; iVar1 = func_0x00400a40(param_1); if (iVar1 < 1) { printLine(&UNK_00401264); func_0x00400ad0(1); } return; }
['gcc']
13,282
void CWE78_OS_Command_Injection__char_file_execl_01_bad() { char * data; char dataBuffer[100] = ""; data = dataBuffer; { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } /* 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); }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* 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/119383/CWE78_OS_Command_Injection__char_file_execl_01.c
CWE78_OS_Command_Injection__char_file_execl_01_bad
void CWE78_OS_Command_Injection__char_file_execl_01_bad(void) { long lVar1; 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_0x00400b40(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400be0(&UNK_004013a6,&UNK_004013a4); if (lStack_20 != 0) { lVar1 = func_0x00400b80((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_004013b4); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b30(lStack_20); } } func_0x00400bf0(&UNK_004013ca,&UNK_004013ca,&UNK_004013c7,&UNK_004013c3,puStack_10,0); return; }
['gcc']
13,283
void CWE78_OS_Command_Injection__char_file_execl_01_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119383/CWE78_OS_Command_Injection__char_file_execl_01.c
CWE78_OS_Command_Injection__char_file_execl_01_good
void CWE78_OS_Command_Injection__char_file_execl_01_good(void) { goodG2B(); return; }
['gcc']
13,284
void CWE78_OS_Command_Injection__char_file_execl_02_bad() { char * data; char dataBuffer[100] = ""; data = dataBuffer; if(1) { { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } } /* 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); }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* 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/119384/CWE78_OS_Command_Injection__char_file_execl_02.c
CWE78_OS_Command_Injection__char_file_execl_02_bad
void CWE78_OS_Command_Injection__char_file_execl_02_bad(void) { long lVar1; 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_0x00400b40(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400be0(&UNK_004013a6,&UNK_004013a4); if (lStack_20 != 0) { lVar1 = func_0x00400b80((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_004013b4); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b30(lStack_20); } } func_0x00400bf0(&UNK_004013ca,&UNK_004013ca,&UNK_004013c7,&UNK_004013c3,puStack_10,0); return; }
['gcc']
13,285
void CWE78_OS_Command_Injection__char_file_execl_02_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119384/CWE78_OS_Command_Injection__char_file_execl_02.c
CWE78_OS_Command_Injection__char_file_execl_02_good
void CWE78_OS_Command_Injection__char_file_execl_02_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,286
void CWE78_OS_Command_Injection__char_file_execl_03_bad() { char * data; char dataBuffer[100] = ""; data = dataBuffer; if(5==5) { { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } } /* 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); }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* 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/119385/CWE78_OS_Command_Injection__char_file_execl_03.c
CWE78_OS_Command_Injection__char_file_execl_03_bad
void CWE78_OS_Command_Injection__char_file_execl_03_bad(void) { long lVar1; 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_0x00400b40(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400be0(&UNK_004013a6,&UNK_004013a4); if (lStack_20 != 0) { lVar1 = func_0x00400b80((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_004013b4); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b30(lStack_20); } } func_0x00400bf0(&UNK_004013ca,&UNK_004013ca,&UNK_004013c7,&UNK_004013c3,puStack_10,0); return; }
['gcc']
13,287
void CWE78_OS_Command_Injection__char_file_execl_03_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119385/CWE78_OS_Command_Injection__char_file_execl_03.c
CWE78_OS_Command_Injection__char_file_execl_03_good
void CWE78_OS_Command_Injection__char_file_execl_03_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,288
void CWE78_OS_Command_Injection__char_file_execl_04_bad() { char * data; char dataBuffer[100] = ""; data = dataBuffer; if(STATIC_CONST_TRUE) { { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } } /* 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); }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* 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/119386/CWE78_OS_Command_Injection__char_file_execl_04.c
CWE78_OS_Command_Injection__char_file_execl_04_bad
void CWE78_OS_Command_Injection__char_file_execl_04_bad(void) { long lVar1; 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_0x00400b40(puStack_10); if ((1 < 100U - lStack_18) && (lStack_20 = func_0x00400be0(&UNK_004013be,&UNK_004013bc), lStack_20 != 0)) { lVar1 = func_0x00400b80((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_004013cc); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b30(lStack_20); } func_0x00400bf0(&UNK_004013e2,&UNK_004013e2,&UNK_004013df,&UNK_004013db,puStack_10,0); return; }
['gcc']
13,289
void CWE78_OS_Command_Injection__char_file_execl_04_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119386/CWE78_OS_Command_Injection__char_file_execl_04.c
CWE78_OS_Command_Injection__char_file_execl_04_good
void CWE78_OS_Command_Injection__char_file_execl_04_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,290
void CWE78_OS_Command_Injection__char_file_execl_05_bad() { char * data; char dataBuffer[100] = ""; data = dataBuffer; if(staticTrue) { { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } } /* 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); }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* 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/119387/CWE78_OS_Command_Injection__char_file_execl_05.c
CWE78_OS_Command_Injection__char_file_execl_05_bad
void CWE78_OS_Command_Injection__char_file_execl_05_bad(void) { long lVar1; 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; if (staticTrue != 0) { lStack_18 = func_0x00400b40(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400be0(&UNK_004013b6,&UNK_004013b4); if (lStack_20 != 0) { lVar1 = func_0x00400b80((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_004013c4); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b30(lStack_20); } } } func_0x00400bf0(&UNK_004013da,&UNK_004013da,&UNK_004013d7,&UNK_004013d3,puStack_10,0); return; }
['gcc']
13,291
void CWE78_OS_Command_Injection__char_file_execl_05_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119387/CWE78_OS_Command_Injection__char_file_execl_05.c
CWE78_OS_Command_Injection__char_file_execl_05_good
void CWE78_OS_Command_Injection__char_file_execl_05_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,292
void CWE78_OS_Command_Injection__char_file_execl_06_bad() { char * data; char dataBuffer[100] = ""; data = dataBuffer; if(STATIC_CONST_FIVE==5) { { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } } /* 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); }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* 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/119388/CWE78_OS_Command_Injection__char_file_execl_06.c
CWE78_OS_Command_Injection__char_file_execl_06_bad
void CWE78_OS_Command_Injection__char_file_execl_06_bad(void) { long lVar1; 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_0x00400b40(puStack_10); if ((1 < 100U - lStack_18) && (lStack_20 = func_0x00400be0(&UNK_004013ba,&UNK_004013b8), lStack_20 != 0)) { lVar1 = func_0x00400b80((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_004013c8); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b30(lStack_20); } func_0x00400bf0(&UNK_004013de,&UNK_004013de,&UNK_004013db,&UNK_004013d7,puStack_10,0); return; }
['gcc']
13,293
void CWE78_OS_Command_Injection__char_file_execl_06_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119388/CWE78_OS_Command_Injection__char_file_execl_06.c
CWE78_OS_Command_Injection__char_file_execl_06_good
void CWE78_OS_Command_Injection__char_file_execl_06_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,294
void CWE78_OS_Command_Injection__char_file_execl_07_bad() { char * data; char dataBuffer[100] = ""; data = dataBuffer; if(staticFive==5) { { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } } /* 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); }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* 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/119389/CWE78_OS_Command_Injection__char_file_execl_07.c
CWE78_OS_Command_Injection__char_file_execl_07_bad
void CWE78_OS_Command_Injection__char_file_execl_07_bad(void) { long lVar1; 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; if (staticFive == 5) { lStack_18 = func_0x00400b40(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400be0(&UNK_004013b6,&UNK_004013b4); if (lStack_20 != 0) { lVar1 = func_0x00400b80((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_004013c4); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b30(lStack_20); } } } func_0x00400bf0(&UNK_004013da,&UNK_004013da,&UNK_004013d7,&UNK_004013d3,puStack_10,0); return; }
['gcc']
13,295
void CWE78_OS_Command_Injection__char_file_execl_07_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119389/CWE78_OS_Command_Injection__char_file_execl_07.c
CWE78_OS_Command_Injection__char_file_execl_07_good
void CWE78_OS_Command_Injection__char_file_execl_07_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,296
void CWE78_OS_Command_Injection__char_file_execl_08_bad() { char * data; char dataBuffer[100] = ""; data = dataBuffer; if(staticReturnsTrue()) { { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } } /* 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); }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* 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/119390/CWE78_OS_Command_Injection__char_file_execl_08.c
CWE78_OS_Command_Injection__char_file_execl_08_bad
void CWE78_OS_Command_Injection__char_file_execl_08_bad(void) { int iVar1; long lVar2; 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_0x00400b40(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400be0(&UNK_004013c6,&UNK_004013c4); if (lStack_20 != 0) { lVar2 = func_0x00400b80((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar2 == 0) { printLine(&UNK_004013d4); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b30(lStack_20); } } } func_0x00400bf0(&UNK_004013ea,&UNK_004013ea,&UNK_004013e7,&UNK_004013e3,puStack_10,0); return; }
['gcc']
13,297
void CWE78_OS_Command_Injection__char_file_execl_08_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119390/CWE78_OS_Command_Injection__char_file_execl_08.c
CWE78_OS_Command_Injection__char_file_execl_08_good
void CWE78_OS_Command_Injection__char_file_execl_08_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,298
void CWE78_OS_Command_Injection__char_file_execl_09_bad() { char * data; char dataBuffer[100] = ""; data = dataBuffer; if(GLOBAL_CONST_TRUE) { { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } } /* 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); }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* 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/119391/CWE78_OS_Command_Injection__char_file_execl_09.c
CWE78_OS_Command_Injection__char_file_execl_09_bad
void CWE78_OS_Command_Injection__char_file_execl_09_bad(void) { long lVar1; 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; if (GLOBAL_CONST_TRUE != 0) { lStack_18 = func_0x00400b40(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400be0(&UNK_004013b6,&UNK_004013b4); if (lStack_20 != 0) { lVar1 = func_0x00400b80((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_004013c4); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b30(lStack_20); } } } func_0x00400bf0(&UNK_004013da,&UNK_004013da,&UNK_004013d7,&UNK_004013d3,puStack_10,0); return; }
['gcc']
13,299
void CWE78_OS_Command_Injection__char_file_execl_09_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119391/CWE78_OS_Command_Injection__char_file_execl_09.c
CWE78_OS_Command_Injection__char_file_execl_09_good
void CWE78_OS_Command_Injection__char_file_execl_09_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']