Unnamed: 0
int64
0
56k
source_code
stringlengths
55
5.98k
comments
stringlengths
2
1.76k
label
stringclasses
68 values
dataset_name
stringclasses
1 value
file_name
stringlengths
208
265
function
stringlengths
27
87
decompiled_code
stringlengths
68
3.97k
compiler_options
stringclasses
1 value
13,600
void CWE78_OS_Command_Injection__char_file_popen_65_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119516/CWE78_OS_Command_Injection__char_file_popen_65a.c
CWE78_OS_Command_Injection__char_file_popen_65_good
void CWE78_OS_Command_Injection__char_file_popen_65_good(void) { goodG2B(); return; }
['gcc']
13,601
void CWE78_OS_Command_Injection__char_file_popen_65b_badSink(char * data) { { FILE *pipe; /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ pipe = POPEN(data, "wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119516/CWE78_OS_Command_Injection__char_file_popen_65b.c
CWE78_OS_Command_Injection__char_file_popen_65b_badSink
void CWE78_OS_Command_Injection__char_file_popen_65b_badSink(undefined8 param_1) { long lVar1; lVar1 = func_0x00400c20(param_1,&UNK_00401414); if (lVar1 != 0) { func_0x00400b90(lVar1); } return; }
['gcc']
13,602
void CWE78_OS_Command_Injection__char_file_popen_65b_goodG2BSink(char * data) { { FILE *pipe; /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ pipe = POPEN(data, "wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119516/CWE78_OS_Command_Injection__char_file_popen_65b.c
CWE78_OS_Command_Injection__char_file_popen_65b_goodG2BSink
void CWE78_OS_Command_Injection__char_file_popen_65b_goodG2BSink(undefined8 param_1) { long lVar1; lVar1 = func_0x00400ad0(param_1,&UNK_00401264); if (lVar1 != 0) { func_0x00400a50(lVar1); } return; }
['gcc']
13,603
void CWE78_OS_Command_Injection__char_file_popen_66_bad() { char * data; char * dataArray[5]; char data_buf[100] = FULL_COMMAND; data = data_buf; { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } /* put data in array */ dataArray[2] = data; CWE78_OS_Command_Injection__char_file_popen_66b_badSink(dataArray); }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* put data in array */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119517/CWE78_OS_Command_Injection__char_file_popen_66a.c
CWE78_OS_Command_Injection__char_file_popen_66_bad
void CWE78_OS_Command_Injection__char_file_popen_66_bad(void) { long lVar1; undefined8 uStack_b8; undefined8 uStack_b0; undefined8 uStack_a8; undefined8 uStack_a0; undefined8 uStack_98; undefined8 uStack_90; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined4 uStack_58; undefined auStack_48 [16]; undefined8 *puStack_38; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_b8 = 0x2068732f6e69622f; uStack_b0 = 0x20616c2d20736c; uStack_a8 = 0; uStack_a0 = 0; uStack_98 = 0; uStack_90 = 0; uStack_88 = 0; uStack_80 = 0; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; puStack_10 = &uStack_b8; lStack_18 = func_0x00400b70(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400c30(&UNK_00401436,&UNK_00401434); if (lStack_20 != 0) { lVar1 = func_0x00400bc0((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_00401444); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b60(lStack_20); } } puStack_38 = puStack_10; CWE78_OS_Command_Injection__char_file_popen_66b_badSink(auStack_48); return; }
['gcc']
13,604
void CWE78_OS_Command_Injection__char_file_popen_66_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119517/CWE78_OS_Command_Injection__char_file_popen_66a.c
CWE78_OS_Command_Injection__char_file_popen_66_good
void CWE78_OS_Command_Injection__char_file_popen_66_good(void) { goodG2B(); return; }
['gcc']
13,605
void CWE78_OS_Command_Injection__char_file_popen_66b_badSink(char * dataArray[]) { /* copy data out of dataArray */ char * data = dataArray[2]; { FILE *pipe; /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ pipe = POPEN(data, "wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* copy data out of dataArray */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119517/CWE78_OS_Command_Injection__char_file_popen_66b.c
CWE78_OS_Command_Injection__char_file_popen_66b_badSink
void CWE78_OS_Command_Injection__char_file_popen_66b_badSink(long param_1) { long lVar1; lVar1 = func_0x00400c20(*(undefined8 *)(param_1 + 0x10),&UNK_00401434); if (lVar1 != 0) { func_0x00400b90(lVar1); } return; }
['gcc']
13,606
void CWE78_OS_Command_Injection__char_file_popen_66b_goodG2BSink(char * dataArray[]) { char * data = dataArray[2]; { FILE *pipe; /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ pipe = POPEN(data, "wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119517/CWE78_OS_Command_Injection__char_file_popen_66b.c
CWE78_OS_Command_Injection__char_file_popen_66b_goodG2BSink
void CWE78_OS_Command_Injection__char_file_popen_66b_goodG2BSink(long param_1) { long lVar1; lVar1 = func_0x00400ad0(*(undefined8 *)(param_1 + 0x10),&UNK_00401284); if (lVar1 != 0) { func_0x00400a50(lVar1); } return; }
['gcc']
13,607
void CWE78_OS_Command_Injection__char_file_popen_67_bad() { char * data; CWE78_OS_Command_Injection__char_file_popen_67_structType myStruct; char data_buf[100] = FULL_COMMAND; data = data_buf; { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } myStruct.structFirst = data; CWE78_OS_Command_Injection__char_file_popen_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 fgets fails */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119518/CWE78_OS_Command_Injection__char_file_popen_67a.c
CWE78_OS_Command_Injection__char_file_popen_67_bad
void CWE78_OS_Command_Injection__char_file_popen_67_bad(void) { long lVar1; undefined8 uStack_98; undefined8 uStack_90; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined4 uStack_38; undefined8 *puStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_98 = 0x2068732f6e69622f; uStack_90 = 0x20616c2d20736c; uStack_88 = 0; uStack_80 = 0; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; puStack_10 = &uStack_98; lStack_18 = func_0x00400b70(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400c30(&UNK_00401426,&UNK_00401424); if (lStack_20 != 0) { lVar1 = func_0x00400bc0((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_00401434); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b60(lStack_20); } } puStack_28 = puStack_10; CWE78_OS_Command_Injection__char_file_popen_67b_badSink(puStack_10); return; }
['gcc']
13,608
void CWE78_OS_Command_Injection__char_file_popen_67_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119518/CWE78_OS_Command_Injection__char_file_popen_67a.c
CWE78_OS_Command_Injection__char_file_popen_67_good
void CWE78_OS_Command_Injection__char_file_popen_67_good(void) { goodG2B(); return; }
['gcc']
13,609
void CWE78_OS_Command_Injection__char_file_popen_67b_badSink(CWE78_OS_Command_Injection__char_file_popen_67_structType myStruct) { char * data = myStruct.structFirst; { FILE *pipe; /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ pipe = POPEN(data, "wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119518/CWE78_OS_Command_Injection__char_file_popen_67b.c
CWE78_OS_Command_Injection__char_file_popen_67b_badSink
void CWE78_OS_Command_Injection__char_file_popen_67b_badSink(undefined8 param_1) { long lVar1; lVar1 = func_0x00400c20(param_1,&UNK_00401424); if (lVar1 != 0) { func_0x00400b90(lVar1); } return; }
['gcc']
13,610
void CWE78_OS_Command_Injection__char_file_popen_67b_goodG2BSink(CWE78_OS_Command_Injection__char_file_popen_67_structType myStruct) { char * data = myStruct.structFirst; { FILE *pipe; /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ pipe = POPEN(data, "wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119518/CWE78_OS_Command_Injection__char_file_popen_67b.c
CWE78_OS_Command_Injection__char_file_popen_67b_goodG2BSink
void CWE78_OS_Command_Injection__char_file_popen_67b_goodG2BSink(undefined8 param_1) { long lVar1; lVar1 = func_0x00400ad0(param_1,&UNK_00401264); if (lVar1 != 0) { func_0x00400a50(lVar1); } return; }
['gcc']
13,611
void CWE78_OS_Command_Injection__char_file_popen_68_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } CWE78_OS_Command_Injection__char_file_popen_68_badData = data; CWE78_OS_Command_Injection__char_file_popen_68b_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 fgets fails */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119519/CWE78_OS_Command_Injection__char_file_popen_68a.c
CWE78_OS_Command_Injection__char_file_popen_68_bad
void CWE78_OS_Command_Injection__char_file_popen_68_bad(void) { long lVar1; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; lStack_18 = func_0x00400b70(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400c30(&UNK_00401416,&UNK_00401414); if (lStack_20 != 0) { lVar1 = func_0x00400bc0((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_00401424); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b60(lStack_20); } } CWE78_OS_Command_Injection__char_file_popen_68_badData = puStack_10; CWE78_OS_Command_Injection__char_file_popen_68b_badSink(); return; }
['gcc']
13,612
void CWE78_OS_Command_Injection__char_file_popen_68_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119519/CWE78_OS_Command_Injection__char_file_popen_68a.c
CWE78_OS_Command_Injection__char_file_popen_68_good
void CWE78_OS_Command_Injection__char_file_popen_68_good(void) { goodG2B(); return; }
['gcc']
13,613
void CWE78_OS_Command_Injection__char_file_popen_68b_badSink() { char * data = CWE78_OS_Command_Injection__char_file_popen_68_badData; { FILE *pipe; /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ pipe = POPEN(data, "wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119519/CWE78_OS_Command_Injection__char_file_popen_68b.c
CWE78_OS_Command_Injection__char_file_popen_68b_badSink
void CWE78_OS_Command_Injection__char_file_popen_68b_badSink(void) { long lVar1; lVar1 = func_0x00400c20(CWE78_OS_Command_Injection__char_file_popen_68_badData,&UNK_00401414); if (lVar1 != 0) { func_0x00400b90(lVar1); } return; }
['gcc']
13,614
void CWE78_OS_Command_Injection__char_file_popen_68b_goodG2BSink() { char * data = CWE78_OS_Command_Injection__char_file_popen_68_goodG2BData; { FILE *pipe; /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ pipe = POPEN(data, "wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119519/CWE78_OS_Command_Injection__char_file_popen_68b.c
CWE78_OS_Command_Injection__char_file_popen_68b_goodG2BSink
void CWE78_OS_Command_Injection__char_file_popen_68b_goodG2BSink(void) { long lVar1; lVar1 = func_0x00400ad0(CWE78_OS_Command_Injection__char_file_popen_68_goodG2BData,&UNK_00401264); if (lVar1 != 0) { func_0x00400a50(lVar1); } return; }
['gcc']
13,615
void CWE78_OS_Command_Injection__char_file_system_01_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* 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/119527/CWE78_OS_Command_Injection__char_file_system_01.c
CWE78_OS_Command_Injection__char_file_system_01_bad
void CWE78_OS_Command_Injection__char_file_system_01_bad(void) { int iVar1; long lVar2; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; lStack_18 = func_0x00400b70(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400c20(&UNK_004013e6,&UNK_004013e4); if (lStack_20 != 0) { lVar2 = func_0x00400bc0((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar2 == 0) { printLine(&UNK_004013f4); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b60(lStack_20); } } iVar1 = func_0x00400b80(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401403); func_0x00400c30(1); } return; }
['gcc']
13,616
void CWE78_OS_Command_Injection__char_file_system_01_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119527/CWE78_OS_Command_Injection__char_file_system_01.c
CWE78_OS_Command_Injection__char_file_system_01_good
void CWE78_OS_Command_Injection__char_file_system_01_good(void) { goodG2B(); return; }
['gcc']
13,617
void CWE78_OS_Command_Injection__char_file_system_02_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; if(1) { { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } } /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* 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/119528/CWE78_OS_Command_Injection__char_file_system_02.c
CWE78_OS_Command_Injection__char_file_system_02_bad
void CWE78_OS_Command_Injection__char_file_system_02_bad(void) { int iVar1; long lVar2; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; lStack_18 = func_0x00400b70(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400c20(&UNK_004013e6,&UNK_004013e4); if (lStack_20 != 0) { lVar2 = func_0x00400bc0((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar2 == 0) { printLine(&UNK_004013f4); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b60(lStack_20); } } iVar1 = func_0x00400b80(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401403); func_0x00400c30(1); } return; }
['gcc']
13,618
void CWE78_OS_Command_Injection__char_file_system_02_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119528/CWE78_OS_Command_Injection__char_file_system_02.c
CWE78_OS_Command_Injection__char_file_system_02_good
void CWE78_OS_Command_Injection__char_file_system_02_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,619
void CWE78_OS_Command_Injection__char_file_system_03_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; if(5==5) { { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } } /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* 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/119529/CWE78_OS_Command_Injection__char_file_system_03.c
CWE78_OS_Command_Injection__char_file_system_03_bad
void CWE78_OS_Command_Injection__char_file_system_03_bad(void) { int iVar1; long lVar2; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; lStack_18 = func_0x00400b70(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400c20(&UNK_004013e6,&UNK_004013e4); if (lStack_20 != 0) { lVar2 = func_0x00400bc0((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar2 == 0) { printLine(&UNK_004013f4); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b60(lStack_20); } } iVar1 = func_0x00400b80(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401403); func_0x00400c30(1); } return; }
['gcc']
13,620
void CWE78_OS_Command_Injection__char_file_system_03_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119529/CWE78_OS_Command_Injection__char_file_system_03.c
CWE78_OS_Command_Injection__char_file_system_03_good
void CWE78_OS_Command_Injection__char_file_system_03_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,621
void CWE78_OS_Command_Injection__char_file_system_04_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; if(STATIC_CONST_TRUE) { { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } } /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* 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/119530/CWE78_OS_Command_Injection__char_file_system_04.c
CWE78_OS_Command_Injection__char_file_system_04_bad
void CWE78_OS_Command_Injection__char_file_system_04_bad(void) { int iVar1; long lVar2; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; lStack_18 = func_0x00400b70(puStack_10); if ((1 < 100U - lStack_18) && (lStack_20 = func_0x00400c20(&UNK_004013fe,&UNK_004013fc), lStack_20 != 0)) { lVar2 = func_0x00400bc0((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar2 == 0) { printLine(&UNK_0040140c); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b60(lStack_20); } iVar1 = func_0x00400b80(puStack_10); if (iVar1 < 1) { printLine(&UNK_0040141b); func_0x00400c30(1); } return; }
['gcc']
13,622
void CWE78_OS_Command_Injection__char_file_system_04_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119530/CWE78_OS_Command_Injection__char_file_system_04.c
CWE78_OS_Command_Injection__char_file_system_04_good
void CWE78_OS_Command_Injection__char_file_system_04_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,623
void CWE78_OS_Command_Injection__char_file_system_05_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; if(staticTrue) { { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } } /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* 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/119531/CWE78_OS_Command_Injection__char_file_system_05.c
CWE78_OS_Command_Injection__char_file_system_05_bad
void CWE78_OS_Command_Injection__char_file_system_05_bad(void) { int iVar1; long lVar2; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; if (staticTrue != 0) { lStack_18 = func_0x00400b70(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400c20(&UNK_004013f6,&UNK_004013f4); if (lStack_20 != 0) { lVar2 = func_0x00400bc0((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar2 == 0) { printLine(&UNK_00401404); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b60(lStack_20); } } } iVar1 = func_0x00400b80(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401413); func_0x00400c30(1); } return; }
['gcc']
13,624
void CWE78_OS_Command_Injection__char_file_system_05_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119531/CWE78_OS_Command_Injection__char_file_system_05.c
CWE78_OS_Command_Injection__char_file_system_05_good
void CWE78_OS_Command_Injection__char_file_system_05_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,625
void CWE78_OS_Command_Injection__char_file_system_06_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; if(STATIC_CONST_FIVE==5) { { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } } /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* 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/119532/CWE78_OS_Command_Injection__char_file_system_06.c
CWE78_OS_Command_Injection__char_file_system_06_bad
void CWE78_OS_Command_Injection__char_file_system_06_bad(void) { int iVar1; long lVar2; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; lStack_18 = func_0x00400b70(puStack_10); if ((1 < 100U - lStack_18) && (lStack_20 = func_0x00400c20(&UNK_004013fa,&UNK_004013f8), lStack_20 != 0)) { lVar2 = func_0x00400bc0((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar2 == 0) { printLine(&UNK_00401408); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b60(lStack_20); } iVar1 = func_0x00400b80(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401417); func_0x00400c30(1); } return; }
['gcc']
13,626
void CWE78_OS_Command_Injection__char_file_system_06_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119532/CWE78_OS_Command_Injection__char_file_system_06.c
CWE78_OS_Command_Injection__char_file_system_06_good
void CWE78_OS_Command_Injection__char_file_system_06_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,627
void CWE78_OS_Command_Injection__char_file_system_07_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; if(staticFive==5) { { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } } /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* 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/119533/CWE78_OS_Command_Injection__char_file_system_07.c
CWE78_OS_Command_Injection__char_file_system_07_bad
void CWE78_OS_Command_Injection__char_file_system_07_bad(void) { int iVar1; long lVar2; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; if (staticFive == 5) { lStack_18 = func_0x00400b70(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400c20(&UNK_004013f6,&UNK_004013f4); if (lStack_20 != 0) { lVar2 = func_0x00400bc0((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar2 == 0) { printLine(&UNK_00401404); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b60(lStack_20); } } } iVar1 = func_0x00400b80(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401413); func_0x00400c30(1); } return; }
['gcc']
13,628
void CWE78_OS_Command_Injection__char_file_system_07_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119533/CWE78_OS_Command_Injection__char_file_system_07.c
CWE78_OS_Command_Injection__char_file_system_07_good
void CWE78_OS_Command_Injection__char_file_system_07_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,629
void CWE78_OS_Command_Injection__char_file_system_08_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; if(staticReturnsTrue()) { { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } } /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* 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/119534/CWE78_OS_Command_Injection__char_file_system_08.c
CWE78_OS_Command_Injection__char_file_system_08_bad
void CWE78_OS_Command_Injection__char_file_system_08_bad(void) { int iVar1; long lVar2; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; iVar1 = staticReturnsTrue(); if (iVar1 != 0) { lStack_18 = func_0x00400b70(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400c20(&UNK_00401416,&UNK_00401414); if (lStack_20 != 0) { lVar2 = func_0x00400bc0((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar2 == 0) { printLine(&UNK_00401424); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b60(lStack_20); } } } iVar1 = func_0x00400b80(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401433); func_0x00400c30(1); } return; }
['gcc']
13,630
void CWE78_OS_Command_Injection__char_file_system_08_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119534/CWE78_OS_Command_Injection__char_file_system_08.c
CWE78_OS_Command_Injection__char_file_system_08_good
void CWE78_OS_Command_Injection__char_file_system_08_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,631
void CWE78_OS_Command_Injection__char_file_system_09_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; if(GLOBAL_CONST_TRUE) { { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } } /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* 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/119535/CWE78_OS_Command_Injection__char_file_system_09.c
CWE78_OS_Command_Injection__char_file_system_09_bad
void CWE78_OS_Command_Injection__char_file_system_09_bad(void) { int iVar1; long lVar2; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; if (GLOBAL_CONST_TRUE != 0) { lStack_18 = func_0x00400b70(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400c20(&UNK_004013f6,&UNK_004013f4); if (lStack_20 != 0) { lVar2 = func_0x00400bc0((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar2 == 0) { printLine(&UNK_00401404); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b60(lStack_20); } } } iVar1 = func_0x00400b80(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401413); func_0x00400c30(1); } return; }
['gcc']
13,632
void CWE78_OS_Command_Injection__char_file_system_09_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119535/CWE78_OS_Command_Injection__char_file_system_09.c
CWE78_OS_Command_Injection__char_file_system_09_good
void CWE78_OS_Command_Injection__char_file_system_09_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,633
void CWE78_OS_Command_Injection__char_file_system_10_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; if(globalTrue) { { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } } /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* 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/119536/CWE78_OS_Command_Injection__char_file_system_10.c
CWE78_OS_Command_Injection__char_file_system_10_bad
void CWE78_OS_Command_Injection__char_file_system_10_bad(void) { int iVar1; long lVar2; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; if (globalTrue != 0) { lStack_18 = func_0x00400b70(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400c20(&UNK_004013f6,&UNK_004013f4); if (lStack_20 != 0) { lVar2 = func_0x00400bc0((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar2 == 0) { printLine(&UNK_00401404); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b60(lStack_20); } } } iVar1 = func_0x00400b80(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401413); func_0x00400c30(1); } return; }
['gcc']
13,634
void CWE78_OS_Command_Injection__char_file_system_10_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119536/CWE78_OS_Command_Injection__char_file_system_10.c
CWE78_OS_Command_Injection__char_file_system_10_good
void CWE78_OS_Command_Injection__char_file_system_10_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,635
void CWE78_OS_Command_Injection__char_file_system_11_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; if(globalReturnsTrue()) { { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } } /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* 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/119537/CWE78_OS_Command_Injection__char_file_system_11.c
CWE78_OS_Command_Injection__char_file_system_11_bad
void CWE78_OS_Command_Injection__char_file_system_11_bad(void) { int iVar1; long lVar2; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { lStack_18 = func_0x00400b70(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400c20(&UNK_004013f6,&UNK_004013f4); if (lStack_20 != 0) { lVar2 = func_0x00400bc0((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar2 == 0) { printLine(&UNK_00401404); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b60(lStack_20); } } } iVar1 = func_0x00400b80(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401413); func_0x00400c30(1); } return; }
['gcc']
13,636
void CWE78_OS_Command_Injection__char_file_system_11_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119537/CWE78_OS_Command_Injection__char_file_system_11.c
CWE78_OS_Command_Injection__char_file_system_11_good
void CWE78_OS_Command_Injection__char_file_system_11_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,637
void CWE78_OS_Command_Injection__char_file_system_12_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; if(globalReturnsTrueOrFalse()) { { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } } else { /* FIX: Append a fixed string to data (not user / external input) */ strcat(data, "*.*"); } /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* FIX: Append a fixed string to data (not user / external input) */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119538/CWE78_OS_Command_Injection__char_file_system_12.c
CWE78_OS_Command_Injection__char_file_system_12_bad
void CWE78_OS_Command_Injection__char_file_system_12_bad(void) { char cVar1; int iVar2; long lVar3; ulong uVar4; undefined8 *puVar5; byte bVar6; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; bVar6 = 0; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; iVar2 = globalReturnsTrueOrFalse(); if (iVar2 == 0) { uVar4 = 0xffffffffffffffff; puVar5 = puStack_10; do { if (uVar4 == 0) break; uVar4 = uVar4 - 1; cVar1 = *(char *)puVar5; puVar5 = (undefined8 *)((long)puVar5 + (ulong)bVar6 * -2 + 1); } while (cVar1 != '\0'); *(undefined4 *)((long)puStack_10 + (~uVar4 - 1)) = 0x2a2e2a; } else { lStack_18 = func_0x00400b70(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400c20(&UNK_00401436,&UNK_00401434); if (lStack_20 != 0) { lVar3 = func_0x00400bc0((char *)((long)puStack_10 + lStack_18),100 - (int)lStack_18, lStack_20); if (lVar3 == 0) { printLine(&UNK_00401444); *(char *)(lStack_18 + (long)puStack_10) = '\0'; } func_0x00400b60(lStack_20); } } } iVar2 = func_0x00400b80(puStack_10); if (iVar2 < 1) { printLine(&UNK_00401453); func_0x00400c30(1); } return; }
['gcc']
13,638
void CWE78_OS_Command_Injection__char_file_system_12_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119538/CWE78_OS_Command_Injection__char_file_system_12.c
CWE78_OS_Command_Injection__char_file_system_12_good
void CWE78_OS_Command_Injection__char_file_system_12_good(void) { goodG2B(); return; }
['gcc']
13,639
void CWE78_OS_Command_Injection__char_file_system_13_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; if(GLOBAL_CONST_FIVE==5) { { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } } /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* 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/119539/CWE78_OS_Command_Injection__char_file_system_13.c
CWE78_OS_Command_Injection__char_file_system_13_bad
void CWE78_OS_Command_Injection__char_file_system_13_bad(void) { int iVar1; long lVar2; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; if (GLOBAL_CONST_FIVE == 5) { lStack_18 = func_0x00400b70(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400c20(&UNK_004013f6,&UNK_004013f4); if (lStack_20 != 0) { lVar2 = func_0x00400bc0((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar2 == 0) { printLine(&UNK_00401404); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b60(lStack_20); } } } iVar1 = func_0x00400b80(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401413); func_0x00400c30(1); } return; }
['gcc']
13,640
void CWE78_OS_Command_Injection__char_file_system_13_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119539/CWE78_OS_Command_Injection__char_file_system_13.c
CWE78_OS_Command_Injection__char_file_system_13_good
void CWE78_OS_Command_Injection__char_file_system_13_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,641
void CWE78_OS_Command_Injection__char_file_system_14_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; if(globalFive==5) { { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } } /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* 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/119540/CWE78_OS_Command_Injection__char_file_system_14.c
CWE78_OS_Command_Injection__char_file_system_14_bad
void CWE78_OS_Command_Injection__char_file_system_14_bad(void) { int iVar1; long lVar2; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; if (globalFive == 5) { lStack_18 = func_0x00400b70(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400c20(&UNK_004013f6,&UNK_004013f4); if (lStack_20 != 0) { lVar2 = func_0x00400bc0((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar2 == 0) { printLine(&UNK_00401404); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b60(lStack_20); } } } iVar1 = func_0x00400b80(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401413); func_0x00400c30(1); } return; }
['gcc']
13,642
void CWE78_OS_Command_Injection__char_file_system_14_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119540/CWE78_OS_Command_Injection__char_file_system_14.c
CWE78_OS_Command_Injection__char_file_system_14_good
void CWE78_OS_Command_Injection__char_file_system_14_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,643
void CWE78_OS_Command_Injection__char_file_system_15_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; switch(6) { case 6: { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119541/CWE78_OS_Command_Injection__char_file_system_15.c
CWE78_OS_Command_Injection__char_file_system_15_bad
void CWE78_OS_Command_Injection__char_file_system_15_bad(void) { int iVar1; long lVar2; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; lStack_18 = func_0x00400b70(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400c20(&UNK_004013e6,&UNK_004013e4); if (lStack_20 != 0) { lVar2 = func_0x00400bc0((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar2 == 0) { printLine(&UNK_004013f4); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b60(lStack_20); } } iVar1 = func_0x00400b80(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401403); func_0x00400c30(1); } return; }
['gcc']
13,644
void CWE78_OS_Command_Injection__char_file_system_15_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119541/CWE78_OS_Command_Injection__char_file_system_15.c
CWE78_OS_Command_Injection__char_file_system_15_good
void CWE78_OS_Command_Injection__char_file_system_15_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,645
void CWE78_OS_Command_Injection__char_file_system_16_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; while(1) { { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } break; } /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* 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/119542/CWE78_OS_Command_Injection__char_file_system_16.c
CWE78_OS_Command_Injection__char_file_system_16_bad
void CWE78_OS_Command_Injection__char_file_system_16_bad(void) { int iVar1; long lVar2; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; lStack_18 = func_0x00400b70(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400c20(&UNK_004013e6,&UNK_004013e4); if (lStack_20 != 0) { lVar2 = func_0x00400bc0((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar2 == 0) { printLine(&UNK_004013f4); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b60(lStack_20); } } iVar1 = func_0x00400b80(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401403); func_0x00400c30(1); } return; }
['gcc']
13,646
void CWE78_OS_Command_Injection__char_file_system_16_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119542/CWE78_OS_Command_Injection__char_file_system_16.c
CWE78_OS_Command_Injection__char_file_system_16_good
void CWE78_OS_Command_Injection__char_file_system_16_good(void) { goodG2B(); return; }
['gcc']
13,647
void CWE78_OS_Command_Injection__char_file_system_17_bad() { int i; char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; for(i = 0; i < 1; i++) { { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } } /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* 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/119543/CWE78_OS_Command_Injection__char_file_system_17.c
CWE78_OS_Command_Injection__char_file_system_17_bad
void CWE78_OS_Command_Injection__char_file_system_17_bad(void) { int iVar1; long lVar2; undefined8 uStack_98; undefined8 uStack_90; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined4 uStack_38; long lStack_28; long lStack_20; undefined8 *puStack_18; int iStack_c; uStack_98 = 0x2068732f6e69622f; uStack_90 = 0x20616c2d20736c; uStack_88 = 0; uStack_80 = 0; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; puStack_18 = &uStack_98; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { lStack_20 = func_0x00400b70(puStack_18); if (1 < 100U - lStack_20) { lStack_28 = func_0x00400c20(&UNK_00401416,&UNK_00401414); if (lStack_28 != 0) { lVar2 = func_0x00400bc0((long)puStack_18 + lStack_20,100 - (int)lStack_20,lStack_28); if (lVar2 == 0) { printLine(&UNK_00401424); *(undefined *)(lStack_20 + (long)puStack_18) = 0; } func_0x00400b60(lStack_28); } } } iVar1 = func_0x00400b80(puStack_18); if (iVar1 < 1) { printLine(&UNK_00401433); func_0x00400c30(1); } return; }
['gcc']
13,648
void CWE78_OS_Command_Injection__char_file_system_17_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119543/CWE78_OS_Command_Injection__char_file_system_17.c
CWE78_OS_Command_Injection__char_file_system_17_good
void CWE78_OS_Command_Injection__char_file_system_17_good(void) { goodG2B(); return; }
['gcc']
13,649
void CWE78_OS_Command_Injection__char_file_system_18_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; goto source; source: { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* 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/119544/CWE78_OS_Command_Injection__char_file_system_18.c
CWE78_OS_Command_Injection__char_file_system_18_bad
void CWE78_OS_Command_Injection__char_file_system_18_bad(void) { int iVar1; long lVar2; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; lStack_18 = func_0x00400b70(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400c20(&UNK_004013e6,&UNK_004013e4); if (lStack_20 != 0) { lVar2 = func_0x00400bc0((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar2 == 0) { printLine(&UNK_004013f4); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b60(lStack_20); } } iVar1 = func_0x00400b80(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401403); func_0x00400c30(1); } return; }
['gcc']
13,650
void CWE78_OS_Command_Injection__char_file_system_18_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119544/CWE78_OS_Command_Injection__char_file_system_18.c
CWE78_OS_Command_Injection__char_file_system_18_good
void CWE78_OS_Command_Injection__char_file_system_18_good(void) { goodG2B(); return; }
['gcc']
13,651
void CWE78_OS_Command_Injection__char_file_system_21_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; badStatic = 1; /* true */ data = badSource(data); /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* true */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119545/CWE78_OS_Command_Injection__char_file_system_21.c
CWE78_OS_Command_Injection__char_file_system_21_bad
void CWE78_OS_Command_Injection__char_file_system_21_bad(void) { int iVar1; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined8 *puStack_10; uStack_78 = 0x2068732f6e69622f; uStack_70 = 0x20616c2d20736c; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; puStack_10 = &uStack_78; badStatic = 1; puStack_10 = (undefined8 *)badSource(puStack_10); iVar1 = func_0x00400b80(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401443); func_0x00400c30(1); } return; }
['gcc']
13,652
void CWE78_OS_Command_Injection__char_file_system_21_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119545/CWE78_OS_Command_Injection__char_file_system_21.c
CWE78_OS_Command_Injection__char_file_system_21_good
void CWE78_OS_Command_Injection__char_file_system_21_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,653
void CWE78_OS_Command_Injection__char_file_system_22_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; CWE78_OS_Command_Injection__char_file_system_22_badGlobal = 1; /* true */ data = CWE78_OS_Command_Injection__char_file_system_22_badSource(data); /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* true */', '/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119546/CWE78_OS_Command_Injection__char_file_system_22a.c
CWE78_OS_Command_Injection__char_file_system_22_bad
void CWE78_OS_Command_Injection__char_file_system_22_bad(void) { int iVar1; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined8 *puStack_10; uStack_78 = 0x2068732f6e69622f; uStack_70 = 0x20616c2d20736c; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; puStack_10 = &uStack_78; CWE78_OS_Command_Injection__char_file_system_22_badGlobal = 1; puStack_10 = (undefined8 *)CWE78_OS_Command_Injection__char_file_system_22_badSource(puStack_10); iVar1 = func_0x00400b80(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401424); func_0x00400c30(1); } return; }
['gcc']
13,654
void CWE78_OS_Command_Injection__char_file_system_22_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119546/CWE78_OS_Command_Injection__char_file_system_22a.c
CWE78_OS_Command_Injection__char_file_system_22_good
void CWE78_OS_Command_Injection__char_file_system_22_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
13,655
char * CWE78_OS_Command_Injection__char_file_system_22_badSource(char * data) { if(CWE78_OS_Command_Injection__char_file_system_22_badGlobal) { { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } } 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 fgets fails */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119546/CWE78_OS_Command_Injection__char_file_system_22b.c
CWE78_OS_Command_Injection__char_file_system_22_badSource
long CWE78_OS_Command_Injection__char_file_system_22_badSource(long param_1) { long lVar1; long lVar2; long lVar3; if (CWE78_OS_Command_Injection__char_file_system_22_badGlobal != 0) { lVar1 = func_0x00400b70(param_1); if (1 < 100U - lVar1) { lVar2 = func_0x00400c20(&UNK_00401426,&UNK_00401424); if (lVar2 != 0) { lVar3 = func_0x00400bc0(param_1 + lVar1,100 - (int)lVar1,lVar2); if (lVar3 == 0) { printLine(&UNK_00401434); *(undefined *)(lVar1 + param_1) = 0; } func_0x00400b60(lVar2); } } } return param_1; }
['gcc']
13,656
char * CWE78_OS_Command_Injection__char_file_system_22_goodG2B1Source(char * data) { if(CWE78_OS_Command_Injection__char_file_system_22_goodG2B1Global) { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); } else { /* FIX: Append a fixed string to data (not user / external input) */ strcat(data, "*.*"); } return data; }
['/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* FIX: Append a fixed string to data (not user / external input) */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119546/CWE78_OS_Command_Injection__char_file_system_22b.c
CWE78_OS_Command_Injection__char_file_system_22_goodG2B1Source
char * CWE78_OS_Command_Injection__char_file_system_22_goodG2B1Source(char *param_1) { char cVar1; ulong uVar2; char *pcVar3; if (CWE78_OS_Command_Injection__char_file_system_22_goodG2B1Global == 0) { uVar2 = 0xffffffffffffffff; pcVar3 = param_1; do { if (uVar2 == 0) break; uVar2 = uVar2 - 1; cVar1 = *pcVar3; pcVar3 = pcVar3 + 1; } while (cVar1 != '\0'); *(undefined4 *)(param_1 + (~uVar2 - 1)) = 0x2a2e2a; } else { printLine(&UNK_00401394); } return param_1; }
['gcc']
13,657
char * CWE78_OS_Command_Injection__char_file_system_22_goodG2B2Source(char * data) { if(CWE78_OS_Command_Injection__char_file_system_22_goodG2B2Global) { /* FIX: Append a fixed string to data (not user / external input) */ strcat(data, "*.*"); } return data; }
['/* FIX: Append a fixed string to data (not user / external input) */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119546/CWE78_OS_Command_Injection__char_file_system_22b.c
CWE78_OS_Command_Injection__char_file_system_22_goodG2B2Source
char * CWE78_OS_Command_Injection__char_file_system_22_goodG2B2Source(char *param_1) { char cVar1; ulong uVar2; char *pcVar3; if (CWE78_OS_Command_Injection__char_file_system_22_goodG2B2Global != 0) { uVar2 = 0xffffffffffffffff; pcVar3 = param_1; do { if (uVar2 == 0) break; uVar2 = uVar2 - 1; cVar1 = *pcVar3; pcVar3 = pcVar3 + 1; } while (cVar1 != '\0'); *(undefined4 *)(param_1 + (~uVar2 - 1)) = 0x2a2e2a; } return param_1; }
['gcc']
13,658
void CWE78_OS_Command_Injection__char_file_system_31_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } { char * dataCopy = data; char * data = dataCopy; /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } } }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* 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/119547/CWE78_OS_Command_Injection__char_file_system_31.c
CWE78_OS_Command_Injection__char_file_system_31_bad
void CWE78_OS_Command_Injection__char_file_system_31_bad(void) { int iVar1; long lVar2; undefined8 uStack_98; undefined8 uStack_90; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined4 uStack_38; undefined8 *puStack_30; undefined8 *puStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_98 = 0x2068732f6e69622f; uStack_90 = 0x20616c2d20736c; uStack_88 = 0; uStack_80 = 0; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; puStack_10 = &uStack_98; lStack_18 = func_0x00400b70(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400c20(&UNK_00401406,&UNK_00401404); if (lStack_20 != 0) { lVar2 = func_0x00400bc0((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar2 == 0) { printLine(&UNK_00401414); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b60(lStack_20); } } puStack_28 = puStack_10; puStack_30 = puStack_10; iVar1 = func_0x00400b80(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401423); func_0x00400c30(1); } return; }
['gcc']
13,659
void CWE78_OS_Command_Injection__char_file_system_31_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119547/CWE78_OS_Command_Injection__char_file_system_31.c
CWE78_OS_Command_Injection__char_file_system_31_good
void CWE78_OS_Command_Injection__char_file_system_31_good(void) { goodG2B(); return; }
['gcc']
13,660
void CWE78_OS_Command_Injection__char_file_system_32_bad() { char * data; char * *dataPtr1 = &data; char * *dataPtr2 = &data; char data_buf[100] = FULL_COMMAND; data = data_buf; { char * data = *dataPtr1; { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } *dataPtr1 = data; } { char * data = *dataPtr2; /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } } }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* 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/119548/CWE78_OS_Command_Injection__char_file_system_32.c
CWE78_OS_Command_Injection__char_file_system_32_bad
/* WARNING: Restarted to delay deadcode elimination for space: stack */ void CWE78_OS_Command_Injection__char_file_system_32_bad(void) { int iVar1; long lVar2; undefined8 uStack_a8; undefined8 uStack_a0; undefined8 uStack_98; undefined8 uStack_90; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined4 uStack_48; undefined8 *puStack_40; undefined8 *puStack_38; long lStack_30; long lStack_28; undefined8 *puStack_20; undefined8 **ppuStack_18; undefined8 **ppuStack_10; ppuStack_10 = &puStack_40; ppuStack_18 = &puStack_40; uStack_a8 = 0x2068732f6e69622f; uStack_a0 = 0x20616c2d20736c; uStack_98 = 0; uStack_90 = 0; uStack_88 = 0; uStack_80 = 0; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; puStack_40 = &uStack_a8; puStack_20 = puStack_40; lStack_28 = func_0x00400b70(puStack_40); if (1 < 100U - lStack_28) { lStack_30 = func_0x00400c20(&UNK_00401426,&UNK_00401424); if (lStack_30 != 0) { lVar2 = func_0x00400bc0((long)puStack_20 + lStack_28,100 - (int)lStack_28,lStack_30); if (lVar2 == 0) { printLine(&UNK_00401434); *(undefined *)(lStack_28 + (long)puStack_20) = 0; } func_0x00400b60(lStack_30); } } *ppuStack_10 = puStack_20; puStack_38 = *ppuStack_18; iVar1 = func_0x00400b80(puStack_38); if (iVar1 < 1) { printLine(&UNK_00401443); func_0x00400c30(1); } return; }
['gcc']
13,661
void CWE78_OS_Command_Injection__char_file_system_32_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119548/CWE78_OS_Command_Injection__char_file_system_32.c
CWE78_OS_Command_Injection__char_file_system_32_good
void CWE78_OS_Command_Injection__char_file_system_32_good(void) { goodG2B(); return; }
['gcc']
13,662
void CWE78_OS_Command_Injection__char_file_system_34_bad() { char * data; CWE78_OS_Command_Injection__char_file_system_34_unionType myUnion; char data_buf[100] = FULL_COMMAND; data = data_buf; { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } myUnion.unionFirst = data; { char * data = myUnion.unionSecond; /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } } }
['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgets fails */', '/* 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/119550/CWE78_OS_Command_Injection__char_file_system_34.c
CWE78_OS_Command_Injection__char_file_system_34_bad
void CWE78_OS_Command_Injection__char_file_system_34_bad(void) { int iVar1; long lVar2; undefined8 uStack_98; undefined8 uStack_90; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined4 uStack_38; undefined8 *puStack_30; undefined8 *puStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_98 = 0x2068732f6e69622f; uStack_90 = 0x20616c2d20736c; uStack_88 = 0; uStack_80 = 0; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; puStack_10 = &uStack_98; lStack_18 = func_0x00400b70(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400c20(&UNK_00401406,&UNK_00401404); if (lStack_20 != 0) { lVar2 = func_0x00400bc0((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar2 == 0) { printLine(&UNK_00401414); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b60(lStack_20); } } puStack_30 = puStack_10; puStack_28 = puStack_10; iVar1 = func_0x00400b80(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401423); func_0x00400c30(1); } return; }
['gcc']
13,663
void CWE78_OS_Command_Injection__char_file_system_34_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119550/CWE78_OS_Command_Injection__char_file_system_34.c
CWE78_OS_Command_Injection__char_file_system_34_good
void CWE78_OS_Command_Injection__char_file_system_34_good(void) { goodG2B(); return; }
['gcc']
13,664
void CWE78_OS_Command_Injection__char_file_system_41_badSink(char * data) { /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119551/CWE78_OS_Command_Injection__char_file_system_41.c
CWE78_OS_Command_Injection__char_file_system_41_badSink
void CWE78_OS_Command_Injection__char_file_system_41_badSink(undefined8 param_1) { int iVar1; iVar1 = func_0x00400b80(param_1); if (iVar1 < 1) { printLine(&UNK_00401404); func_0x00400c30(1); } return; }
['gcc']
13,665
void CWE78_OS_Command_Injection__char_file_system_41_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } CWE78_OS_Command_Injection__char_file_system_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 fgets fails */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119551/CWE78_OS_Command_Injection__char_file_system_41.c
CWE78_OS_Command_Injection__char_file_system_41_bad
void CWE78_OS_Command_Injection__char_file_system_41_bad(void) { long lVar1; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; lStack_18 = func_0x00400b70(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400c20(&UNK_00401420,&UNK_0040141e); if (lStack_20 != 0) { lVar1 = func_0x00400bc0((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_0040142e); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b60(lStack_20); } } CWE78_OS_Command_Injection__char_file_system_41_badSink(puStack_10); return; }
['gcc']
13,666
void CWE78_OS_Command_Injection__char_file_system_41_goodG2BSink(char * data) { /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119551/CWE78_OS_Command_Injection__char_file_system_41.c
CWE78_OS_Command_Injection__char_file_system_41_goodG2BSink
void CWE78_OS_Command_Injection__char_file_system_41_goodG2BSink(undefined8 param_1) { int iVar1; iVar1 = func_0x00400a40(param_1); if (iVar1 < 1) { printLine(&UNK_00401254); func_0x00400ad0(1); } return; }
['gcc']
13,667
void CWE78_OS_Command_Injection__char_file_system_41_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119551/CWE78_OS_Command_Injection__char_file_system_41.c
CWE78_OS_Command_Injection__char_file_system_41_good
void CWE78_OS_Command_Injection__char_file_system_41_good(void) { goodG2B(); return; }
['gcc']
13,668
void CWE78_OS_Command_Injection__char_file_system_42_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; data = badSource(data); /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119552/CWE78_OS_Command_Injection__char_file_system_42.c
CWE78_OS_Command_Injection__char_file_system_42_bad
void CWE78_OS_Command_Injection__char_file_system_42_bad(void) { int iVar1; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined8 *puStack_10; uStack_78 = 0x2068732f6e69622f; uStack_70 = 0x20616c2d20736c; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; puStack_10 = &uStack_78; puStack_10 = (undefined8 *)badSource(puStack_10); iVar1 = func_0x00400b80(puStack_10); if (iVar1 < 1) { printLine(&UNK_00401423); func_0x00400c30(1); } return; }
['gcc']
13,669
void CWE78_OS_Command_Injection__char_file_system_42_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119552/CWE78_OS_Command_Injection__char_file_system_42.c
CWE78_OS_Command_Injection__char_file_system_42_good
void CWE78_OS_Command_Injection__char_file_system_42_good(void) { goodG2B(); return; }
['gcc']
13,670
void CWE78_OS_Command_Injection__char_file_system_44_bad() { char * data; /* define a function pointer */ void (*funcPtr) (char *) = badSink; char data_buf[100] = FULL_COMMAND; data = data_buf; { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } /* 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 fgets fails */', '/* use the function pointer */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119554/CWE78_OS_Command_Injection__char_file_system_44.c
CWE78_OS_Command_Injection__char_file_system_44_bad
void CWE78_OS_Command_Injection__char_file_system_44_bad(void) { long lVar1; undefined8 uStack_98; undefined8 uStack_90; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined4 uStack_38; long lStack_28; long lStack_20; undefined8 *puStack_18; code *pcStack_10; pcStack_10 = badSink; uStack_98 = 0x2068732f6e69622f; uStack_90 = 0x20616c2d20736c; uStack_88 = 0; uStack_80 = 0; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; puStack_18 = &uStack_98; lStack_20 = func_0x00400b70(puStack_18); if (1 < 100U - lStack_20) { lStack_28 = func_0x00400c20(&UNK_00401430,&UNK_0040142e); if (lStack_28 != 0) { lVar1 = func_0x00400bc0((long)puStack_18 + lStack_20,100 - (int)lStack_20,lStack_28); if (lVar1 == 0) { printLine(&UNK_0040143e); *(undefined *)(lStack_20 + (long)puStack_18) = 0; } func_0x00400b60(lStack_28); } } (*pcStack_10)(puStack_18); return; }
['gcc']
13,671
void CWE78_OS_Command_Injection__char_file_system_44_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119554/CWE78_OS_Command_Injection__char_file_system_44.c
CWE78_OS_Command_Injection__char_file_system_44_good
void CWE78_OS_Command_Injection__char_file_system_44_good(void) { goodG2B(); return; }
['gcc']
13,672
void CWE78_OS_Command_Injection__char_file_system_45_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } CWE78_OS_Command_Injection__char_file_system_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 fgets fails */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119555/CWE78_OS_Command_Injection__char_file_system_45.c
CWE78_OS_Command_Injection__char_file_system_45_bad
void CWE78_OS_Command_Injection__char_file_system_45_bad(void) { long lVar1; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; lStack_18 = func_0x00400b70(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400c20(&UNK_00401430,&UNK_0040142e); if (lStack_20 != 0) { lVar1 = func_0x00400bc0((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_0040143e); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b60(lStack_20); } } CWE78_OS_Command_Injection__char_file_system_45_badData = puStack_10; badSink(); return; }
['gcc']
13,673
void CWE78_OS_Command_Injection__char_file_system_45_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119555/CWE78_OS_Command_Injection__char_file_system_45.c
CWE78_OS_Command_Injection__char_file_system_45_good
void CWE78_OS_Command_Injection__char_file_system_45_good(void) { goodG2B(); return; }
['gcc']
13,674
void CWE78_OS_Command_Injection__char_file_system_51_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } CWE78_OS_Command_Injection__char_file_system_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 fgets fails */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119556/CWE78_OS_Command_Injection__char_file_system_51a.c
CWE78_OS_Command_Injection__char_file_system_51_bad
void CWE78_OS_Command_Injection__char_file_system_51_bad(void) { long lVar1; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; lStack_18 = func_0x00400b70(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400c20(&UNK_00401406,&UNK_00401404); if (lStack_20 != 0) { lVar1 = func_0x00400bc0((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_00401414); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b60(lStack_20); } } CWE78_OS_Command_Injection__char_file_system_51b_badSink(puStack_10); return; }
['gcc']
13,675
void CWE78_OS_Command_Injection__char_file_system_51_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119556/CWE78_OS_Command_Injection__char_file_system_51a.c
CWE78_OS_Command_Injection__char_file_system_51_good
void CWE78_OS_Command_Injection__char_file_system_51_good(void) { goodG2B(); return; }
['gcc']
13,676
void CWE78_OS_Command_Injection__char_file_system_51b_badSink(char * data) { /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119556/CWE78_OS_Command_Injection__char_file_system_51b.c
CWE78_OS_Command_Injection__char_file_system_51b_badSink
void CWE78_OS_Command_Injection__char_file_system_51b_badSink(undefined8 param_1) { int iVar1; iVar1 = func_0x00400b80(param_1); if (iVar1 < 1) { printLine(&UNK_00401404); func_0x00400c30(1); } return; }
['gcc']
13,677
void CWE78_OS_Command_Injection__char_file_system_51b_goodG2BSink(char * data) { /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119556/CWE78_OS_Command_Injection__char_file_system_51b.c
CWE78_OS_Command_Injection__char_file_system_51b_goodG2BSink
void CWE78_OS_Command_Injection__char_file_system_51b_goodG2BSink(undefined8 param_1) { int iVar1; iVar1 = func_0x00400a40(param_1); if (iVar1 < 1) { printLine(&UNK_00401254); func_0x00400ad0(1); } return; }
['gcc']
13,678
void CWE78_OS_Command_Injection__char_file_system_52_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } CWE78_OS_Command_Injection__char_file_system_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 fgets fails */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119557/CWE78_OS_Command_Injection__char_file_system_52a.c
CWE78_OS_Command_Injection__char_file_system_52_bad
void CWE78_OS_Command_Injection__char_file_system_52_bad(void) { long lVar1; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; lStack_18 = func_0x00400b70(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400c20(&UNK_00401426,&UNK_00401424); if (lStack_20 != 0) { lVar1 = func_0x00400bc0((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_00401434); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b60(lStack_20); } } CWE78_OS_Command_Injection__char_file_system_52b_badSink(puStack_10); return; }
['gcc']
13,679
void CWE78_OS_Command_Injection__char_file_system_52_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119557/CWE78_OS_Command_Injection__char_file_system_52a.c
CWE78_OS_Command_Injection__char_file_system_52_good
void CWE78_OS_Command_Injection__char_file_system_52_good(void) { goodG2B(); return; }
['gcc']
13,680
void CWE78_OS_Command_Injection__char_file_system_52b_badSink(char * data) { CWE78_OS_Command_Injection__char_file_system_52c_badSink(data); }
[]
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119557/CWE78_OS_Command_Injection__char_file_system_52b.c
CWE78_OS_Command_Injection__char_file_system_52b_badSink
void CWE78_OS_Command_Injection__char_file_system_52b_badSink(undefined8 param_1) { CWE78_OS_Command_Injection__char_file_system_52c_badSink(param_1); return; }
['gcc']
13,681
void CWE78_OS_Command_Injection__char_file_system_52b_goodG2BSink(char * data) { CWE78_OS_Command_Injection__char_file_system_52c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119557/CWE78_OS_Command_Injection__char_file_system_52b.c
CWE78_OS_Command_Injection__char_file_system_52b_goodG2BSink
void CWE78_OS_Command_Injection__char_file_system_52b_goodG2BSink(undefined8 param_1) { CWE78_OS_Command_Injection__char_file_system_52c_goodG2BSink(param_1); return; }
['gcc']
13,682
void CWE78_OS_Command_Injection__char_file_system_52c_badSink(char * data) { /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119557/CWE78_OS_Command_Injection__char_file_system_52c.c
CWE78_OS_Command_Injection__char_file_system_52c_badSink
void CWE78_OS_Command_Injection__char_file_system_52c_badSink(undefined8 param_1) { int iVar1; iVar1 = func_0x00400b80(param_1); if (iVar1 < 1) { printLine(&UNK_00401424); func_0x00400c30(1); } return; }
['gcc']
13,683
void CWE78_OS_Command_Injection__char_file_system_52c_goodG2BSink(char * data) { /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119557/CWE78_OS_Command_Injection__char_file_system_52c.c
CWE78_OS_Command_Injection__char_file_system_52c_goodG2BSink
void CWE78_OS_Command_Injection__char_file_system_52c_goodG2BSink(undefined8 param_1) { int iVar1; iVar1 = func_0x00400a40(param_1); if (iVar1 < 1) { printLine(&UNK_00401274); func_0x00400ad0(1); } return; }
['gcc']
13,684
void CWE78_OS_Command_Injection__char_file_system_53_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } CWE78_OS_Command_Injection__char_file_system_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 fgets fails */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119558/CWE78_OS_Command_Injection__char_file_system_53a.c
CWE78_OS_Command_Injection__char_file_system_53_bad
void CWE78_OS_Command_Injection__char_file_system_53_bad(void) { long lVar1; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; lStack_18 = func_0x00400b70(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400c20(&UNK_00401436,&UNK_00401434); if (lStack_20 != 0) { lVar1 = func_0x00400bc0((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_00401444); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b60(lStack_20); } } CWE78_OS_Command_Injection__char_file_system_53b_badSink(puStack_10); return; }
['gcc']
13,685
void CWE78_OS_Command_Injection__char_file_system_53_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119558/CWE78_OS_Command_Injection__char_file_system_53a.c
CWE78_OS_Command_Injection__char_file_system_53_good
void CWE78_OS_Command_Injection__char_file_system_53_good(void) { goodG2B(); return; }
['gcc']
13,686
void CWE78_OS_Command_Injection__char_file_system_53b_badSink(char * data) { CWE78_OS_Command_Injection__char_file_system_53c_badSink(data); }
[]
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119558/CWE78_OS_Command_Injection__char_file_system_53b.c
CWE78_OS_Command_Injection__char_file_system_53b_badSink
void CWE78_OS_Command_Injection__char_file_system_53b_badSink(undefined8 param_1) { CWE78_OS_Command_Injection__char_file_system_53c_badSink(param_1); return; }
['gcc']
13,687
void CWE78_OS_Command_Injection__char_file_system_53b_goodG2BSink(char * data) { CWE78_OS_Command_Injection__char_file_system_53c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119558/CWE78_OS_Command_Injection__char_file_system_53b.c
CWE78_OS_Command_Injection__char_file_system_53b_goodG2BSink
void CWE78_OS_Command_Injection__char_file_system_53b_goodG2BSink(undefined8 param_1) { CWE78_OS_Command_Injection__char_file_system_53c_goodG2BSink(param_1); return; }
['gcc']
13,688
void CWE78_OS_Command_Injection__char_file_system_53c_badSink(char * data) { CWE78_OS_Command_Injection__char_file_system_53d_badSink(data); }
[]
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119558/CWE78_OS_Command_Injection__char_file_system_53c.c
CWE78_OS_Command_Injection__char_file_system_53c_badSink
void CWE78_OS_Command_Injection__char_file_system_53c_badSink(undefined8 param_1) { CWE78_OS_Command_Injection__char_file_system_53d_badSink(param_1); return; }
['gcc']
13,689
void CWE78_OS_Command_Injection__char_file_system_53c_goodG2BSink(char * data) { CWE78_OS_Command_Injection__char_file_system_53d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119558/CWE78_OS_Command_Injection__char_file_system_53c.c
CWE78_OS_Command_Injection__char_file_system_53c_goodG2BSink
void CWE78_OS_Command_Injection__char_file_system_53c_goodG2BSink(undefined8 param_1) { CWE78_OS_Command_Injection__char_file_system_53d_goodG2BSink(param_1); return; }
['gcc']
13,690
void CWE78_OS_Command_Injection__char_file_system_53d_badSink(char * data) { /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119558/CWE78_OS_Command_Injection__char_file_system_53d.c
CWE78_OS_Command_Injection__char_file_system_53d_badSink
void CWE78_OS_Command_Injection__char_file_system_53d_badSink(undefined8 param_1) { int iVar1; iVar1 = func_0x00400b80(param_1); if (iVar1 < 1) { printLine(&UNK_00401434); func_0x00400c30(1); } return; }
['gcc']
13,691
void CWE78_OS_Command_Injection__char_file_system_53d_goodG2BSink(char * data) { /* POTENTIAL FLAW: Execute command in data possibly leading to command injection */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* POTENTIAL FLAW: Execute command in data possibly leading to command injection */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119558/CWE78_OS_Command_Injection__char_file_system_53d.c
CWE78_OS_Command_Injection__char_file_system_53d_goodG2BSink
void CWE78_OS_Command_Injection__char_file_system_53d_goodG2BSink(undefined8 param_1) { int iVar1; iVar1 = func_0x00400a40(param_1); if (iVar1 < 1) { printLine(&UNK_00401284); func_0x00400ad0(1); } return; }
['gcc']
13,692
void CWE78_OS_Command_Injection__char_file_system_54_bad() { char * data; char data_buf[100] = FULL_COMMAND; data = data_buf; { /* Read input from a file */ size_t dataLen = strlen(data); FILE * pFile; /* if there is room in data, attempt to read the input from a file */ if (100-dataLen > 1) { pFile = fopen(FILENAME, "r"); if (pFile != NULL) { /* POTENTIAL FLAW: Read data from a file */ if (fgets(data+dataLen, (int)(100-dataLen), pFile) == NULL) { printLine("fgets() failed"); /* Restore NUL terminator if fgets fails */ data[dataLen] = '\0'; } fclose(pFile); } } } CWE78_OS_Command_Injection__char_file_system_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 fgets fails */']
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119559/CWE78_OS_Command_Injection__char_file_system_54a.c
CWE78_OS_Command_Injection__char_file_system_54_bad
void CWE78_OS_Command_Injection__char_file_system_54_bad(void) { long lVar1; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; long lStack_20; long lStack_18; undefined8 *puStack_10; uStack_88 = 0x2068732f6e69622f; uStack_80 = 0x20616c2d20736c; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; lStack_18 = func_0x00400b70(puStack_10); if (1 < 100U - lStack_18) { lStack_20 = func_0x00400c20(&UNK_00401456,&UNK_00401454); if (lStack_20 != 0) { lVar1 = func_0x00400bc0((long)puStack_10 + lStack_18,100 - (int)lStack_18,lStack_20); if (lVar1 == 0) { printLine(&UNK_00401464); *(undefined *)(lStack_18 + (long)puStack_10) = 0; } func_0x00400b60(lStack_20); } } CWE78_OS_Command_Injection__char_file_system_54b_badSink(puStack_10); return; }
['gcc']
13,693
void CWE78_OS_Command_Injection__char_file_system_54_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119559/CWE78_OS_Command_Injection__char_file_system_54a.c
CWE78_OS_Command_Injection__char_file_system_54_good
void CWE78_OS_Command_Injection__char_file_system_54_good(void) { goodG2B(); return; }
['gcc']
13,694
void CWE78_OS_Command_Injection__char_file_system_54b_badSink(char * data) { CWE78_OS_Command_Injection__char_file_system_54c_badSink(data); }
[]
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119559/CWE78_OS_Command_Injection__char_file_system_54b.c
CWE78_OS_Command_Injection__char_file_system_54b_badSink
void CWE78_OS_Command_Injection__char_file_system_54b_badSink(undefined8 param_1) { CWE78_OS_Command_Injection__char_file_system_54c_badSink(param_1); return; }
['gcc']
13,695
void CWE78_OS_Command_Injection__char_file_system_54b_goodG2BSink(char * data) { CWE78_OS_Command_Injection__char_file_system_54c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119559/CWE78_OS_Command_Injection__char_file_system_54b.c
CWE78_OS_Command_Injection__char_file_system_54b_goodG2BSink
void CWE78_OS_Command_Injection__char_file_system_54b_goodG2BSink(undefined8 param_1) { CWE78_OS_Command_Injection__char_file_system_54c_goodG2BSink(param_1); return; }
['gcc']
13,696
void CWE78_OS_Command_Injection__char_file_system_54c_badSink(char * data) { CWE78_OS_Command_Injection__char_file_system_54d_badSink(data); }
[]
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119559/CWE78_OS_Command_Injection__char_file_system_54c.c
CWE78_OS_Command_Injection__char_file_system_54c_badSink
void CWE78_OS_Command_Injection__char_file_system_54c_badSink(undefined8 param_1) { CWE78_OS_Command_Injection__char_file_system_54d_badSink(param_1); return; }
['gcc']
13,697
void CWE78_OS_Command_Injection__char_file_system_54c_goodG2BSink(char * data) { CWE78_OS_Command_Injection__char_file_system_54d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119559/CWE78_OS_Command_Injection__char_file_system_54c.c
CWE78_OS_Command_Injection__char_file_system_54c_goodG2BSink
void CWE78_OS_Command_Injection__char_file_system_54c_goodG2BSink(undefined8 param_1) { CWE78_OS_Command_Injection__char_file_system_54d_goodG2BSink(param_1); return; }
['gcc']
13,698
void CWE78_OS_Command_Injection__char_file_system_54d_badSink(char * data) { CWE78_OS_Command_Injection__char_file_system_54e_badSink(data); }
[]
['CWE78']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119559/CWE78_OS_Command_Injection__char_file_system_54d.c
CWE78_OS_Command_Injection__char_file_system_54d_badSink
void CWE78_OS_Command_Injection__char_file_system_54d_badSink(undefined8 param_1) { CWE78_OS_Command_Injection__char_file_system_54e_badSink(param_1); return; }
['gcc']
13,699
void CWE78_OS_Command_Injection__char_file_system_54d_goodG2BSink(char * data) { CWE78_OS_Command_Injection__char_file_system_54e_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/119559/CWE78_OS_Command_Injection__char_file_system_54d.c
CWE78_OS_Command_Injection__char_file_system_54d_goodG2BSink
void CWE78_OS_Command_Injection__char_file_system_54d_goodG2BSink(undefined8 param_1) { CWE78_OS_Command_Injection__char_file_system_54e_goodG2BSink(param_1); return; }
['gcc']