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
300
struct _twoIntsStruct * CWE401_Memory_Leak__struct_twoIntsStruct_malloc_61b_badSource(struct _twoIntsStruct * data) { /* 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]); 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/100507/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_61b.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_61b_badSource
undefined4 * CWE401_Memory_Leak__struct_twoIntsStruct_malloc_61b_badSource(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a60(800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return puVar1; }
['gcc']
301
struct _twoIntsStruct * CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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/100507/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_61b.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_61b_goodG2BSource
undefined4 * CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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']
302
struct _twoIntsStruct * CWE401_Memory_Leak__struct_twoIntsStruct_malloc_61b_goodB2GSource(struct _twoIntsStruct * data) { /* 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]); 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/100507/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_61b.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_61b_goodB2GSource
undefined4 * CWE401_Memory_Leak__struct_twoIntsStruct_malloc_61b_goodB2GSource(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400ab0(800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return puVar1; }
['gcc']
303
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_63_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_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/100509/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_63a.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_63_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_63_bad(void) { undefined4 *puStack_10; puStack_10 = (undefined4 *)0x0; puStack_10 = (undefined4 *)func_0x00400a60(800); *puStack_10 = 0; puStack_10[1] = 0; printStructLine(puStack_10); CWE401_Memory_Leak__struct_twoIntsStruct_malloc_63b_badSink(&puStack_10); return; }
['gcc']
304
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_63_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100509/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_63a.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_63_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_63_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
305
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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/100509/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_63b.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_63b_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_63b_badSink(void) { return; }
['gcc']
306
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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/100509/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_63b.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_63b_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_63b_goodG2BSink(void) { return; }
['gcc']
307
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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/100509/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_63b.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_63b_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_63b_goodB2GSink(undefined8 *param_1) { func_0x00400a20(*param_1); return; }
['gcc']
308
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_64_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_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/100510/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_64a.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_64_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_64_bad(void) { undefined4 *puStack_10; puStack_10 = (undefined4 *)0x0; puStack_10 = (undefined4 *)func_0x00400a60(800); *puStack_10 = 0; puStack_10[1] = 0; printStructLine(puStack_10); CWE401_Memory_Leak__struct_twoIntsStruct_malloc_64b_badSink(&puStack_10); return; }
['gcc']
309
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_64_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100510/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_64a.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_64_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_64_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
310
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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/100510/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_64b.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_64b_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_64b_badSink(void) { return; }
['gcc']
311
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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/100510/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_64b.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_64b_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_64b_goodG2BSink(void) { return; }
['gcc']
312
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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/100510/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_64b.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_64b_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_64b_goodB2GSink(undefined8 *param_1) { func_0x00400a20(*param_1); return; }
['gcc']
313
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_66_bad() { struct _twoIntsStruct * data; struct _twoIntsStruct * dataArray[5]; 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]); /* put data in array */ dataArray[2] = data; CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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/100512/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_66a.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_66_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_66_bad(void) { undefined auStack_38 [16]; undefined4 *puStack_28; undefined4 *puStack_10; puStack_10 = (undefined4 *)0x0; puStack_10 = (undefined4 *)func_0x00400a60(800); *puStack_10 = 0; puStack_10[1] = 0; printStructLine(puStack_10); puStack_28 = puStack_10; CWE401_Memory_Leak__struct_twoIntsStruct_malloc_66b_badSink(auStack_38); return; }
['gcc']
314
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_66_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100512/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_66a.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_66_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_66_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
315
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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/100512/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_66b.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_66b_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_66b_badSink(void) { return; }
['gcc']
316
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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/100512/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_66b.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_66b_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_66b_goodG2BSink(void) { return; }
['gcc']
317
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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/100512/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_66b.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_66b_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_66b_goodB2GSink(long param_1) { func_0x00400a20(*(undefined8 *)(param_1 + 0x10)); return; }
['gcc']
318
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_67_bad() { struct _twoIntsStruct * data; CWE401_Memory_Leak__struct_twoIntsStruct_malloc_67_structType myStruct; 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]); myStruct.structFirst = data; CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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/100513/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_67a.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_67_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_67_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a60(800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); CWE401_Memory_Leak__struct_twoIntsStruct_malloc_67b_badSink(puVar1); return; }
['gcc']
319
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_67_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100513/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_67a.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_67_good
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_67_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
320
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_67b_badSink(CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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/100513/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_67b.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_67b_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_67b_badSink(void) { return; }
['gcc']
321
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_67b_goodG2BSink(CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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/100513/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_67b.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_67b_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_67b_goodG2BSink(void) { return; }
['gcc']
322
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_67b_goodB2GSink(CWE401_Memory_Leak__struct_twoIntsStruct_malloc_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/100513/CWE401_Memory_Leak__struct_twoIntsStruct_malloc_67b.c
CWE401_Memory_Leak__struct_twoIntsStruct_malloc_67b_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_malloc_67b_goodB2GSink(undefined8 param_1) { func_0x00400a20(param_1); return; }
['gcc']
323
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_01_bad() { struct _twoIntsStruct * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)realloc(data, 100*sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); /* 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/100522/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_01.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_01_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_01_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a80(0,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
324
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_01_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100522/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_01.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_01_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_01_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
325
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_02_bad() { struct _twoIntsStruct * data; data = NULL; if(1) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)realloc(data, 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/100523/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_02.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_02_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_02_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a80(0,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
326
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_02_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100523/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_02.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_02_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_02_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
327
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_03_bad() { struct _twoIntsStruct * data; data = NULL; if(5==5) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)realloc(data, 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/100524/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_03.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_03_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_03_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a80(0,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
328
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_03_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100524/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_03.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_03_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_03_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
329
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_04_bad() { struct _twoIntsStruct * data; data = NULL; if(STATIC_CONST_TRUE) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)realloc(data, 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/100525/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_04.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_04_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_04_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a80(0,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
330
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_04_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100525/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_04.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_04_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_04_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
331
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_05_bad() { struct _twoIntsStruct * data; data = NULL; if(staticTrue) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)realloc(data, 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/100526/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_05.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_05_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_05_bad(void) { undefined4 *puVar1; if (staticTrue != 0) { puVar1 = (undefined4 *)func_0x00400a80(0,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); } return; }
['gcc']
332
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_05_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100526/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_05.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_05_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_05_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
333
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_06_bad() { struct _twoIntsStruct * data; data = NULL; if(STATIC_CONST_FIVE==5) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)realloc(data, 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/100527/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_06.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_06_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_06_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a80(0,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
334
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_06_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100527/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_06.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_06_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_06_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
335
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_07_bad() { struct _twoIntsStruct * data; data = NULL; if(staticFive==5) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)realloc(data, 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/100528/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_07.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_07_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_07_bad(void) { undefined4 *puVar1; if (staticFive == 5) { puVar1 = (undefined4 *)func_0x00400a80(0,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); } return; }
['gcc']
336
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_07_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100528/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_07.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_07_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_07_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
337
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_08_bad() { struct _twoIntsStruct * data; data = NULL; if(staticReturnsTrue()) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)realloc(data, 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/100529/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_08.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_08_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_08_bad(void) { int iVar1; undefined4 *puVar2; iVar1 = staticReturnsTrue(); if (iVar1 != 0) { puVar2 = (undefined4 *)func_0x00400a80(0,800); *puVar2 = 0; puVar2[1] = 0; printStructLine(puVar2); } staticReturnsTrue(); return; }
['gcc']
338
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_08_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100529/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_08.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_08_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_08_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
339
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_09_bad() { struct _twoIntsStruct * data; data = NULL; if(GLOBAL_CONST_TRUE) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)realloc(data, 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/100530/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_09.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_09_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_09_bad(void) { undefined4 *puVar1; if (GLOBAL_CONST_TRUE != 0) { puVar1 = (undefined4 *)func_0x00400a80(0,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); } return; }
['gcc']
340
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_09_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100530/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_09.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_09_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_09_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
341
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_10_bad() { struct _twoIntsStruct * data; data = NULL; if(globalTrue) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)realloc(data, 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/100531/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_10.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_10_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_10_bad(void) { undefined4 *puVar1; if (globalTrue != 0) { puVar1 = (undefined4 *)func_0x00400a80(0,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); } return; }
['gcc']
342
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_10_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100531/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_10.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_10_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_10_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
343
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_11_bad() { struct _twoIntsStruct * data; data = NULL; if(globalReturnsTrue()) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)realloc(data, 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/100532/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_11.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_11_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_11_bad(void) { int iVar1; undefined4 *puVar2; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { puVar2 = (undefined4 *)func_0x00400a80(0,800); *puVar2 = 0; puVar2[1] = 0; printStructLine(puVar2); } globalReturnsTrue(); return; }
['gcc']
344
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_11_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100532/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_11.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_11_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_11_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
345
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_12_bad() { struct _twoIntsStruct * data; data = NULL; if(globalReturnsTrueOrFalse()) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)realloc(data, 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/100533/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_12.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_12_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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_00400c01; puStack_10 = (undefined4 *)func_0x00400ad0(puStack_10,800); *puStack_10 = 0; puStack_10[1] = 0; puStack_20 = &UNK_00400c26; printStructLine(puStack_10); } *(undefined **)(puVar2 + -8) = &UNK_00400c89; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { *(undefined **)(puVar2 + -8) = &UNK_00400c99; func_0x00400a20(puStack_10); } return; }
['gcc']
346
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_12_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100533/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_12.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_12_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_12_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
347
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_13_bad() { struct _twoIntsStruct * data; data = NULL; if(GLOBAL_CONST_FIVE==5) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)realloc(data, 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/100534/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_13.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_13_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_13_bad(void) { undefined4 *puVar1; if (GLOBAL_CONST_FIVE == 5) { puVar1 = (undefined4 *)func_0x00400a80(0,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); } return; }
['gcc']
348
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_13_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100534/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_13.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_13_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_13_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
349
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_14_bad() { struct _twoIntsStruct * data; data = NULL; if(globalFive==5) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)realloc(data, 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/100535/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_14.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_14_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_14_bad(void) { undefined4 *puVar1; if (globalFive == 5) { puVar1 = (undefined4 *)func_0x00400a80(0,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); } return; }
['gcc']
350
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_14_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100535/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_14.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_14_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_14_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
351
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_15_bad() { struct _twoIntsStruct * data; data = NULL; switch(6) { case 6: /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)realloc(data, 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/100536/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_15.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_15_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_15_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a80(0,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
352
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_15_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100536/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_15.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_15_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_15_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
353
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_16_bad() { struct _twoIntsStruct * data; data = NULL; while(1) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)realloc(data, 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/100537/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_16.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_16_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_16_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a80(0,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
354
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_16_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100537/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_16.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_16_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_16_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
355
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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 *)realloc(data, 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/100538/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_17.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_17_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_17_bad(void) { undefined4 *puStack_18; int iStack_10; int iStack_c; puStack_18 = (undefined4 *)0x0; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { puStack_18 = (undefined4 *)func_0x00400a80(puStack_18,800); *puStack_18 = 0; puStack_18[1] = 0; printStructLine(puStack_18); } for (iStack_10 = 0; iStack_10 < 1; iStack_10 = iStack_10 + 1) { } return; }
['gcc']
356
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_17_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100538/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_17.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_17_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_17_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
357
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_18_bad() { struct _twoIntsStruct * data; data = NULL; goto source; source: /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)realloc(data, 100*sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); goto sink; sink: /* 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/100539/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_18.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_18_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_18_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a80(0,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
358
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_18_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100539/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_18.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_18_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_18_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
359
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_21_bad() { struct _twoIntsStruct * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)realloc(data, 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/100540/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_21.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_21_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_21_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a80(0,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); badStatic = 1; badSink(puVar1); return; }
['gcc']
360
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_21_good() { goodB2G1(); goodB2G2(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100540/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_21.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_21_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_21_good(void) { goodB2G1(); goodB2G2(); goodG2B(); return; }
['gcc']
361
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_22_bad() { struct _twoIntsStruct * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)realloc(data, 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_realloc_22_badGlobal = 1; /* true */ CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100541/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_22a.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_22_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_22_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a80(0,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); CWE401_Memory_Leak__struct_twoIntsStruct_realloc_22_badGlobal = 1; CWE401_Memory_Leak__struct_twoIntsStruct_realloc_22_badSink(puVar1); return; }
['gcc']
362
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_22_good() { goodB2G1(); goodB2G2(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100541/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_22a.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_22_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_22_good(void) { goodB2G1(); goodB2G2(); goodG2B(); return; }
['gcc']
363
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_22_badSink(struct _twoIntsStruct * data) { if(CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100541/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_22b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_22_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_22_badSink(void) { return; }
['gcc']
364
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_22_goodB2G1Sink(struct _twoIntsStruct * data) { if(CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100541/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_22b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_22_goodB2G1Sink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_22_goodB2G1Sink(undefined8 param_1) { if (CWE401_Memory_Leak__struct_twoIntsStruct_realloc_22_goodB2G1Global == 0) { func_0x00400a20(param_1); } else { printLine(&UNK_00401314); } return; }
['gcc']
365
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_22_goodB2G2Sink(struct _twoIntsStruct * data) { if(CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100541/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_22b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_22_goodB2G2Sink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_22_goodB2G2Sink(undefined8 param_1) { if (CWE401_Memory_Leak__struct_twoIntsStruct_realloc_22_goodB2G2Global != 0) { func_0x00400a20(param_1); } return; }
['gcc']
366
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_22_goodG2BSink(struct _twoIntsStruct * data) { if(CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100541/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_22b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_22_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_22_goodG2BSink(void) { return; }
['gcc']
367
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_31_bad() { struct _twoIntsStruct * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)realloc(data, 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/100542/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_31.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_31_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_31_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a80(0,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
368
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_31_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100542/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_31.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_31_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_31_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
369
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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 *)realloc(data, 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/100543/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_32.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_32_bad
/* WARNING: Restarted to delay deadcode elimination for space: stack */ void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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_0x00400a80(0,800); *puStack_20 = 0; puStack_20[1] = 0; printStructLine(puStack_20); *puStack_10 = puStack_20; return; }
['gcc']
370
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_32_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100543/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_32.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_32_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_32_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
371
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_34_bad() { struct _twoIntsStruct * data; CWE401_Memory_Leak__struct_twoIntsStruct_realloc_34_unionType myUnion; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)realloc(data, 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/100545/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_34.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_34_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_34_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a80(0,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
372
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_34_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100545/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_34.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_34_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_34_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
373
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_41_bad() { struct _twoIntsStruct * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)realloc(data, 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/100546/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_41.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_41_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_41_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a80(0,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); badSink(puVar1); return; }
['gcc']
374
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_41_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100546/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_41.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_41_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_41_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
375
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100547/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_42.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_42_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_42_bad(void) { badSource(0); return; }
['gcc']
376
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_42_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100547/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_42.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_42_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_42_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
377
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_44_bad() { struct _twoIntsStruct * data; /* define a function pointer */ void (*funcPtr) (struct _twoIntsStruct *) = badSink; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)realloc(data, 100*sizeof(struct _twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine((twoIntsStruct *)&data[0]); /* use the function pointer */ funcPtr(data); }
['/* define a function pointer */', '/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* use the function pointer */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100549/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_44.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_44_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_44_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a80(0,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); badSink(puVar1); return; }
['gcc']
378
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_44_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100549/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_44.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_44_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_44_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
379
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_45_bad() { struct _twoIntsStruct * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)realloc(data, 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_realloc_45_badData = data; badSink(); }
['/* 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/100550/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_45.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_45_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_45_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a80(0,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); CWE401_Memory_Leak__struct_twoIntsStruct_realloc_45_badData = puVar1; badSink(); return; }
['gcc']
380
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_45_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100550/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_45.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_45_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_45_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
381
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_51_bad() { struct _twoIntsStruct * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)realloc(data, 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_realloc_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/100551/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_51a.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_51_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_51_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a80(0,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); CWE401_Memory_Leak__struct_twoIntsStruct_realloc_51b_badSink(puVar1); return; }
['gcc']
382
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_51_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100551/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_51a.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_51_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_51_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
383
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100551/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_51b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_51b_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_51b_badSink(void) { return; }
['gcc']
384
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100551/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_51b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_51b_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_51b_goodG2BSink(void) { return; }
['gcc']
385
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100551/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_51b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_51b_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_51b_goodB2GSink(undefined8 param_1) { func_0x00400a20(param_1); return; }
['gcc']
386
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52_bad() { struct _twoIntsStruct * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)realloc(data, 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_realloc_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/100552/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52a.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a80(0,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52b_badSink(puVar1); return; }
['gcc']
387
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100552/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52a.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
388
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52b_badSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52c_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100552/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52b_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52b_badSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52c_badSink(param_1); return; }
['gcc']
389
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52b_goodG2BSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100552/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52b_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52b_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52c_goodG2BSink(param_1); return; }
['gcc']
390
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52b_goodB2GSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100552/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52b_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52b_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52c_goodB2GSink(param_1); return; }
['gcc']
391
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100552/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52c.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52c_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52c_badSink(void) { return; }
['gcc']
392
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100552/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52c.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52c_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52c_goodG2BSink(void) { return; }
['gcc']
393
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100552/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52c.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52c_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_52c_goodB2GSink(undefined8 param_1) { func_0x00400a20(param_1); return; }
['gcc']
394
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53_bad() { struct _twoIntsStruct * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (struct _twoIntsStruct *)realloc(data, 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_realloc_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/100553/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53a.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a80(0,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53b_badSink(puVar1); return; }
['gcc']
395
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100553/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53a.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
396
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53b_badSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53c_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100553/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53b_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53b_badSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53c_badSink(param_1); return; }
['gcc']
397
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53b_goodG2BSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100553/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53b_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53b_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53c_goodG2BSink(param_1); return; }
['gcc']
398
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53b_goodB2GSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100553/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53b_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53b_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53c_goodB2GSink(param_1); return; }
['gcc']
399
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53c_badSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53d_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100553/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53c.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53c_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53c_badSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53d_badSink(param_1); return; }
['gcc']