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,100
void CWE401_Memory_Leak__wchar_t_realloc_63b_goodB2GSink(wchar_t * * dataPtr) { wchar_t * data = *dataPtr; /* FIX: Deallocate memory */ free(data); }
['/* FIX: Deallocate memory */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100846/CWE401_Memory_Leak__wchar_t_realloc_63b.c
CWE401_Memory_Leak__wchar_t_realloc_63b_goodB2GSink
void CWE401_Memory_Leak__wchar_t_realloc_63b_goodB2GSink(undefined8 *param_1) { func_0x00400a60(*param_1); return; }
['gcc']
1,101
void CWE401_Memory_Leak__wchar_t_realloc_64_bad() { wchar_t * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 100*sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); CWE401_Memory_Leak__wchar_t_realloc_64b_badSink(&data); }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100847/CWE401_Memory_Leak__wchar_t_realloc_64a.c
CWE401_Memory_Leak__wchar_t_realloc_64_bad
void CWE401_Memory_Leak__wchar_t_realloc_64_bad(void) { undefined8 uStack_10; uStack_10 = 0; uStack_10 = func_0x00400ad0(0,400); func_0x00400a80(uStack_10,&UNK_004011c8); printWLine(uStack_10); CWE401_Memory_Leak__wchar_t_realloc_64b_badSink(&uStack_10); return; }
['gcc']
1,102
void CWE401_Memory_Leak__wchar_t_realloc_64_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100847/CWE401_Memory_Leak__wchar_t_realloc_64a.c
CWE401_Memory_Leak__wchar_t_realloc_64_good
void CWE401_Memory_Leak__wchar_t_realloc_64_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
1,103
void CWE401_Memory_Leak__wchar_t_realloc_64b_badSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ wchar_t * * dataPtr = (wchar_t * *)dataVoidPtr; /* dereference dataPtr into data */ wchar_t * data = (*dataPtr); /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100847/CWE401_Memory_Leak__wchar_t_realloc_64b.c
CWE401_Memory_Leak__wchar_t_realloc_64b_badSink
void CWE401_Memory_Leak__wchar_t_realloc_64b_badSink(void) { return; }
['gcc']
1,104
void CWE401_Memory_Leak__wchar_t_realloc_64b_goodG2BSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ wchar_t * * dataPtr = (wchar_t * *)dataVoidPtr; /* dereference dataPtr into data */ wchar_t * data = (*dataPtr); /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100847/CWE401_Memory_Leak__wchar_t_realloc_64b.c
CWE401_Memory_Leak__wchar_t_realloc_64b_goodG2BSink
void CWE401_Memory_Leak__wchar_t_realloc_64b_goodG2BSink(void) { return; }
['gcc']
1,105
void CWE401_Memory_Leak__wchar_t_realloc_64b_goodB2GSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ wchar_t * * dataPtr = (wchar_t * *)dataVoidPtr; /* dereference dataPtr into data */ wchar_t * data = (*dataPtr); /* FIX: Deallocate memory */ free(data); }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* FIX: Deallocate memory */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100847/CWE401_Memory_Leak__wchar_t_realloc_64b.c
CWE401_Memory_Leak__wchar_t_realloc_64b_goodB2GSink
void CWE401_Memory_Leak__wchar_t_realloc_64b_goodB2GSink(undefined8 *param_1) { func_0x00400a60(*param_1); return; }
['gcc']
1,106
void CWE401_Memory_Leak__wchar_t_realloc_65_bad() { wchar_t * data; /* define a function pointer */ void (*funcPtr) (wchar_t *) = CWE401_Memory_Leak__wchar_t_realloc_65b_badSink; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 100*sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); /* use the function pointer */ funcPtr(data); }
['/* define a function pointer */', '/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* use the function pointer */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100848/CWE401_Memory_Leak__wchar_t_realloc_65a.c
CWE401_Memory_Leak__wchar_t_realloc_65_bad
void CWE401_Memory_Leak__wchar_t_realloc_65_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ad0(0,400); func_0x00400a80(uVar1,&UNK_004011b8); printWLine(uVar1); CWE401_Memory_Leak__wchar_t_realloc_65b_badSink(uVar1); return; }
['gcc']
1,107
void CWE401_Memory_Leak__wchar_t_realloc_65_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100848/CWE401_Memory_Leak__wchar_t_realloc_65a.c
CWE401_Memory_Leak__wchar_t_realloc_65_good
void CWE401_Memory_Leak__wchar_t_realloc_65_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
1,108
void CWE401_Memory_Leak__wchar_t_realloc_65b_badSink(wchar_t * data) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ }
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100848/CWE401_Memory_Leak__wchar_t_realloc_65b.c
CWE401_Memory_Leak__wchar_t_realloc_65b_badSink
void CWE401_Memory_Leak__wchar_t_realloc_65b_badSink(void) { return; }
['gcc']
1,109
void CWE401_Memory_Leak__wchar_t_realloc_65b_goodG2BSink(wchar_t * data) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ }
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100848/CWE401_Memory_Leak__wchar_t_realloc_65b.c
CWE401_Memory_Leak__wchar_t_realloc_65b_goodG2BSink
void CWE401_Memory_Leak__wchar_t_realloc_65b_goodG2BSink(void) { return; }
['gcc']
1,110
void CWE401_Memory_Leak__wchar_t_realloc_65b_goodB2GSink(wchar_t * data) { /* FIX: Deallocate memory */ free(data); }
['/* FIX: Deallocate memory */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100848/CWE401_Memory_Leak__wchar_t_realloc_65b.c
CWE401_Memory_Leak__wchar_t_realloc_65b_goodB2GSink
void CWE401_Memory_Leak__wchar_t_realloc_65b_goodB2GSink(undefined8 param_1) { func_0x00400a60(param_1); return; }
['gcc']
1,111
void CWE401_Memory_Leak__wchar_t_realloc_66_bad() { wchar_t * data; wchar_t * dataArray[5]; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 100*sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); /* put data in array */ dataArray[2] = data; CWE401_Memory_Leak__wchar_t_realloc_66b_badSink(dataArray); }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* put data in array */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100849/CWE401_Memory_Leak__wchar_t_realloc_66a.c
CWE401_Memory_Leak__wchar_t_realloc_66_bad
void CWE401_Memory_Leak__wchar_t_realloc_66_bad(void) { undefined auStack_38 [16]; undefined8 uStack_28; undefined8 uStack_10; uStack_10 = 0; uStack_10 = func_0x00400ad0(0,400); func_0x00400a80(uStack_10,&UNK_004011c8); printWLine(uStack_10); uStack_28 = uStack_10; CWE401_Memory_Leak__wchar_t_realloc_66b_badSink(auStack_38); return; }
['gcc']
1,112
void CWE401_Memory_Leak__wchar_t_realloc_66_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100849/CWE401_Memory_Leak__wchar_t_realloc_66a.c
CWE401_Memory_Leak__wchar_t_realloc_66_good
void CWE401_Memory_Leak__wchar_t_realloc_66_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
1,113
void CWE401_Memory_Leak__wchar_t_realloc_66b_badSink(wchar_t * dataArray[]) { /* copy data out of dataArray */ wchar_t * data = dataArray[2]; /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ }
['/* copy data out of dataArray */', '/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100849/CWE401_Memory_Leak__wchar_t_realloc_66b.c
CWE401_Memory_Leak__wchar_t_realloc_66b_badSink
void CWE401_Memory_Leak__wchar_t_realloc_66b_badSink(void) { return; }
['gcc']
1,114
void CWE401_Memory_Leak__wchar_t_realloc_66b_goodG2BSink(wchar_t * dataArray[]) { wchar_t * data = dataArray[2]; /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ }
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100849/CWE401_Memory_Leak__wchar_t_realloc_66b.c
CWE401_Memory_Leak__wchar_t_realloc_66b_goodG2BSink
void CWE401_Memory_Leak__wchar_t_realloc_66b_goodG2BSink(void) { return; }
['gcc']
1,115
void CWE401_Memory_Leak__wchar_t_realloc_66b_goodB2GSink(wchar_t * dataArray[]) { wchar_t * data = dataArray[2]; /* FIX: Deallocate memory */ free(data); }
['/* FIX: Deallocate memory */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100849/CWE401_Memory_Leak__wchar_t_realloc_66b.c
CWE401_Memory_Leak__wchar_t_realloc_66b_goodB2GSink
void CWE401_Memory_Leak__wchar_t_realloc_66b_goodB2GSink(long param_1) { func_0x00400a60(*(undefined8 *)(param_1 + 0x10)); return; }
['gcc']
1,116
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_52_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100937/CWE404_Improper_Resource_Shutdown__fopen_w32_close_52a.c
CWE404_Improper_Resource_Shutdown__fopen_w32_close_52_good
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_52_good(void) { goodB2G(); return; }
['gcc']
1,117
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_52b_goodB2GSink(FILE * data) { CWE404_Improper_Resource_Shutdown__fopen_w32_close_52c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100937/CWE404_Improper_Resource_Shutdown__fopen_w32_close_52b.c
CWE404_Improper_Resource_Shutdown__fopen_w32_close_52b_goodB2GSink
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_52b_goodB2GSink(undefined8 param_1) { CWE404_Improper_Resource_Shutdown__fopen_w32_close_52c_goodB2GSink(param_1); return; }
['gcc']
1,118
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_52c_goodB2GSink(FILE * data) { if (data != NULL) { /* FIX: Close the file using fclose() */ fclose(data); } }
['/* FIX: Close the file using fclose() */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100937/CWE404_Improper_Resource_Shutdown__fopen_w32_close_52c.c
CWE404_Improper_Resource_Shutdown__fopen_w32_close_52c_goodB2GSink
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_52c_goodB2GSink(long param_1) { if (param_1 != 0) { func_0x00400a40(param_1); } return; }
['gcc']
1,119
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_53_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100938/CWE404_Improper_Resource_Shutdown__fopen_w32_close_53a.c
CWE404_Improper_Resource_Shutdown__fopen_w32_close_53_good
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_53_good(void) { goodB2G(); return; }
['gcc']
1,120
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_53b_goodB2GSink(FILE * data) { CWE404_Improper_Resource_Shutdown__fopen_w32_close_53c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100938/CWE404_Improper_Resource_Shutdown__fopen_w32_close_53b.c
CWE404_Improper_Resource_Shutdown__fopen_w32_close_53b_goodB2GSink
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_53b_goodB2GSink(undefined8 param_1) { CWE404_Improper_Resource_Shutdown__fopen_w32_close_53c_goodB2GSink(param_1); return; }
['gcc']
1,121
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_53c_goodB2GSink(FILE * data) { CWE404_Improper_Resource_Shutdown__fopen_w32_close_53d_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100938/CWE404_Improper_Resource_Shutdown__fopen_w32_close_53c.c
CWE404_Improper_Resource_Shutdown__fopen_w32_close_53c_goodB2GSink
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_53c_goodB2GSink(undefined8 param_1) { CWE404_Improper_Resource_Shutdown__fopen_w32_close_53d_goodB2GSink(param_1); return; }
['gcc']
1,122
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_53d_goodB2GSink(FILE * data) { if (data != NULL) { /* FIX: Close the file using fclose() */ fclose(data); } }
['/* FIX: Close the file using fclose() */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100938/CWE404_Improper_Resource_Shutdown__fopen_w32_close_53d.c
CWE404_Improper_Resource_Shutdown__fopen_w32_close_53d_goodB2GSink
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_53d_goodB2GSink(long param_1) { if (param_1 != 0) { func_0x00400a40(param_1); } return; }
['gcc']
1,123
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_54_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100939/CWE404_Improper_Resource_Shutdown__fopen_w32_close_54a.c
CWE404_Improper_Resource_Shutdown__fopen_w32_close_54_good
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_54_good(void) { goodB2G(); return; }
['gcc']
1,124
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_54b_goodB2GSink(FILE * data) { CWE404_Improper_Resource_Shutdown__fopen_w32_close_54c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100939/CWE404_Improper_Resource_Shutdown__fopen_w32_close_54b.c
CWE404_Improper_Resource_Shutdown__fopen_w32_close_54b_goodB2GSink
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_54b_goodB2GSink(undefined8 param_1) { CWE404_Improper_Resource_Shutdown__fopen_w32_close_54c_goodB2GSink(param_1); return; }
['gcc']
1,125
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_54c_goodB2GSink(FILE * data) { CWE404_Improper_Resource_Shutdown__fopen_w32_close_54d_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100939/CWE404_Improper_Resource_Shutdown__fopen_w32_close_54c.c
CWE404_Improper_Resource_Shutdown__fopen_w32_close_54c_goodB2GSink
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_54c_goodB2GSink(undefined8 param_1) { CWE404_Improper_Resource_Shutdown__fopen_w32_close_54d_goodB2GSink(param_1); return; }
['gcc']
1,126
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_54d_goodB2GSink(FILE * data) { CWE404_Improper_Resource_Shutdown__fopen_w32_close_54e_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100939/CWE404_Improper_Resource_Shutdown__fopen_w32_close_54d.c
CWE404_Improper_Resource_Shutdown__fopen_w32_close_54d_goodB2GSink
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_54d_goodB2GSink(undefined8 param_1) { CWE404_Improper_Resource_Shutdown__fopen_w32_close_54e_goodB2GSink(param_1); return; }
['gcc']
1,127
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_54e_goodB2GSink(FILE * data) { if (data != NULL) { /* FIX: Close the file using fclose() */ fclose(data); } }
['/* FIX: Close the file using fclose() */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100939/CWE404_Improper_Resource_Shutdown__fopen_w32_close_54e.c
CWE404_Improper_Resource_Shutdown__fopen_w32_close_54e_goodB2GSink
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_54e_goodB2GSink(long param_1) { if (param_1 != 0) { func_0x00400a40(param_1); } return; }
['gcc']
1,128
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_64_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100943/CWE404_Improper_Resource_Shutdown__fopen_w32_close_64a.c
CWE404_Improper_Resource_Shutdown__fopen_w32_close_64_good
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_64_good(void) { goodB2G(); return; }
['gcc']
1,129
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_64b_goodB2GSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ FILE * * dataPtr = (FILE * *)dataVoidPtr; /* dereference dataPtr into data */ FILE * data = (*dataPtr); if (data != NULL) { /* FIX: Close the file using fclose() */ fclose(data); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* FIX: Close the file using fclose() */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100943/CWE404_Improper_Resource_Shutdown__fopen_w32_close_64b.c
CWE404_Improper_Resource_Shutdown__fopen_w32_close_64b_goodB2GSink
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_64b_goodB2GSink(long *param_1) { if (*param_1 != 0) { func_0x00400a40(*param_1); } return; }
['gcc']
1,130
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_66_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100945/CWE404_Improper_Resource_Shutdown__fopen_w32_close_66a.c
CWE404_Improper_Resource_Shutdown__fopen_w32_close_66_good
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_66_good(void) { goodB2G(); return; }
['gcc']
1,131
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_66b_goodB2GSink(FILE * dataArray[]) { FILE * data = dataArray[2]; if (data != NULL) { /* FIX: Close the file using fclose() */ fclose(data); } }
['/* FIX: Close the file using fclose() */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100945/CWE404_Improper_Resource_Shutdown__fopen_w32_close_66b.c
CWE404_Improper_Resource_Shutdown__fopen_w32_close_66b_goodB2GSink
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_66b_goodB2GSink(long param_1) { if (*(long *)(param_1 + 0x10) != 0) { func_0x00400a40(*(long *)(param_1 + 0x10)); } return; }
['gcc']
1,132
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_67_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100946/CWE404_Improper_Resource_Shutdown__fopen_w32_close_67a.c
CWE404_Improper_Resource_Shutdown__fopen_w32_close_67_good
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_67_good(void) { goodB2G(); return; }
['gcc']
1,133
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_67b_goodB2GSink(CWE404_Improper_Resource_Shutdown__fopen_w32_close_67_structType myStruct) { FILE * data = myStruct.structFirst; if (data != NULL) { /* FIX: Close the file using fclose() */ fclose(data); } }
['/* FIX: Close the file using fclose() */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100946/CWE404_Improper_Resource_Shutdown__fopen_w32_close_67b.c
CWE404_Improper_Resource_Shutdown__fopen_w32_close_67b_goodB2GSink
void CWE404_Improper_Resource_Shutdown__fopen_w32_close_67b_goodB2GSink(long param_1) { if (param_1 != 0) { func_0x00400a40(param_1); } return; }
['gcc']
1,134
void CWE404_Improper_Resource_Shutdown__freopen_w32_close_66_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101041/CWE404_Improper_Resource_Shutdown__freopen_w32_close_66a.c
CWE404_Improper_Resource_Shutdown__freopen_w32_close_66_good
void CWE404_Improper_Resource_Shutdown__freopen_w32_close_66_good(void) { goodB2G(); return; }
['gcc']
1,135
void CWE404_Improper_Resource_Shutdown__freopen_w32_close_66b_goodB2GSink(FILE * dataArray[]) { FILE * data = dataArray[2]; if (data != NULL) { /* FIX: Close the file using fclose() */ fclose(data); } }
['/* FIX: Close the file using fclose() */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101041/CWE404_Improper_Resource_Shutdown__freopen_w32_close_66b.c
CWE404_Improper_Resource_Shutdown__freopen_w32_close_66b_goodB2GSink
void CWE404_Improper_Resource_Shutdown__freopen_w32_close_66b_goodB2GSink(long param_1) { if (*(long *)(param_1 + 0x10) != 0) { func_0x00400a80(*(long *)(param_1 + 0x10)); } return; }
['gcc']
1,136
void CWE404_Improper_Resource_Shutdown__freopen_w32_close_67_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101042/CWE404_Improper_Resource_Shutdown__freopen_w32_close_67a.c
CWE404_Improper_Resource_Shutdown__freopen_w32_close_67_good
void CWE404_Improper_Resource_Shutdown__freopen_w32_close_67_good(void) { goodB2G(); return; }
['gcc']
1,137
void CWE404_Improper_Resource_Shutdown__freopen_w32_close_67b_goodB2GSink(CWE404_Improper_Resource_Shutdown__freopen_w32_close_67_structType myStruct) { FILE * data = myStruct.structFirst; if (data != NULL) { /* FIX: Close the file using fclose() */ fclose(data); } }
['/* FIX: Close the file using fclose() */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101042/CWE404_Improper_Resource_Shutdown__freopen_w32_close_67b.c
CWE404_Improper_Resource_Shutdown__freopen_w32_close_67b_goodB2GSink
void CWE404_Improper_Resource_Shutdown__freopen_w32_close_67b_goodB2GSink(long param_1) { if (param_1 != 0) { func_0x00400a80(param_1); } return; }
['gcc']
1,138
void CWE404_Improper_Resource_Shutdown__open_fclose_52_bad() { int data; /* Initialize data */ data = -1; /* POTENTIAL FLAW: Open a file - need to make sure it is closed properly in the sink */ data = OPEN("BadSource_open.txt", O_RDWR|O_CREAT, S_IREAD|S_IWRITE); CWE404_Improper_Resource_Shutdown__open_fclose_52b_badSink(data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Open a file - need to make sure it is closed properly in the sink */']
['CWE404']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101081/CWE404_Improper_Resource_Shutdown__open_fclose_52a.c
CWE404_Improper_Resource_Shutdown__open_fclose_52_bad
void CWE404_Improper_Resource_Shutdown__open_fclose_52_bad(void) { undefined4 uVar1; uVar1 = func_0x00400ad0(&UNK_004011c4,0x42,0x180); CWE404_Improper_Resource_Shutdown__open_fclose_52b_badSink(uVar1); return; }
['gcc']
1,139
void CWE404_Improper_Resource_Shutdown__open_fclose_52_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101081/CWE404_Improper_Resource_Shutdown__open_fclose_52a.c
CWE404_Improper_Resource_Shutdown__open_fclose_52_good
void CWE404_Improper_Resource_Shutdown__open_fclose_52_good(void) { goodB2G(); return; }
['gcc']
1,140
void CWE404_Improper_Resource_Shutdown__open_fclose_52b_badSink(int data) { CWE404_Improper_Resource_Shutdown__open_fclose_52c_badSink(data); }
[]
['CWE404']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101081/CWE404_Improper_Resource_Shutdown__open_fclose_52b.c
CWE404_Improper_Resource_Shutdown__open_fclose_52b_badSink
void CWE404_Improper_Resource_Shutdown__open_fclose_52b_badSink(undefined4 param_1) { CWE404_Improper_Resource_Shutdown__open_fclose_52c_badSink(param_1); return; }
['gcc']
1,141
void CWE404_Improper_Resource_Shutdown__open_fclose_52b_goodB2GSink(int data) { CWE404_Improper_Resource_Shutdown__open_fclose_52c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101081/CWE404_Improper_Resource_Shutdown__open_fclose_52b.c
CWE404_Improper_Resource_Shutdown__open_fclose_52b_goodB2GSink
void CWE404_Improper_Resource_Shutdown__open_fclose_52b_goodB2GSink(undefined4 param_1) { CWE404_Improper_Resource_Shutdown__open_fclose_52c_goodB2GSink(param_1); return; }
['gcc']
1,142
void CWE404_Improper_Resource_Shutdown__open_fclose_52c_badSink(int data) { if (data != -1) { /* FLAW: Attempt to close the file using fclose() instead of close() */ fclose((FILE *)data); } }
['/* FLAW: Attempt to close the file using fclose() instead of close() */']
['CWE404']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101081/CWE404_Improper_Resource_Shutdown__open_fclose_52c.c
CWE404_Improper_Resource_Shutdown__open_fclose_52c_badSink
void CWE404_Improper_Resource_Shutdown__open_fclose_52c_badSink(int param_1) { if (param_1 != -1) { func_0x00400a40((long)param_1); } return; }
['gcc']
1,143
void CWE404_Improper_Resource_Shutdown__open_fclose_52c_goodB2GSink(int data) { if (data != -1) { /* FIX: Close the file using close() */ CLOSE(data); } }
['/* FIX: Close the file using close() */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101081/CWE404_Improper_Resource_Shutdown__open_fclose_52c.c
CWE404_Improper_Resource_Shutdown__open_fclose_52c_goodB2GSink
void CWE404_Improper_Resource_Shutdown__open_fclose_52c_goodB2GSink(int param_1) { if (param_1 != -1) { func_0x00400a50(param_1); } return; }
['gcc']
1,144
void CWE404_Improper_Resource_Shutdown__open_fclose_53_bad() { int data; /* Initialize data */ data = -1; /* POTENTIAL FLAW: Open a file - need to make sure it is closed properly in the sink */ data = OPEN("BadSource_open.txt", O_RDWR|O_CREAT, S_IREAD|S_IWRITE); CWE404_Improper_Resource_Shutdown__open_fclose_53b_badSink(data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Open a file - need to make sure it is closed properly in the sink */']
['CWE404']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101082/CWE404_Improper_Resource_Shutdown__open_fclose_53a.c
CWE404_Improper_Resource_Shutdown__open_fclose_53_bad
void CWE404_Improper_Resource_Shutdown__open_fclose_53_bad(void) { undefined4 uVar1; uVar1 = func_0x00400ad0(&UNK_004011d4,0x42,0x180); CWE404_Improper_Resource_Shutdown__open_fclose_53b_badSink(uVar1); return; }
['gcc']
1,145
void CWE404_Improper_Resource_Shutdown__open_fclose_53_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101082/CWE404_Improper_Resource_Shutdown__open_fclose_53a.c
CWE404_Improper_Resource_Shutdown__open_fclose_53_good
void CWE404_Improper_Resource_Shutdown__open_fclose_53_good(void) { goodB2G(); return; }
['gcc']
1,146
void CWE404_Improper_Resource_Shutdown__open_fclose_53b_badSink(int data) { CWE404_Improper_Resource_Shutdown__open_fclose_53c_badSink(data); }
[]
['CWE404']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101082/CWE404_Improper_Resource_Shutdown__open_fclose_53b.c
CWE404_Improper_Resource_Shutdown__open_fclose_53b_badSink
void CWE404_Improper_Resource_Shutdown__open_fclose_53b_badSink(undefined4 param_1) { CWE404_Improper_Resource_Shutdown__open_fclose_53c_badSink(param_1); return; }
['gcc']
1,147
void CWE404_Improper_Resource_Shutdown__open_fclose_53b_goodB2GSink(int data) { CWE404_Improper_Resource_Shutdown__open_fclose_53c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101082/CWE404_Improper_Resource_Shutdown__open_fclose_53b.c
CWE404_Improper_Resource_Shutdown__open_fclose_53b_goodB2GSink
void CWE404_Improper_Resource_Shutdown__open_fclose_53b_goodB2GSink(undefined4 param_1) { CWE404_Improper_Resource_Shutdown__open_fclose_53c_goodB2GSink(param_1); return; }
['gcc']
1,148
void CWE404_Improper_Resource_Shutdown__open_fclose_53c_badSink(int data) { CWE404_Improper_Resource_Shutdown__open_fclose_53d_badSink(data); }
[]
['CWE404']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101082/CWE404_Improper_Resource_Shutdown__open_fclose_53c.c
CWE404_Improper_Resource_Shutdown__open_fclose_53c_badSink
void CWE404_Improper_Resource_Shutdown__open_fclose_53c_badSink(undefined4 param_1) { CWE404_Improper_Resource_Shutdown__open_fclose_53d_badSink(param_1); return; }
['gcc']
1,149
void CWE404_Improper_Resource_Shutdown__open_fclose_53c_goodB2GSink(int data) { CWE404_Improper_Resource_Shutdown__open_fclose_53d_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101082/CWE404_Improper_Resource_Shutdown__open_fclose_53c.c
CWE404_Improper_Resource_Shutdown__open_fclose_53c_goodB2GSink
void CWE404_Improper_Resource_Shutdown__open_fclose_53c_goodB2GSink(undefined4 param_1) { CWE404_Improper_Resource_Shutdown__open_fclose_53d_goodB2GSink(param_1); return; }
['gcc']
1,150
void CWE404_Improper_Resource_Shutdown__open_fclose_53d_badSink(int data) { if (data != -1) { /* FLAW: Attempt to close the file using fclose() instead of close() */ fclose((FILE *)data); } }
['/* FLAW: Attempt to close the file using fclose() instead of close() */']
['CWE404']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101082/CWE404_Improper_Resource_Shutdown__open_fclose_53d.c
CWE404_Improper_Resource_Shutdown__open_fclose_53d_badSink
void CWE404_Improper_Resource_Shutdown__open_fclose_53d_badSink(int param_1) { if (param_1 != -1) { func_0x00400a40((long)param_1); } return; }
['gcc']
1,151
void CWE404_Improper_Resource_Shutdown__open_fclose_53d_goodB2GSink(int data) { if (data != -1) { /* FIX: Close the file using close() */ CLOSE(data); } }
['/* FIX: Close the file using close() */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101082/CWE404_Improper_Resource_Shutdown__open_fclose_53d.c
CWE404_Improper_Resource_Shutdown__open_fclose_53d_goodB2GSink
void CWE404_Improper_Resource_Shutdown__open_fclose_53d_goodB2GSink(int param_1) { if (param_1 != -1) { func_0x00400a50(param_1); } return; }
['gcc']
1,152
void CWE404_Improper_Resource_Shutdown__open_fclose_64_bad() { int data; /* Initialize data */ data = -1; /* POTENTIAL FLAW: Open a file - need to make sure it is closed properly in the sink */ data = OPEN("BadSource_open.txt", O_RDWR|O_CREAT, S_IREAD|S_IWRITE); CWE404_Improper_Resource_Shutdown__open_fclose_64b_badSink(&data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Open a file - need to make sure it is closed properly in the sink */']
['CWE404']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101087/CWE404_Improper_Resource_Shutdown__open_fclose_64a.c
CWE404_Improper_Resource_Shutdown__open_fclose_64_bad
void CWE404_Improper_Resource_Shutdown__open_fclose_64_bad(void) { undefined4 uStack_c; uStack_c = 0xffffffff; uStack_c = func_0x00400ad0(&UNK_004011c4,0x42,0x180); CWE404_Improper_Resource_Shutdown__open_fclose_64b_badSink(&uStack_c); return; }
['gcc']
1,153
void CWE404_Improper_Resource_Shutdown__open_fclose_64_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101087/CWE404_Improper_Resource_Shutdown__open_fclose_64a.c
CWE404_Improper_Resource_Shutdown__open_fclose_64_good
void CWE404_Improper_Resource_Shutdown__open_fclose_64_good(void) { goodB2G(); return; }
['gcc']
1,154
void CWE404_Improper_Resource_Shutdown__open_fclose_64b_badSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ int * dataPtr = (int *)dataVoidPtr; /* dereference dataPtr into data */ int data = (*dataPtr); if (data != -1) { /* FLAW: Attempt to close the file using fclose() instead of close() */ fclose((FILE *)data); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* FLAW: Attempt to close the file using fclose() instead of close() */']
['CWE404']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101087/CWE404_Improper_Resource_Shutdown__open_fclose_64b.c
CWE404_Improper_Resource_Shutdown__open_fclose_64b_badSink
void CWE404_Improper_Resource_Shutdown__open_fclose_64b_badSink(int *param_1) { if (*param_1 != -1) { func_0x00400a40((long)*param_1); } return; }
['gcc']
1,155
void CWE404_Improper_Resource_Shutdown__open_fclose_64b_goodB2GSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ int * dataPtr = (int *)dataVoidPtr; /* dereference dataPtr into data */ int data = (*dataPtr); if (data != -1) { /* FIX: Close the file using close() */ CLOSE(data); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* FIX: Close the file using close() */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101087/CWE404_Improper_Resource_Shutdown__open_fclose_64b.c
CWE404_Improper_Resource_Shutdown__open_fclose_64b_goodB2GSink
void CWE404_Improper_Resource_Shutdown__open_fclose_64b_goodB2GSink(int *param_1) { if (*param_1 != -1) { func_0x00400a50(*param_1); } return; }
['gcc']
1,156
void CWE404_Improper_Resource_Shutdown__open_fclose_66_bad() { int data; int dataArray[5]; /* Initialize data */ data = -1; /* POTENTIAL FLAW: Open a file - need to make sure it is closed properly in the sink */ data = OPEN("BadSource_open.txt", O_RDWR|O_CREAT, S_IREAD|S_IWRITE); /* put data in array */ dataArray[2] = data; CWE404_Improper_Resource_Shutdown__open_fclose_66b_badSink(dataArray); }
['/* Initialize data */', '/* POTENTIAL FLAW: Open a file - need to make sure it is closed properly in the sink */', '/* put data in array */']
['CWE404']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101089/CWE404_Improper_Resource_Shutdown__open_fclose_66a.c
CWE404_Improper_Resource_Shutdown__open_fclose_66_bad
void CWE404_Improper_Resource_Shutdown__open_fclose_66_bad(void) { undefined auStack_28 [8]; undefined4 uStack_20; undefined4 uStack_c; uStack_c = 0xffffffff; uStack_20 = func_0x00400ad0(&UNK_004011c4,0x42,0x180); uStack_c = uStack_20; CWE404_Improper_Resource_Shutdown__open_fclose_66b_badSink(auStack_28); return; }
['gcc']
1,157
void CWE404_Improper_Resource_Shutdown__open_fclose_66_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101089/CWE404_Improper_Resource_Shutdown__open_fclose_66a.c
CWE404_Improper_Resource_Shutdown__open_fclose_66_good
void CWE404_Improper_Resource_Shutdown__open_fclose_66_good(void) { goodB2G(); return; }
['gcc']
1,158
void CWE404_Improper_Resource_Shutdown__open_fclose_66b_badSink(int dataArray[]) { /* copy data out of dataArray */ int data = dataArray[2]; if (data != -1) { /* FLAW: Attempt to close the file using fclose() instead of close() */ fclose((FILE *)data); } }
['/* copy data out of dataArray */', '/* FLAW: Attempt to close the file using fclose() instead of close() */']
['CWE404']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101089/CWE404_Improper_Resource_Shutdown__open_fclose_66b.c
CWE404_Improper_Resource_Shutdown__open_fclose_66b_badSink
void CWE404_Improper_Resource_Shutdown__open_fclose_66b_badSink(long param_1) { if (*(int *)(param_1 + 8) != -1) { func_0x00400a40((long)*(int *)(param_1 + 8)); } return; }
['gcc']
1,159
void CWE404_Improper_Resource_Shutdown__open_fclose_66b_goodB2GSink(int dataArray[]) { int data = dataArray[2]; if (data != -1) { /* FIX: Close the file using close() */ CLOSE(data); } }
['/* FIX: Close the file using close() */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101089/CWE404_Improper_Resource_Shutdown__open_fclose_66b.c
CWE404_Improper_Resource_Shutdown__open_fclose_66b_goodB2GSink
void CWE404_Improper_Resource_Shutdown__open_fclose_66b_goodB2GSink(long param_1) { if (*(int *)(param_1 + 8) != -1) { func_0x00400a50(*(int *)(param_1 + 8)); } return; }
['gcc']
1,160
void CWE404_Improper_Resource_Shutdown__open_fclose_67_bad() { int data; CWE404_Improper_Resource_Shutdown__open_fclose_67_structType myStruct; /* Initialize data */ data = -1; /* POTENTIAL FLAW: Open a file - need to make sure it is closed properly in the sink */ data = OPEN("BadSource_open.txt", O_RDWR|O_CREAT, S_IREAD|S_IWRITE); myStruct.structFirst = data; CWE404_Improper_Resource_Shutdown__open_fclose_67b_badSink(myStruct); }
['/* Initialize data */', '/* POTENTIAL FLAW: Open a file - need to make sure it is closed properly in the sink */']
['CWE404']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101090/CWE404_Improper_Resource_Shutdown__open_fclose_67a.c
CWE404_Improper_Resource_Shutdown__open_fclose_67_bad
void CWE404_Improper_Resource_Shutdown__open_fclose_67_bad(void) { undefined4 uVar1; uVar1 = func_0x00400ad0(&UNK_004011b4,0x42,0x180); CWE404_Improper_Resource_Shutdown__open_fclose_67b_badSink(uVar1); return; }
['gcc']
1,161
void CWE404_Improper_Resource_Shutdown__open_fclose_67_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101090/CWE404_Improper_Resource_Shutdown__open_fclose_67a.c
CWE404_Improper_Resource_Shutdown__open_fclose_67_good
void CWE404_Improper_Resource_Shutdown__open_fclose_67_good(void) { goodB2G(); return; }
['gcc']
1,162
void CWE404_Improper_Resource_Shutdown__open_fclose_67b_badSink(CWE404_Improper_Resource_Shutdown__open_fclose_67_structType myStruct) { int data = myStruct.structFirst; if (data != -1) { /* FLAW: Attempt to close the file using fclose() instead of close() */ fclose((FILE *)data); } }
['/* FLAW: Attempt to close the file using fclose() instead of close() */']
['CWE404']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101090/CWE404_Improper_Resource_Shutdown__open_fclose_67b.c
CWE404_Improper_Resource_Shutdown__open_fclose_67b_badSink
void CWE404_Improper_Resource_Shutdown__open_fclose_67b_badSink(int param_1) { if (param_1 != -1) { func_0x00400a40((long)param_1); } return; }
['gcc']
1,163
void CWE404_Improper_Resource_Shutdown__open_fclose_67b_goodB2GSink(CWE404_Improper_Resource_Shutdown__open_fclose_67_structType myStruct) { int data = myStruct.structFirst; if (data != -1) { /* FIX: Close the file using close() */ CLOSE(data); } }
['/* FIX: Close the file using close() */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101090/CWE404_Improper_Resource_Shutdown__open_fclose_67b.c
CWE404_Improper_Resource_Shutdown__open_fclose_67b_goodB2GSink
void CWE404_Improper_Resource_Shutdown__open_fclose_67b_goodB2GSink(int param_1) { if (param_1 != -1) { func_0x00400a50(param_1); } return; }
['gcc']
1,164
void CWE415_Double_Free__malloc_free_char_08_bad() { char * data; /* Initialize data */ data = NULL; if(staticReturnsTrue()) { data = (char *)malloc(100*sizeof(char)); /* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */ free(data); } if(staticReturnsTrue()) { /* POTENTIAL FLAW: Possibly freeing memory twice */ free(data); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */', '/* POTENTIAL FLAW: Possibly freeing memory twice */']
['CWE415']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101250/CWE415_Double_Free__malloc_free_char_08.c
CWE415_Double_Free__malloc_free_char_08_bad
void CWE415_Double_Free__malloc_free_char_08_bad(void) { int iVar1; undefined8 uStack_10; uStack_10 = 0; iVar1 = staticReturnsTrue(); if (iVar1 != 0) { uStack_10 = func_0x00400ab0(100); func_0x00400a20(uStack_10); } iVar1 = staticReturnsTrue(); if (iVar1 != 0) { func_0x00400a20(uStack_10); } return; }
['gcc']
1,165
void CWE415_Double_Free__malloc_free_char_08_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101250/CWE415_Double_Free__malloc_free_char_08.c
CWE415_Double_Free__malloc_free_char_08_good
void CWE415_Double_Free__malloc_free_char_08_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,166
void CWE415_Double_Free__malloc_free_char_11_bad() { char * data; /* Initialize data */ data = NULL; if(globalReturnsTrue()) { data = (char *)malloc(100*sizeof(char)); /* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */ free(data); } if(globalReturnsTrue()) { /* POTENTIAL FLAW: Possibly freeing memory twice */ free(data); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */', '/* POTENTIAL FLAW: Possibly freeing memory twice */']
['CWE415']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101253/CWE415_Double_Free__malloc_free_char_11.c
CWE415_Double_Free__malloc_free_char_11_bad
void CWE415_Double_Free__malloc_free_char_11_bad(void) { int iVar1; undefined8 uStack_10; uStack_10 = 0; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { uStack_10 = func_0x00400ab0(100); func_0x00400a20(uStack_10); } iVar1 = globalReturnsTrue(); if (iVar1 != 0) { func_0x00400a20(uStack_10); } return; }
['gcc']
1,167
void CWE415_Double_Free__malloc_free_char_11_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101253/CWE415_Double_Free__malloc_free_char_11.c
CWE415_Double_Free__malloc_free_char_11_good
void CWE415_Double_Free__malloc_free_char_11_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,168
void CWE415_Double_Free__malloc_free_char_12_bad() { char * data; /* Initialize data */ data = NULL; if(globalReturnsTrueOrFalse()) { data = (char *)malloc(100*sizeof(char)); /* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */ free(data); } else { data = (char *)malloc(100*sizeof(char)); /* FIX: Do NOT free data in the source - the bad sink frees data */ } if(globalReturnsTrueOrFalse()) { /* POTENTIAL FLAW: Possibly freeing memory twice */ free(data); } else { /* do nothing */ /* FIX: Don't attempt to free the memory */ ; /* empty statement needed for some flow variants */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */', '/* FIX: Do NOT free data in the source - the bad sink frees data */', '/* POTENTIAL FLAW: Possibly freeing memory twice */', '/* do nothing */', "/* FIX: Don't attempt to free the memory */", '/* empty statement needed for some flow variants */']
['CWE415']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101254/CWE415_Double_Free__malloc_free_char_12.c
CWE415_Double_Free__malloc_free_char_12_bad
void CWE415_Double_Free__malloc_free_char_12_bad(void) { int iVar1; undefined8 uStack_10; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { uStack_10 = func_0x00400ab0(100); } else { uStack_10 = func_0x00400ab0(100); func_0x00400a20(uStack_10); } iVar1 = globalReturnsTrueOrFalse(); if (iVar1 != 0) { func_0x00400a20(uStack_10); } return; }
['gcc']
1,169
void CWE415_Double_Free__malloc_free_char_12_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101254/CWE415_Double_Free__malloc_free_char_12.c
CWE415_Double_Free__malloc_free_char_12_good
void CWE415_Double_Free__malloc_free_char_12_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
1,170
void CWE415_Double_Free__malloc_free_char_53_bad() { char * data; /* Initialize data */ data = NULL; data = (char *)malloc(100*sizeof(char)); /* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */ free(data); CWE415_Double_Free__malloc_free_char_53b_badSink(data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */']
['CWE415']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101274/CWE415_Double_Free__malloc_free_char_53a.c
CWE415_Double_Free__malloc_free_char_53_bad
void CWE415_Double_Free__malloc_free_char_53_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ab0(100); func_0x00400a20(uVar1); CWE415_Double_Free__malloc_free_char_53b_badSink(uVar1); return; }
['gcc']
1,171
void CWE415_Double_Free__malloc_free_char_53_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101274/CWE415_Double_Free__malloc_free_char_53a.c
CWE415_Double_Free__malloc_free_char_53_good
void CWE415_Double_Free__malloc_free_char_53_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
1,172
void CWE415_Double_Free__malloc_free_char_53b_badSink(char * data) { CWE415_Double_Free__malloc_free_char_53c_badSink(data); }
[]
['CWE415']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101274/CWE415_Double_Free__malloc_free_char_53b.c
CWE415_Double_Free__malloc_free_char_53b_badSink
void CWE415_Double_Free__malloc_free_char_53b_badSink(undefined8 param_1) { CWE415_Double_Free__malloc_free_char_53c_badSink(param_1); return; }
['gcc']
1,173
void CWE415_Double_Free__malloc_free_char_53b_goodG2BSink(char * data) { CWE415_Double_Free__malloc_free_char_53c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101274/CWE415_Double_Free__malloc_free_char_53b.c
CWE415_Double_Free__malloc_free_char_53b_goodG2BSink
void CWE415_Double_Free__malloc_free_char_53b_goodG2BSink(undefined8 param_1) { CWE415_Double_Free__malloc_free_char_53c_goodG2BSink(param_1); return; }
['gcc']
1,174
void CWE415_Double_Free__malloc_free_char_53b_goodB2GSink(char * data) { CWE415_Double_Free__malloc_free_char_53c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101274/CWE415_Double_Free__malloc_free_char_53b.c
CWE415_Double_Free__malloc_free_char_53b_goodB2GSink
void CWE415_Double_Free__malloc_free_char_53b_goodB2GSink(undefined8 param_1) { CWE415_Double_Free__malloc_free_char_53c_goodB2GSink(param_1); return; }
['gcc']
1,175
void CWE415_Double_Free__malloc_free_char_53c_badSink(char * data) { CWE415_Double_Free__malloc_free_char_53d_badSink(data); }
[]
['CWE415']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101274/CWE415_Double_Free__malloc_free_char_53c.c
CWE415_Double_Free__malloc_free_char_53c_badSink
void CWE415_Double_Free__malloc_free_char_53c_badSink(undefined8 param_1) { CWE415_Double_Free__malloc_free_char_53d_badSink(param_1); return; }
['gcc']
1,176
void CWE415_Double_Free__malloc_free_char_53c_goodG2BSink(char * data) { CWE415_Double_Free__malloc_free_char_53d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101274/CWE415_Double_Free__malloc_free_char_53c.c
CWE415_Double_Free__malloc_free_char_53c_goodG2BSink
void CWE415_Double_Free__malloc_free_char_53c_goodG2BSink(undefined8 param_1) { CWE415_Double_Free__malloc_free_char_53d_goodG2BSink(param_1); return; }
['gcc']
1,177
void CWE415_Double_Free__malloc_free_char_53c_goodB2GSink(char * data) { CWE415_Double_Free__malloc_free_char_53d_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101274/CWE415_Double_Free__malloc_free_char_53c.c
CWE415_Double_Free__malloc_free_char_53c_goodB2GSink
void CWE415_Double_Free__malloc_free_char_53c_goodB2GSink(undefined8 param_1) { CWE415_Double_Free__malloc_free_char_53d_goodB2GSink(param_1); return; }
['gcc']
1,178
void CWE415_Double_Free__malloc_free_char_53d_badSink(char * data) { /* POTENTIAL FLAW: Possibly freeing memory twice */ free(data); }
['/* POTENTIAL FLAW: Possibly freeing memory twice */']
['CWE415']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101274/CWE415_Double_Free__malloc_free_char_53d.c
CWE415_Double_Free__malloc_free_char_53d_badSink
void CWE415_Double_Free__malloc_free_char_53d_badSink(undefined8 param_1) { func_0x00400a20(param_1); return; }
['gcc']
1,179
void CWE415_Double_Free__malloc_free_char_53d_goodG2BSink(char * data) { /* POTENTIAL FLAW: Possibly freeing memory twice */ free(data); }
['/* POTENTIAL FLAW: Possibly freeing memory twice */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101274/CWE415_Double_Free__malloc_free_char_53d.c
CWE415_Double_Free__malloc_free_char_53d_goodG2BSink
void CWE415_Double_Free__malloc_free_char_53d_goodG2BSink(undefined8 param_1) { func_0x00400a20(param_1); return; }
['gcc']
1,180
void CWE415_Double_Free__malloc_free_char_53d_goodB2GSink(char * data) { /* do nothing */ /* FIX: Don't attempt to free the memory */ ; /* empty statement needed for some flow variants */ }
['/* do nothing */', "/* FIX: Don't attempt to free the memory */", '/* empty statement needed for some flow variants */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101274/CWE415_Double_Free__malloc_free_char_53d.c
CWE415_Double_Free__malloc_free_char_53d_goodB2GSink
void CWE415_Double_Free__malloc_free_char_53d_goodB2GSink(void) { return; }
['gcc']
1,181
void CWE415_Double_Free__malloc_free_char_66_bad() { char * data; char * dataArray[5]; /* Initialize data */ data = NULL; data = (char *)malloc(100*sizeof(char)); /* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */ free(data); /* put data in array */ dataArray[2] = data; CWE415_Double_Free__malloc_free_char_66b_badSink(dataArray); }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */', '/* put data in array */']
['CWE415']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101281/CWE415_Double_Free__malloc_free_char_66a.c
CWE415_Double_Free__malloc_free_char_66_bad
void CWE415_Double_Free__malloc_free_char_66_bad(void) { undefined auStack_38 [16]; undefined8 uStack_28; undefined8 uStack_10; uStack_10 = 0; uStack_10 = func_0x00400ab0(100); func_0x00400a20(uStack_10); uStack_28 = uStack_10; CWE415_Double_Free__malloc_free_char_66b_badSink(auStack_38); return; }
['gcc']
1,182
void CWE415_Double_Free__malloc_free_char_66_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101281/CWE415_Double_Free__malloc_free_char_66a.c
CWE415_Double_Free__malloc_free_char_66_good
void CWE415_Double_Free__malloc_free_char_66_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
1,183
void CWE415_Double_Free__malloc_free_char_66b_badSink(char * dataArray[]) { /* copy data out of dataArray */ char * data = dataArray[2]; /* POTENTIAL FLAW: Possibly freeing memory twice */ free(data); }
['/* copy data out of dataArray */', '/* POTENTIAL FLAW: Possibly freeing memory twice */']
['CWE415']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101281/CWE415_Double_Free__malloc_free_char_66b.c
CWE415_Double_Free__malloc_free_char_66b_badSink
void CWE415_Double_Free__malloc_free_char_66b_badSink(long param_1) { func_0x00400a20(*(undefined8 *)(param_1 + 0x10)); return; }
['gcc']
1,184
void CWE415_Double_Free__malloc_free_char_66b_goodG2BSink(char * dataArray[]) { char * data = dataArray[2]; /* POTENTIAL FLAW: Possibly freeing memory twice */ free(data); }
['/* POTENTIAL FLAW: Possibly freeing memory twice */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101281/CWE415_Double_Free__malloc_free_char_66b.c
CWE415_Double_Free__malloc_free_char_66b_goodG2BSink
void CWE415_Double_Free__malloc_free_char_66b_goodG2BSink(long param_1) { func_0x00400a20(*(undefined8 *)(param_1 + 0x10)); return; }
['gcc']
1,185
void CWE415_Double_Free__malloc_free_char_66b_goodB2GSink(char * dataArray[]) { char * data = dataArray[2]; /* do nothing */ /* FIX: Don't attempt to free the memory */ ; /* empty statement needed for some flow variants */ }
['/* do nothing */', "/* FIX: Don't attempt to free the memory */", '/* empty statement needed for some flow variants */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101281/CWE415_Double_Free__malloc_free_char_66b.c
CWE415_Double_Free__malloc_free_char_66b_goodB2GSink
void CWE415_Double_Free__malloc_free_char_66b_goodB2GSink(void) { return; }
['gcc']
1,186
void CWE415_Double_Free__malloc_free_char_67_bad() { char * data; CWE415_Double_Free__malloc_free_char_67_structType myStruct; /* Initialize data */ data = NULL; data = (char *)malloc(100*sizeof(char)); /* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */ free(data); myStruct.structFirst = data; CWE415_Double_Free__malloc_free_char_67b_badSink(myStruct); }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */']
['CWE415']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101282/CWE415_Double_Free__malloc_free_char_67a.c
CWE415_Double_Free__malloc_free_char_67_bad
void CWE415_Double_Free__malloc_free_char_67_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ab0(100); func_0x00400a20(uVar1); CWE415_Double_Free__malloc_free_char_67b_badSink(uVar1); return; }
['gcc']
1,187
void CWE415_Double_Free__malloc_free_char_67_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101282/CWE415_Double_Free__malloc_free_char_67a.c
CWE415_Double_Free__malloc_free_char_67_good
void CWE415_Double_Free__malloc_free_char_67_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
1,188
void CWE415_Double_Free__malloc_free_char_67b_badSink(CWE415_Double_Free__malloc_free_char_67_structType myStruct) { char * data = myStruct.structFirst; /* POTENTIAL FLAW: Possibly freeing memory twice */ free(data); }
['/* POTENTIAL FLAW: Possibly freeing memory twice */']
['CWE415']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101282/CWE415_Double_Free__malloc_free_char_67b.c
CWE415_Double_Free__malloc_free_char_67b_badSink
void CWE415_Double_Free__malloc_free_char_67b_badSink(undefined8 param_1) { func_0x00400a20(param_1); return; }
['gcc']
1,189
void CWE415_Double_Free__malloc_free_char_67b_goodG2BSink(CWE415_Double_Free__malloc_free_char_67_structType myStruct) { char * data = myStruct.structFirst; /* POTENTIAL FLAW: Possibly freeing memory twice */ free(data); }
['/* POTENTIAL FLAW: Possibly freeing memory twice */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101282/CWE415_Double_Free__malloc_free_char_67b.c
CWE415_Double_Free__malloc_free_char_67b_goodG2BSink
void CWE415_Double_Free__malloc_free_char_67b_goodG2BSink(undefined8 param_1) { func_0x00400a20(param_1); return; }
['gcc']
1,190
void CWE415_Double_Free__malloc_free_char_67b_goodB2GSink(CWE415_Double_Free__malloc_free_char_67_structType myStruct) { char * data = myStruct.structFirst; /* do nothing */ /* FIX: Don't attempt to free the memory */ ; /* empty statement needed for some flow variants */ }
['/* do nothing */', "/* FIX: Don't attempt to free the memory */", '/* empty statement needed for some flow variants */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101282/CWE415_Double_Free__malloc_free_char_67b.c
CWE415_Double_Free__malloc_free_char_67b_goodB2GSink
void CWE415_Double_Free__malloc_free_char_67b_goodB2GSink(void) { return; }
['gcc']
1,191
void CWE415_Double_Free__malloc_free_int64_t_08_bad() { int64_t * data; /* Initialize data */ data = NULL; if(staticReturnsTrue()) { data = (int64_t *)malloc(100*sizeof(int64_t)); /* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */ free(data); } if(staticReturnsTrue()) { /* POTENTIAL FLAW: Possibly freeing memory twice */ free(data); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */', '/* POTENTIAL FLAW: Possibly freeing memory twice */']
['CWE415']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101298/CWE415_Double_Free__malloc_free_int64_t_08.c
CWE415_Double_Free__malloc_free_int64_t_08_bad
void CWE415_Double_Free__malloc_free_int64_t_08_bad(void) { int iVar1; undefined8 uStack_10; uStack_10 = 0; iVar1 = staticReturnsTrue(); if (iVar1 != 0) { uStack_10 = func_0x00400ab0(800); func_0x00400a20(uStack_10); } iVar1 = staticReturnsTrue(); if (iVar1 != 0) { func_0x00400a20(uStack_10); } return; }
['gcc']
1,192
void CWE415_Double_Free__malloc_free_int64_t_08_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101298/CWE415_Double_Free__malloc_free_int64_t_08.c
CWE415_Double_Free__malloc_free_int64_t_08_good
void CWE415_Double_Free__malloc_free_int64_t_08_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,193
void CWE415_Double_Free__malloc_free_int64_t_11_bad() { int64_t * data; /* Initialize data */ data = NULL; if(globalReturnsTrue()) { data = (int64_t *)malloc(100*sizeof(int64_t)); /* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */ free(data); } if(globalReturnsTrue()) { /* POTENTIAL FLAW: Possibly freeing memory twice */ free(data); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */', '/* POTENTIAL FLAW: Possibly freeing memory twice */']
['CWE415']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101301/CWE415_Double_Free__malloc_free_int64_t_11.c
CWE415_Double_Free__malloc_free_int64_t_11_bad
void CWE415_Double_Free__malloc_free_int64_t_11_bad(void) { int iVar1; undefined8 uStack_10; uStack_10 = 0; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { uStack_10 = func_0x00400ab0(800); func_0x00400a20(uStack_10); } iVar1 = globalReturnsTrue(); if (iVar1 != 0) { func_0x00400a20(uStack_10); } return; }
['gcc']
1,194
void CWE415_Double_Free__malloc_free_int64_t_11_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101301/CWE415_Double_Free__malloc_free_int64_t_11.c
CWE415_Double_Free__malloc_free_int64_t_11_good
void CWE415_Double_Free__malloc_free_int64_t_11_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,195
void CWE415_Double_Free__malloc_free_int64_t_12_bad() { int64_t * data; /* Initialize data */ data = NULL; if(globalReturnsTrueOrFalse()) { data = (int64_t *)malloc(100*sizeof(int64_t)); /* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */ free(data); } else { data = (int64_t *)malloc(100*sizeof(int64_t)); /* FIX: Do NOT free data in the source - the bad sink frees data */ } if(globalReturnsTrueOrFalse()) { /* POTENTIAL FLAW: Possibly freeing memory twice */ free(data); } else { /* do nothing */ /* FIX: Don't attempt to free the memory */ ; /* empty statement needed for some flow variants */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */', '/* FIX: Do NOT free data in the source - the bad sink frees data */', '/* POTENTIAL FLAW: Possibly freeing memory twice */', '/* do nothing */', "/* FIX: Don't attempt to free the memory */", '/* empty statement needed for some flow variants */']
['CWE415']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101302/CWE415_Double_Free__malloc_free_int64_t_12.c
CWE415_Double_Free__malloc_free_int64_t_12_bad
void CWE415_Double_Free__malloc_free_int64_t_12_bad(void) { int iVar1; undefined8 uStack_10; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { uStack_10 = func_0x00400ab0(800); } else { uStack_10 = func_0x00400ab0(800); func_0x00400a20(uStack_10); } iVar1 = globalReturnsTrueOrFalse(); if (iVar1 != 0) { func_0x00400a20(uStack_10); } return; }
['gcc']
1,196
void CWE415_Double_Free__malloc_free_int64_t_12_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101302/CWE415_Double_Free__malloc_free_int64_t_12.c
CWE415_Double_Free__malloc_free_int64_t_12_good
void CWE415_Double_Free__malloc_free_int64_t_12_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
1,197
void CWE415_Double_Free__malloc_free_int64_t_53_bad() { int64_t * data; /* Initialize data */ data = NULL; data = (int64_t *)malloc(100*sizeof(int64_t)); /* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */ free(data); CWE415_Double_Free__malloc_free_int64_t_53b_badSink(data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */']
['CWE415']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101322/CWE415_Double_Free__malloc_free_int64_t_53a.c
CWE415_Double_Free__malloc_free_int64_t_53_bad
void CWE415_Double_Free__malloc_free_int64_t_53_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ab0(800); func_0x00400a20(uVar1); CWE415_Double_Free__malloc_free_int64_t_53b_badSink(uVar1); return; }
['gcc']
1,198
void CWE415_Double_Free__malloc_free_int64_t_53_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101322/CWE415_Double_Free__malloc_free_int64_t_53a.c
CWE415_Double_Free__malloc_free_int64_t_53_good
void CWE415_Double_Free__malloc_free_int64_t_53_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
1,199
void CWE415_Double_Free__malloc_free_int64_t_53b_badSink(int64_t * data) { CWE415_Double_Free__malloc_free_int64_t_53c_badSink(data); }
[]
['CWE415']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101322/CWE415_Double_Free__malloc_free_int64_t_53b.c
CWE415_Double_Free__malloc_free_int64_t_53b_badSink
void CWE415_Double_Free__malloc_free_int64_t_53b_badSink(undefined8 param_1) { CWE415_Double_Free__malloc_free_int64_t_53c_badSink(param_1); return; }
['gcc']