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
100
void CWE401_Memory_Leak__strdup_wchar_t_67b_badSink(CWE401_Memory_Leak__strdup_wchar_t_67_structType myStruct) { wchar_t * data = myStruct.structFirst; /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ }
['/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100417/CWE401_Memory_Leak__strdup_wchar_t_67b.c
CWE401_Memory_Leak__strdup_wchar_t_67b_badSink
void CWE401_Memory_Leak__strdup_wchar_t_67b_badSink(void) { return; }
['gcc']
101
void CWE401_Memory_Leak__strdup_wchar_t_67b_goodG2BSink(CWE401_Memory_Leak__strdup_wchar_t_67_structType myStruct) { wchar_t * data = myStruct.structFirst; /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ }
['/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100417/CWE401_Memory_Leak__strdup_wchar_t_67b.c
CWE401_Memory_Leak__strdup_wchar_t_67b_goodG2BSink
void CWE401_Memory_Leak__strdup_wchar_t_67b_goodG2BSink(void) { return; }
['gcc']
102
void CWE401_Memory_Leak__strdup_wchar_t_67b_goodB2GSink(CWE401_Memory_Leak__strdup_wchar_t_67_structType myStruct) { wchar_t * data = myStruct.structFirst; /* FIX: Deallocate memory initialized in the source */ free(data); }
['/* FIX: Deallocate memory initialized in the source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100417/CWE401_Memory_Leak__strdup_wchar_t_67b.c
CWE401_Memory_Leak__strdup_wchar_t_67b_goodB2GSink
void CWE401_Memory_Leak__strdup_wchar_t_67b_goodB2GSink(undefined8 param_1) { func_0x00400a60(param_1); return; }
['gcc']
103
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_02_bad() { struct _twoIntsStruct * data; data = NULL; if(1) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)calloc(100, sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); } if(1) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of 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/100427/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_02.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_02_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_02_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
104
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_02_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100427/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_02.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_02_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_02_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
105
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_03_bad() { struct _twoIntsStruct * data; data = NULL; if(5==5) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)calloc(100, sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); } if(5==5) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of 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/100428/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_03.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_03_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_03_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
106
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_03_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100428/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_03.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_03_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_03_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
107
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_04_bad() { struct _twoIntsStruct * data; data = NULL; if(STATIC_CONST_TRUE) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)calloc(100, sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); } if(STATIC_CONST_TRUE) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of 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/100429/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_04.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_04_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_04_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
108
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_04_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100429/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_04.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_04_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_04_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
109
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_05_bad() { struct _twoIntsStruct * data; data = NULL; if(staticTrue) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)calloc(100, sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); } if(staticTrue) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of 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/100430/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_05.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_05_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_05_bad(void) { undefined4 *puVar1; if (staticTrue != 0) { puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); } return; }
['gcc']
110
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_05_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100430/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_05.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_05_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_05_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
111
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_06_bad() { struct _twoIntsStruct * data; data = NULL; if(STATIC_CONST_FIVE==5) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)calloc(100, sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); } if(STATIC_CONST_FIVE==5) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of 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/100431/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_06.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_06_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_06_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
112
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_06_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100431/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_06.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_06_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_06_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
113
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_07_bad() { struct _twoIntsStruct * data; data = NULL; if(staticFive==5) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)calloc(100, sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); } if(staticFive==5) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of 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/100432/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_07.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_07_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_07_bad(void) { undefined4 *puVar1; if (staticFive == 5) { puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); } return; }
['gcc']
114
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_07_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100432/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_07.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_07_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_07_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
115
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_08_bad() { struct _twoIntsStruct * data; data = NULL; if(staticReturnsTrue()) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)calloc(100, sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); } if(staticReturnsTrue()) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of 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/100433/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_08.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_08_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_08_bad(void) { int iVar1; undefined4 *puVar2; iVar1 = staticReturnsTrue(); if (iVar1 != 0) { puVar2 = (undefined4 *)func_0x00400a40(100,8); *puVar2 = 0; puVar2[1] = 0; printStructLine(puVar2); } staticReturnsTrue(); return; }
['gcc']
116
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_08_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100433/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_08.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_08_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_08_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
117
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_09_bad() { struct _twoIntsStruct * data; data = NULL; if(GLOBAL_CONST_TRUE) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)calloc(100, sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); } if(GLOBAL_CONST_TRUE) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of 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/100434/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_09.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_09_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_09_bad(void) { undefined4 *puVar1; if (GLOBAL_CONST_TRUE != 0) { puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); } return; }
['gcc']
118
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_09_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100434/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_09.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_09_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_09_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
119
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_10_bad() { struct _twoIntsStruct * data; data = NULL; if(globalTrue) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)calloc(100, sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); } if(globalTrue) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of 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/100435/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_10.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_10_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_10_bad(void) { undefined4 *puVar1; if (globalTrue != 0) { puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); } return; }
['gcc']
120
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_10_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100435/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_10.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_10_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_10_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
121
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_11_bad() { struct _twoIntsStruct * data; data = NULL; if(globalReturnsTrue()) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)calloc(100, sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); } if(globalReturnsTrue()) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of 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/100436/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_11.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_11_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_11_bad(void) { int iVar1; undefined4 *puVar2; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { puVar2 = (undefined4 *)func_0x00400a40(100,8); *puVar2 = 0; puVar2[1] = 0; printStructLine(puVar2); } globalReturnsTrue(); return; }
['gcc']
122
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_11_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100436/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_11.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_11_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_11_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
123
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_12_bad() { struct _twoIntsStruct * data; data = NULL; if(globalReturnsTrueOrFalse()) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)calloc(100, sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); } else { /* FIX: Use memory allocated on the stack with ALLOCA */ data = (struct _twoIntsStruct *)ALLOCA(100*sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); } if(globalReturnsTrueOrFalse()) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ } else { /* FIX: Deallocate memory */ free(data); } }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* FIX: Use memory allocated on the stack with ALLOCA */', '/* Initialize and make use of data */', '/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */', '/* FIX: Deallocate memory */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100437/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_12.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_12_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_12_bad(void) { int iVar1; undefined *puVar2; undefined auStack_348 [8]; undefined4 uStack_340; undefined4 uStack_33c; undefined *puStack_20; undefined auStack_18 [8]; undefined4 *puStack_10; puVar2 = auStack_18; puStack_10 = (undefined4 *)0x0; puStack_20 = &UNK_00400bec; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { puVar2 = auStack_348; puStack_10 = &uStack_340; uStack_340 = 0; uStack_33c = 0; printStructLine(puStack_10); } else { puStack_20 = &UNK_00400bff; puStack_10 = (undefined4 *)func_0x00400a90(100,8); *puStack_10 = 0; puStack_10[1] = 0; puStack_20 = &UNK_00400c24; printStructLine(puStack_10); } *(undefined **)(puVar2 + -8) = &UNK_00400c87; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { *(undefined **)(puVar2 + -8) = &UNK_00400c97; func_0x00400a20(puStack_10); } return; }
['gcc']
124
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_12_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100437/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_12.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_12_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_12_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
125
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_13_bad() { struct _twoIntsStruct * data; data = NULL; if(GLOBAL_CONST_FIVE==5) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)calloc(100, sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); } if(GLOBAL_CONST_FIVE==5) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of 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/100438/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_13.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_13_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_13_bad(void) { undefined4 *puVar1; if (GLOBAL_CONST_FIVE == 5) { puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); } return; }
['gcc']
126
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_13_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100438/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_13.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_13_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_13_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
127
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_14_bad() { struct _twoIntsStruct * data; data = NULL; if(globalFive==5) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)calloc(100, sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); } if(globalFive==5) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of 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/100439/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_14.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_14_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_14_bad(void) { undefined4 *puVar1; if (globalFive == 5) { puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); } return; }
['gcc']
128
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_14_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100439/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_14.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_14_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_14_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
129
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_15_bad() { struct _twoIntsStruct * data; data = NULL; switch(6) { case 6: /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)calloc(100, sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } switch(7) { case 7: /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100440/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_15.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_15_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_15_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
130
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_15_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100440/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_15.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_15_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_15_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
131
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_16_bad() { struct _twoIntsStruct * data; data = NULL; while(1) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)calloc(100, sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); break; } while(1) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ break; } }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of 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/100441/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_16.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_16_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_16_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
132
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_16_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100441/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_16.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_16_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_16_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
133
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_17_bad() { int i,j; struct _twoIntsStruct * data; data = NULL; for(i = 0; i < 1; i++) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)calloc(100, sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); } for(j = 0; j < 1; j++) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of 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/100442/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_17.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_17_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_17_bad(void) { undefined4 *puVar1; int iStack_10; int iStack_c; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); } for (iStack_10 = 0; iStack_10 < 1; iStack_10 = iStack_10 + 1) { } return; }
['gcc']
134
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_17_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100442/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_17.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_17_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_17_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
135
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_21_bad() { struct _twoIntsStruct * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)calloc(100, sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); badStatic = 1; /* true */ badSink(data); }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* true */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100444/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_21.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_21_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_21_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); badStatic = 1; badSink(puVar1); return; }
['gcc']
136
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_21_good() { goodB2G1(); goodB2G2(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100444/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_21.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_21_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_21_good(void) { goodB2G1(); goodB2G2(); goodG2B(); return; }
['gcc']
137
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22_bad() { struct _twoIntsStruct * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)calloc(100, sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22_badGlobal = 1; /* true */ CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22_badSink(data); }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* true */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100445/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22a.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22_badGlobal = 1; CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22_badSink(puVar1); return; }
['gcc']
138
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22_good() { goodB2G1(); goodB2G2(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100445/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22a.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22_good(void) { goodB2G1(); goodB2G2(); goodG2B(); return; }
['gcc']
139
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22_badSink(struct _twoIntsStruct * data) { if(CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22_badGlobal) { /* 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/100445/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22_badSink(void) { return; }
['gcc']
140
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22_goodB2G1Sink(struct _twoIntsStruct * data) { if(CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22_goodB2G1Global) { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); } else { /* FIX: Deallocate memory */ free(data); } }
['/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* FIX: Deallocate memory */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100445/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22_goodB2G1Sink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22_goodB2G1Sink(undefined8 param_1) { if (CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22_goodB2G1Global == 0) { func_0x00400a20(param_1); } else { printLine(&UNK_00401314); } return; }
['gcc']
141
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22_goodB2G2Sink(struct _twoIntsStruct * data) { if(CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22_goodB2G2Global) { /* 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/100445/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22_goodB2G2Sink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22_goodB2G2Sink(undefined8 param_1) { if (CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22_goodB2G2Global != 0) { func_0x00400a20(param_1); } return; }
['gcc']
142
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22_goodG2BSink(struct _twoIntsStruct * data) { if(CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22_goodG2BGlobal) { /* 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/100445/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_22_goodG2BSink(void) { return; }
['gcc']
143
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_31_bad() { struct _twoIntsStruct * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)calloc(100, sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); { struct _twoIntsStruct * dataCopy = data; struct _twoIntsStruct * data = dataCopy; /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of 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/100446/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_31.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_31_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_31_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
144
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_31_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100446/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_31.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_31_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_31_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
145
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_32_bad() { struct _twoIntsStruct * data; struct _twoIntsStruct * *dataPtr1 = &data; struct _twoIntsStruct * *dataPtr2 = &data; data = NULL; { struct _twoIntsStruct * data = *dataPtr1; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)calloc(100, sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); *dataPtr1 = data; } { struct _twoIntsStruct * data = *dataPtr2; /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of 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/100447/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_32.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_32_bad
/* WARNING: Restarted to delay deadcode elimination for space: stack */ void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_32_bad(void) { undefined8 auStack_30 [2]; undefined4 *puStack_20; undefined8 *puStack_18; undefined8 *puStack_10; puStack_10 = auStack_30; puStack_18 = auStack_30; auStack_30[0] = 0; puStack_20 = (undefined4 *)0x0; puStack_20 = (undefined4 *)func_0x00400a40(100,8); *puStack_20 = 0; puStack_20[1] = 0; printStructLine(puStack_20); *puStack_10 = puStack_20; return; }
['gcc']
146
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_32_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100447/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_32.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_32_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_32_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
147
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_34_bad() { struct _twoIntsStruct * data; CWE401_Memory_Leak__struct_twoIntsStruct_calloc_34_unionType myUnion; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)calloc(100, sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); myUnion.unionFirst = data; { struct _twoIntsStruct * data = myUnion.unionSecond; /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of 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/100449/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_34.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_34_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_34_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
148
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_34_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100449/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_34.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_34_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_34_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
149
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_41_bad() { struct _twoIntsStruct * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)calloc(100, sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); 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/100450/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_41.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_41_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_41_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); badSink(puVar1); return; }
['gcc']
150
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_41_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100450/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_41.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_41_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_41_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
151
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_42_bad() { struct _twoIntsStruct * data; data = NULL; data = badSource(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/100451/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_42.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_42_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_42_bad(void) { badSource(0); return; }
['gcc']
152
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_42_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100451/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_42.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_42_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_42_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
153
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_51_bad() { struct _twoIntsStruct * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)calloc(100, sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); CWE401_Memory_Leak__struct_twoIntsStruct_calloc_51b_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/100455/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_51a.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_51_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_51_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); CWE401_Memory_Leak__struct_twoIntsStruct_calloc_51b_badSink(puVar1); return; }
['gcc']
154
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_51_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100455/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_51a.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_51_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_51_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
155
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_51b_badSink(struct _twoIntsStruct * 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/100455/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_51b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_51b_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_51b_badSink(void) { return; }
['gcc']
156
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_51b_goodG2BSink(struct _twoIntsStruct * 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/100455/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_51b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_51b_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_51b_goodG2BSink(void) { return; }
['gcc']
157
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_51b_goodB2GSink(struct _twoIntsStruct * 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/100455/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_51b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_51b_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_51b_goodB2GSink(undefined8 param_1) { func_0x00400a20(param_1); return; }
['gcc']
158
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52_bad() { struct _twoIntsStruct * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)calloc(100, sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52b_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/100456/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52a.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52b_badSink(puVar1); return; }
['gcc']
159
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100456/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52a.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
160
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52b_badSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52c_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100456/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52b_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52b_badSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52c_badSink(param_1); return; }
['gcc']
161
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52b_goodG2BSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100456/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52b_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52b_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52c_goodG2BSink(param_1); return; }
['gcc']
162
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52b_goodB2GSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100456/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52b_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52b_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52c_goodB2GSink(param_1); return; }
['gcc']
163
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52c_badSink(struct _twoIntsStruct * 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/100456/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52c.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52c_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52c_badSink(void) { return; }
['gcc']
164
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52c_goodG2BSink(struct _twoIntsStruct * 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/100456/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52c.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52c_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52c_goodG2BSink(void) { return; }
['gcc']
165
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52c_goodB2GSink(struct _twoIntsStruct * 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/100456/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52c.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52c_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_52c_goodB2GSink(undefined8 param_1) { func_0x00400a20(param_1); return; }
['gcc']
166
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53_bad() { struct _twoIntsStruct * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)calloc(100, sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53b_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/100457/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53a.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53b_badSink(puVar1); return; }
['gcc']
167
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100457/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53a.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
168
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53b_badSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53c_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100457/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53b_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53b_badSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53c_badSink(param_1); return; }
['gcc']
169
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53b_goodG2BSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100457/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53b_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53b_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53c_goodG2BSink(param_1); return; }
['gcc']
170
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53b_goodB2GSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100457/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53b_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53b_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53c_goodB2GSink(param_1); return; }
['gcc']
171
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53c_badSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53d_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100457/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53c.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53c_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53c_badSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53d_badSink(param_1); return; }
['gcc']
172
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53c_goodG2BSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100457/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53c.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53c_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53c_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53d_goodG2BSink(param_1); return; }
['gcc']
173
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53c_goodB2GSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53d_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100457/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53c.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53c_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53c_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53d_goodB2GSink(param_1); return; }
['gcc']
174
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53d_badSink(struct _twoIntsStruct * 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/100457/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53d.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53d_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53d_badSink(void) { return; }
['gcc']
175
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53d_goodG2BSink(struct _twoIntsStruct * 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/100457/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53d.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53d_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53d_goodG2BSink(void) { return; }
['gcc']
176
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53d_goodB2GSink(struct _twoIntsStruct * 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/100457/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53d.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53d_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_53d_goodB2GSink(undefined8 param_1) { func_0x00400a20(param_1); return; }
['gcc']
177
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54_bad() { struct _twoIntsStruct * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)calloc(100, sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54b_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/100458/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54a.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54b_badSink(puVar1); return; }
['gcc']
178
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100458/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54a.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
179
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54b_badSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54c_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100458/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54b_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54b_badSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54c_badSink(param_1); return; }
['gcc']
180
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54b_goodG2BSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100458/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54b_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54b_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54c_goodG2BSink(param_1); return; }
['gcc']
181
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54b_goodB2GSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100458/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54b_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54b_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54c_goodB2GSink(param_1); return; }
['gcc']
182
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54c_badSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54d_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100458/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54c.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54c_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54c_badSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54d_badSink(param_1); return; }
['gcc']
183
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54c_goodG2BSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100458/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54c.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54c_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54c_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54d_goodG2BSink(param_1); return; }
['gcc']
184
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54c_goodB2GSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54d_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100458/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54c.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54c_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54c_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54d_goodB2GSink(param_1); return; }
['gcc']
185
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54d_badSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54e_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100458/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54d.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54d_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54d_badSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54e_badSink(param_1); return; }
['gcc']
186
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54d_goodG2BSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54e_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100458/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54d.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54d_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54d_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54e_goodG2BSink(param_1); return; }
['gcc']
187
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54d_goodB2GSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54e_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100458/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54d.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54d_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54d_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54e_goodB2GSink(param_1); return; }
['gcc']
188
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54e_badSink(struct _twoIntsStruct * 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/100458/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54e.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54e_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54e_badSink(void) { return; }
['gcc']
189
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54e_goodG2BSink(struct _twoIntsStruct * 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/100458/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54e.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54e_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54e_goodG2BSink(void) { return; }
['gcc']
190
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54e_goodB2GSink(struct _twoIntsStruct * 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/100458/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54e.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54e_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_54e_goodB2GSink(undefined8 param_1) { func_0x00400a20(param_1); return; }
['gcc']
191
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_61_bad() { struct _twoIntsStruct * data; data = NULL; data = CWE401_Memory_Leak__struct_twoIntsStruct_calloc_61b_badSource(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/100459/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_61a.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_61_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_61_bad(void) { CWE401_Memory_Leak__struct_twoIntsStruct_calloc_61b_badSource(0); return; }
['gcc']
192
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_61_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100459/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_61a.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_61_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_61_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
193
struct _twoIntsStruct * CWE401_Memory_Leak__struct_twoIntsStruct_calloc_61b_badSource(struct _twoIntsStruct * data) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)calloc(100, sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); return 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/100459/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_61b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_61b_badSource
undefined4 * CWE401_Memory_Leak__struct_twoIntsStruct_calloc_61b_badSource(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return puVar1; }
['gcc']
194
struct _twoIntsStruct * CWE401_Memory_Leak__struct_twoIntsStruct_calloc_61b_goodG2BSource(struct _twoIntsStruct * data) { /* FIX: Use memory allocated on the stack with ALLOCA */ data = (struct _twoIntsStruct *)ALLOCA(100*sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); return data; }
['/* FIX: Use memory allocated on the stack with ALLOCA */', '/* Initialize and make use of data */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100459/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_61b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_61b_goodG2BSource
undefined4 * CWE401_Memory_Leak__struct_twoIntsStruct_calloc_61b_goodG2BSource (undefined8 param_1,undefined8 param_2) { undefined4 uStack_340; undefined4 uStack_33c; undefined4 *puStack_10; puStack_10 = &uStack_340; uStack_340 = 0; uStack_33c = 0; printStructLine(puStack_10,param_2,7); return puStack_10; }
['gcc']
195
struct _twoIntsStruct * CWE401_Memory_Leak__struct_twoIntsStruct_calloc_61b_goodB2GSource(struct _twoIntsStruct * data) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)calloc(100, sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); return data; }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100459/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_61b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_61b_goodB2GSource
undefined4 * CWE401_Memory_Leak__struct_twoIntsStruct_calloc_61b_goodB2GSource(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a90(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return puVar1; }
['gcc']
196
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_63_bad() { struct _twoIntsStruct * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)calloc(100, sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); CWE401_Memory_Leak__struct_twoIntsStruct_calloc_63b_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/100461/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_63a.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_63_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_63_bad(void) { undefined4 *puStack_10; puStack_10 = (undefined4 *)0x0; puStack_10 = (undefined4 *)func_0x00400a40(100,8); *puStack_10 = 0; puStack_10[1] = 0; printStructLine(puStack_10); CWE401_Memory_Leak__struct_twoIntsStruct_calloc_63b_badSink(&puStack_10); return; }
['gcc']
197
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_63_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100461/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_63a.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_63_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_63_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
198
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_63b_badSink(struct _twoIntsStruct * * dataPtr) { struct _twoIntsStruct * data = *dataPtr; /* 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/100461/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_63b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_63b_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_63b_badSink(void) { return; }
['gcc']
199
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_63b_goodG2BSink(struct _twoIntsStruct * * dataPtr) { struct _twoIntsStruct * data = *dataPtr; /* 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/100461/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_63b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_63b_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_63b_goodG2BSink(void) { return; }
['gcc']