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
14,800
void CWE78_OS_Command_Injection__wchar_t_environment_popen_18_bad() { wchar_t * data; wchar_t data_buf[100] = FULL_COMMAND; data = data_buf; goto source; source: { /* Append input from an environment variable to data */ size_t dataLen = wcslen(data); wchar_t * environment = GETENV(ENV_VARIABLE); /* If there is data in the environment variable */ if (environment != NULL) { /* POTENTIAL FLAW: Read data from an environment variable */ wcsncat(data+dataLen, environment, 100-dataLen-1); } } { FILE *pipe; /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ pipe = POPEN(data, L"wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121416/CWE78_OS_Command_Injection__wchar_t_environment_popen_18.c
CWE78_OS_Command_Injection__wchar_t_environment_popen_18_bad
void CWE78_OS_Command_Injection__wchar_t_environment_popen_18_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1b8; undefined8 uStack_1b0; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 uStack_198; undefined8 uStack_190; undefined8 uStack_188; undefined8 uStack_180; undefined8 auStack_178 [42]; long lStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_1b8 = 0x620000002f; uStack_1b0 = 0x6e00000069; uStack_1a8 = 0x730000002f; uStack_1a0 = 0x2000000068; uStack_198 = 0x730000006c; uStack_190 = 0x2d00000020; uStack_188 = 0x610000006c; uStack_180 = 0x20; puVar2 = auStack_178; for (lVar1 = 0x2a; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1b8; lStack_18 = func_0x00400b60(puStack_10); lStack_20 = func_0x00400b10(&UNK_004013a4); if (lStack_20 != 0) { func_0x00400b30(lStack_18 * 4 + (long)puStack_10,lStack_20,99 - lStack_18); } lStack_28 = func_0x00400bf0(puStack_10,&UNK_004013b4); if (lStack_28 != 0) { func_0x00400b70(lStack_28); } return; }
['gcc']
14,801
void CWE78_OS_Command_Injection__wchar_t_environment_popen_18_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121416/CWE78_OS_Command_Injection__wchar_t_environment_popen_18.c
CWE78_OS_Command_Injection__wchar_t_environment_popen_18_good
void CWE78_OS_Command_Injection__wchar_t_environment_popen_18_good(void) { goodG2B(); return; }
['gcc']
14,802
void CWE78_OS_Command_Injection__wchar_t_environment_popen_21_bad() { wchar_t * data; wchar_t data_buf[100] = FULL_COMMAND; data = data_buf; badStatic = 1; /* true */ data = badSource(data); { FILE *pipe; /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ pipe = POPEN(data, L"wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* true */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121417/CWE78_OS_Command_Injection__wchar_t_environment_popen_21.c
CWE78_OS_Command_Injection__wchar_t_environment_popen_21_bad
void CWE78_OS_Command_Injection__wchar_t_environment_popen_21_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 uStack_198; undefined8 uStack_190; undefined8 uStack_188; undefined8 uStack_180; undefined8 uStack_178; undefined8 uStack_170; undefined8 auStack_168 [42]; long lStack_18; undefined8 *puStack_10; uStack_1a8 = 0x620000002f; uStack_1a0 = 0x6e00000069; uStack_198 = 0x730000002f; uStack_190 = 0x2000000068; uStack_188 = 0x730000006c; uStack_180 = 0x2d00000020; uStack_178 = 0x610000006c; uStack_170 = 0x20; puVar2 = auStack_168; for (lVar1 = 0x2a; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1a8; badStatic = 1; puStack_10 = (undefined8 *)badSource(puStack_10); lStack_18 = func_0x00400bf0(puStack_10,&UNK_004013e4); if (lStack_18 != 0) { func_0x00400b70(lStack_18); } return; }
['gcc']
14,803
void CWE78_OS_Command_Injection__wchar_t_environment_popen_21_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121417/CWE78_OS_Command_Injection__wchar_t_environment_popen_21.c
CWE78_OS_Command_Injection__wchar_t_environment_popen_21_good
void CWE78_OS_Command_Injection__wchar_t_environment_popen_21_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
14,804
void CWE78_OS_Command_Injection__wchar_t_environment_popen_22_bad() { wchar_t * data; wchar_t data_buf[100] = FULL_COMMAND; data = data_buf; CWE78_OS_Command_Injection__wchar_t_environment_popen_22_badGlobal = 1; /* true */ data = CWE78_OS_Command_Injection__wchar_t_environment_popen_22_badSource(data); { FILE *pipe; /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ pipe = POPEN(data, L"wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* true */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121418/CWE78_OS_Command_Injection__wchar_t_environment_popen_22a.c
CWE78_OS_Command_Injection__wchar_t_environment_popen_22_bad
void CWE78_OS_Command_Injection__wchar_t_environment_popen_22_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 uStack_198; undefined8 uStack_190; undefined8 uStack_188; undefined8 uStack_180; undefined8 uStack_178; undefined8 uStack_170; undefined8 auStack_168 [42]; long lStack_18; undefined8 *puStack_10; uStack_1a8 = 0x620000002f; uStack_1a0 = 0x6e00000069; uStack_198 = 0x730000002f; uStack_190 = 0x2000000068; uStack_188 = 0x730000006c; uStack_180 = 0x2d00000020; uStack_178 = 0x610000006c; uStack_170 = 0x20; puVar2 = auStack_168; for (lVar1 = 0x2a; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1a8; CWE78_OS_Command_Injection__wchar_t_environment_popen_22_badGlobal = 1; puStack_10 = (undefined8 *) CWE78_OS_Command_Injection__wchar_t_environment_popen_22_badSource(puStack_10); lStack_18 = func_0x00400bf0(puStack_10,&UNK_004013d4); if (lStack_18 != 0) { func_0x00400b70(lStack_18); } return; }
['gcc']
14,805
void CWE78_OS_Command_Injection__wchar_t_environment_popen_22_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121418/CWE78_OS_Command_Injection__wchar_t_environment_popen_22a.c
CWE78_OS_Command_Injection__wchar_t_environment_popen_22_good
void CWE78_OS_Command_Injection__wchar_t_environment_popen_22_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
14,806
wchar_t * CWE78_OS_Command_Injection__wchar_t_environment_popen_22_badSource(wchar_t * data) { if(CWE78_OS_Command_Injection__wchar_t_environment_popen_22_badGlobal) { { /* Append input from an environment variable to data */ size_t dataLen = wcslen(data); wchar_t * environment = GETENV(ENV_VARIABLE); /* If there is data in the environment variable */ if (environment != NULL) { /* POTENTIAL FLAW: Read data from an environment variable */ wcsncat(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/121418/CWE78_OS_Command_Injection__wchar_t_environment_popen_22b.c
CWE78_OS_Command_Injection__wchar_t_environment_popen_22_badSource
long CWE78_OS_Command_Injection__wchar_t_environment_popen_22_badSource(long param_1) { long lVar1; long lVar2; if (CWE78_OS_Command_Injection__wchar_t_environment_popen_22_badGlobal != 0) { lVar1 = func_0x00400b60(param_1); lVar2 = func_0x00400b10(&UNK_004013d4); if (lVar2 != 0) { func_0x00400b30(lVar1 * 4 + param_1,lVar2,99 - lVar1); } } return param_1; }
['gcc']
14,807
wchar_t * CWE78_OS_Command_Injection__wchar_t_environment_popen_22_goodG2B1Source(wchar_t * data) { if(CWE78_OS_Command_Injection__wchar_t_environment_popen_22_goodG2B1Global) { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); } else { /* FIX: Append a fixed string to data (not user / external input) */ wcscat(data, L"*.*"); } 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/121418/CWE78_OS_Command_Injection__wchar_t_environment_popen_22b.c
CWE78_OS_Command_Injection__wchar_t_environment_popen_22_goodG2B1Source
undefined8 CWE78_OS_Command_Injection__wchar_t_environment_popen_22_goodG2B1Source(undefined8 param_1) { if (CWE78_OS_Command_Injection__wchar_t_environment_popen_22_goodG2B1Global == 0) { func_0x00400a60(param_1,&UNK_0040141c); } else { printLine(&UNK_00401404); } return param_1; }
['gcc']
14,808
wchar_t * CWE78_OS_Command_Injection__wchar_t_environment_popen_22_goodG2B2Source(wchar_t * data) { if(CWE78_OS_Command_Injection__wchar_t_environment_popen_22_goodG2B2Global) { /* FIX: Append a fixed string to data (not user / external input) */ wcscat(data, L"*.*"); } 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/121418/CWE78_OS_Command_Injection__wchar_t_environment_popen_22b.c
CWE78_OS_Command_Injection__wchar_t_environment_popen_22_goodG2B2Source
undefined8 CWE78_OS_Command_Injection__wchar_t_environment_popen_22_goodG2B2Source(undefined8 param_1) { if (CWE78_OS_Command_Injection__wchar_t_environment_popen_22_goodG2B2Global != 0) { func_0x00400a60(param_1,&UNK_0040141c); } return param_1; }
['gcc']
14,809
void CWE78_OS_Command_Injection__wchar_t_environment_popen_31_bad() { wchar_t * data; wchar_t data_buf[100] = FULL_COMMAND; data = data_buf; { /* Append input from an environment variable to data */ size_t dataLen = wcslen(data); wchar_t * environment = GETENV(ENV_VARIABLE); /* If there is data in the environment variable */ if (environment != NULL) { /* POTENTIAL FLAW: Read data from an environment variable */ wcsncat(data+dataLen, environment, 100-dataLen-1); } } { wchar_t * dataCopy = data; wchar_t * data = dataCopy; { FILE *pipe; /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ pipe = POPEN(data, L"wb"); if (pipe != NULL) { PCLOSE(pipe); } } } }
['/* Append input from an environment variable to data */', '/* If there is data in the environment variable */', '/* POTENTIAL FLAW: Read data from an environment variable */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121419/CWE78_OS_Command_Injection__wchar_t_environment_popen_31.c
CWE78_OS_Command_Injection__wchar_t_environment_popen_31_bad
void CWE78_OS_Command_Injection__wchar_t_environment_popen_31_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1c8; undefined8 uStack_1c0; undefined8 uStack_1b8; undefined8 uStack_1b0; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 uStack_198; undefined8 uStack_190; undefined8 auStack_188 [42]; long lStack_38; undefined8 *puStack_30; undefined8 *puStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_1c8 = 0x620000002f; uStack_1c0 = 0x6e00000069; uStack_1b8 = 0x730000002f; uStack_1b0 = 0x2000000068; uStack_1a8 = 0x730000006c; uStack_1a0 = 0x2d00000020; uStack_198 = 0x610000006c; uStack_190 = 0x20; puVar2 = auStack_188; for (lVar1 = 0x2a; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1c8; lStack_18 = func_0x00400b60(puStack_10); lStack_20 = func_0x00400b10(&UNK_004013b4); if (lStack_20 != 0) { func_0x00400b30(lStack_18 * 4 + (long)puStack_10,lStack_20,99 - lStack_18); } puStack_28 = puStack_10; puStack_30 = puStack_10; lStack_38 = func_0x00400bf0(puStack_10,&UNK_004013c4); if (lStack_38 != 0) { func_0x00400b70(lStack_38); } return; }
['gcc']
14,810
void CWE78_OS_Command_Injection__wchar_t_environment_popen_31_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121419/CWE78_OS_Command_Injection__wchar_t_environment_popen_31.c
CWE78_OS_Command_Injection__wchar_t_environment_popen_31_good
void CWE78_OS_Command_Injection__wchar_t_environment_popen_31_good(void) { goodG2B(); return; }
['gcc']
14,811
void CWE78_OS_Command_Injection__wchar_t_file_execl_44_bad() { wchar_t * data; /* define a function pointer */ void (*funcPtr) (wchar_t *) = badSink; wchar_t dataBuffer[100] = L""; data = dataBuffer; { /* Read input from a file */ size_t dataLen = wcslen(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 (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } /* use the function pointer */ funcPtr(data); }
['/* define a function pointer */', '/* 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 fgetws fails */', '/* use the function pointer */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121810/CWE78_OS_Command_Injection__wchar_t_file_execl_44.c
CWE78_OS_Command_Injection__wchar_t_file_execl_44_bad
void CWE78_OS_Command_Injection__wchar_t_file_execl_44_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1b8; undefined8 uStack_1b0; undefined8 auStack_1a8 [48]; long lStack_28; long lStack_20; undefined8 *puStack_18; code *pcStack_10; pcStack_10 = badSink; uStack_1b8 = 0; uStack_1b0 = 0; puVar2 = auStack_1a8; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_18 = &uStack_1b8; lStack_20 = func_0x00400b60(puStack_18); if (1 < 100U - lStack_20) { lStack_28 = func_0x00400be0(&UNK_004013ea,&UNK_004013e8); if (lStack_28 != 0) { lVar1 = func_0x00400b10(lStack_20 * 4 + (long)puStack_18,100 - (int)lStack_20,lStack_28); if (lVar1 == 0) { printLine(&UNK_004013f8); *(undefined4 *)((long)puStack_18 + lStack_20 * 4) = 0; } func_0x00400b40(lStack_28); } } (*pcStack_10)(puStack_18); return; }
['gcc']
14,812
void CWE78_OS_Command_Injection__wchar_t_file_execl_44_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121810/CWE78_OS_Command_Injection__wchar_t_file_execl_44.c
CWE78_OS_Command_Injection__wchar_t_file_execl_44_good
void CWE78_OS_Command_Injection__wchar_t_file_execl_44_good(void) { goodG2B(); return; }
['gcc']
14,813
void CWE78_OS_Command_Injection__wchar_t_file_execl_45_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; { /* Read input from a file */ size_t dataLen = wcslen(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 (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } CWE78_OS_Command_Injection__wchar_t_file_execl_45_badData = data; badSink(); }
['/* 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 fgetws fails */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121811/CWE78_OS_Command_Injection__wchar_t_file_execl_45.c
CWE78_OS_Command_Injection__wchar_t_file_execl_45_bad
void CWE78_OS_Command_Injection__wchar_t_file_execl_45_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1b8; undefined8 uStack_1b0; undefined8 auStack_1a8 [49]; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_1b8 = 0; uStack_1b0 = 0; puVar2 = auStack_1a8; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1b8; lStack_18 = func_0x00400b60(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400be0(&UNK_004013fa,&UNK_004013f8); if (lStack_20 != 0) { lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_00401408); *(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0; } func_0x00400b40(lStack_20); } } CWE78_OS_Command_Injection__wchar_t_file_execl_45_badData = puStack_10; badSink(); return; }
['gcc']
14,814
void CWE78_OS_Command_Injection__wchar_t_file_execl_45_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121811/CWE78_OS_Command_Injection__wchar_t_file_execl_45.c
CWE78_OS_Command_Injection__wchar_t_file_execl_45_good
void CWE78_OS_Command_Injection__wchar_t_file_execl_45_good(void) { goodG2B(); return; }
['gcc']
14,815
void CWE78_OS_Command_Injection__wchar_t_file_execl_51_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; { /* Read input from a file */ size_t dataLen = wcslen(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 (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } CWE78_OS_Command_Injection__wchar_t_file_execl_51b_badSink(data); }
['/* 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 fgetws fails */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121812/CWE78_OS_Command_Injection__wchar_t_file_execl_51a.c
CWE78_OS_Command_Injection__wchar_t_file_execl_51_bad
void CWE78_OS_Command_Injection__wchar_t_file_execl_51_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1b8; undefined8 uStack_1b0; undefined8 auStack_1a8 [49]; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_1b8 = 0; uStack_1b0 = 0; puVar2 = auStack_1a8; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1b8; lStack_18 = func_0x00400b60(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400be0(&UNK_004013a6,&UNK_004013a4); if (lStack_20 != 0) { lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_004013b4); *(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0; } func_0x00400b40(lStack_20); } } CWE78_OS_Command_Injection__wchar_t_file_execl_51b_badSink(puStack_10); return; }
['gcc']
14,816
void CWE78_OS_Command_Injection__wchar_t_file_execl_51_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121812/CWE78_OS_Command_Injection__wchar_t_file_execl_51a.c
CWE78_OS_Command_Injection__wchar_t_file_execl_51_good
void CWE78_OS_Command_Injection__wchar_t_file_execl_51_good(void) { goodG2B(); return; }
['gcc']
14,817
void CWE78_OS_Command_Injection__wchar_t_file_execl_51b_badSink(wchar_t * data) { /* wexecl - 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); }
['/* wexecl - 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/121812/CWE78_OS_Command_Injection__wchar_t_file_execl_51b.c
CWE78_OS_Command_Injection__wchar_t_file_execl_51b_badSink
void CWE78_OS_Command_Injection__wchar_t_file_execl_51b_badSink(undefined8 param_1) { func_0x00400bf0(&UNK_004013c8,&UNK_004013c8,&UNK_004013b8,&UNK_004013a8,param_1,0); return; }
['gcc']
14,818
void CWE78_OS_Command_Injection__wchar_t_file_execl_51b_goodG2BSink(wchar_t * data) { /* wexecl - 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); }
['/* wexecl - specify the path where the command is located */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121812/CWE78_OS_Command_Injection__wchar_t_file_execl_51b.c
CWE78_OS_Command_Injection__wchar_t_file_execl_51b_goodG2BSink
void CWE78_OS_Command_Injection__wchar_t_file_execl_51b_goodG2BSink(undefined8 param_1) { func_0x00400ad0(&UNK_00401228,&UNK_00401228,&UNK_00401218,&UNK_00401208,param_1,0); return; }
['gcc']
14,819
void CWE78_OS_Command_Injection__wchar_t_file_execl_52_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; { /* Read input from a file */ size_t dataLen = wcslen(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 (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } CWE78_OS_Command_Injection__wchar_t_file_execl_52b_badSink(data); }
['/* 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 fgetws fails */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121813/CWE78_OS_Command_Injection__wchar_t_file_execl_52a.c
CWE78_OS_Command_Injection__wchar_t_file_execl_52_bad
void CWE78_OS_Command_Injection__wchar_t_file_execl_52_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1b8; undefined8 uStack_1b0; undefined8 auStack_1a8 [49]; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_1b8 = 0; uStack_1b0 = 0; puVar2 = auStack_1a8; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1b8; lStack_18 = func_0x00400b60(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400be0(&UNK_004013b6,&UNK_004013b4); if (lStack_20 != 0) { lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_004013c4); *(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0; } func_0x00400b40(lStack_20); } } CWE78_OS_Command_Injection__wchar_t_file_execl_52b_badSink(puStack_10); return; }
['gcc']
14,820
void CWE78_OS_Command_Injection__wchar_t_file_execl_52_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121813/CWE78_OS_Command_Injection__wchar_t_file_execl_52a.c
CWE78_OS_Command_Injection__wchar_t_file_execl_52_good
void CWE78_OS_Command_Injection__wchar_t_file_execl_52_good(void) { goodG2B(); return; }
['gcc']
14,821
void CWE78_OS_Command_Injection__wchar_t_file_execl_52b_badSink(wchar_t * data) { CWE78_OS_Command_Injection__wchar_t_file_execl_52c_badSink(data); }
[]
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121813/CWE78_OS_Command_Injection__wchar_t_file_execl_52b.c
CWE78_OS_Command_Injection__wchar_t_file_execl_52b_badSink
void CWE78_OS_Command_Injection__wchar_t_file_execl_52b_badSink(undefined8 param_1) { CWE78_OS_Command_Injection__wchar_t_file_execl_52c_badSink(param_1); return; }
['gcc']
14,822
void CWE78_OS_Command_Injection__wchar_t_file_execl_52b_goodG2BSink(wchar_t * data) { CWE78_OS_Command_Injection__wchar_t_file_execl_52c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121813/CWE78_OS_Command_Injection__wchar_t_file_execl_52b.c
CWE78_OS_Command_Injection__wchar_t_file_execl_52b_goodG2BSink
void CWE78_OS_Command_Injection__wchar_t_file_execl_52b_goodG2BSink(undefined8 param_1) { CWE78_OS_Command_Injection__wchar_t_file_execl_52c_goodG2BSink(param_1); return; }
['gcc']
14,823
void CWE78_OS_Command_Injection__wchar_t_file_execl_52c_badSink(wchar_t * data) { /* wexecl - 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); }
['/* wexecl - 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/121813/CWE78_OS_Command_Injection__wchar_t_file_execl_52c.c
CWE78_OS_Command_Injection__wchar_t_file_execl_52c_badSink
void CWE78_OS_Command_Injection__wchar_t_file_execl_52c_badSink(undefined8 param_1) { func_0x00400bf0(&UNK_004013d8,&UNK_004013d8,&UNK_004013c8,&UNK_004013b8,param_1,0); return; }
['gcc']
14,824
void CWE78_OS_Command_Injection__wchar_t_file_execl_52c_goodG2BSink(wchar_t * data) { /* wexecl - 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); }
['/* wexecl - specify the path where the command is located */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121813/CWE78_OS_Command_Injection__wchar_t_file_execl_52c.c
CWE78_OS_Command_Injection__wchar_t_file_execl_52c_goodG2BSink
void CWE78_OS_Command_Injection__wchar_t_file_execl_52c_goodG2BSink(undefined8 param_1) { func_0x00400ad0(&UNK_00401238,&UNK_00401238,&UNK_00401228,&UNK_00401218,param_1,0); return; }
['gcc']
14,825
void CWE78_OS_Command_Injection__wchar_t_file_execl_53_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; { /* Read input from a file */ size_t dataLen = wcslen(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 (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } CWE78_OS_Command_Injection__wchar_t_file_execl_53b_badSink(data); }
['/* 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 fgetws fails */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121814/CWE78_OS_Command_Injection__wchar_t_file_execl_53a.c
CWE78_OS_Command_Injection__wchar_t_file_execl_53_bad
void CWE78_OS_Command_Injection__wchar_t_file_execl_53_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1b8; undefined8 uStack_1b0; undefined8 auStack_1a8 [49]; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_1b8 = 0; uStack_1b0 = 0; puVar2 = auStack_1a8; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1b8; lStack_18 = func_0x00400b60(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400be0(&UNK_004013d6,&UNK_004013d4); if (lStack_20 != 0) { lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_004013e4); *(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0; } func_0x00400b40(lStack_20); } } CWE78_OS_Command_Injection__wchar_t_file_execl_53b_badSink(puStack_10); return; }
['gcc']
14,826
void CWE78_OS_Command_Injection__wchar_t_file_execl_53_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121814/CWE78_OS_Command_Injection__wchar_t_file_execl_53a.c
CWE78_OS_Command_Injection__wchar_t_file_execl_53_good
void CWE78_OS_Command_Injection__wchar_t_file_execl_53_good(void) { goodG2B(); return; }
['gcc']
14,827
void CWE78_OS_Command_Injection__wchar_t_file_execl_53b_badSink(wchar_t * data) { CWE78_OS_Command_Injection__wchar_t_file_execl_53c_badSink(data); }
[]
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121814/CWE78_OS_Command_Injection__wchar_t_file_execl_53b.c
CWE78_OS_Command_Injection__wchar_t_file_execl_53b_badSink
void CWE78_OS_Command_Injection__wchar_t_file_execl_53b_badSink(undefined8 param_1) { CWE78_OS_Command_Injection__wchar_t_file_execl_53c_badSink(param_1); return; }
['gcc']
14,828
void CWE78_OS_Command_Injection__wchar_t_file_execl_53b_goodG2BSink(wchar_t * data) { CWE78_OS_Command_Injection__wchar_t_file_execl_53c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121814/CWE78_OS_Command_Injection__wchar_t_file_execl_53b.c
CWE78_OS_Command_Injection__wchar_t_file_execl_53b_goodG2BSink
void CWE78_OS_Command_Injection__wchar_t_file_execl_53b_goodG2BSink(undefined8 param_1) { CWE78_OS_Command_Injection__wchar_t_file_execl_53c_goodG2BSink(param_1); return; }
['gcc']
14,829
void CWE78_OS_Command_Injection__wchar_t_file_execl_53c_badSink(wchar_t * data) { CWE78_OS_Command_Injection__wchar_t_file_execl_53d_badSink(data); }
[]
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121814/CWE78_OS_Command_Injection__wchar_t_file_execl_53c.c
CWE78_OS_Command_Injection__wchar_t_file_execl_53c_badSink
void CWE78_OS_Command_Injection__wchar_t_file_execl_53c_badSink(undefined8 param_1) { CWE78_OS_Command_Injection__wchar_t_file_execl_53d_badSink(param_1); return; }
['gcc']
14,830
void CWE78_OS_Command_Injection__wchar_t_file_execl_53c_goodG2BSink(wchar_t * data) { CWE78_OS_Command_Injection__wchar_t_file_execl_53d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121814/CWE78_OS_Command_Injection__wchar_t_file_execl_53c.c
CWE78_OS_Command_Injection__wchar_t_file_execl_53c_goodG2BSink
void CWE78_OS_Command_Injection__wchar_t_file_execl_53c_goodG2BSink(undefined8 param_1) { CWE78_OS_Command_Injection__wchar_t_file_execl_53d_goodG2BSink(param_1); return; }
['gcc']
14,831
void CWE78_OS_Command_Injection__wchar_t_file_execl_53d_badSink(wchar_t * data) { /* wexecl - 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); }
['/* wexecl - 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/121814/CWE78_OS_Command_Injection__wchar_t_file_execl_53d.c
CWE78_OS_Command_Injection__wchar_t_file_execl_53d_badSink
void CWE78_OS_Command_Injection__wchar_t_file_execl_53d_badSink(undefined8 param_1) { func_0x00400bf0(&UNK_004013f8,&UNK_004013f8,&UNK_004013e8,&UNK_004013d8,param_1,0); return; }
['gcc']
14,832
void CWE78_OS_Command_Injection__wchar_t_file_execl_53d_goodG2BSink(wchar_t * data) { /* wexecl - 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); }
['/* wexecl - specify the path where the command is located */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121814/CWE78_OS_Command_Injection__wchar_t_file_execl_53d.c
CWE78_OS_Command_Injection__wchar_t_file_execl_53d_goodG2BSink
void CWE78_OS_Command_Injection__wchar_t_file_execl_53d_goodG2BSink(undefined8 param_1) { func_0x00400ad0(&UNK_00401258,&UNK_00401258,&UNK_00401248,&UNK_00401238,param_1,0); return; }
['gcc']
14,833
void CWE78_OS_Command_Injection__wchar_t_file_execl_54_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; { /* Read input from a file */ size_t dataLen = wcslen(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 (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } CWE78_OS_Command_Injection__wchar_t_file_execl_54b_badSink(data); }
['/* 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 fgetws fails */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121815/CWE78_OS_Command_Injection__wchar_t_file_execl_54a.c
CWE78_OS_Command_Injection__wchar_t_file_execl_54_bad
void CWE78_OS_Command_Injection__wchar_t_file_execl_54_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1b8; undefined8 uStack_1b0; undefined8 auStack_1a8 [49]; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_1b8 = 0; uStack_1b0 = 0; puVar2 = auStack_1a8; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1b8; lStack_18 = func_0x00400b60(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400be0(&UNK_004013f6,&UNK_004013f4); if (lStack_20 != 0) { lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_00401404); *(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0; } func_0x00400b40(lStack_20); } } CWE78_OS_Command_Injection__wchar_t_file_execl_54b_badSink(puStack_10); return; }
['gcc']
14,834
void CWE78_OS_Command_Injection__wchar_t_file_execl_54_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121815/CWE78_OS_Command_Injection__wchar_t_file_execl_54a.c
CWE78_OS_Command_Injection__wchar_t_file_execl_54_good
void CWE78_OS_Command_Injection__wchar_t_file_execl_54_good(void) { goodG2B(); return; }
['gcc']
14,835
void CWE78_OS_Command_Injection__wchar_t_file_execl_54b_badSink(wchar_t * data) { CWE78_OS_Command_Injection__wchar_t_file_execl_54c_badSink(data); }
[]
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121815/CWE78_OS_Command_Injection__wchar_t_file_execl_54b.c
CWE78_OS_Command_Injection__wchar_t_file_execl_54b_badSink
void CWE78_OS_Command_Injection__wchar_t_file_execl_54b_badSink(undefined8 param_1) { CWE78_OS_Command_Injection__wchar_t_file_execl_54c_badSink(param_1); return; }
['gcc']
14,836
void CWE78_OS_Command_Injection__wchar_t_file_execl_54b_goodG2BSink(wchar_t * data) { CWE78_OS_Command_Injection__wchar_t_file_execl_54c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121815/CWE78_OS_Command_Injection__wchar_t_file_execl_54b.c
CWE78_OS_Command_Injection__wchar_t_file_execl_54b_goodG2BSink
void CWE78_OS_Command_Injection__wchar_t_file_execl_54b_goodG2BSink(undefined8 param_1) { CWE78_OS_Command_Injection__wchar_t_file_execl_54c_goodG2BSink(param_1); return; }
['gcc']
14,837
void CWE78_OS_Command_Injection__wchar_t_file_execl_54c_badSink(wchar_t * data) { CWE78_OS_Command_Injection__wchar_t_file_execl_54d_badSink(data); }
[]
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121815/CWE78_OS_Command_Injection__wchar_t_file_execl_54c.c
CWE78_OS_Command_Injection__wchar_t_file_execl_54c_badSink
void CWE78_OS_Command_Injection__wchar_t_file_execl_54c_badSink(undefined8 param_1) { CWE78_OS_Command_Injection__wchar_t_file_execl_54d_badSink(param_1); return; }
['gcc']
14,838
void CWE78_OS_Command_Injection__wchar_t_file_execl_54c_goodG2BSink(wchar_t * data) { CWE78_OS_Command_Injection__wchar_t_file_execl_54d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121815/CWE78_OS_Command_Injection__wchar_t_file_execl_54c.c
CWE78_OS_Command_Injection__wchar_t_file_execl_54c_goodG2BSink
void CWE78_OS_Command_Injection__wchar_t_file_execl_54c_goodG2BSink(undefined8 param_1) { CWE78_OS_Command_Injection__wchar_t_file_execl_54d_goodG2BSink(param_1); return; }
['gcc']
14,839
void CWE78_OS_Command_Injection__wchar_t_file_execl_54d_badSink(wchar_t * data) { CWE78_OS_Command_Injection__wchar_t_file_execl_54e_badSink(data); }
[]
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121815/CWE78_OS_Command_Injection__wchar_t_file_execl_54d.c
CWE78_OS_Command_Injection__wchar_t_file_execl_54d_badSink
void CWE78_OS_Command_Injection__wchar_t_file_execl_54d_badSink(undefined8 param_1) { CWE78_OS_Command_Injection__wchar_t_file_execl_54e_badSink(param_1); return; }
['gcc']
14,840
void CWE78_OS_Command_Injection__wchar_t_file_execl_54d_goodG2BSink(wchar_t * data) { CWE78_OS_Command_Injection__wchar_t_file_execl_54e_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121815/CWE78_OS_Command_Injection__wchar_t_file_execl_54d.c
CWE78_OS_Command_Injection__wchar_t_file_execl_54d_goodG2BSink
void CWE78_OS_Command_Injection__wchar_t_file_execl_54d_goodG2BSink(undefined8 param_1) { CWE78_OS_Command_Injection__wchar_t_file_execl_54e_goodG2BSink(param_1); return; }
['gcc']
14,841
void CWE78_OS_Command_Injection__wchar_t_file_execl_54e_badSink(wchar_t * data) { /* wexecl - 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); }
['/* wexecl - 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/121815/CWE78_OS_Command_Injection__wchar_t_file_execl_54e.c
CWE78_OS_Command_Injection__wchar_t_file_execl_54e_badSink
void CWE78_OS_Command_Injection__wchar_t_file_execl_54e_badSink(undefined8 param_1) { func_0x00400bf0(&UNK_00401418,&UNK_00401418,&UNK_00401408,&UNK_004013f8,param_1,0); return; }
['gcc']
14,842
void CWE78_OS_Command_Injection__wchar_t_file_execl_54e_goodG2BSink(wchar_t * data) { /* wexecl - 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); }
['/* wexecl - specify the path where the command is located */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121815/CWE78_OS_Command_Injection__wchar_t_file_execl_54e.c
CWE78_OS_Command_Injection__wchar_t_file_execl_54e_goodG2BSink
void CWE78_OS_Command_Injection__wchar_t_file_execl_54e_goodG2BSink(undefined8 param_1) { func_0x00400ad0(&UNK_00401278,&UNK_00401278,&UNK_00401268,&UNK_00401258,param_1,0); return; }
['gcc']
14,843
void CWE78_OS_Command_Injection__wchar_t_file_execl_61_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; data = CWE78_OS_Command_Injection__wchar_t_file_execl_61b_badSource(data); /* wexecl - 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); }
['/* wexecl - 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/121816/CWE78_OS_Command_Injection__wchar_t_file_execl_61a.c
CWE78_OS_Command_Injection__wchar_t_file_execl_61_bad
void CWE78_OS_Command_Injection__wchar_t_file_execl_61_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [49]; undefined8 *puStack_10; uStack_1a8 = 0; uStack_1a0 = 0; puVar2 = auStack_198; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1a8; puStack_10 = (undefined8 *) CWE78_OS_Command_Injection__wchar_t_file_execl_61b_badSource(puStack_10); func_0x00400bf0(&UNK_004013c8,&UNK_004013c8,&UNK_004013b8,&UNK_004013a8,puStack_10,0); return; }
['gcc']
14,844
void CWE78_OS_Command_Injection__wchar_t_file_execl_61_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121816/CWE78_OS_Command_Injection__wchar_t_file_execl_61a.c
CWE78_OS_Command_Injection__wchar_t_file_execl_61_good
void CWE78_OS_Command_Injection__wchar_t_file_execl_61_good(void) { goodG2B(); return; }
['gcc']
14,845
wchar_t * CWE78_OS_Command_Injection__wchar_t_file_execl_61b_badSource(wchar_t * data) { { /* Read input from a file */ size_t dataLen = wcslen(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 (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } return data; }
['/* 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 fgetws fails */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121816/CWE78_OS_Command_Injection__wchar_t_file_execl_61b.c
CWE78_OS_Command_Injection__wchar_t_file_execl_61b_badSource
long CWE78_OS_Command_Injection__wchar_t_file_execl_61b_badSource(long param_1) { long lVar1; long lVar2; long lVar3; lVar1 = func_0x00400b60(param_1); if (1 < 100U - lVar1) { lVar2 = func_0x00400be0(&UNK_004013a6,&UNK_004013a4); if (lVar2 != 0) { lVar3 = func_0x00400b10(lVar1 * 4 + param_1,100 - (int)lVar1,lVar2); if (lVar3 == 0) { printLine(&UNK_004013b4); *(undefined4 *)(param_1 + lVar1 * 4) = 0; } func_0x00400b40(lVar2); } } return param_1; }
['gcc']
14,846
wchar_t * CWE78_OS_Command_Injection__wchar_t_file_execl_61b_goodG2BSource(wchar_t * data) { /* FIX: Append a fixed string to data (not user / external input) */ wcscat(data, L"*.*"); 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/121816/CWE78_OS_Command_Injection__wchar_t_file_execl_61b.c
CWE78_OS_Command_Injection__wchar_t_file_execl_61b_goodG2BSource
undefined8 CWE78_OS_Command_Injection__wchar_t_file_execl_61b_goodG2BSource(undefined8 param_1) { func_0x00400a20(param_1,&UNK_00401204); return param_1; }
['gcc']
14,847
void CWE78_OS_Command_Injection__wchar_t_file_execl_63_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; { /* Read input from a file */ size_t dataLen = wcslen(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 (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } CWE78_OS_Command_Injection__wchar_t_file_execl_63b_badSink(&data); }
['/* 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 fgetws fails */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121818/CWE78_OS_Command_Injection__wchar_t_file_execl_63a.c
CWE78_OS_Command_Injection__wchar_t_file_execl_63_bad
void CWE78_OS_Command_Injection__wchar_t_file_execl_63_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1b8; undefined8 uStack_1b0; undefined8 auStack_1a8 [49]; undefined8 *puStack_20; long lStack_18; long lStack_10; uStack_1b8 = 0; uStack_1b0 = 0; puVar2 = auStack_1a8; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_20 = &uStack_1b8; lStack_10 = func_0x00400b60(puStack_20); if (1 < 100U - lStack_10) { lStack_18 = func_0x00400be0(&UNK_004013a6,&UNK_004013a4); if (lStack_18 != 0) { lVar1 = func_0x00400b10((long)puStack_20 + lStack_10 * 4,100 - (int)lStack_10,lStack_18); if (lVar1 == 0) { printLine(&UNK_004013b4); *(undefined4 *)((long)puStack_20 + lStack_10 * 4) = 0; } func_0x00400b40(lStack_18); } } CWE78_OS_Command_Injection__wchar_t_file_execl_63b_badSink(&puStack_20); return; }
['gcc']
14,848
void CWE78_OS_Command_Injection__wchar_t_file_execl_63_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121818/CWE78_OS_Command_Injection__wchar_t_file_execl_63a.c
CWE78_OS_Command_Injection__wchar_t_file_execl_63_good
void CWE78_OS_Command_Injection__wchar_t_file_execl_63_good(void) { goodG2B(); return; }
['gcc']
14,849
void CWE78_OS_Command_Injection__wchar_t_file_execl_63b_badSink(wchar_t * * dataPtr) { wchar_t * data = *dataPtr; /* wexecl - 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); }
['/* wexecl - 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/121818/CWE78_OS_Command_Injection__wchar_t_file_execl_63b.c
CWE78_OS_Command_Injection__wchar_t_file_execl_63b_badSink
void CWE78_OS_Command_Injection__wchar_t_file_execl_63b_badSink(undefined8 *param_1) { func_0x00400bf0(&UNK_004013c8,&UNK_004013c8,&UNK_004013b8,&UNK_004013a8,*param_1,0); return; }
['gcc']
14,850
void CWE78_OS_Command_Injection__wchar_t_file_execl_63b_goodG2BSink(wchar_t * * dataPtr) { wchar_t * data = *dataPtr; /* wexecl - 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); }
['/* wexecl - specify the path where the command is located */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121818/CWE78_OS_Command_Injection__wchar_t_file_execl_63b.c
CWE78_OS_Command_Injection__wchar_t_file_execl_63b_goodG2BSink
void CWE78_OS_Command_Injection__wchar_t_file_execl_63b_goodG2BSink(undefined8 *param_1) { func_0x00400ad0(&UNK_00401228,&UNK_00401228,&UNK_00401218,&UNK_00401208,*param_1,0); return; }
['gcc']
14,851
void CWE78_OS_Command_Injection__wchar_t_file_execl_64_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; { /* Read input from a file */ size_t dataLen = wcslen(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 (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } CWE78_OS_Command_Injection__wchar_t_file_execl_64b_badSink(&data); }
['/* 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 fgetws fails */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121819/CWE78_OS_Command_Injection__wchar_t_file_execl_64a.c
CWE78_OS_Command_Injection__wchar_t_file_execl_64_bad
void CWE78_OS_Command_Injection__wchar_t_file_execl_64_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1b8; undefined8 uStack_1b0; undefined8 auStack_1a8 [49]; undefined8 *puStack_20; long lStack_18; long lStack_10; uStack_1b8 = 0; uStack_1b0 = 0; puVar2 = auStack_1a8; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_20 = &uStack_1b8; lStack_10 = func_0x00400b60(puStack_20); if (1 < 100U - lStack_10) { lStack_18 = func_0x00400be0(&UNK_004013a6,&UNK_004013a4); if (lStack_18 != 0) { lVar1 = func_0x00400b10((long)puStack_20 + lStack_10 * 4,100 - (int)lStack_10,lStack_18); if (lVar1 == 0) { printLine(&UNK_004013b4); *(undefined4 *)((long)puStack_20 + lStack_10 * 4) = 0; } func_0x00400b40(lStack_18); } } CWE78_OS_Command_Injection__wchar_t_file_execl_64b_badSink(&puStack_20); return; }
['gcc']
14,852
void CWE78_OS_Command_Injection__wchar_t_file_execl_64_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121819/CWE78_OS_Command_Injection__wchar_t_file_execl_64a.c
CWE78_OS_Command_Injection__wchar_t_file_execl_64_good
void CWE78_OS_Command_Injection__wchar_t_file_execl_64_good(void) { goodG2B(); return; }
['gcc']
14,853
void CWE78_OS_Command_Injection__wchar_t_file_execl_64b_badSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ wchar_t * * dataPtr = (wchar_t * *)dataVoidPtr; /* dereference dataPtr into data */ wchar_t * data = (*dataPtr); /* wexecl - specify the path where the command is located */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ EXECL(COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL); }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* wexecl - 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/121819/CWE78_OS_Command_Injection__wchar_t_file_execl_64b.c
CWE78_OS_Command_Injection__wchar_t_file_execl_64b_badSink
void CWE78_OS_Command_Injection__wchar_t_file_execl_64b_badSink(undefined8 *param_1) { func_0x00400bf0(&UNK_004013c8,&UNK_004013c8,&UNK_004013b8,&UNK_004013a8,*param_1,0); return; }
['gcc']
14,854
void CWE78_OS_Command_Injection__wchar_t_file_execl_64b_goodG2BSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ wchar_t * * dataPtr = (wchar_t * *)dataVoidPtr; /* dereference dataPtr into data */ wchar_t * data = (*dataPtr); /* wexecl - specify the path where the command is located */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ EXECL(COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL); }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* wexecl - specify the path where the command is located */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121819/CWE78_OS_Command_Injection__wchar_t_file_execl_64b.c
CWE78_OS_Command_Injection__wchar_t_file_execl_64b_goodG2BSink
void CWE78_OS_Command_Injection__wchar_t_file_execl_64b_goodG2BSink(undefined8 *param_1) { func_0x00400ad0(&UNK_00401238,&UNK_00401238,&UNK_00401228,&UNK_00401218,*param_1,0); return; }
['gcc']
14,855
void CWE78_OS_Command_Injection__wchar_t_file_execlp_10_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; if(globalTrue) { { /* Read input from a file */ size_t dataLen = wcslen(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 (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } } /* wexeclp - searches for the location of the command among * the directories specified by the PATH environment variable */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL); }
['/* 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 fgetws fails */', '/* wexeclp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121840/CWE78_OS_Command_Injection__wchar_t_file_execlp_10.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_10_bad
void CWE78_OS_Command_Injection__wchar_t_file_execlp_10_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1b8; undefined8 uStack_1b0; undefined8 auStack_1a8 [49]; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_1b8 = 0; uStack_1b0 = 0; puVar2 = auStack_1a8; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1b8; if (globalTrue != 0) { lStack_18 = func_0x00400b60(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400be0(&UNK_00401396,&UNK_00401394); if (lStack_20 != 0) { lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_004013a4); *(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0; } func_0x00400b40(lStack_20); } } } func_0x00400bf0(&UNK_004013d0,&UNK_004013d0,&UNK_004013c4,&UNK_004013b4,puStack_10,0); return; }
['gcc']
14,856
void CWE78_OS_Command_Injection__wchar_t_file_execlp_10_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121840/CWE78_OS_Command_Injection__wchar_t_file_execlp_10.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_10_good
void CWE78_OS_Command_Injection__wchar_t_file_execlp_10_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
14,857
void CWE78_OS_Command_Injection__wchar_t_file_execlp_11_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; if(globalReturnsTrue()) { { /* Read input from a file */ size_t dataLen = wcslen(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 (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } } /* wexeclp - searches for the location of the command among * the directories specified by the PATH environment variable */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL); }
['/* 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 fgetws fails */', '/* wexeclp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121841/CWE78_OS_Command_Injection__wchar_t_file_execlp_11.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_11_bad
void CWE78_OS_Command_Injection__wchar_t_file_execlp_11_bad(void) { int iVar1; long lVar2; undefined8 *puVar3; undefined8 uStack_1b8; undefined8 uStack_1b0; undefined8 auStack_1a8 [49]; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_1b8 = 0; uStack_1b0 = 0; puVar3 = auStack_1a8; for (lVar2 = 0x30; lVar2 != 0; lVar2 = lVar2 + -1) { *puVar3 = 0; puVar3 = puVar3 + 1; } puStack_10 = &uStack_1b8; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { lStack_18 = func_0x00400b60(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400be0(&UNK_00401396,&UNK_00401394); if (lStack_20 != 0) { lVar2 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20); if (lVar2 == 0) { printLine(&UNK_004013a4); *(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0; } func_0x00400b40(lStack_20); } } } func_0x00400bf0(&UNK_004013d0,&UNK_004013d0,&UNK_004013c4,&UNK_004013b4,puStack_10,0); return; }
['gcc']
14,858
void CWE78_OS_Command_Injection__wchar_t_file_execlp_11_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121841/CWE78_OS_Command_Injection__wchar_t_file_execlp_11.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_11_good
void CWE78_OS_Command_Injection__wchar_t_file_execlp_11_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
14,859
void CWE78_OS_Command_Injection__wchar_t_file_execlp_12_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; if(globalReturnsTrueOrFalse()) { { /* Read input from a file */ size_t dataLen = wcslen(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 (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } } else { /* FIX: Append a fixed string to data (not user / external input) */ wcscat(data, L"*.*"); } /* wexeclp - searches for the location of the command among * the directories specified by the PATH environment variable */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL); }
['/* 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 fgetws fails */', '/* FIX: Append a fixed string to data (not user / external input) */', '/* wexeclp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121842/CWE78_OS_Command_Injection__wchar_t_file_execlp_12.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_12_bad
void CWE78_OS_Command_Injection__wchar_t_file_execlp_12_bad(void) { int iVar1; long lVar2; undefined8 *puVar3; undefined8 uStack_1b8; undefined8 uStack_1b0; undefined8 auStack_1a8 [49]; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_1b8 = 0; uStack_1b0 = 0; puVar3 = auStack_1a8; for (lVar2 = 0x30; lVar2 != 0; lVar2 = lVar2 + -1) { *puVar3 = 0; puVar3 = puVar3 + 1; } puStack_10 = &uStack_1b8; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { func_0x00400b40(puStack_10,&UNK_00401404); } else { lStack_18 = func_0x00400ba0(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400c20(&UNK_004013e6,&UNK_004013e4); if (lStack_20 != 0) { lVar2 = func_0x00400b50(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20); if (lVar2 == 0) { printLine(&UNK_004013f4); *(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0; } func_0x00400b80(lStack_20); } } } func_0x00400c30(&UNK_00401430,&UNK_00401430,&UNK_00401424,&UNK_00401414,puStack_10,0); return; }
['gcc']
14,860
void CWE78_OS_Command_Injection__wchar_t_file_execlp_12_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121842/CWE78_OS_Command_Injection__wchar_t_file_execlp_12.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_12_good
void CWE78_OS_Command_Injection__wchar_t_file_execlp_12_good(void) { goodG2B(); return; }
['gcc']
14,861
void CWE78_OS_Command_Injection__wchar_t_file_execlp_13_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; if(GLOBAL_CONST_FIVE==5) { { /* Read input from a file */ size_t dataLen = wcslen(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 (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } } /* wexeclp - searches for the location of the command among * the directories specified by the PATH environment variable */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL); }
['/* 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 fgetws fails */', '/* wexeclp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121843/CWE78_OS_Command_Injection__wchar_t_file_execlp_13.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_13_bad
void CWE78_OS_Command_Injection__wchar_t_file_execlp_13_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1b8; undefined8 uStack_1b0; undefined8 auStack_1a8 [49]; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_1b8 = 0; uStack_1b0 = 0; puVar2 = auStack_1a8; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1b8; if (GLOBAL_CONST_FIVE == 5) { lStack_18 = func_0x00400b60(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400be0(&UNK_00401396,&UNK_00401394); if (lStack_20 != 0) { lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_004013a4); *(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0; } func_0x00400b40(lStack_20); } } } func_0x00400bf0(&UNK_004013d0,&UNK_004013d0,&UNK_004013c4,&UNK_004013b4,puStack_10,0); return; }
['gcc']
14,862
void CWE78_OS_Command_Injection__wchar_t_file_execlp_13_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121843/CWE78_OS_Command_Injection__wchar_t_file_execlp_13.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_13_good
void CWE78_OS_Command_Injection__wchar_t_file_execlp_13_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
14,863
void CWE78_OS_Command_Injection__wchar_t_file_execlp_14_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; if(globalFive==5) { { /* Read input from a file */ size_t dataLen = wcslen(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 (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } } /* wexeclp - searches for the location of the command among * the directories specified by the PATH environment variable */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL); }
['/* 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 fgetws fails */', '/* wexeclp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121844/CWE78_OS_Command_Injection__wchar_t_file_execlp_14.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_14_bad
void CWE78_OS_Command_Injection__wchar_t_file_execlp_14_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1b8; undefined8 uStack_1b0; undefined8 auStack_1a8 [49]; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_1b8 = 0; uStack_1b0 = 0; puVar2 = auStack_1a8; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1b8; if (globalFive == 5) { lStack_18 = func_0x00400b60(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400be0(&UNK_00401396,&UNK_00401394); if (lStack_20 != 0) { lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_004013a4); *(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0; } func_0x00400b40(lStack_20); } } } func_0x00400bf0(&UNK_004013d0,&UNK_004013d0,&UNK_004013c4,&UNK_004013b4,puStack_10,0); return; }
['gcc']
14,864
void CWE78_OS_Command_Injection__wchar_t_file_execlp_14_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121844/CWE78_OS_Command_Injection__wchar_t_file_execlp_14.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_14_good
void CWE78_OS_Command_Injection__wchar_t_file_execlp_14_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
14,865
void CWE78_OS_Command_Injection__wchar_t_file_execlp_15_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; switch(6) { case 6: { /* Read input from a file */ size_t dataLen = wcslen(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 (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } /* wexeclp - searches for the location of the command among * the directories specified by the PATH environment variable */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL); }
['/* 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 fgetws fails */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* wexeclp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121845/CWE78_OS_Command_Injection__wchar_t_file_execlp_15.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_15_bad
void CWE78_OS_Command_Injection__wchar_t_file_execlp_15_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1b8; undefined8 uStack_1b0; undefined8 auStack_1a8 [49]; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_1b8 = 0; uStack_1b0 = 0; puVar2 = auStack_1a8; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1b8; lStack_18 = func_0x00400b60(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400be0(&UNK_00401386,&UNK_00401384); if (lStack_20 != 0) { lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_00401394); *(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0; } func_0x00400b40(lStack_20); } } func_0x00400bf0(&UNK_004013c0,&UNK_004013c0,&UNK_004013b4,&UNK_004013a4,puStack_10,0); return; }
['gcc']
14,866
void CWE78_OS_Command_Injection__wchar_t_file_execlp_15_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121845/CWE78_OS_Command_Injection__wchar_t_file_execlp_15.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_15_good
void CWE78_OS_Command_Injection__wchar_t_file_execlp_15_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
14,867
void CWE78_OS_Command_Injection__wchar_t_file_execlp_16_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; while(1) { { /* Read input from a file */ size_t dataLen = wcslen(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 (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } break; } /* wexeclp - searches for the location of the command among * the directories specified by the PATH environment variable */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL); }
['/* 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 fgetws fails */', '/* wexeclp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121846/CWE78_OS_Command_Injection__wchar_t_file_execlp_16.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_16_bad
void CWE78_OS_Command_Injection__wchar_t_file_execlp_16_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1b8; undefined8 uStack_1b0; undefined8 auStack_1a8 [49]; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_1b8 = 0; uStack_1b0 = 0; puVar2 = auStack_1a8; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1b8; lStack_18 = func_0x00400b60(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400be0(&UNK_00401386,&UNK_00401384); if (lStack_20 != 0) { lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_00401394); *(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0; } func_0x00400b40(lStack_20); } } func_0x00400bf0(&UNK_004013c0,&UNK_004013c0,&UNK_004013b4,&UNK_004013a4,puStack_10,0); return; }
['gcc']
14,868
void CWE78_OS_Command_Injection__wchar_t_file_execlp_16_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121846/CWE78_OS_Command_Injection__wchar_t_file_execlp_16.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_16_good
void CWE78_OS_Command_Injection__wchar_t_file_execlp_16_good(void) { goodG2B(); return; }
['gcc']
14,869
void CWE78_OS_Command_Injection__wchar_t_file_execlp_17_bad() { int i; wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; for(i = 0; i < 1; i++) { { /* Read input from a file */ size_t dataLen = wcslen(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 (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } } /* wexeclp - searches for the location of the command among * the directories specified by the PATH environment variable */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL); }
['/* 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 fgetws fails */', '/* wexeclp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121847/CWE78_OS_Command_Injection__wchar_t_file_execlp_17.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_17_bad
void CWE78_OS_Command_Injection__wchar_t_file_execlp_17_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1b8; undefined8 uStack_1b0; undefined8 auStack_1a8 [48]; long lStack_28; long lStack_20; undefined8 *puStack_18; int iStack_c; uStack_1b8 = 0; uStack_1b0 = 0; puVar2 = auStack_1a8; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_18 = &uStack_1b8; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { lStack_20 = func_0x00400b60(puStack_18); if (1 < 100U - lStack_20) { lStack_28 = func_0x00400be0(&UNK_004013a6,&UNK_004013a4); if (lStack_28 != 0) { lVar1 = func_0x00400b10(lStack_20 * 4 + (long)puStack_18,100 - (int)lStack_20,lStack_28); if (lVar1 == 0) { printLine(&UNK_004013b4); *(undefined4 *)((long)puStack_18 + lStack_20 * 4) = 0; } func_0x00400b40(lStack_28); } } } func_0x00400bf0(&UNK_004013e0,&UNK_004013e0,&UNK_004013d4,&UNK_004013c4,puStack_18,0); return; }
['gcc']
14,870
void CWE78_OS_Command_Injection__wchar_t_file_execlp_17_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121847/CWE78_OS_Command_Injection__wchar_t_file_execlp_17.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_17_good
void CWE78_OS_Command_Injection__wchar_t_file_execlp_17_good(void) { goodG2B(); return; }
['gcc']
14,871
void CWE78_OS_Command_Injection__wchar_t_file_execlp_18_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; goto source; source: { /* Read input from a file */ size_t dataLen = wcslen(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 (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } /* wexeclp - searches for the location of the command among * the directories specified by the PATH environment variable */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL); }
['/* 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 fgetws fails */', '/* wexeclp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121848/CWE78_OS_Command_Injection__wchar_t_file_execlp_18.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_18_bad
void CWE78_OS_Command_Injection__wchar_t_file_execlp_18_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1b8; undefined8 uStack_1b0; undefined8 auStack_1a8 [49]; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_1b8 = 0; uStack_1b0 = 0; puVar2 = auStack_1a8; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1b8; lStack_18 = func_0x00400b60(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400be0(&UNK_00401386,&UNK_00401384); if (lStack_20 != 0) { lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_00401394); *(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0; } func_0x00400b40(lStack_20); } } func_0x00400bf0(&UNK_004013c0,&UNK_004013c0,&UNK_004013b4,&UNK_004013a4,puStack_10,0); return; }
['gcc']
14,872
void CWE78_OS_Command_Injection__wchar_t_file_execlp_18_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121848/CWE78_OS_Command_Injection__wchar_t_file_execlp_18.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_18_good
void CWE78_OS_Command_Injection__wchar_t_file_execlp_18_good(void) { goodG2B(); return; }
['gcc']
14,873
void CWE78_OS_Command_Injection__wchar_t_file_execlp_21_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; badStatic = 1; /* true */ data = badSource(data); /* wexeclp - searches for the location of the command among * the directories specified by the PATH environment variable */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL); }
['/* true */', '/* wexeclp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121849/CWE78_OS_Command_Injection__wchar_t_file_execlp_21.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_21_bad
void CWE78_OS_Command_Injection__wchar_t_file_execlp_21_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [49]; undefined8 *puStack_10; uStack_1a8 = 0; uStack_1a0 = 0; puVar2 = auStack_198; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1a8; badStatic = 1; puStack_10 = (undefined8 *)badSource(puStack_10); func_0x00400bf0(&UNK_00401400,&UNK_00401400,&UNK_004013f4,&UNK_004013e4,puStack_10,0); return; }
['gcc']
14,874
void CWE78_OS_Command_Injection__wchar_t_file_execlp_21_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121849/CWE78_OS_Command_Injection__wchar_t_file_execlp_21.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_21_good
void CWE78_OS_Command_Injection__wchar_t_file_execlp_21_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
14,875
void CWE78_OS_Command_Injection__wchar_t_file_execlp_22_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; CWE78_OS_Command_Injection__wchar_t_file_execlp_22_badGlobal = 1; /* true */ data = CWE78_OS_Command_Injection__wchar_t_file_execlp_22_badSource(data); /* wexeclp - searches for the location of the command among * the directories specified by the PATH environment variable */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL); }
['/* true */', '/* wexeclp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121850/CWE78_OS_Command_Injection__wchar_t_file_execlp_22a.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_22_bad
void CWE78_OS_Command_Injection__wchar_t_file_execlp_22_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [49]; undefined8 *puStack_10; uStack_1a8 = 0; uStack_1a0 = 0; puVar2 = auStack_198; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1a8; CWE78_OS_Command_Injection__wchar_t_file_execlp_22_badGlobal = 1; puStack_10 = (undefined8 *) CWE78_OS_Command_Injection__wchar_t_file_execlp_22_badSource(puStack_10); func_0x00400bf0(&UNK_004013e0,&UNK_004013e0,&UNK_004013d4,&UNK_004013c4,puStack_10,0); return; }
['gcc']
14,876
void CWE78_OS_Command_Injection__wchar_t_file_execlp_22_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121850/CWE78_OS_Command_Injection__wchar_t_file_execlp_22a.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_22_good
void CWE78_OS_Command_Injection__wchar_t_file_execlp_22_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
14,877
wchar_t * CWE78_OS_Command_Injection__wchar_t_file_execlp_22_badSource(wchar_t * data) { if(CWE78_OS_Command_Injection__wchar_t_file_execlp_22_badGlobal) { { /* Read input from a file */ size_t dataLen = wcslen(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 (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } } return data; }
['/* 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 fgetws fails */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121850/CWE78_OS_Command_Injection__wchar_t_file_execlp_22b.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_22_badSource
long CWE78_OS_Command_Injection__wchar_t_file_execlp_22_badSource(long param_1) { long lVar1; long lVar2; long lVar3; if (CWE78_OS_Command_Injection__wchar_t_file_execlp_22_badGlobal != 0) { lVar1 = func_0x00400b60(param_1); if (1 < 100U - lVar1) { lVar2 = func_0x00400be0(&UNK_004013c6,&UNK_004013c4); if (lVar2 != 0) { lVar3 = func_0x00400b10(lVar1 * 4 + param_1,100 - (int)lVar1,lVar2); if (lVar3 == 0) { printLine(&UNK_004013d4); *(undefined4 *)(param_1 + lVar1 * 4) = 0; } func_0x00400b40(lVar2); } } } return param_1; }
['gcc']
14,878
wchar_t * CWE78_OS_Command_Injection__wchar_t_file_execlp_22_goodG2B1Source(wchar_t * data) { if(CWE78_OS_Command_Injection__wchar_t_file_execlp_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) */ wcscat(data, L"*.*"); } 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/121850/CWE78_OS_Command_Injection__wchar_t_file_execlp_22b.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_22_goodG2B1Source
undefined8 CWE78_OS_Command_Injection__wchar_t_file_execlp_22_goodG2B1Source(undefined8 param_1) { if (CWE78_OS_Command_Injection__wchar_t_file_execlp_22_goodG2B1Global == 0) { func_0x00400a20(param_1,&UNK_004012fc); } else { printLine(&UNK_004012e4); } return param_1; }
['gcc']
14,879
wchar_t * CWE78_OS_Command_Injection__wchar_t_file_execlp_22_goodG2B2Source(wchar_t * data) { if(CWE78_OS_Command_Injection__wchar_t_file_execlp_22_goodG2B2Global) { /* FIX: Append a fixed string to data (not user / external input) */ wcscat(data, L"*.*"); } 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/121850/CWE78_OS_Command_Injection__wchar_t_file_execlp_22b.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_22_goodG2B2Source
undefined8 CWE78_OS_Command_Injection__wchar_t_file_execlp_22_goodG2B2Source(undefined8 param_1) { if (CWE78_OS_Command_Injection__wchar_t_file_execlp_22_goodG2B2Global != 0) { func_0x00400a20(param_1,&UNK_004012fc); } return param_1; }
['gcc']
14,880
void CWE78_OS_Command_Injection__wchar_t_file_execlp_31_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; { /* Read input from a file */ size_t dataLen = wcslen(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 (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } { wchar_t * dataCopy = data; wchar_t * data = dataCopy; /* wexeclp - searches for the location of the command among * the directories specified by the PATH environment variable */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL); } }
['/* 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 fgetws fails */', '/* wexeclp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121851/CWE78_OS_Command_Injection__wchar_t_file_execlp_31.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_31_bad
void CWE78_OS_Command_Injection__wchar_t_file_execlp_31_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1c8; undefined8 uStack_1c0; undefined8 auStack_1b8 [49]; undefined8 *puStack_30; undefined8 *puStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_1c8 = 0; uStack_1c0 = 0; puVar2 = auStack_1b8; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1c8; lStack_18 = func_0x00400b60(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400be0(&UNK_00401396,&UNK_00401394); if (lStack_20 != 0) { lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_004013a4); *(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0; } func_0x00400b40(lStack_20); } } puStack_28 = puStack_10; puStack_30 = puStack_10; func_0x00400bf0(&UNK_004013d0,&UNK_004013d0,&UNK_004013c4,&UNK_004013b4,puStack_10,0); return; }
['gcc']
14,881
void CWE78_OS_Command_Injection__wchar_t_file_execlp_31_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121851/CWE78_OS_Command_Injection__wchar_t_file_execlp_31.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_31_good
void CWE78_OS_Command_Injection__wchar_t_file_execlp_31_good(void) { goodG2B(); return; }
['gcc']
14,882
void CWE78_OS_Command_Injection__wchar_t_file_execlp_32_bad() { wchar_t * data; wchar_t * *dataPtr1 = &data; wchar_t * *dataPtr2 = &data; wchar_t dataBuffer[100] = L""; data = dataBuffer; { wchar_t * data = *dataPtr1; { /* Read input from a file */ size_t dataLen = wcslen(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 (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } *dataPtr1 = data; } { wchar_t * data = *dataPtr2; /* wexeclp - searches for the location of the command among * the directories specified by the PATH environment variable */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL); } }
['/* 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 fgetws fails */', '/* wexeclp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121852/CWE78_OS_Command_Injection__wchar_t_file_execlp_32.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_32_bad
void CWE78_OS_Command_Injection__wchar_t_file_execlp_32_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1d8; undefined8 uStack_1d0; undefined8 auStack_1c8 [49]; 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_1d8 = 0; uStack_1d0 = 0; puVar2 = auStack_1c8; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_40 = &uStack_1d8; puStack_20 = *ppuStack_10; lStack_28 = func_0x00400b60(puStack_20); if (1 < 100U - lStack_28) { lStack_30 = func_0x00400be0(&UNK_004013b6,&UNK_004013b4); if (lStack_30 != 0) { lVar1 = func_0x00400b10(lStack_28 * 4 + (long)puStack_20,100 - (int)lStack_28,lStack_30); if (lVar1 == 0) { printLine(&UNK_004013c4); *(undefined4 *)((long)puStack_20 + lStack_28 * 4) = 0; } func_0x00400b40(lStack_30); } } *ppuStack_10 = puStack_20; puStack_38 = *ppuStack_18; func_0x00400bf0(&UNK_004013f0,&UNK_004013f0,&UNK_004013e4,&UNK_004013d4,puStack_38,0); return; }
['gcc']
14,883
void CWE78_OS_Command_Injection__wchar_t_file_execlp_32_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121852/CWE78_OS_Command_Injection__wchar_t_file_execlp_32.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_32_good
void CWE78_OS_Command_Injection__wchar_t_file_execlp_32_good(void) { goodG2B(); return; }
['gcc']
14,884
void CWE78_OS_Command_Injection__wchar_t_file_execlp_34_bad() { wchar_t * data; CWE78_OS_Command_Injection__wchar_t_file_execlp_34_unionType myUnion; wchar_t dataBuffer[100] = L""; data = dataBuffer; { /* Read input from a file */ size_t dataLen = wcslen(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 (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } myUnion.unionFirst = data; { wchar_t * data = myUnion.unionSecond; /* wexeclp - searches for the location of the command among * the directories specified by the PATH environment variable */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL); } }
['/* 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 fgetws fails */', '/* wexeclp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121854/CWE78_OS_Command_Injection__wchar_t_file_execlp_34.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_34_bad
void CWE78_OS_Command_Injection__wchar_t_file_execlp_34_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1c8; undefined8 uStack_1c0; undefined8 auStack_1b8 [49]; undefined8 *puStack_30; undefined8 *puStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_1c8 = 0; uStack_1c0 = 0; puVar2 = auStack_1b8; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1c8; lStack_18 = func_0x00400b60(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400be0(&UNK_00401396,&UNK_00401394); if (lStack_20 != 0) { lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_004013a4); *(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0; } func_0x00400b40(lStack_20); } } puStack_30 = puStack_10; puStack_28 = puStack_10; func_0x00400bf0(&UNK_004013d0,&UNK_004013d0,&UNK_004013c4,&UNK_004013b4,puStack_10,0); return; }
['gcc']
14,885
void CWE78_OS_Command_Injection__wchar_t_file_execlp_34_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121854/CWE78_OS_Command_Injection__wchar_t_file_execlp_34.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_34_good
void CWE78_OS_Command_Injection__wchar_t_file_execlp_34_good(void) { goodG2B(); return; }
['gcc']
14,886
void CWE78_OS_Command_Injection__wchar_t_file_execlp_41_badSink(wchar_t * data) { /* wexeclp - searches for the location of the command among * the directories specified by the PATH environment variable */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL); }
['/* wexeclp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121855/CWE78_OS_Command_Injection__wchar_t_file_execlp_41.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_41_badSink
void CWE78_OS_Command_Injection__wchar_t_file_execlp_41_badSink(undefined8 param_1) { func_0x00400bf0(&UNK_004013c0,&UNK_004013c0,&UNK_004013b4,&UNK_004013a4,param_1,0); return; }
['gcc']
14,887
void CWE78_OS_Command_Injection__wchar_t_file_execlp_41_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; { /* Read input from a file */ size_t dataLen = wcslen(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 (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } CWE78_OS_Command_Injection__wchar_t_file_execlp_41_badSink(data); }
['/* 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 fgetws fails */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121855/CWE78_OS_Command_Injection__wchar_t_file_execlp_41.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_41_bad
void CWE78_OS_Command_Injection__wchar_t_file_execlp_41_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1b8; undefined8 uStack_1b0; undefined8 auStack_1a8 [49]; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_1b8 = 0; uStack_1b0 = 0; puVar2 = auStack_1a8; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1b8; lStack_18 = func_0x00400b60(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400be0(&UNK_004013ce,&UNK_004013cc); if (lStack_20 != 0) { lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_004013dc); *(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0; } func_0x00400b40(lStack_20); } } CWE78_OS_Command_Injection__wchar_t_file_execlp_41_badSink(puStack_10); return; }
['gcc']
14,888
void CWE78_OS_Command_Injection__wchar_t_file_execlp_41_goodG2BSink(wchar_t * data) { /* wexeclp - searches for the location of the command among * the directories specified by the PATH environment variable */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL); }
['/* wexeclp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121855/CWE78_OS_Command_Injection__wchar_t_file_execlp_41.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_41_goodG2BSink
void CWE78_OS_Command_Injection__wchar_t_file_execlp_41_goodG2BSink(undefined8 param_1) { func_0x00400ad0(&UNK_00401220,&UNK_00401220,&UNK_00401214,&UNK_00401204,param_1,0); return; }
['gcc']
14,889
void CWE78_OS_Command_Injection__wchar_t_file_execlp_41_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121855/CWE78_OS_Command_Injection__wchar_t_file_execlp_41.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_41_good
void CWE78_OS_Command_Injection__wchar_t_file_execlp_41_good(void) { goodG2B(); return; }
['gcc']
14,890
void CWE78_OS_Command_Injection__wchar_t_file_execlp_42_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; data = badSource(data); /* wexeclp - searches for the location of the command among * the directories specified by the PATH environment variable */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL); }
['/* wexeclp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121856/CWE78_OS_Command_Injection__wchar_t_file_execlp_42.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_42_bad
void CWE78_OS_Command_Injection__wchar_t_file_execlp_42_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [49]; undefined8 *puStack_10; uStack_1a8 = 0; uStack_1a0 = 0; puVar2 = auStack_198; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1a8; puStack_10 = (undefined8 *)badSource(puStack_10); func_0x00400bf0(&UNK_004013e0,&UNK_004013e0,&UNK_004013d4,&UNK_004013c4,puStack_10,0); return; }
['gcc']
14,891
void CWE78_OS_Command_Injection__wchar_t_file_execlp_42_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121856/CWE78_OS_Command_Injection__wchar_t_file_execlp_42.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_42_good
void CWE78_OS_Command_Injection__wchar_t_file_execlp_42_good(void) { goodG2B(); return; }
['gcc']
14,892
void CWE78_OS_Command_Injection__wchar_t_file_execlp_44_bad() { wchar_t * data; /* define a function pointer */ void (*funcPtr) (wchar_t *) = badSink; wchar_t dataBuffer[100] = L""; data = dataBuffer; { /* Read input from a file */ size_t dataLen = wcslen(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 (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } /* use the function pointer */ funcPtr(data); }
['/* define a function pointer */', '/* 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 fgetws fails */', '/* use the function pointer */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121858/CWE78_OS_Command_Injection__wchar_t_file_execlp_44.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_44_bad
void CWE78_OS_Command_Injection__wchar_t_file_execlp_44_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1b8; undefined8 uStack_1b0; undefined8 auStack_1a8 [48]; long lStack_28; long lStack_20; undefined8 *puStack_18; code *pcStack_10; pcStack_10 = badSink; uStack_1b8 = 0; uStack_1b0 = 0; puVar2 = auStack_1a8; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_18 = &uStack_1b8; lStack_20 = func_0x00400b60(puStack_18); if (1 < 100U - lStack_20) { lStack_28 = func_0x00400be0(&UNK_004013ce,&UNK_004013cc); if (lStack_28 != 0) { lVar1 = func_0x00400b10(lStack_20 * 4 + (long)puStack_18,100 - (int)lStack_20,lStack_28); if (lVar1 == 0) { printLine(&UNK_004013dc); *(undefined4 *)((long)puStack_18 + lStack_20 * 4) = 0; } func_0x00400b40(lStack_28); } } (*pcStack_10)(puStack_18); return; }
['gcc']
14,893
void CWE78_OS_Command_Injection__wchar_t_file_execlp_44_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121858/CWE78_OS_Command_Injection__wchar_t_file_execlp_44.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_44_good
void CWE78_OS_Command_Injection__wchar_t_file_execlp_44_good(void) { goodG2B(); return; }
['gcc']
14,894
void CWE78_OS_Command_Injection__wchar_t_file_execlp_45_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; { /* Read input from a file */ size_t dataLen = wcslen(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 (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } CWE78_OS_Command_Injection__wchar_t_file_execlp_45_badData = data; badSink(); }
['/* 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 fgetws fails */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121859/CWE78_OS_Command_Injection__wchar_t_file_execlp_45.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_45_bad
void CWE78_OS_Command_Injection__wchar_t_file_execlp_45_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1b8; undefined8 uStack_1b0; undefined8 auStack_1a8 [49]; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_1b8 = 0; uStack_1b0 = 0; puVar2 = auStack_1a8; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1b8; lStack_18 = func_0x00400b60(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400be0(&UNK_004013de,&UNK_004013dc); if (lStack_20 != 0) { lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_004013ec); *(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0; } func_0x00400b40(lStack_20); } } CWE78_OS_Command_Injection__wchar_t_file_execlp_45_badData = puStack_10; badSink(); return; }
['gcc']
14,895
void CWE78_OS_Command_Injection__wchar_t_file_execlp_45_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121859/CWE78_OS_Command_Injection__wchar_t_file_execlp_45.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_45_good
void CWE78_OS_Command_Injection__wchar_t_file_execlp_45_good(void) { goodG2B(); return; }
['gcc']
14,896
void CWE78_OS_Command_Injection__wchar_t_file_execlp_67_bad() { wchar_t * data; CWE78_OS_Command_Injection__wchar_t_file_execlp_67_structType myStruct; wchar_t dataBuffer[100] = L""; data = dataBuffer; { /* Read input from a file */ size_t dataLen = wcslen(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 (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgetws() failed"); /* Restore NUL terminator if fgetws fails */ data[dataLen] = L'\0'; } fclose(pFile); } } } myStruct.structFirst = data; CWE78_OS_Command_Injection__wchar_t_file_execlp_67b_badSink(myStruct); }
['/* 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 fgetws fails */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121870/CWE78_OS_Command_Injection__wchar_t_file_execlp_67a.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_67_bad
void CWE78_OS_Command_Injection__wchar_t_file_execlp_67_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1b8; undefined8 uStack_1b0; undefined8 auStack_1a8 [48]; undefined8 *puStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_1b8 = 0; uStack_1b0 = 0; puVar2 = auStack_1a8; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1b8; lStack_18 = func_0x00400b60(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400be0(&UNK_004013b6,&UNK_004013b4); if (lStack_20 != 0) { lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_004013c4); *(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0; } func_0x00400b40(lStack_20); } } puStack_28 = puStack_10; CWE78_OS_Command_Injection__wchar_t_file_execlp_67b_badSink(puStack_10); return; }
['gcc']
14,897
void CWE78_OS_Command_Injection__wchar_t_file_execlp_67_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121870/CWE78_OS_Command_Injection__wchar_t_file_execlp_67a.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_67_good
void CWE78_OS_Command_Injection__wchar_t_file_execlp_67_good(void) { goodG2B(); return; }
['gcc']
14,898
void CWE78_OS_Command_Injection__wchar_t_file_execlp_67b_badSink(CWE78_OS_Command_Injection__wchar_t_file_execlp_67_structType myStruct) { wchar_t * data = myStruct.structFirst; /* wexeclp - searches for the location of the command among * the directories specified by the PATH environment variable */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL); }
['/* wexeclp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121870/CWE78_OS_Command_Injection__wchar_t_file_execlp_67b.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_67b_badSink
void CWE78_OS_Command_Injection__wchar_t_file_execlp_67b_badSink(undefined8 param_1) { func_0x00400bf0(&UNK_004013d0,&UNK_004013d0,&UNK_004013c4,&UNK_004013b4,param_1,0); return; }
['gcc']
14,899
void CWE78_OS_Command_Injection__wchar_t_file_execlp_67b_goodG2BSink(CWE78_OS_Command_Injection__wchar_t_file_execlp_67_structType myStruct) { wchar_t * data = myStruct.structFirst; /* wexeclp - searches for the location of the command among * the directories specified by the PATH environment variable */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ EXECLP(COMMAND_INT, COMMAND_INT, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL); }
['/* wexeclp - searches for the location of the command among\r\n * the directories specified by the PATH environment variable */', '/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/121870/CWE78_OS_Command_Injection__wchar_t_file_execlp_67b.c
CWE78_OS_Command_Injection__wchar_t_file_execlp_67b_goodG2BSink
void CWE78_OS_Command_Injection__wchar_t_file_execlp_67b_goodG2BSink(undefined8 param_1) { func_0x00400ad0(&UNK_00401230,&UNK_00401230,&UNK_00401224,&UNK_00401214,param_1,0); return; }
['gcc']