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
1,600
void CWE426_Untrusted_Search_Path__char_popen_53b_badSink(char * data) { CWE426_Untrusted_Search_Path__char_popen_53c_badSink(data); }
[]
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102695/CWE426_Untrusted_Search_Path__char_popen_53b.c
CWE426_Untrusted_Search_Path__char_popen_53b_badSink
void CWE426_Untrusted_Search_Path__char_popen_53b_badSink(undefined8 param_1) { CWE426_Untrusted_Search_Path__char_popen_53c_badSink(param_1); return; }
['gcc']
1,601
void CWE426_Untrusted_Search_Path__char_popen_53b_goodG2BSink(char * data) { CWE426_Untrusted_Search_Path__char_popen_53c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102695/CWE426_Untrusted_Search_Path__char_popen_53b.c
CWE426_Untrusted_Search_Path__char_popen_53b_goodG2BSink
void CWE426_Untrusted_Search_Path__char_popen_53b_goodG2BSink(undefined8 param_1) { CWE426_Untrusted_Search_Path__char_popen_53c_goodG2BSink(param_1); return; }
['gcc']
1,602
void CWE426_Untrusted_Search_Path__char_popen_53c_badSink(char * data) { CWE426_Untrusted_Search_Path__char_popen_53d_badSink(data); }
[]
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102695/CWE426_Untrusted_Search_Path__char_popen_53c.c
CWE426_Untrusted_Search_Path__char_popen_53c_badSink
void CWE426_Untrusted_Search_Path__char_popen_53c_badSink(undefined8 param_1) { CWE426_Untrusted_Search_Path__char_popen_53d_badSink(param_1); return; }
['gcc']
1,603
void CWE426_Untrusted_Search_Path__char_popen_53c_goodG2BSink(char * data) { CWE426_Untrusted_Search_Path__char_popen_53d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102695/CWE426_Untrusted_Search_Path__char_popen_53c.c
CWE426_Untrusted_Search_Path__char_popen_53c_goodG2BSink
void CWE426_Untrusted_Search_Path__char_popen_53c_goodG2BSink(undefined8 param_1) { CWE426_Untrusted_Search_Path__char_popen_53d_goodG2BSink(param_1); return; }
['gcc']
1,604
void CWE426_Untrusted_Search_Path__char_popen_53d_badSink(char * data) { { FILE *pipe; /* POTENTIAL FLAW: Executing the popen() function without specifying the full path to the executable * can allow an attacker to run their own program */ pipe = POPEN(data, "wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* POTENTIAL FLAW: Executing the popen() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102695/CWE426_Untrusted_Search_Path__char_popen_53d.c
CWE426_Untrusted_Search_Path__char_popen_53d_badSink
void CWE426_Untrusted_Search_Path__char_popen_53d_badSink(undefined8 param_1) { long lVar1; lVar1 = func_0x00400ad0(param_1,&UNK_00401254); if (lVar1 != 0) { func_0x00400a50(lVar1); } return; }
['gcc']
1,605
void CWE426_Untrusted_Search_Path__char_popen_53d_goodG2BSink(char * data) { { FILE *pipe; /* POTENTIAL FLAW: Executing the popen() function without specifying the full path to the executable * can allow an attacker to run their own program */ pipe = POPEN(data, "wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* POTENTIAL FLAW: Executing the popen() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102695/CWE426_Untrusted_Search_Path__char_popen_53d.c
CWE426_Untrusted_Search_Path__char_popen_53d_goodG2BSink
void CWE426_Untrusted_Search_Path__char_popen_53d_goodG2BSink(undefined8 param_1) { long lVar1; lVar1 = func_0x00400ad0(param_1,&UNK_00401274); if (lVar1 != 0) { func_0x00400a50(lVar1); } return; }
['gcc']
1,606
void CWE426_Untrusted_Search_Path__char_popen_54_bad() { char * data; char dataBuffer[100] = ""; data = dataBuffer; /* FLAW: the full path is not specified */ strcpy(data, BAD_OS_COMMAND); CWE426_Untrusted_Search_Path__char_popen_54b_badSink(data); }
['/* FLAW: the full path is not specified */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102696/CWE426_Untrusted_Search_Path__char_popen_54a.c
CWE426_Untrusted_Search_Path__char_popen_54_bad
void CWE426_Untrusted_Search_Path__char_popen_54_bad(void) { undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined8 *puStack_10; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; puStack_10 = &uStack_78; /* WARNING: Ignoring partial resolution of indirect */ uStack_78._0_4_ = 0x2d20736c; /* WARNING: Ignoring partial resolution of indirect */ uStack_78._4_2_ = 0x616c; /* WARNING: Ignoring partial resolution of indirect */ uStack_78._6_1_ = 0; CWE426_Untrusted_Search_Path__char_popen_54b_badSink(puStack_10); return; }
['gcc']
1,607
void CWE426_Untrusted_Search_Path__char_popen_54_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102696/CWE426_Untrusted_Search_Path__char_popen_54a.c
CWE426_Untrusted_Search_Path__char_popen_54_good
void CWE426_Untrusted_Search_Path__char_popen_54_good(void) { goodG2B(); return; }
['gcc']
1,608
void CWE426_Untrusted_Search_Path__char_popen_54b_badSink(char * data) { CWE426_Untrusted_Search_Path__char_popen_54c_badSink(data); }
[]
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102696/CWE426_Untrusted_Search_Path__char_popen_54b.c
CWE426_Untrusted_Search_Path__char_popen_54b_badSink
void CWE426_Untrusted_Search_Path__char_popen_54b_badSink(undefined8 param_1) { CWE426_Untrusted_Search_Path__char_popen_54c_badSink(param_1); return; }
['gcc']
1,609
void CWE426_Untrusted_Search_Path__char_popen_54b_goodG2BSink(char * data) { CWE426_Untrusted_Search_Path__char_popen_54c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102696/CWE426_Untrusted_Search_Path__char_popen_54b.c
CWE426_Untrusted_Search_Path__char_popen_54b_goodG2BSink
void CWE426_Untrusted_Search_Path__char_popen_54b_goodG2BSink(undefined8 param_1) { CWE426_Untrusted_Search_Path__char_popen_54c_goodG2BSink(param_1); return; }
['gcc']
1,610
void CWE426_Untrusted_Search_Path__char_popen_54c_badSink(char * data) { CWE426_Untrusted_Search_Path__char_popen_54d_badSink(data); }
[]
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102696/CWE426_Untrusted_Search_Path__char_popen_54c.c
CWE426_Untrusted_Search_Path__char_popen_54c_badSink
void CWE426_Untrusted_Search_Path__char_popen_54c_badSink(undefined8 param_1) { CWE426_Untrusted_Search_Path__char_popen_54d_badSink(param_1); return; }
['gcc']
1,611
void CWE426_Untrusted_Search_Path__char_popen_54c_goodG2BSink(char * data) { CWE426_Untrusted_Search_Path__char_popen_54d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102696/CWE426_Untrusted_Search_Path__char_popen_54c.c
CWE426_Untrusted_Search_Path__char_popen_54c_goodG2BSink
void CWE426_Untrusted_Search_Path__char_popen_54c_goodG2BSink(undefined8 param_1) { CWE426_Untrusted_Search_Path__char_popen_54d_goodG2BSink(param_1); return; }
['gcc']
1,612
void CWE426_Untrusted_Search_Path__char_popen_54d_badSink(char * data) { CWE426_Untrusted_Search_Path__char_popen_54e_badSink(data); }
[]
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102696/CWE426_Untrusted_Search_Path__char_popen_54d.c
CWE426_Untrusted_Search_Path__char_popen_54d_badSink
void CWE426_Untrusted_Search_Path__char_popen_54d_badSink(undefined8 param_1) { CWE426_Untrusted_Search_Path__char_popen_54e_badSink(param_1); return; }
['gcc']
1,613
void CWE426_Untrusted_Search_Path__char_popen_54d_goodG2BSink(char * data) { CWE426_Untrusted_Search_Path__char_popen_54e_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102696/CWE426_Untrusted_Search_Path__char_popen_54d.c
CWE426_Untrusted_Search_Path__char_popen_54d_goodG2BSink
void CWE426_Untrusted_Search_Path__char_popen_54d_goodG2BSink(undefined8 param_1) { CWE426_Untrusted_Search_Path__char_popen_54e_goodG2BSink(param_1); return; }
['gcc']
1,614
void CWE426_Untrusted_Search_Path__char_popen_54e_badSink(char * data) { { FILE *pipe; /* POTENTIAL FLAW: Executing the popen() function without specifying the full path to the executable * can allow an attacker to run their own program */ pipe = POPEN(data, "wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* POTENTIAL FLAW: Executing the popen() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102696/CWE426_Untrusted_Search_Path__char_popen_54e.c
CWE426_Untrusted_Search_Path__char_popen_54e_badSink
void CWE426_Untrusted_Search_Path__char_popen_54e_badSink(undefined8 param_1) { long lVar1; lVar1 = func_0x00400ad0(param_1,&UNK_00401274); if (lVar1 != 0) { func_0x00400a50(lVar1); } return; }
['gcc']
1,615
void CWE426_Untrusted_Search_Path__char_popen_54e_goodG2BSink(char * data) { { FILE *pipe; /* POTENTIAL FLAW: Executing the popen() function without specifying the full path to the executable * can allow an attacker to run their own program */ pipe = POPEN(data, "wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* POTENTIAL FLAW: Executing the popen() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102696/CWE426_Untrusted_Search_Path__char_popen_54e.c
CWE426_Untrusted_Search_Path__char_popen_54e_goodG2BSink
void CWE426_Untrusted_Search_Path__char_popen_54e_goodG2BSink(undefined8 param_1) { long lVar1; lVar1 = func_0x00400ad0(param_1,&UNK_00401294); if (lVar1 != 0) { func_0x00400a50(lVar1); } return; }
['gcc']
1,616
void CWE426_Untrusted_Search_Path__char_popen_63_bad() { char * data; char dataBuffer[100] = ""; data = dataBuffer; /* FLAW: the full path is not specified */ strcpy(data, BAD_OS_COMMAND); CWE426_Untrusted_Search_Path__char_popen_63b_badSink(&data); }
['/* FLAW: the full path is not specified */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102699/CWE426_Untrusted_Search_Path__char_popen_63a.c
CWE426_Untrusted_Search_Path__char_popen_63_bad
void CWE426_Untrusted_Search_Path__char_popen_63_bad(void) { undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined8 *puStack_10; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; puStack_10 = &uStack_78; /* WARNING: Ignoring partial resolution of indirect */ uStack_78._0_4_ = 0x2d20736c; /* WARNING: Ignoring partial resolution of indirect */ uStack_78._4_2_ = 0x616c; /* WARNING: Ignoring partial resolution of indirect */ uStack_78._6_1_ = 0; CWE426_Untrusted_Search_Path__char_popen_63b_badSink(&puStack_10); return; }
['gcc']
1,617
void CWE426_Untrusted_Search_Path__char_popen_63_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102699/CWE426_Untrusted_Search_Path__char_popen_63a.c
CWE426_Untrusted_Search_Path__char_popen_63_good
void CWE426_Untrusted_Search_Path__char_popen_63_good(void) { goodG2B(); return; }
['gcc']
1,618
void CWE426_Untrusted_Search_Path__char_popen_63b_badSink(char * * dataPtr) { char * data = *dataPtr; { FILE *pipe; /* POTENTIAL FLAW: Executing the popen() function without specifying the full path to the executable * can allow an attacker to run their own program */ pipe = POPEN(data, "wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* POTENTIAL FLAW: Executing the popen() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102699/CWE426_Untrusted_Search_Path__char_popen_63b.c
CWE426_Untrusted_Search_Path__char_popen_63b_badSink
void CWE426_Untrusted_Search_Path__char_popen_63b_badSink(undefined8 *param_1) { long lVar1; lVar1 = func_0x00400ad0(*param_1,&UNK_00401234); if (lVar1 != 0) { func_0x00400a50(lVar1); } return; }
['gcc']
1,619
void CWE426_Untrusted_Search_Path__char_popen_63b_goodG2BSink(char * * dataPtr) { char * data = *dataPtr; { FILE *pipe; /* POTENTIAL FLAW: Executing the popen() function without specifying the full path to the executable * can allow an attacker to run their own program */ pipe = POPEN(data, "wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* POTENTIAL FLAW: Executing the popen() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102699/CWE426_Untrusted_Search_Path__char_popen_63b.c
CWE426_Untrusted_Search_Path__char_popen_63b_goodG2BSink
void CWE426_Untrusted_Search_Path__char_popen_63b_goodG2BSink(undefined8 *param_1) { long lVar1; lVar1 = func_0x00400ad0(*param_1,&UNK_00401244); if (lVar1 != 0) { func_0x00400a50(lVar1); } return; }
['gcc']
1,620
void CWE426_Untrusted_Search_Path__char_popen_64_bad() { char * data; char dataBuffer[100] = ""; data = dataBuffer; /* FLAW: the full path is not specified */ strcpy(data, BAD_OS_COMMAND); CWE426_Untrusted_Search_Path__char_popen_64b_badSink(&data); }
['/* FLAW: the full path is not specified */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102700/CWE426_Untrusted_Search_Path__char_popen_64a.c
CWE426_Untrusted_Search_Path__char_popen_64_bad
void CWE426_Untrusted_Search_Path__char_popen_64_bad(void) { undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined8 *puStack_10; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; puStack_10 = &uStack_78; /* WARNING: Ignoring partial resolution of indirect */ uStack_78._0_4_ = 0x2d20736c; /* WARNING: Ignoring partial resolution of indirect */ uStack_78._4_2_ = 0x616c; /* WARNING: Ignoring partial resolution of indirect */ uStack_78._6_1_ = 0; CWE426_Untrusted_Search_Path__char_popen_64b_badSink(&puStack_10); return; }
['gcc']
1,621
void CWE426_Untrusted_Search_Path__char_popen_64_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102700/CWE426_Untrusted_Search_Path__char_popen_64a.c
CWE426_Untrusted_Search_Path__char_popen_64_good
void CWE426_Untrusted_Search_Path__char_popen_64_good(void) { goodG2B(); return; }
['gcc']
1,622
void CWE426_Untrusted_Search_Path__char_popen_64b_badSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ char * * dataPtr = (char * *)dataVoidPtr; /* dereference dataPtr into data */ char * data = (*dataPtr); { FILE *pipe; /* POTENTIAL FLAW: Executing the popen() function without specifying the full path to the executable * can allow an attacker to run their own program */ pipe = POPEN(data, "wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: Executing the popen() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102700/CWE426_Untrusted_Search_Path__char_popen_64b.c
CWE426_Untrusted_Search_Path__char_popen_64b_badSink
void CWE426_Untrusted_Search_Path__char_popen_64b_badSink(undefined8 *param_1) { long lVar1; lVar1 = func_0x00400ad0(*param_1,&UNK_00401234); if (lVar1 != 0) { func_0x00400a50(lVar1); } return; }
['gcc']
1,623
void CWE426_Untrusted_Search_Path__char_popen_64b_goodG2BSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ char * * dataPtr = (char * *)dataVoidPtr; /* dereference dataPtr into data */ char * data = (*dataPtr); { FILE *pipe; /* POTENTIAL FLAW: Executing the popen() function without specifying the full path to the executable * can allow an attacker to run their own program */ pipe = POPEN(data, "wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: Executing the popen() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102700/CWE426_Untrusted_Search_Path__char_popen_64b.c
CWE426_Untrusted_Search_Path__char_popen_64b_goodG2BSink
void CWE426_Untrusted_Search_Path__char_popen_64b_goodG2BSink(undefined8 *param_1) { long lVar1; lVar1 = func_0x00400ad0(*param_1,&UNK_00401254); if (lVar1 != 0) { func_0x00400a50(lVar1); } return; }
['gcc']
1,624
void CWE426_Untrusted_Search_Path__char_popen_66_bad() { char * data; char * dataArray[5]; char dataBuffer[100] = ""; data = dataBuffer; /* FLAW: the full path is not specified */ strcpy(data, BAD_OS_COMMAND); /* put data in array */ dataArray[2] = data; CWE426_Untrusted_Search_Path__char_popen_66b_badSink(dataArray); }
['/* FLAW: the full path is not specified */', '/* put data in array */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102702/CWE426_Untrusted_Search_Path__char_popen_66a.c
CWE426_Untrusted_Search_Path__char_popen_66_bad
void CWE426_Untrusted_Search_Path__char_popen_66_bad(void) { undefined8 uStack_a8; undefined8 uStack_a0; undefined8 uStack_98; undefined8 uStack_90; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined4 uStack_48; undefined auStack_38 [16]; undefined8 *puStack_28; undefined8 *puStack_10; 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; uStack_50 = 0; uStack_48 = 0; puStack_28 = &uStack_a8; /* WARNING: Ignoring partial resolution of indirect */ uStack_a8._0_4_ = 0x2d20736c; /* WARNING: Ignoring partial resolution of indirect */ uStack_a8._4_2_ = 0x616c; /* WARNING: Ignoring partial resolution of indirect */ uStack_a8._6_1_ = 0; puStack_10 = puStack_28; CWE426_Untrusted_Search_Path__char_popen_66b_badSink(auStack_38); return; }
['gcc']
1,625
void CWE426_Untrusted_Search_Path__char_popen_66_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102702/CWE426_Untrusted_Search_Path__char_popen_66a.c
CWE426_Untrusted_Search_Path__char_popen_66_good
void CWE426_Untrusted_Search_Path__char_popen_66_good(void) { goodG2B(); return; }
['gcc']
1,626
void CWE426_Untrusted_Search_Path__char_popen_66b_badSink(char * dataArray[]) { /* copy data out of dataArray */ char * data = dataArray[2]; { FILE *pipe; /* POTENTIAL FLAW: Executing the popen() function without specifying the full path to the executable * can allow an attacker to run their own program */ pipe = POPEN(data, "wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* copy data out of dataArray */', '/* POTENTIAL FLAW: Executing the popen() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102702/CWE426_Untrusted_Search_Path__char_popen_66b.c
CWE426_Untrusted_Search_Path__char_popen_66b_badSink
void CWE426_Untrusted_Search_Path__char_popen_66b_badSink(long param_1) { long lVar1; lVar1 = func_0x00400ad0(*(undefined8 *)(param_1 + 0x10),&UNK_00401244); if (lVar1 != 0) { func_0x00400a50(lVar1); } return; }
['gcc']
1,627
void CWE426_Untrusted_Search_Path__char_popen_66b_goodG2BSink(char * dataArray[]) { char * data = dataArray[2]; { FILE *pipe; /* POTENTIAL FLAW: Executing the popen() function without specifying the full path to the executable * can allow an attacker to run their own program */ pipe = POPEN(data, "wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* POTENTIAL FLAW: Executing the popen() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102702/CWE426_Untrusted_Search_Path__char_popen_66b.c
CWE426_Untrusted_Search_Path__char_popen_66b_goodG2BSink
void CWE426_Untrusted_Search_Path__char_popen_66b_goodG2BSink(long param_1) { long lVar1; lVar1 = func_0x00400ad0(*(undefined8 *)(param_1 + 0x10),&UNK_00401264); if (lVar1 != 0) { func_0x00400a50(lVar1); } return; }
['gcc']
1,628
void CWE426_Untrusted_Search_Path__char_popen_67_bad() { char * data; CWE426_Untrusted_Search_Path__char_popen_67_structType myStruct; char dataBuffer[100] = ""; data = dataBuffer; /* FLAW: the full path is not specified */ strcpy(data, BAD_OS_COMMAND); myStruct.structFirst = data; CWE426_Untrusted_Search_Path__char_popen_67b_badSink(myStruct); }
['/* FLAW: the full path is not specified */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102703/CWE426_Untrusted_Search_Path__char_popen_67a.c
CWE426_Untrusted_Search_Path__char_popen_67_bad
void CWE426_Untrusted_Search_Path__char_popen_67_bad(void) { undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; undefined8 *puStack_18; undefined8 *puStack_10; uStack_88 = 0; uStack_80 = 0; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_18 = &uStack_88; /* WARNING: Ignoring partial resolution of indirect */ uStack_88._0_4_ = 0x2d20736c; /* WARNING: Ignoring partial resolution of indirect */ uStack_88._4_2_ = 0x616c; /* WARNING: Ignoring partial resolution of indirect */ uStack_88._6_1_ = 0; puStack_10 = puStack_18; CWE426_Untrusted_Search_Path__char_popen_67b_badSink(puStack_18); return; }
['gcc']
1,629
void CWE426_Untrusted_Search_Path__char_popen_67_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102703/CWE426_Untrusted_Search_Path__char_popen_67a.c
CWE426_Untrusted_Search_Path__char_popen_67_good
void CWE426_Untrusted_Search_Path__char_popen_67_good(void) { goodG2B(); return; }
['gcc']
1,630
void CWE426_Untrusted_Search_Path__char_popen_67b_badSink(CWE426_Untrusted_Search_Path__char_popen_67_structType myStruct) { char * data = myStruct.structFirst; { FILE *pipe; /* POTENTIAL FLAW: Executing the popen() function without specifying the full path to the executable * can allow an attacker to run their own program */ pipe = POPEN(data, "wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* POTENTIAL FLAW: Executing the popen() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102703/CWE426_Untrusted_Search_Path__char_popen_67b.c
CWE426_Untrusted_Search_Path__char_popen_67b_badSink
void CWE426_Untrusted_Search_Path__char_popen_67b_badSink(undefined8 param_1) { long lVar1; lVar1 = func_0x00400ad0(param_1,&UNK_00401234); if (lVar1 != 0) { func_0x00400a50(lVar1); } return; }
['gcc']
1,631
void CWE426_Untrusted_Search_Path__char_popen_67b_goodG2BSink(CWE426_Untrusted_Search_Path__char_popen_67_structType myStruct) { char * data = myStruct.structFirst; { FILE *pipe; /* POTENTIAL FLAW: Executing the popen() function without specifying the full path to the executable * can allow an attacker to run their own program */ pipe = POPEN(data, "wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* POTENTIAL FLAW: Executing the popen() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102703/CWE426_Untrusted_Search_Path__char_popen_67b.c
CWE426_Untrusted_Search_Path__char_popen_67b_goodG2BSink
void CWE426_Untrusted_Search_Path__char_popen_67b_goodG2BSink(undefined8 param_1) { long lVar1; lVar1 = func_0x00400ad0(param_1,&UNK_00401254); if (lVar1 != 0) { func_0x00400a50(lVar1); } return; }
['gcc']
1,632
void CWE426_Untrusted_Search_Path__char_system_52_bad() { char * data; char dataBuffer[100] = ""; data = dataBuffer; /* FLAW: the full path is not specified */ strcpy(data, BAD_OS_COMMAND); CWE426_Untrusted_Search_Path__char_system_52b_badSink(data); }
['/* FLAW: the full path is not specified */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102742/CWE426_Untrusted_Search_Path__char_system_52a.c
CWE426_Untrusted_Search_Path__char_system_52_bad
void CWE426_Untrusted_Search_Path__char_system_52_bad(void) { undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined8 *puStack_10; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; puStack_10 = &uStack_78; /* WARNING: Ignoring partial resolution of indirect */ uStack_78._0_4_ = 0x2d20736c; /* WARNING: Ignoring partial resolution of indirect */ uStack_78._4_2_ = 0x616c; /* WARNING: Ignoring partial resolution of indirect */ uStack_78._6_1_ = 0; CWE426_Untrusted_Search_Path__char_system_52b_badSink(puStack_10); return; }
['gcc']
1,633
void CWE426_Untrusted_Search_Path__char_system_52_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102742/CWE426_Untrusted_Search_Path__char_system_52a.c
CWE426_Untrusted_Search_Path__char_system_52_good
void CWE426_Untrusted_Search_Path__char_system_52_good(void) { goodG2B(); return; }
['gcc']
1,634
void CWE426_Untrusted_Search_Path__char_system_52b_badSink(char * data) { CWE426_Untrusted_Search_Path__char_system_52c_badSink(data); }
[]
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102742/CWE426_Untrusted_Search_Path__char_system_52b.c
CWE426_Untrusted_Search_Path__char_system_52b_badSink
void CWE426_Untrusted_Search_Path__char_system_52b_badSink(undefined8 param_1) { CWE426_Untrusted_Search_Path__char_system_52c_badSink(param_1); return; }
['gcc']
1,635
void CWE426_Untrusted_Search_Path__char_system_52b_goodG2BSink(char * data) { CWE426_Untrusted_Search_Path__char_system_52c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102742/CWE426_Untrusted_Search_Path__char_system_52b.c
CWE426_Untrusted_Search_Path__char_system_52b_goodG2BSink
void CWE426_Untrusted_Search_Path__char_system_52b_goodG2BSink(undefined8 param_1) { CWE426_Untrusted_Search_Path__char_system_52c_goodG2BSink(param_1); return; }
['gcc']
1,636
void CWE426_Untrusted_Search_Path__char_system_52c_badSink(char * data) { /* POTENTIAL FLAW: Executing the system() function without specifying the full path to the executable * can allow an attacker to run their own program */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* POTENTIAL FLAW: Executing the system() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102742/CWE426_Untrusted_Search_Path__char_system_52c.c
CWE426_Untrusted_Search_Path__char_system_52c_badSink
void CWE426_Untrusted_Search_Path__char_system_52c_badSink(undefined8 param_1) { int iVar1; iVar1 = func_0x00400a40(param_1); if (iVar1 < 1) { printLine(&UNK_00401234); func_0x00400ad0(1); } return; }
['gcc']
1,637
void CWE426_Untrusted_Search_Path__char_system_52c_goodG2BSink(char * data) { /* POTENTIAL FLAW: Executing the system() function without specifying the full path to the executable * can allow an attacker to run their own program */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* POTENTIAL FLAW: Executing the system() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102742/CWE426_Untrusted_Search_Path__char_system_52c.c
CWE426_Untrusted_Search_Path__char_system_52c_goodG2BSink
void CWE426_Untrusted_Search_Path__char_system_52c_goodG2BSink(undefined8 param_1) { int iVar1; iVar1 = func_0x00400a40(param_1); if (iVar1 < 1) { printLine(&UNK_00401254); func_0x00400ad0(1); } return; }
['gcc']
1,638
void CWE426_Untrusted_Search_Path__char_system_53_bad() { char * data; char dataBuffer[100] = ""; data = dataBuffer; /* FLAW: the full path is not specified */ strcpy(data, BAD_OS_COMMAND); CWE426_Untrusted_Search_Path__char_system_53b_badSink(data); }
['/* FLAW: the full path is not specified */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102743/CWE426_Untrusted_Search_Path__char_system_53a.c
CWE426_Untrusted_Search_Path__char_system_53_bad
void CWE426_Untrusted_Search_Path__char_system_53_bad(void) { undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined8 *puStack_10; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; puStack_10 = &uStack_78; /* WARNING: Ignoring partial resolution of indirect */ uStack_78._0_4_ = 0x2d20736c; /* WARNING: Ignoring partial resolution of indirect */ uStack_78._4_2_ = 0x616c; /* WARNING: Ignoring partial resolution of indirect */ uStack_78._6_1_ = 0; CWE426_Untrusted_Search_Path__char_system_53b_badSink(puStack_10); return; }
['gcc']
1,639
void CWE426_Untrusted_Search_Path__char_system_53_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102743/CWE426_Untrusted_Search_Path__char_system_53a.c
CWE426_Untrusted_Search_Path__char_system_53_good
void CWE426_Untrusted_Search_Path__char_system_53_good(void) { goodG2B(); return; }
['gcc']
1,640
void CWE426_Untrusted_Search_Path__char_system_53b_badSink(char * data) { CWE426_Untrusted_Search_Path__char_system_53c_badSink(data); }
[]
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102743/CWE426_Untrusted_Search_Path__char_system_53b.c
CWE426_Untrusted_Search_Path__char_system_53b_badSink
void CWE426_Untrusted_Search_Path__char_system_53b_badSink(undefined8 param_1) { CWE426_Untrusted_Search_Path__char_system_53c_badSink(param_1); return; }
['gcc']
1,641
void CWE426_Untrusted_Search_Path__char_system_53b_goodG2BSink(char * data) { CWE426_Untrusted_Search_Path__char_system_53c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102743/CWE426_Untrusted_Search_Path__char_system_53b.c
CWE426_Untrusted_Search_Path__char_system_53b_goodG2BSink
void CWE426_Untrusted_Search_Path__char_system_53b_goodG2BSink(undefined8 param_1) { CWE426_Untrusted_Search_Path__char_system_53c_goodG2BSink(param_1); return; }
['gcc']
1,642
void CWE426_Untrusted_Search_Path__char_system_53c_badSink(char * data) { CWE426_Untrusted_Search_Path__char_system_53d_badSink(data); }
[]
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102743/CWE426_Untrusted_Search_Path__char_system_53c.c
CWE426_Untrusted_Search_Path__char_system_53c_badSink
void CWE426_Untrusted_Search_Path__char_system_53c_badSink(undefined8 param_1) { CWE426_Untrusted_Search_Path__char_system_53d_badSink(param_1); return; }
['gcc']
1,643
void CWE426_Untrusted_Search_Path__char_system_53c_goodG2BSink(char * data) { CWE426_Untrusted_Search_Path__char_system_53d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102743/CWE426_Untrusted_Search_Path__char_system_53c.c
CWE426_Untrusted_Search_Path__char_system_53c_goodG2BSink
void CWE426_Untrusted_Search_Path__char_system_53c_goodG2BSink(undefined8 param_1) { CWE426_Untrusted_Search_Path__char_system_53d_goodG2BSink(param_1); return; }
['gcc']
1,644
void CWE426_Untrusted_Search_Path__char_system_53d_badSink(char * data) { /* POTENTIAL FLAW: Executing the system() function without specifying the full path to the executable * can allow an attacker to run their own program */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* POTENTIAL FLAW: Executing the system() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102743/CWE426_Untrusted_Search_Path__char_system_53d.c
CWE426_Untrusted_Search_Path__char_system_53d_badSink
void CWE426_Untrusted_Search_Path__char_system_53d_badSink(undefined8 param_1) { int iVar1; iVar1 = func_0x00400a40(param_1); if (iVar1 < 1) { printLine(&UNK_00401254); func_0x00400ad0(1); } return; }
['gcc']
1,645
void CWE426_Untrusted_Search_Path__char_system_53d_goodG2BSink(char * data) { /* POTENTIAL FLAW: Executing the system() function without specifying the full path to the executable * can allow an attacker to run their own program */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* POTENTIAL FLAW: Executing the system() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102743/CWE426_Untrusted_Search_Path__char_system_53d.c
CWE426_Untrusted_Search_Path__char_system_53d_goodG2BSink
void CWE426_Untrusted_Search_Path__char_system_53d_goodG2BSink(undefined8 param_1) { int iVar1; iVar1 = func_0x00400a40(param_1); if (iVar1 < 1) { printLine(&UNK_00401274); func_0x00400ad0(1); } return; }
['gcc']
1,646
void CWE426_Untrusted_Search_Path__char_system_54_bad() { char * data; char dataBuffer[100] = ""; data = dataBuffer; /* FLAW: the full path is not specified */ strcpy(data, BAD_OS_COMMAND); CWE426_Untrusted_Search_Path__char_system_54b_badSink(data); }
['/* FLAW: the full path is not specified */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102744/CWE426_Untrusted_Search_Path__char_system_54a.c
CWE426_Untrusted_Search_Path__char_system_54_bad
void CWE426_Untrusted_Search_Path__char_system_54_bad(void) { undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined8 *puStack_10; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; puStack_10 = &uStack_78; /* WARNING: Ignoring partial resolution of indirect */ uStack_78._0_4_ = 0x2d20736c; /* WARNING: Ignoring partial resolution of indirect */ uStack_78._4_2_ = 0x616c; /* WARNING: Ignoring partial resolution of indirect */ uStack_78._6_1_ = 0; CWE426_Untrusted_Search_Path__char_system_54b_badSink(puStack_10); return; }
['gcc']
1,647
void CWE426_Untrusted_Search_Path__char_system_54_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102744/CWE426_Untrusted_Search_Path__char_system_54a.c
CWE426_Untrusted_Search_Path__char_system_54_good
void CWE426_Untrusted_Search_Path__char_system_54_good(void) { goodG2B(); return; }
['gcc']
1,648
void CWE426_Untrusted_Search_Path__char_system_54b_badSink(char * data) { CWE426_Untrusted_Search_Path__char_system_54c_badSink(data); }
[]
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102744/CWE426_Untrusted_Search_Path__char_system_54b.c
CWE426_Untrusted_Search_Path__char_system_54b_badSink
void CWE426_Untrusted_Search_Path__char_system_54b_badSink(undefined8 param_1) { CWE426_Untrusted_Search_Path__char_system_54c_badSink(param_1); return; }
['gcc']
1,649
void CWE426_Untrusted_Search_Path__char_system_54b_goodG2BSink(char * data) { CWE426_Untrusted_Search_Path__char_system_54c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102744/CWE426_Untrusted_Search_Path__char_system_54b.c
CWE426_Untrusted_Search_Path__char_system_54b_goodG2BSink
void CWE426_Untrusted_Search_Path__char_system_54b_goodG2BSink(undefined8 param_1) { CWE426_Untrusted_Search_Path__char_system_54c_goodG2BSink(param_1); return; }
['gcc']
1,650
void CWE426_Untrusted_Search_Path__char_system_54c_badSink(char * data) { CWE426_Untrusted_Search_Path__char_system_54d_badSink(data); }
[]
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102744/CWE426_Untrusted_Search_Path__char_system_54c.c
CWE426_Untrusted_Search_Path__char_system_54c_badSink
void CWE426_Untrusted_Search_Path__char_system_54c_badSink(undefined8 param_1) { CWE426_Untrusted_Search_Path__char_system_54d_badSink(param_1); return; }
['gcc']
1,651
void CWE426_Untrusted_Search_Path__char_system_54c_goodG2BSink(char * data) { CWE426_Untrusted_Search_Path__char_system_54d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102744/CWE426_Untrusted_Search_Path__char_system_54c.c
CWE426_Untrusted_Search_Path__char_system_54c_goodG2BSink
void CWE426_Untrusted_Search_Path__char_system_54c_goodG2BSink(undefined8 param_1) { CWE426_Untrusted_Search_Path__char_system_54d_goodG2BSink(param_1); return; }
['gcc']
1,652
void CWE426_Untrusted_Search_Path__char_system_54d_badSink(char * data) { CWE426_Untrusted_Search_Path__char_system_54e_badSink(data); }
[]
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102744/CWE426_Untrusted_Search_Path__char_system_54d.c
CWE426_Untrusted_Search_Path__char_system_54d_badSink
void CWE426_Untrusted_Search_Path__char_system_54d_badSink(undefined8 param_1) { CWE426_Untrusted_Search_Path__char_system_54e_badSink(param_1); return; }
['gcc']
1,653
void CWE426_Untrusted_Search_Path__char_system_54d_goodG2BSink(char * data) { CWE426_Untrusted_Search_Path__char_system_54e_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102744/CWE426_Untrusted_Search_Path__char_system_54d.c
CWE426_Untrusted_Search_Path__char_system_54d_goodG2BSink
void CWE426_Untrusted_Search_Path__char_system_54d_goodG2BSink(undefined8 param_1) { CWE426_Untrusted_Search_Path__char_system_54e_goodG2BSink(param_1); return; }
['gcc']
1,654
void CWE426_Untrusted_Search_Path__char_system_54e_badSink(char * data) { /* POTENTIAL FLAW: Executing the system() function without specifying the full path to the executable * can allow an attacker to run their own program */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* POTENTIAL FLAW: Executing the system() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102744/CWE426_Untrusted_Search_Path__char_system_54e.c
CWE426_Untrusted_Search_Path__char_system_54e_badSink
void CWE426_Untrusted_Search_Path__char_system_54e_badSink(undefined8 param_1) { int iVar1; iVar1 = func_0x00400a40(param_1); if (iVar1 < 1) { printLine(&UNK_00401274); func_0x00400ad0(1); } return; }
['gcc']
1,655
void CWE426_Untrusted_Search_Path__char_system_54e_goodG2BSink(char * data) { /* POTENTIAL FLAW: Executing the system() function without specifying the full path to the executable * can allow an attacker to run their own program */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* POTENTIAL FLAW: Executing the system() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102744/CWE426_Untrusted_Search_Path__char_system_54e.c
CWE426_Untrusted_Search_Path__char_system_54e_goodG2BSink
void CWE426_Untrusted_Search_Path__char_system_54e_goodG2BSink(undefined8 param_1) { int iVar1; iVar1 = func_0x00400a40(param_1); if (iVar1 < 1) { printLine(&UNK_00401284); func_0x00400ad0(1); } return; }
['gcc']
1,656
void CWE426_Untrusted_Search_Path__char_system_64_bad() { char * data; char dataBuffer[100] = ""; data = dataBuffer; /* FLAW: the full path is not specified */ strcpy(data, BAD_OS_COMMAND); CWE426_Untrusted_Search_Path__char_system_64b_badSink(&data); }
['/* FLAW: the full path is not specified */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102748/CWE426_Untrusted_Search_Path__char_system_64a.c
CWE426_Untrusted_Search_Path__char_system_64_bad
void CWE426_Untrusted_Search_Path__char_system_64_bad(void) { undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined8 *puStack_10; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; puStack_10 = &uStack_78; /* WARNING: Ignoring partial resolution of indirect */ uStack_78._0_4_ = 0x2d20736c; /* WARNING: Ignoring partial resolution of indirect */ uStack_78._4_2_ = 0x616c; /* WARNING: Ignoring partial resolution of indirect */ uStack_78._6_1_ = 0; CWE426_Untrusted_Search_Path__char_system_64b_badSink(&puStack_10); return; }
['gcc']
1,657
void CWE426_Untrusted_Search_Path__char_system_64_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102748/CWE426_Untrusted_Search_Path__char_system_64a.c
CWE426_Untrusted_Search_Path__char_system_64_good
void CWE426_Untrusted_Search_Path__char_system_64_good(void) { goodG2B(); return; }
['gcc']
1,658
void CWE426_Untrusted_Search_Path__char_system_64b_badSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ char * * dataPtr = (char * *)dataVoidPtr; /* dereference dataPtr into data */ char * data = (*dataPtr); /* POTENTIAL FLAW: Executing the system() function without specifying the full path to the executable * can allow an attacker to run their own program */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: Executing the system() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102748/CWE426_Untrusted_Search_Path__char_system_64b.c
CWE426_Untrusted_Search_Path__char_system_64b_badSink
void CWE426_Untrusted_Search_Path__char_system_64b_badSink(undefined8 *param_1) { int iVar1; iVar1 = func_0x00400a40(*param_1); if (iVar1 < 1) { printLine(&UNK_00401234); func_0x00400ad0(1); } return; }
['gcc']
1,659
void CWE426_Untrusted_Search_Path__char_system_64b_goodG2BSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ char * * dataPtr = (char * *)dataVoidPtr; /* dereference dataPtr into data */ char * data = (*dataPtr); /* POTENTIAL FLAW: Executing the system() function without specifying the full path to the executable * can allow an attacker to run their own program */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: Executing the system() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102748/CWE426_Untrusted_Search_Path__char_system_64b.c
CWE426_Untrusted_Search_Path__char_system_64b_goodG2BSink
void CWE426_Untrusted_Search_Path__char_system_64b_goodG2BSink(undefined8 *param_1) { int iVar1; iVar1 = func_0x00400a40(*param_1); if (iVar1 < 1) { printLine(&UNK_00401254); func_0x00400ad0(1); } return; }
['gcc']
1,660
void CWE426_Untrusted_Search_Path__char_system_66_bad() { char * data; char * dataArray[5]; char dataBuffer[100] = ""; data = dataBuffer; /* FLAW: the full path is not specified */ strcpy(data, BAD_OS_COMMAND); /* put data in array */ dataArray[2] = data; CWE426_Untrusted_Search_Path__char_system_66b_badSink(dataArray); }
['/* FLAW: the full path is not specified */', '/* put data in array */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102750/CWE426_Untrusted_Search_Path__char_system_66a.c
CWE426_Untrusted_Search_Path__char_system_66_bad
void CWE426_Untrusted_Search_Path__char_system_66_bad(void) { undefined8 uStack_a8; undefined8 uStack_a0; undefined8 uStack_98; undefined8 uStack_90; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined4 uStack_48; undefined auStack_38 [16]; undefined8 *puStack_28; undefined8 *puStack_10; 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; uStack_50 = 0; uStack_48 = 0; puStack_28 = &uStack_a8; /* WARNING: Ignoring partial resolution of indirect */ uStack_a8._0_4_ = 0x2d20736c; /* WARNING: Ignoring partial resolution of indirect */ uStack_a8._4_2_ = 0x616c; /* WARNING: Ignoring partial resolution of indirect */ uStack_a8._6_1_ = 0; puStack_10 = puStack_28; CWE426_Untrusted_Search_Path__char_system_66b_badSink(auStack_38); return; }
['gcc']
1,661
void CWE426_Untrusted_Search_Path__char_system_66_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102750/CWE426_Untrusted_Search_Path__char_system_66a.c
CWE426_Untrusted_Search_Path__char_system_66_good
void CWE426_Untrusted_Search_Path__char_system_66_good(void) { goodG2B(); return; }
['gcc']
1,662
void CWE426_Untrusted_Search_Path__char_system_66b_badSink(char * dataArray[]) { /* copy data out of dataArray */ char * data = dataArray[2]; /* POTENTIAL FLAW: Executing the system() function without specifying the full path to the executable * can allow an attacker to run their own program */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* copy data out of dataArray */', '/* POTENTIAL FLAW: Executing the system() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102750/CWE426_Untrusted_Search_Path__char_system_66b.c
CWE426_Untrusted_Search_Path__char_system_66b_badSink
void CWE426_Untrusted_Search_Path__char_system_66b_badSink(long param_1) { int iVar1; iVar1 = func_0x00400a40(*(undefined8 *)(param_1 + 0x10)); if (iVar1 < 1) { printLine(&UNK_00401244); func_0x00400ad0(1); } return; }
['gcc']
1,663
void CWE426_Untrusted_Search_Path__char_system_66b_goodG2BSink(char * dataArray[]) { char * data = dataArray[2]; /* POTENTIAL FLAW: Executing the system() function without specifying the full path to the executable * can allow an attacker to run their own program */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* POTENTIAL FLAW: Executing the system() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102750/CWE426_Untrusted_Search_Path__char_system_66b.c
CWE426_Untrusted_Search_Path__char_system_66b_goodG2BSink
void CWE426_Untrusted_Search_Path__char_system_66b_goodG2BSink(long param_1) { int iVar1; iVar1 = func_0x00400a40(*(undefined8 *)(param_1 + 0x10)); if (iVar1 < 1) { printLine(&UNK_00401264); func_0x00400ad0(1); } return; }
['gcc']
1,664
void CWE426_Untrusted_Search_Path__char_system_67_bad() { char * data; CWE426_Untrusted_Search_Path__char_system_67_structType myStruct; char dataBuffer[100] = ""; data = dataBuffer; /* FLAW: the full path is not specified */ strcpy(data, BAD_OS_COMMAND); myStruct.structFirst = data; CWE426_Untrusted_Search_Path__char_system_67b_badSink(myStruct); }
['/* FLAW: the full path is not specified */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102751/CWE426_Untrusted_Search_Path__char_system_67a.c
CWE426_Untrusted_Search_Path__char_system_67_bad
void CWE426_Untrusted_Search_Path__char_system_67_bad(void) { undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; undefined8 *puStack_18; undefined8 *puStack_10; uStack_88 = 0; uStack_80 = 0; uStack_78 = 0; uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_18 = &uStack_88; /* WARNING: Ignoring partial resolution of indirect */ uStack_88._0_4_ = 0x2d20736c; /* WARNING: Ignoring partial resolution of indirect */ uStack_88._4_2_ = 0x616c; /* WARNING: Ignoring partial resolution of indirect */ uStack_88._6_1_ = 0; puStack_10 = puStack_18; CWE426_Untrusted_Search_Path__char_system_67b_badSink(puStack_18); return; }
['gcc']
1,665
void CWE426_Untrusted_Search_Path__char_system_67_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102751/CWE426_Untrusted_Search_Path__char_system_67a.c
CWE426_Untrusted_Search_Path__char_system_67_good
void CWE426_Untrusted_Search_Path__char_system_67_good(void) { goodG2B(); return; }
['gcc']
1,666
void CWE426_Untrusted_Search_Path__char_system_67b_badSink(CWE426_Untrusted_Search_Path__char_system_67_structType myStruct) { char * data = myStruct.structFirst; /* POTENTIAL FLAW: Executing the system() function without specifying the full path to the executable * can allow an attacker to run their own program */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* POTENTIAL FLAW: Executing the system() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102751/CWE426_Untrusted_Search_Path__char_system_67b.c
CWE426_Untrusted_Search_Path__char_system_67b_badSink
void CWE426_Untrusted_Search_Path__char_system_67b_badSink(undefined8 param_1) { int iVar1; iVar1 = func_0x00400a40(param_1); if (iVar1 < 1) { printLine(&UNK_00401234); func_0x00400ad0(1); } return; }
['gcc']
1,667
void CWE426_Untrusted_Search_Path__char_system_67b_goodG2BSink(CWE426_Untrusted_Search_Path__char_system_67_structType myStruct) { char * data = myStruct.structFirst; /* POTENTIAL FLAW: Executing the system() function without specifying the full path to the executable * can allow an attacker to run their own program */ if (SYSTEM(data) <= 0) { printLine("command execution failed!"); exit(1); } }
['/* POTENTIAL FLAW: Executing the system() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102751/CWE426_Untrusted_Search_Path__char_system_67b.c
CWE426_Untrusted_Search_Path__char_system_67b_goodG2BSink
void CWE426_Untrusted_Search_Path__char_system_67b_goodG2BSink(undefined8 param_1) { int iVar1; iVar1 = func_0x00400a40(param_1); if (iVar1 < 1) { printLine(&UNK_00401244); func_0x00400ad0(1); } return; }
['gcc']
1,668
void CWE426_Untrusted_Search_Path__wchar_t_popen_08_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; if(staticReturnsTrue()) { /* FLAW: the full path is not specified */ wcscpy(data, BAD_OS_COMMAND); } { FILE *pipe; /* POTENTIAL FLAW: Executing the wpopen() function without specifying the full path to the executable * can allow an attacker to run their own program */ pipe = POPEN(data, L"wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* FLAW: the full path is not specified */', '/* POTENTIAL FLAW: Executing the wpopen() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102767/CWE426_Untrusted_Search_Path__wchar_t_popen_08.c
CWE426_Untrusted_Search_Path__wchar_t_popen_08_bad
void CWE426_Untrusted_Search_Path__wchar_t_popen_08_bad(void) { int iVar1; long lVar2; undefined8 *puVar3; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [48]; long lStack_18; undefined8 *puStack_10; uStack_1a8 = 0; uStack_1a0 = 0; puVar3 = auStack_198; for (lVar2 = 0x30; lVar2 != 0; lVar2 = lVar2 + -1) { *puVar3 = 0; puVar3 = puVar3 + 1; } puStack_10 = &uStack_1a8; iVar1 = staticReturnsTrue(); if (iVar1 != 0) { func_0x00400ad0(puStack_10,&UNK_00401244); } lStack_18 = func_0x00400b20(puStack_10,&UNK_00401260); if (lStack_18 != 0) { func_0x00400a90(lStack_18); } return; }
['gcc']
1,669
void CWE426_Untrusted_Search_Path__wchar_t_popen_08_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102767/CWE426_Untrusted_Search_Path__wchar_t_popen_08.c
CWE426_Untrusted_Search_Path__wchar_t_popen_08_good
void CWE426_Untrusted_Search_Path__wchar_t_popen_08_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
1,670
void CWE426_Untrusted_Search_Path__wchar_t_popen_11_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; if(globalReturnsTrue()) { /* FLAW: the full path is not specified */ wcscpy(data, BAD_OS_COMMAND); } { FILE *pipe; /* POTENTIAL FLAW: Executing the wpopen() function without specifying the full path to the executable * can allow an attacker to run their own program */ pipe = POPEN(data, L"wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* FLAW: the full path is not specified */', '/* POTENTIAL FLAW: Executing the wpopen() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102770/CWE426_Untrusted_Search_Path__wchar_t_popen_11.c
CWE426_Untrusted_Search_Path__wchar_t_popen_11_bad
void CWE426_Untrusted_Search_Path__wchar_t_popen_11_bad(void) { int iVar1; long lVar2; undefined8 *puVar3; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [48]; long lStack_18; undefined8 *puStack_10; uStack_1a8 = 0; uStack_1a0 = 0; puVar3 = auStack_198; for (lVar2 = 0x30; lVar2 != 0; lVar2 = lVar2 + -1) { *puVar3 = 0; puVar3 = puVar3 + 1; } puStack_10 = &uStack_1a8; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { func_0x00400ad0(puStack_10,&UNK_00401234); } lStack_18 = func_0x00400b20(puStack_10,&UNK_00401250); if (lStack_18 != 0) { func_0x00400a90(lStack_18); } return; }
['gcc']
1,671
void CWE426_Untrusted_Search_Path__wchar_t_popen_11_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102770/CWE426_Untrusted_Search_Path__wchar_t_popen_11.c
CWE426_Untrusted_Search_Path__wchar_t_popen_11_good
void CWE426_Untrusted_Search_Path__wchar_t_popen_11_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
1,672
void CWE426_Untrusted_Search_Path__wchar_t_popen_12_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; if(globalReturnsTrueOrFalse()) { /* FLAW: the full path is not specified */ wcscpy(data, BAD_OS_COMMAND); } else { /* FIX: full path is specified */ wcscpy(data, GOOD_OS_COMMAND); } { FILE *pipe; /* POTENTIAL FLAW: Executing the wpopen() function without specifying the full path to the executable * can allow an attacker to run their own program */ pipe = POPEN(data, L"wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* FLAW: the full path is not specified */', '/* FIX: full path is specified */', '/* POTENTIAL FLAW: Executing the wpopen() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102771/CWE426_Untrusted_Search_Path__wchar_t_popen_12.c
CWE426_Untrusted_Search_Path__wchar_t_popen_12_bad
void CWE426_Untrusted_Search_Path__wchar_t_popen_12_bad(void) { int iVar1; long lVar2; undefined8 *puVar3; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [48]; long lStack_18; undefined8 *puStack_10; uStack_1a8 = 0; uStack_1a0 = 0; puVar3 = auStack_198; for (lVar2 = 0x30; lVar2 != 0; lVar2 = lVar2 + -1) { *puVar3 = 0; puVar3 = puVar3 + 1; } puStack_10 = &uStack_1a8; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { func_0x00400ad0(puStack_10,&UNK_00401268); } else { func_0x00400ad0(puStack_10,&UNK_00401248); } lStack_18 = func_0x00400b20(puStack_10,&UNK_004012a8); if (lStack_18 != 0) { func_0x00400a90(lStack_18); } return; }
['gcc']
1,673
void CWE426_Untrusted_Search_Path__wchar_t_popen_12_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102771/CWE426_Untrusted_Search_Path__wchar_t_popen_12.c
CWE426_Untrusted_Search_Path__wchar_t_popen_12_good
void CWE426_Untrusted_Search_Path__wchar_t_popen_12_good(void) { goodG2B(); return; }
['gcc']
1,674
void CWE426_Untrusted_Search_Path__wchar_t_popen_17_bad() { int i; wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; for(i = 0; i < 1; i++) { /* FLAW: the full path is not specified */ wcscpy(data, BAD_OS_COMMAND); } { FILE *pipe; /* POTENTIAL FLAW: Executing the wpopen() function without specifying the full path to the executable * can allow an attacker to run their own program */ pipe = POPEN(data, L"wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* FLAW: the full path is not specified */', '/* POTENTIAL FLAW: Executing the wpopen() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102776/CWE426_Untrusted_Search_Path__wchar_t_popen_17.c
CWE426_Untrusted_Search_Path__wchar_t_popen_17_bad
void CWE426_Untrusted_Search_Path__wchar_t_popen_17_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1b8; undefined8 uStack_1b0; undefined8 auStack_1a8 [49]; long lStack_20; undefined8 *puStack_18; int iStack_c; uStack_1b8 = 0; uStack_1b0 = 0; puVar2 = auStack_1a8; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_18 = &uStack_1b8; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { func_0x00400ad0(puStack_18,&UNK_00401234); } lStack_20 = func_0x00400b20(puStack_18,&UNK_00401250); if (lStack_20 != 0) { func_0x00400a90(lStack_20); } return; }
['gcc']
1,675
void CWE426_Untrusted_Search_Path__wchar_t_popen_17_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102776/CWE426_Untrusted_Search_Path__wchar_t_popen_17.c
CWE426_Untrusted_Search_Path__wchar_t_popen_17_good
void CWE426_Untrusted_Search_Path__wchar_t_popen_17_good(void) { goodG2B(); return; }
['gcc']
1,676
void CWE426_Untrusted_Search_Path__wchar_t_popen_31_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; /* FLAW: the full path is not specified */ wcscpy(data, BAD_OS_COMMAND); { wchar_t * dataCopy = data; wchar_t * data = dataCopy; { FILE *pipe; /* POTENTIAL FLAW: Executing the wpopen() function without specifying the full path to the executable * can allow an attacker to run their own program */ pipe = POPEN(data, L"wb"); if (pipe != NULL) { PCLOSE(pipe); } } } }
['/* FLAW: the full path is not specified */', '/* POTENTIAL FLAW: Executing the wpopen() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102780/CWE426_Untrusted_Search_Path__wchar_t_popen_31.c
CWE426_Untrusted_Search_Path__wchar_t_popen_31_bad
void CWE426_Untrusted_Search_Path__wchar_t_popen_31_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1b8; undefined8 uStack_1b0; undefined8 auStack_1a8 [48]; long lStack_28; undefined8 *puStack_20; undefined8 *puStack_18; undefined8 *puStack_10; uStack_1b8 = 0; uStack_1b0 = 0; puVar2 = auStack_1a8; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1b8; func_0x00400ad0(puStack_10,&UNK_00401234); puStack_18 = puStack_10; puStack_20 = puStack_10; lStack_28 = func_0x00400b20(puStack_10,&UNK_00401250); if (lStack_28 != 0) { func_0x00400a90(lStack_28); } return; }
['gcc']
1,677
void CWE426_Untrusted_Search_Path__wchar_t_popen_31_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102780/CWE426_Untrusted_Search_Path__wchar_t_popen_31.c
CWE426_Untrusted_Search_Path__wchar_t_popen_31_good
void CWE426_Untrusted_Search_Path__wchar_t_popen_31_good(void) { goodG2B(); return; }
['gcc']
1,678
void CWE426_Untrusted_Search_Path__wchar_t_popen_32_bad() { wchar_t * data; wchar_t * *dataPtr1 = &data; wchar_t * *dataPtr2 = &data; wchar_t dataBuffer[100] = L""; data = dataBuffer; { wchar_t * data = *dataPtr1; /* FLAW: the full path is not specified */ wcscpy(data, BAD_OS_COMMAND); *dataPtr1 = data; } { wchar_t * data = *dataPtr2; { FILE *pipe; /* POTENTIAL FLAW: Executing the wpopen() function without specifying the full path to the executable * can allow an attacker to run their own program */ pipe = POPEN(data, L"wb"); if (pipe != NULL) { PCLOSE(pipe); } } } }
['/* FLAW: the full path is not specified */', '/* POTENTIAL FLAW: Executing the wpopen() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102781/CWE426_Untrusted_Search_Path__wchar_t_popen_32.c
CWE426_Untrusted_Search_Path__wchar_t_popen_32_bad
void CWE426_Untrusted_Search_Path__wchar_t_popen_32_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1c8; undefined8 uStack_1c0; undefined8 auStack_1b8 [48]; undefined8 *puStack_38; long lStack_30; undefined8 *puStack_28; undefined8 *puStack_20; undefined8 **ppuStack_18; undefined8 **ppuStack_10; ppuStack_10 = &puStack_38; ppuStack_18 = &puStack_38; uStack_1c8 = 0; uStack_1c0 = 0; puVar2 = auStack_1b8; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_38 = &uStack_1c8; puStack_20 = *ppuStack_10; func_0x00400ad0(puStack_20,&UNK_00401254); *ppuStack_10 = puStack_20; puStack_28 = *ppuStack_18; lStack_30 = func_0x00400b20(puStack_28,&UNK_00401270); if (lStack_30 != 0) { func_0x00400a90(lStack_30); } return; }
['gcc']
1,679
void CWE426_Untrusted_Search_Path__wchar_t_popen_32_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102781/CWE426_Untrusted_Search_Path__wchar_t_popen_32.c
CWE426_Untrusted_Search_Path__wchar_t_popen_32_good
void CWE426_Untrusted_Search_Path__wchar_t_popen_32_good(void) { goodG2B(); return; }
['gcc']
1,680
void CWE426_Untrusted_Search_Path__wchar_t_popen_34_bad() { wchar_t * data; CWE426_Untrusted_Search_Path__wchar_t_popen_34_unionType myUnion; wchar_t dataBuffer[100] = L""; data = dataBuffer; /* FLAW: the full path is not specified */ wcscpy(data, BAD_OS_COMMAND); myUnion.unionFirst = data; { wchar_t * data = myUnion.unionSecond; { FILE *pipe; /* POTENTIAL FLAW: Executing the wpopen() function without specifying the full path to the executable * can allow an attacker to run their own program */ pipe = POPEN(data, L"wb"); if (pipe != NULL) { PCLOSE(pipe); } } } }
['/* FLAW: the full path is not specified */', '/* POTENTIAL FLAW: Executing the wpopen() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102783/CWE426_Untrusted_Search_Path__wchar_t_popen_34.c
CWE426_Untrusted_Search_Path__wchar_t_popen_34_bad
void CWE426_Untrusted_Search_Path__wchar_t_popen_34_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1b8; undefined8 uStack_1b0; undefined8 auStack_1a8 [48]; undefined8 *puStack_28; long lStack_20; undefined8 *puStack_18; undefined8 *puStack_10; uStack_1b8 = 0; uStack_1b0 = 0; puVar2 = auStack_1a8; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1b8; func_0x00400ad0(puStack_10,&UNK_00401234); puStack_28 = puStack_10; puStack_18 = puStack_10; lStack_20 = func_0x00400b20(puStack_10,&UNK_00401250); if (lStack_20 != 0) { func_0x00400a90(lStack_20); } return; }
['gcc']
1,681
void CWE426_Untrusted_Search_Path__wchar_t_popen_34_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102783/CWE426_Untrusted_Search_Path__wchar_t_popen_34.c
CWE426_Untrusted_Search_Path__wchar_t_popen_34_good
void CWE426_Untrusted_Search_Path__wchar_t_popen_34_good(void) { goodG2B(); return; }
['gcc']
1,682
void CWE426_Untrusted_Search_Path__wchar_t_popen_41_badSink(wchar_t * data) { { FILE *pipe; /* POTENTIAL FLAW: Executing the wpopen() function without specifying the full path to the executable * can allow an attacker to run their own program */ pipe = POPEN(data, L"wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* POTENTIAL FLAW: Executing the wpopen() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102784/CWE426_Untrusted_Search_Path__wchar_t_popen_41.c
CWE426_Untrusted_Search_Path__wchar_t_popen_41_badSink
void CWE426_Untrusted_Search_Path__wchar_t_popen_41_badSink(undefined8 param_1) { long lVar1; lVar1 = func_0x00400b20(param_1,&UNK_00401234); if (lVar1 != 0) { func_0x00400a90(lVar1); } return; }
['gcc']
1,683
void CWE426_Untrusted_Search_Path__wchar_t_popen_41_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; /* FLAW: the full path is not specified */ wcscpy(data, BAD_OS_COMMAND); CWE426_Untrusted_Search_Path__wchar_t_popen_41_badSink(data); }
['/* FLAW: the full path is not specified */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102784/CWE426_Untrusted_Search_Path__wchar_t_popen_41.c
CWE426_Untrusted_Search_Path__wchar_t_popen_41_bad
void CWE426_Untrusted_Search_Path__wchar_t_popen_41_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [49]; undefined8 *puStack_10; uStack_1a8 = 0; uStack_1a0 = 0; puVar2 = auStack_198; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1a8; func_0x00400ad0(puStack_10,&UNK_00401240); CWE426_Untrusted_Search_Path__wchar_t_popen_41_badSink(puStack_10); return; }
['gcc']
1,684
void CWE426_Untrusted_Search_Path__wchar_t_popen_41_goodG2BSink(wchar_t * data) { { FILE *pipe; /* POTENTIAL FLAW: Executing the wpopen() function without specifying the full path to the executable * can allow an attacker to run their own program */ pipe = POPEN(data, L"wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* POTENTIAL FLAW: Executing the wpopen() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102784/CWE426_Untrusted_Search_Path__wchar_t_popen_41.c
CWE426_Untrusted_Search_Path__wchar_t_popen_41_goodG2BSink
void CWE426_Untrusted_Search_Path__wchar_t_popen_41_goodG2BSink(undefined8 param_1) { long lVar1; lVar1 = func_0x00400b20(param_1,&UNK_00401248); if (lVar1 != 0) { func_0x00400a90(lVar1); } return; }
['gcc']
1,685
void CWE426_Untrusted_Search_Path__wchar_t_popen_41_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102784/CWE426_Untrusted_Search_Path__wchar_t_popen_41.c
CWE426_Untrusted_Search_Path__wchar_t_popen_41_good
void CWE426_Untrusted_Search_Path__wchar_t_popen_41_good(void) { goodG2B(); return; }
['gcc']
1,686
void CWE426_Untrusted_Search_Path__wchar_t_popen_51_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; /* FLAW: the full path is not specified */ wcscpy(data, BAD_OS_COMMAND); CWE426_Untrusted_Search_Path__wchar_t_popen_51b_badSink(data); }
['/* FLAW: the full path is not specified */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102789/CWE426_Untrusted_Search_Path__wchar_t_popen_51a.c
CWE426_Untrusted_Search_Path__wchar_t_popen_51_bad
void CWE426_Untrusted_Search_Path__wchar_t_popen_51_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [49]; undefined8 *puStack_10; uStack_1a8 = 0; uStack_1a0 = 0; puVar2 = auStack_198; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1a8; func_0x00400ad0(puStack_10,&UNK_00401234); CWE426_Untrusted_Search_Path__wchar_t_popen_51b_badSink(puStack_10); return; }
['gcc']
1,687
void CWE426_Untrusted_Search_Path__wchar_t_popen_51_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102789/CWE426_Untrusted_Search_Path__wchar_t_popen_51a.c
CWE426_Untrusted_Search_Path__wchar_t_popen_51_good
void CWE426_Untrusted_Search_Path__wchar_t_popen_51_good(void) { goodG2B(); return; }
['gcc']
1,688
void CWE426_Untrusted_Search_Path__wchar_t_popen_51b_badSink(wchar_t * data) { { FILE *pipe; /* POTENTIAL FLAW: Executing the wpopen() function without specifying the full path to the executable * can allow an attacker to run their own program */ pipe = POPEN(data, L"wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* POTENTIAL FLAW: Executing the wpopen() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102789/CWE426_Untrusted_Search_Path__wchar_t_popen_51b.c
CWE426_Untrusted_Search_Path__wchar_t_popen_51b_badSink
void CWE426_Untrusted_Search_Path__wchar_t_popen_51b_badSink(undefined8 param_1) { long lVar1; lVar1 = func_0x00400b20(param_1,&UNK_00401234); if (lVar1 != 0) { func_0x00400a90(lVar1); } return; }
['gcc']
1,689
void CWE426_Untrusted_Search_Path__wchar_t_popen_51b_goodG2BSink(wchar_t * data) { { FILE *pipe; /* POTENTIAL FLAW: Executing the wpopen() function without specifying the full path to the executable * can allow an attacker to run their own program */ pipe = POPEN(data, L"wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* POTENTIAL FLAW: Executing the wpopen() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102789/CWE426_Untrusted_Search_Path__wchar_t_popen_51b.c
CWE426_Untrusted_Search_Path__wchar_t_popen_51b_goodG2BSink
void CWE426_Untrusted_Search_Path__wchar_t_popen_51b_goodG2BSink(undefined8 param_1) { long lVar1; lVar1 = func_0x00400b20(param_1,&UNK_00401244); if (lVar1 != 0) { func_0x00400a90(lVar1); } return; }
['gcc']
1,690
void CWE426_Untrusted_Search_Path__wchar_t_popen_52_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; /* FLAW: the full path is not specified */ wcscpy(data, BAD_OS_COMMAND); CWE426_Untrusted_Search_Path__wchar_t_popen_52b_badSink(data); }
['/* FLAW: the full path is not specified */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102790/CWE426_Untrusted_Search_Path__wchar_t_popen_52a.c
CWE426_Untrusted_Search_Path__wchar_t_popen_52_bad
void CWE426_Untrusted_Search_Path__wchar_t_popen_52_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [49]; undefined8 *puStack_10; uStack_1a8 = 0; uStack_1a0 = 0; puVar2 = auStack_198; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1a8; func_0x00400ad0(puStack_10,&UNK_00401254); CWE426_Untrusted_Search_Path__wchar_t_popen_52b_badSink(puStack_10); return; }
['gcc']
1,691
void CWE426_Untrusted_Search_Path__wchar_t_popen_52_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102790/CWE426_Untrusted_Search_Path__wchar_t_popen_52a.c
CWE426_Untrusted_Search_Path__wchar_t_popen_52_good
void CWE426_Untrusted_Search_Path__wchar_t_popen_52_good(void) { goodG2B(); return; }
['gcc']
1,692
void CWE426_Untrusted_Search_Path__wchar_t_popen_52b_badSink(wchar_t * data) { CWE426_Untrusted_Search_Path__wchar_t_popen_52c_badSink(data); }
[]
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102790/CWE426_Untrusted_Search_Path__wchar_t_popen_52b.c
CWE426_Untrusted_Search_Path__wchar_t_popen_52b_badSink
void CWE426_Untrusted_Search_Path__wchar_t_popen_52b_badSink(undefined8 param_1) { CWE426_Untrusted_Search_Path__wchar_t_popen_52c_badSink(param_1); return; }
['gcc']
1,693
void CWE426_Untrusted_Search_Path__wchar_t_popen_52b_goodG2BSink(wchar_t * data) { CWE426_Untrusted_Search_Path__wchar_t_popen_52c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102790/CWE426_Untrusted_Search_Path__wchar_t_popen_52b.c
CWE426_Untrusted_Search_Path__wchar_t_popen_52b_goodG2BSink
void CWE426_Untrusted_Search_Path__wchar_t_popen_52b_goodG2BSink(undefined8 param_1) { CWE426_Untrusted_Search_Path__wchar_t_popen_52c_goodG2BSink(param_1); return; }
['gcc']
1,694
void CWE426_Untrusted_Search_Path__wchar_t_popen_52c_badSink(wchar_t * data) { { FILE *pipe; /* POTENTIAL FLAW: Executing the wpopen() function without specifying the full path to the executable * can allow an attacker to run their own program */ pipe = POPEN(data, L"wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* POTENTIAL FLAW: Executing the wpopen() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102790/CWE426_Untrusted_Search_Path__wchar_t_popen_52c.c
CWE426_Untrusted_Search_Path__wchar_t_popen_52c_badSink
void CWE426_Untrusted_Search_Path__wchar_t_popen_52c_badSink(undefined8 param_1) { long lVar1; lVar1 = func_0x00400b20(param_1,&UNK_00401254); if (lVar1 != 0) { func_0x00400a90(lVar1); } return; }
['gcc']
1,695
void CWE426_Untrusted_Search_Path__wchar_t_popen_52c_goodG2BSink(wchar_t * data) { { FILE *pipe; /* POTENTIAL FLAW: Executing the wpopen() function without specifying the full path to the executable * can allow an attacker to run their own program */ pipe = POPEN(data, L"wb"); if (pipe != NULL) { PCLOSE(pipe); } } }
['/* POTENTIAL FLAW: Executing the wpopen() function without specifying the full path to the executable\r\n * can allow an attacker to run their own program */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102790/CWE426_Untrusted_Search_Path__wchar_t_popen_52c.c
CWE426_Untrusted_Search_Path__wchar_t_popen_52c_goodG2BSink
void CWE426_Untrusted_Search_Path__wchar_t_popen_52c_goodG2BSink(undefined8 param_1) { long lVar1; lVar1 = func_0x00400b20(param_1,&UNK_00401264); if (lVar1 != 0) { func_0x00400a90(lVar1); } return; }
['gcc']
1,696
void CWE426_Untrusted_Search_Path__wchar_t_popen_53_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; /* FLAW: the full path is not specified */ wcscpy(data, BAD_OS_COMMAND); CWE426_Untrusted_Search_Path__wchar_t_popen_53b_badSink(data); }
['/* FLAW: the full path is not specified */']
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102791/CWE426_Untrusted_Search_Path__wchar_t_popen_53a.c
CWE426_Untrusted_Search_Path__wchar_t_popen_53_bad
void CWE426_Untrusted_Search_Path__wchar_t_popen_53_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [49]; undefined8 *puStack_10; uStack_1a8 = 0; uStack_1a0 = 0; puVar2 = auStack_198; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1a8; func_0x00400ad0(puStack_10,&UNK_00401274); CWE426_Untrusted_Search_Path__wchar_t_popen_53b_badSink(puStack_10); return; }
['gcc']
1,697
void CWE426_Untrusted_Search_Path__wchar_t_popen_53_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102791/CWE426_Untrusted_Search_Path__wchar_t_popen_53a.c
CWE426_Untrusted_Search_Path__wchar_t_popen_53_good
void CWE426_Untrusted_Search_Path__wchar_t_popen_53_good(void) { goodG2B(); return; }
['gcc']
1,698
void CWE426_Untrusted_Search_Path__wchar_t_popen_53b_badSink(wchar_t * data) { CWE426_Untrusted_Search_Path__wchar_t_popen_53c_badSink(data); }
[]
['CWE426']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102791/CWE426_Untrusted_Search_Path__wchar_t_popen_53b.c
CWE426_Untrusted_Search_Path__wchar_t_popen_53b_badSink
void CWE426_Untrusted_Search_Path__wchar_t_popen_53b_badSink(undefined8 param_1) { CWE426_Untrusted_Search_Path__wchar_t_popen_53c_badSink(param_1); return; }
['gcc']
1,699
void CWE426_Untrusted_Search_Path__wchar_t_popen_53b_goodG2BSink(wchar_t * data) { CWE426_Untrusted_Search_Path__wchar_t_popen_53c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102791/CWE426_Untrusted_Search_Path__wchar_t_popen_53b.c
CWE426_Untrusted_Search_Path__wchar_t_popen_53b_goodG2BSink
void CWE426_Untrusted_Search_Path__wchar_t_popen_53b_goodG2BSink(undefined8 param_1) { CWE426_Untrusted_Search_Path__wchar_t_popen_53c_goodG2BSink(param_1); return; }
['gcc']