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
200
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_63b_goodB2GSink(struct _twoIntsStruct * * dataPtr) { struct _twoIntsStruct * 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/100461/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_63b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_63b_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_63b_goodB2GSink(undefined8 *param_1) { func_0x00400a20(*param_1); return; }
['gcc']
201
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_64_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_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/100462/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_64a.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_64_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_64_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_64b_badSink(&puStack_10); return; }
['gcc']
202
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_64_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100462/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_64a.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_64_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_64_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
203
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_64b_badSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ struct _twoIntsStruct * * dataPtr = (struct _twoIntsStruct * *)dataVoidPtr; /* dereference dataPtr into data */ struct _twoIntsStruct * 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/100462/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_64b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_64b_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_64b_badSink(void) { return; }
['gcc']
204
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_64b_goodG2BSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ struct _twoIntsStruct * * dataPtr = (struct _twoIntsStruct * *)dataVoidPtr; /* dereference dataPtr into data */ struct _twoIntsStruct * 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/100462/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_64b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_64b_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_64b_goodG2BSink(void) { return; }
['gcc']
205
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_64b_goodB2GSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ struct _twoIntsStruct * * dataPtr = (struct _twoIntsStruct * *)dataVoidPtr; /* dereference dataPtr into data */ struct _twoIntsStruct * 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/100462/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_64b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_64b_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_64b_goodB2GSink(undefined8 *param_1) { func_0x00400a20(*param_1); return; }
['gcc']
206
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_66_bad() { struct _twoIntsStruct * data; struct _twoIntsStruct * dataArray[5]; 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]); /* put data in array */ dataArray[2] = data; CWE401_Memory_Leak__struct_twoIntsStruct_calloc_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/100464/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_66a.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_66_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_66_bad(void) { undefined auStack_38 [16]; undefined4 *puStack_28; undefined4 *puStack_10; puStack_10 = (undefined4 *)0x0; puStack_10 = (undefined4 *)func_0x00400a40(100,8); *puStack_10 = 0; puStack_10[1] = 0; printStructLine(puStack_10); puStack_28 = puStack_10; CWE401_Memory_Leak__struct_twoIntsStruct_calloc_66b_badSink(auStack_38); return; }
['gcc']
207
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_66_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100464/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_66a.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_66_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_66_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
208
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_66b_badSink(struct _twoIntsStruct * dataArray[]) { /* copy data out of dataArray */ struct _twoIntsStruct * 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/100464/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_66b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_66b_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_66b_badSink(void) { return; }
['gcc']
209
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_66b_goodG2BSink(struct _twoIntsStruct * dataArray[]) { struct _twoIntsStruct * 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/100464/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_66b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_66b_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_66b_goodG2BSink(void) { return; }
['gcc']
210
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_66b_goodB2GSink(struct _twoIntsStruct * dataArray[]) { struct _twoIntsStruct * 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/100464/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_66b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_66b_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_66b_goodB2GSink(long param_1) { func_0x00400a20(*(undefined8 *)(param_1 + 0x10)); return; }
['gcc']
211
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_67_bad() { struct _twoIntsStruct * data; CWE401_Memory_Leak__struct_twoIntsStruct_calloc_67_structType myStruct; 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]); myStruct.structFirst = data; CWE401_Memory_Leak__struct_twoIntsStruct_calloc_67b_badSink(myStruct); }
['/* 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/100465/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_67a.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_67_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_67_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); CWE401_Memory_Leak__struct_twoIntsStruct_calloc_67b_badSink(puVar1); return; }
['gcc']
212
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_67_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100465/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_67a.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_67_good
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_67_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
213
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_67b_badSink(CWE401_Memory_Leak__struct_twoIntsStruct_calloc_67_structType myStruct) { struct _twoIntsStruct * data = myStruct.structFirst; /* 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/100465/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_67b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_67b_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_67b_badSink(void) { return; }
['gcc']
214
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_67b_goodG2BSink(CWE401_Memory_Leak__struct_twoIntsStruct_calloc_67_structType myStruct) { struct _twoIntsStruct * data = myStruct.structFirst; /* 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/100465/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_67b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_67b_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_67b_goodG2BSink(void) { return; }
['gcc']
215
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_67b_goodB2GSink(CWE401_Memory_Leak__struct_twoIntsStruct_calloc_67_structType myStruct) { struct _twoIntsStruct * data = myStruct.structFirst; /* 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/100465/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_67b.c
CWE401_Memory_Leak__struct_twoIntsStruct_calloc_67b_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_calloc_67b_goodB2GSink(undefined8 param_1) { func_0x00400a20(param_1); return; }
['gcc']
216
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_02_bad() { struct _twoIntsStruct * data; data = NULL; if(1) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)malloc(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/100475/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_02.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_02_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_02_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a60(800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
217
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_02_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100475/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_02.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_02_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_02_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
218
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_03_bad() { struct _twoIntsStruct * data; data = NULL; if(5==5) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)malloc(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/100476/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_03.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_03_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_03_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a60(800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
219
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_03_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100476/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_03.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_03_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_03_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
220
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_04_bad() { struct _twoIntsStruct * data; data = NULL; if(STATIC_CONST_TRUE) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)malloc(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/100477/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_04.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_04_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_04_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a60(800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
221
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_04_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100477/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_04.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_04_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_04_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
222
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_05_bad() { struct _twoIntsStruct * data; data = NULL; if(staticTrue) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)malloc(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/100478/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_05.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_05_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_05_bad(void) { undefined4 *puVar1; if (staticTrue != 0) { puVar1 = (undefined4 *)func_0x00400a60(800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); } return; }
['gcc']
223
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_05_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100478/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_05.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_05_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_05_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
224
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_06_bad() { struct _twoIntsStruct * data; data = NULL; if(STATIC_CONST_FIVE==5) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)malloc(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/100479/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_06.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_06_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_06_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a60(800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
225
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_06_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100479/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_06.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_06_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_06_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
226
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_07_bad() { struct _twoIntsStruct * data; data = NULL; if(staticFive==5) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)malloc(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/100480/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_07.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_07_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_07_bad(void) { undefined4 *puVar1; if (staticFive == 5) { puVar1 = (undefined4 *)func_0x00400a60(800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); } return; }
['gcc']
227
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_07_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100480/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_07.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_07_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_07_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
228
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_08_bad() { struct _twoIntsStruct * data; data = NULL; if(staticReturnsTrue()) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)malloc(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/100481/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_08.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_08_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_08_bad(void) { int iVar1; undefined4 *puVar2; iVar1 = staticReturnsTrue(); if (iVar1 != 0) { puVar2 = (undefined4 *)func_0x00400a60(800); *puVar2 = 0; puVar2[1] = 0; printStructLine(puVar2); } staticReturnsTrue(); return; }
['gcc']
229
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_08_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100481/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_08.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_08_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_08_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
230
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_09_bad() { struct _twoIntsStruct * data; data = NULL; if(GLOBAL_CONST_TRUE) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)malloc(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/100482/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_09.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_09_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_09_bad(void) { undefined4 *puVar1; if (GLOBAL_CONST_TRUE != 0) { puVar1 = (undefined4 *)func_0x00400a60(800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); } return; }
['gcc']
231
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_09_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100482/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_09.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_09_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_09_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
232
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_10_bad() { struct _twoIntsStruct * data; data = NULL; if(globalTrue) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)malloc(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/100483/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_10.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_10_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_10_bad(void) { undefined4 *puVar1; if (globalTrue != 0) { puVar1 = (undefined4 *)func_0x00400a60(800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); } return; }
['gcc']
233
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_10_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100483/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_10.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_10_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_10_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
234
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_11_bad() { struct _twoIntsStruct * data; data = NULL; if(globalReturnsTrue()) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)malloc(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/100484/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_11.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_11_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_11_bad(void) { int iVar1; undefined4 *puVar2; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { puVar2 = (undefined4 *)func_0x00400a60(800); *puVar2 = 0; puVar2[1] = 0; printStructLine(puVar2); } globalReturnsTrue(); return; }
['gcc']
235
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_11_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100484/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_11.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_11_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_11_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
236
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_12_bad() { struct _twoIntsStruct * data; data = NULL; if(globalReturnsTrueOrFalse()) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)malloc(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/100485/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_12.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_12_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_12_bad(undefined8 param_1,undefined8 param_2) { 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,param_2,7); } else { puStack_20 = &UNK_00400bfa; puStack_10 = (undefined4 *)func_0x00400ab0(800); *puStack_10 = 0; puStack_10[1] = 0; puStack_20 = &UNK_00400c1f; printStructLine(puStack_10); } *(undefined **)(puVar2 + -8) = &UNK_00400c82; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { *(undefined **)(puVar2 + -8) = &UNK_00400c92; func_0x00400a20(puStack_10); } return; }
['gcc']
237
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_12_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100485/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_12.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_12_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_12_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
238
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_13_bad() { struct _twoIntsStruct * data; data = NULL; if(GLOBAL_CONST_FIVE==5) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)malloc(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/100486/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_13.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_13_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_13_bad(void) { undefined4 *puVar1; if (GLOBAL_CONST_FIVE == 5) { puVar1 = (undefined4 *)func_0x00400a60(800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); } return; }
['gcc']
239
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_13_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100486/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_13.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_13_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_13_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
240
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_14_bad() { struct _twoIntsStruct * data; data = NULL; if(globalFive==5) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)malloc(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/100487/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_14.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_14_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_14_bad(void) { undefined4 *puVar1; if (globalFive == 5) { puVar1 = (undefined4 *)func_0x00400a60(800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); } return; }
['gcc']
241
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_14_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100487/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_14.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_14_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_14_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
242
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_15_bad() { struct _twoIntsStruct * data; data = NULL; switch(6) { case 6: /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)malloc(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/100488/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_15.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_15_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_15_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a60(800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
243
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_15_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100488/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_15.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_15_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_15_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
244
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_16_bad() { struct _twoIntsStruct * data; data = NULL; while(1) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)malloc(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/100489/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_16.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_16_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_16_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a60(800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
245
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_16_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100489/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_16.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_16_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_16_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
246
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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 *)malloc(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/100490/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_17.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_17_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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_0x00400a60(800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); } for (iStack_10 = 0; iStack_10 < 1; iStack_10 = iStack_10 + 1) { } return; }
['gcc']
247
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_17_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100490/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_17.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_17_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_17_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
248
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_21_bad() { struct _twoIntsStruct * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)malloc(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/100492/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_21.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_21_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_21_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a60(800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); badStatic = 1; badSink(puVar1); return; }
['gcc']
249
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_21_good() { goodB2G1(); goodB2G2(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100492/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_21.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_21_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_21_good(void) { goodB2G1(); goodB2G2(); goodG2B(); return; }
['gcc']
250
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_31_bad() { struct _twoIntsStruct * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)malloc(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/100494/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_31.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_31_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_31_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a60(800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
251
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_31_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100494/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_31.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_31_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_31_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
252
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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 *)malloc(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/100495/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_32.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_32_bad
/* WARNING: Restarted to delay deadcode elimination for space: stack */ void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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_0x00400a60(800); *puStack_20 = 0; puStack_20[1] = 0; printStructLine(puStack_20); *puStack_10 = puStack_20; return; }
['gcc']
253
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_32_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100495/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_32.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_32_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_32_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
254
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_34_bad() { struct _twoIntsStruct * data; CWE401_Memory_Leak__struct_twoIntsStruct_malloc_34_unionType myUnion; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)malloc(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/100497/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_34.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_34_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_34_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a60(800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
255
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_34_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100497/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_34.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_34_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_34_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
256
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_41_bad() { struct _twoIntsStruct * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)malloc(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/100498/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_41.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_41_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_41_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a60(800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); badSink(puVar1); return; }
['gcc']
257
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_41_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100498/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_41.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_41_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_41_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
258
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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/100499/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_42.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_42_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_42_bad(void) { badSource(0); return; }
['gcc']
259
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_42_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100499/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_42.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_42_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_42_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
260
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_51_bad() { struct _twoIntsStruct * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)malloc(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_malloc_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/100503/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_51a.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_51_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_51_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a60(800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); CWE401_Memory_Leak__struct_twoIntsStruct_malloc_51b_badSink(puVar1); return; }
['gcc']
261
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_51_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100503/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_51a.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_51_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_51_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
262
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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/100503/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_51b.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_51b_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_51b_badSink(void) { return; }
['gcc']
263
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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/100503/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_51b.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_51b_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_51b_goodG2BSink(void) { return; }
['gcc']
264
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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/100503/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_51b.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_51b_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_51b_goodB2GSink(undefined8 param_1) { func_0x00400a20(param_1); return; }
['gcc']
265
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52_bad() { struct _twoIntsStruct * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)malloc(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_malloc_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/100504/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52a.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a60(800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52b_badSink(puVar1); return; }
['gcc']
266
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100504/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52a.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
267
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52b_badSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52c_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100504/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52b.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52b_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52b_badSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52c_badSink(param_1); return; }
['gcc']
268
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52b_goodG2BSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100504/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52b.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52b_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52b_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52c_goodG2BSink(param_1); return; }
['gcc']
269
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52b_goodB2GSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100504/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52b.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52b_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52b_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52c_goodB2GSink(param_1); return; }
['gcc']
270
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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/100504/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52c.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52c_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52c_badSink(void) { return; }
['gcc']
271
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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/100504/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52c.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52c_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52c_goodG2BSink(void) { return; }
['gcc']
272
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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/100504/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52c.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52c_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_52c_goodB2GSink(undefined8 param_1) { func_0x00400a20(param_1); return; }
['gcc']
273
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53_bad() { struct _twoIntsStruct * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)malloc(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_malloc_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/100505/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53a.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a60(800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53b_badSink(puVar1); return; }
['gcc']
274
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100505/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53a.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
275
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53b_badSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53c_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100505/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53b.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53b_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53b_badSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53c_badSink(param_1); return; }
['gcc']
276
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53b_goodG2BSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100505/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53b.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53b_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53b_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53c_goodG2BSink(param_1); return; }
['gcc']
277
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53b_goodB2GSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100505/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53b.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53b_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53b_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53c_goodB2GSink(param_1); return; }
['gcc']
278
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53c_badSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53d_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100505/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53c.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53c_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53c_badSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53d_badSink(param_1); return; }
['gcc']
279
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53c_goodG2BSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100505/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53c.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53c_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53c_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53d_goodG2BSink(param_1); return; }
['gcc']
280
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53c_goodB2GSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53d_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100505/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53c.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53c_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53c_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53d_goodB2GSink(param_1); return; }
['gcc']
281
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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/100505/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53d.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53d_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53d_badSink(void) { return; }
['gcc']
282
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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/100505/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53d.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53d_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53d_goodG2BSink(void) { return; }
['gcc']
283
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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/100505/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53d.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53d_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_53d_goodB2GSink(undefined8 param_1) { func_0x00400a20(param_1); return; }
['gcc']
284
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54_bad() { struct _twoIntsStruct * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)malloc(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_malloc_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/100506/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54a.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a60(800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54b_badSink(puVar1); return; }
['gcc']
285
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100506/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54a.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
286
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54b_badSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54c_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100506/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54b.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54b_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54b_badSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54c_badSink(param_1); return; }
['gcc']
287
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54b_goodG2BSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100506/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54b.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54b_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54b_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54c_goodG2BSink(param_1); return; }
['gcc']
288
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54b_goodB2GSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100506/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54b.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54b_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54b_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54c_goodB2GSink(param_1); return; }
['gcc']
289
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54c_badSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54d_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100506/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54c.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54c_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54c_badSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54d_badSink(param_1); return; }
['gcc']
290
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54c_goodG2BSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100506/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54c.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54c_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54c_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54d_goodG2BSink(param_1); return; }
['gcc']
291
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54c_goodB2GSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54d_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100506/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54c.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54c_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54c_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54d_goodB2GSink(param_1); return; }
['gcc']
292
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54d_badSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54e_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100506/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54d.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54d_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54d_badSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54e_badSink(param_1); return; }
['gcc']
293
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54d_goodG2BSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54e_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100506/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54d.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54d_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54d_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54e_goodG2BSink(param_1); return; }
['gcc']
294
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54d_goodB2GSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54e_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100506/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54d.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54d_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54d_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54e_goodB2GSink(param_1); return; }
['gcc']
295
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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/100506/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54e.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54e_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54e_badSink(void) { return; }
['gcc']
296
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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/100506/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54e.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54e_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54e_goodG2BSink(void) { return; }
['gcc']
297
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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/100506/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54e.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54e_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_54e_goodB2GSink(undefined8 param_1) { func_0x00400a20(param_1); return; }
['gcc']
298
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_61_bad() { struct _twoIntsStruct * data; data = NULL; data = CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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/100507/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_61a.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_61_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_61_bad(void) { CWE401_Memory_Leak__struct_twoIntsStruct_malloc_61b_badSource(0); return; }
['gcc']
299
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_61_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100507/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_61a.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_61_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_61_good(void) { goodG2B(); goodB2G(); return; }
['gcc']