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
400
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53c_goodG2BSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53d_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_53c.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53c_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53c_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53d_goodG2BSink(param_1); return; }
['gcc']
401
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53c_goodB2GSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53d_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_53c.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53c_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53c_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53d_goodB2GSink(param_1); return; }
['gcc']
402
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100553/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53d.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53d_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53d_badSink(void) { return; }
['gcc']
403
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100553/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53d.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53d_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53d_goodG2BSink(void) { return; }
['gcc']
404
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100553/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53d.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53d_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_53d_goodB2GSink(undefined8 param_1) { func_0x00400a20(param_1); return; }
['gcc']
405
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54_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_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/100554/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54a.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a80(0,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54b_badSink(puVar1); return; }
['gcc']
406
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100554/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54a.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
407
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54b_badSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54c_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100554/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54b_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54b_badSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54c_badSink(param_1); return; }
['gcc']
408
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54b_goodG2BSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100554/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54b_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54b_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54c_goodG2BSink(param_1); return; }
['gcc']
409
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54b_goodB2GSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100554/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54b_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54b_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54c_goodB2GSink(param_1); return; }
['gcc']
410
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54c_badSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54d_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100554/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54c.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54c_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54c_badSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54d_badSink(param_1); return; }
['gcc']
411
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54c_goodG2BSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100554/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54c.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54c_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54c_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54d_goodG2BSink(param_1); return; }
['gcc']
412
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54c_goodB2GSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54d_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100554/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54c.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54c_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54c_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54d_goodB2GSink(param_1); return; }
['gcc']
413
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54d_badSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54e_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100554/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54d.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54d_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54d_badSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54e_badSink(param_1); return; }
['gcc']
414
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54d_goodG2BSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54e_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100554/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54d.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54d_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54d_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54e_goodG2BSink(param_1); return; }
['gcc']
415
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54d_goodB2GSink(struct _twoIntsStruct * data) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54e_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100554/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54d.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54d_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54d_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54e_goodB2GSink(param_1); return; }
['gcc']
416
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100554/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54e.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54e_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54e_badSink(void) { return; }
['gcc']
417
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100554/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54e.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54e_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54e_goodG2BSink(void) { return; }
['gcc']
418
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100554/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54e.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54e_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_54e_goodB2GSink(undefined8 param_1) { func_0x00400a20(param_1); return; }
['gcc']
419
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_61_bad() { struct _twoIntsStruct * data; data = NULL; data = CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100555/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_61a.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_61_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_61_bad(void) { CWE401_Memory_Leak__struct_twoIntsStruct_realloc_61b_badSource(0); return; }
['gcc']
420
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_61_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100555/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_61a.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_61_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_61_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
421
struct _twoIntsStruct * CWE401_Memory_Leak__struct_twoIntsStruct_realloc_61b_badSource(struct _twoIntsStruct * data) { /* 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]); 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/100555/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_61b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_61b_badSource
undefined4 * CWE401_Memory_Leak__struct_twoIntsStruct_realloc_61b_badSource(undefined8 param_1) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a80(param_1,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return puVar1; }
['gcc']
422
struct _twoIntsStruct * CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100555/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_61b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_61b_goodG2BSource
undefined4 * CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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']
423
struct _twoIntsStruct * CWE401_Memory_Leak__struct_twoIntsStruct_realloc_61b_goodB2GSource(struct _twoIntsStruct * data) { /* 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]); 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/100555/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_61b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_61b_goodB2GSource
undefined4 * CWE401_Memory_Leak__struct_twoIntsStruct_realloc_61b_goodB2GSource(undefined8 param_1) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400ad0(param_1,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return puVar1; }
['gcc']
424
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_63_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_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/100557/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_63a.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_63_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_63_bad(void) { undefined4 *puStack_10; puStack_10 = (undefined4 *)0x0; puStack_10 = (undefined4 *)func_0x00400a80(0,800); *puStack_10 = 0; puStack_10[1] = 0; printStructLine(puStack_10); CWE401_Memory_Leak__struct_twoIntsStruct_realloc_63b_badSink(&puStack_10); return; }
['gcc']
425
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_63_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100557/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_63a.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_63_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_63_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
426
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100557/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_63b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_63b_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_63b_badSink(void) { return; }
['gcc']
427
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100557/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_63b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_63b_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_63b_goodG2BSink(void) { return; }
['gcc']
428
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100557/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_63b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_63b_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_63b_goodB2GSink(undefined8 *param_1) { func_0x00400a20(*param_1); return; }
['gcc']
429
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_64_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_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/100558/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_64a.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_64_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_64_bad(void) { undefined4 *puStack_10; puStack_10 = (undefined4 *)0x0; puStack_10 = (undefined4 *)func_0x00400a80(0,800); *puStack_10 = 0; puStack_10[1] = 0; printStructLine(puStack_10); CWE401_Memory_Leak__struct_twoIntsStruct_realloc_64b_badSink(&puStack_10); return; }
['gcc']
430
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_64_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100558/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_64a.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_64_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_64_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
431
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100558/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_64b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_64b_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_64b_badSink(void) { return; }
['gcc']
432
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100558/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_64b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_64b_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_64b_goodG2BSink(void) { return; }
['gcc']
433
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100558/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_64b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_64b_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_64b_goodB2GSink(undefined8 *param_1) { func_0x00400a20(*param_1); return; }
['gcc']
434
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_65_bad() { struct _twoIntsStruct * data; /* define a function pointer */ void (*funcPtr) (struct _twoIntsStruct *) = CWE401_Memory_Leak__struct_twoIntsStruct_realloc_65b_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/100559/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_65a.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_65_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_65_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a80(0,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); CWE401_Memory_Leak__struct_twoIntsStruct_realloc_65b_badSink(puVar1); return; }
['gcc']
435
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_65_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100559/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_65a.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_65_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_65_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
436
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_65b_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/100559/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_65b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_65b_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_65b_badSink(void) { return; }
['gcc']
437
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_65b_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/100559/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_65b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_65b_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_65b_goodG2BSink(void) { return; }
['gcc']
438
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_65b_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/100559/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_65b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_65b_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_65b_goodB2GSink(undefined8 param_1) { func_0x00400a20(param_1); return; }
['gcc']
439
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_66_bad() { struct _twoIntsStruct * data; struct _twoIntsStruct * dataArray[5]; 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]); /* put data in array */ dataArray[2] = data; CWE401_Memory_Leak__struct_twoIntsStruct_realloc_66b_badSink(dataArray); }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* put data in array */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100560/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_66a.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_66_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_66_bad(void) { undefined auStack_38 [16]; undefined4 *puStack_28; undefined4 *puStack_10; puStack_10 = (undefined4 *)0x0; puStack_10 = (undefined4 *)func_0x00400a80(0,800); *puStack_10 = 0; puStack_10[1] = 0; printStructLine(puStack_10); puStack_28 = puStack_10; CWE401_Memory_Leak__struct_twoIntsStruct_realloc_66b_badSink(auStack_38); return; }
['gcc']
440
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_66_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100560/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_66a.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_66_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_66_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
441
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100560/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_66b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_66b_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_66b_badSink(void) { return; }
['gcc']
442
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100560/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_66b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_66b_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_66b_goodG2BSink(void) { return; }
['gcc']
443
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100560/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_66b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_66b_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_66b_goodB2GSink(long param_1) { func_0x00400a20(*(undefined8 *)(param_1 + 0x10)); return; }
['gcc']
444
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_67_bad() { struct _twoIntsStruct * data; CWE401_Memory_Leak__struct_twoIntsStruct_realloc_67_structType myStruct; 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]); myStruct.structFirst = data; CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100561/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_67a.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_67_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_67_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a80(0,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); CWE401_Memory_Leak__struct_twoIntsStruct_realloc_67b_badSink(puVar1); return; }
['gcc']
445
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_67_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100561/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_67a.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_67_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_67_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
446
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_67b_badSink(CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100561/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_67b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_67b_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_67b_badSink(void) { return; }
['gcc']
447
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_67b_goodG2BSink(CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100561/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_67b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_67b_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_67b_goodG2BSink(void) { return; }
['gcc']
448
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_67b_goodB2GSink(CWE401_Memory_Leak__struct_twoIntsStruct_realloc_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/100561/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_67b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_67b_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_67b_goodB2GSink(undefined8 param_1) { func_0x00400a20(param_1); return; }
['gcc']
449
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_68_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_68_badData = data; CWE401_Memory_Leak__struct_twoIntsStruct_realloc_68b_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/100562/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_68a.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_68_bad
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_68_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a80(0,800); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); CWE401_Memory_Leak__struct_twoIntsStruct_realloc_68_badData = puVar1; CWE401_Memory_Leak__struct_twoIntsStruct_realloc_68b_badSink(); return; }
['gcc']
450
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_68_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100562/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_68a.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_68_good
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_68_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
451
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_68b_badSink() { struct _twoIntsStruct * data = CWE401_Memory_Leak__struct_twoIntsStruct_realloc_68_badData; /* 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/100562/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_68b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_68b_badSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_68b_badSink(void) { return; }
['gcc']
452
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_68b_goodG2BSink() { struct _twoIntsStruct * data = CWE401_Memory_Leak__struct_twoIntsStruct_realloc_68_goodG2BData; /* 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/100562/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_68b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_68b_goodG2BSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_68b_goodG2BSink(void) { return; }
['gcc']
453
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_68b_goodB2GSink() { struct _twoIntsStruct * data = CWE401_Memory_Leak__struct_twoIntsStruct_realloc_68_goodB2GData; /* 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/100562/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_68b.c
CWE401_Memory_Leak__struct_twoIntsStruct_realloc_68b_goodB2GSink
void CWE401_Memory_Leak__struct_twoIntsStruct_realloc_68b_goodB2GSink(void) { func_0x00400a20(CWE401_Memory_Leak__struct_twoIntsStruct_realloc_68_goodB2GData); return; }
['gcc']
454
void CWE401_Memory_Leak__twoIntsStruct_calloc_02_bad() { twoIntsStruct * data; data = NULL; if(1) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (twoIntsStruct *)calloc(100, sizeof(twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine(&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/100571/CWE401_Memory_Leak__twoIntsStruct_calloc_02.c
CWE401_Memory_Leak__twoIntsStruct_calloc_02_bad
void CWE401_Memory_Leak__twoIntsStruct_calloc_02_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
455
void CWE401_Memory_Leak__twoIntsStruct_calloc_02_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100571/CWE401_Memory_Leak__twoIntsStruct_calloc_02.c
CWE401_Memory_Leak__twoIntsStruct_calloc_02_good
void CWE401_Memory_Leak__twoIntsStruct_calloc_02_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
456
void CWE401_Memory_Leak__twoIntsStruct_calloc_03_bad() { twoIntsStruct * data; data = NULL; if(5==5) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (twoIntsStruct *)calloc(100, sizeof(twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine(&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/100572/CWE401_Memory_Leak__twoIntsStruct_calloc_03.c
CWE401_Memory_Leak__twoIntsStruct_calloc_03_bad
void CWE401_Memory_Leak__twoIntsStruct_calloc_03_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
457
void CWE401_Memory_Leak__twoIntsStruct_calloc_03_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100572/CWE401_Memory_Leak__twoIntsStruct_calloc_03.c
CWE401_Memory_Leak__twoIntsStruct_calloc_03_good
void CWE401_Memory_Leak__twoIntsStruct_calloc_03_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
458
void CWE401_Memory_Leak__twoIntsStruct_calloc_05_bad() { twoIntsStruct * data; data = NULL; if(staticTrue) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (twoIntsStruct *)calloc(100, sizeof(twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine(&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/100574/CWE401_Memory_Leak__twoIntsStruct_calloc_05.c
CWE401_Memory_Leak__twoIntsStruct_calloc_05_bad
void CWE401_Memory_Leak__twoIntsStruct_calloc_05_bad(void) { undefined4 *puVar1; if (staticTrue != 0) { puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); } return; }
['gcc']
459
void CWE401_Memory_Leak__twoIntsStruct_calloc_05_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100574/CWE401_Memory_Leak__twoIntsStruct_calloc_05.c
CWE401_Memory_Leak__twoIntsStruct_calloc_05_good
void CWE401_Memory_Leak__twoIntsStruct_calloc_05_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
460
void CWE401_Memory_Leak__twoIntsStruct_calloc_06_bad() { twoIntsStruct * data; data = NULL; if(STATIC_CONST_FIVE==5) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (twoIntsStruct *)calloc(100, sizeof(twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine(&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/100575/CWE401_Memory_Leak__twoIntsStruct_calloc_06.c
CWE401_Memory_Leak__twoIntsStruct_calloc_06_bad
void CWE401_Memory_Leak__twoIntsStruct_calloc_06_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
461
void CWE401_Memory_Leak__twoIntsStruct_calloc_06_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100575/CWE401_Memory_Leak__twoIntsStruct_calloc_06.c
CWE401_Memory_Leak__twoIntsStruct_calloc_06_good
void CWE401_Memory_Leak__twoIntsStruct_calloc_06_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
462
void CWE401_Memory_Leak__twoIntsStruct_calloc_08_bad() { twoIntsStruct * data; data = NULL; if(staticReturnsTrue()) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (twoIntsStruct *)calloc(100, sizeof(twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine(&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/100577/CWE401_Memory_Leak__twoIntsStruct_calloc_08.c
CWE401_Memory_Leak__twoIntsStruct_calloc_08_bad
void CWE401_Memory_Leak__twoIntsStruct_calloc_08_bad(void) { int iVar1; undefined4 *puVar2; iVar1 = staticReturnsTrue(); if (iVar1 != 0) { puVar2 = (undefined4 *)func_0x00400a40(100,8); *puVar2 = 0; puVar2[1] = 0; printStructLine(puVar2); } staticReturnsTrue(); return; }
['gcc']
463
void CWE401_Memory_Leak__twoIntsStruct_calloc_08_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100577/CWE401_Memory_Leak__twoIntsStruct_calloc_08.c
CWE401_Memory_Leak__twoIntsStruct_calloc_08_good
void CWE401_Memory_Leak__twoIntsStruct_calloc_08_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
464
void CWE401_Memory_Leak__twoIntsStruct_calloc_09_bad() { twoIntsStruct * data; data = NULL; if(GLOBAL_CONST_TRUE) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (twoIntsStruct *)calloc(100, sizeof(twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine(&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/100578/CWE401_Memory_Leak__twoIntsStruct_calloc_09.c
CWE401_Memory_Leak__twoIntsStruct_calloc_09_bad
void CWE401_Memory_Leak__twoIntsStruct_calloc_09_bad(void) { undefined4 *puVar1; if (GLOBAL_CONST_TRUE != 0) { puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); } return; }
['gcc']
465
void CWE401_Memory_Leak__twoIntsStruct_calloc_09_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100578/CWE401_Memory_Leak__twoIntsStruct_calloc_09.c
CWE401_Memory_Leak__twoIntsStruct_calloc_09_good
void CWE401_Memory_Leak__twoIntsStruct_calloc_09_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
466
void CWE401_Memory_Leak__twoIntsStruct_calloc_10_bad() { twoIntsStruct * data; data = NULL; if(globalTrue) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (twoIntsStruct *)calloc(100, sizeof(twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine(&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/100579/CWE401_Memory_Leak__twoIntsStruct_calloc_10.c
CWE401_Memory_Leak__twoIntsStruct_calloc_10_bad
void CWE401_Memory_Leak__twoIntsStruct_calloc_10_bad(void) { undefined4 *puVar1; if (globalTrue != 0) { puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); } return; }
['gcc']
467
void CWE401_Memory_Leak__twoIntsStruct_calloc_10_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100579/CWE401_Memory_Leak__twoIntsStruct_calloc_10.c
CWE401_Memory_Leak__twoIntsStruct_calloc_10_good
void CWE401_Memory_Leak__twoIntsStruct_calloc_10_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
468
void CWE401_Memory_Leak__twoIntsStruct_calloc_11_bad() { twoIntsStruct * data; data = NULL; if(globalReturnsTrue()) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (twoIntsStruct *)calloc(100, sizeof(twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine(&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/100580/CWE401_Memory_Leak__twoIntsStruct_calloc_11.c
CWE401_Memory_Leak__twoIntsStruct_calloc_11_bad
void CWE401_Memory_Leak__twoIntsStruct_calloc_11_bad(void) { int iVar1; undefined4 *puVar2; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { puVar2 = (undefined4 *)func_0x00400a40(100,8); *puVar2 = 0; puVar2[1] = 0; printStructLine(puVar2); } globalReturnsTrue(); return; }
['gcc']
469
void CWE401_Memory_Leak__twoIntsStruct_calloc_11_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100580/CWE401_Memory_Leak__twoIntsStruct_calloc_11.c
CWE401_Memory_Leak__twoIntsStruct_calloc_11_good
void CWE401_Memory_Leak__twoIntsStruct_calloc_11_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
470
void CWE401_Memory_Leak__twoIntsStruct_calloc_12_bad() { twoIntsStruct * data; data = NULL; if(globalReturnsTrueOrFalse()) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (twoIntsStruct *)calloc(100, sizeof(twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine(&data[0]); } else { /* FIX: Use memory allocated on the stack with ALLOCA */ data = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine(&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/100581/CWE401_Memory_Leak__twoIntsStruct_calloc_12.c
CWE401_Memory_Leak__twoIntsStruct_calloc_12_bad
void CWE401_Memory_Leak__twoIntsStruct_calloc_12_bad(void) { int iVar1; undefined *puVar2; undefined auStack_348 [8]; undefined4 uStack_340; undefined4 uStack_33c; undefined *puStack_20; undefined auStack_18 [8]; undefined4 *puStack_10; puVar2 = auStack_18; puStack_10 = (undefined4 *)0x0; puStack_20 = &UNK_00400bec; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { puVar2 = auStack_348; puStack_10 = &uStack_340; uStack_340 = 0; uStack_33c = 0; printStructLine(puStack_10); } else { puStack_20 = &UNK_00400bff; puStack_10 = (undefined4 *)func_0x00400a90(100,8); *puStack_10 = 0; puStack_10[1] = 0; puStack_20 = &UNK_00400c24; printStructLine(puStack_10); } *(undefined **)(puVar2 + -8) = &UNK_00400c87; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { *(undefined **)(puVar2 + -8) = &UNK_00400c97; func_0x00400a20(puStack_10); } return; }
['gcc']
471
void CWE401_Memory_Leak__twoIntsStruct_calloc_12_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100581/CWE401_Memory_Leak__twoIntsStruct_calloc_12.c
CWE401_Memory_Leak__twoIntsStruct_calloc_12_good
void CWE401_Memory_Leak__twoIntsStruct_calloc_12_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
472
void CWE401_Memory_Leak__twoIntsStruct_calloc_13_bad() { twoIntsStruct * data; data = NULL; if(GLOBAL_CONST_FIVE==5) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (twoIntsStruct *)calloc(100, sizeof(twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine(&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/100582/CWE401_Memory_Leak__twoIntsStruct_calloc_13.c
CWE401_Memory_Leak__twoIntsStruct_calloc_13_bad
void CWE401_Memory_Leak__twoIntsStruct_calloc_13_bad(void) { undefined4 *puVar1; if (GLOBAL_CONST_FIVE == 5) { puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); } return; }
['gcc']
473
void CWE401_Memory_Leak__twoIntsStruct_calloc_13_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100582/CWE401_Memory_Leak__twoIntsStruct_calloc_13.c
CWE401_Memory_Leak__twoIntsStruct_calloc_13_good
void CWE401_Memory_Leak__twoIntsStruct_calloc_13_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
474
void CWE401_Memory_Leak__twoIntsStruct_calloc_14_bad() { twoIntsStruct * data; data = NULL; if(globalFive==5) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (twoIntsStruct *)calloc(100, sizeof(twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine(&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/100583/CWE401_Memory_Leak__twoIntsStruct_calloc_14.c
CWE401_Memory_Leak__twoIntsStruct_calloc_14_bad
void CWE401_Memory_Leak__twoIntsStruct_calloc_14_bad(void) { undefined4 *puVar1; if (globalFive == 5) { puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); } return; }
['gcc']
475
void CWE401_Memory_Leak__twoIntsStruct_calloc_14_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100583/CWE401_Memory_Leak__twoIntsStruct_calloc_14.c
CWE401_Memory_Leak__twoIntsStruct_calloc_14_good
void CWE401_Memory_Leak__twoIntsStruct_calloc_14_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
476
void CWE401_Memory_Leak__twoIntsStruct_calloc_15_bad() { twoIntsStruct * data; data = NULL; switch(6) { case 6: /* POTENTIAL FLAW: Allocate memory on the heap */ data = (twoIntsStruct *)calloc(100, sizeof(twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine(&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/100584/CWE401_Memory_Leak__twoIntsStruct_calloc_15.c
CWE401_Memory_Leak__twoIntsStruct_calloc_15_bad
void CWE401_Memory_Leak__twoIntsStruct_calloc_15_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
477
void CWE401_Memory_Leak__twoIntsStruct_calloc_15_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100584/CWE401_Memory_Leak__twoIntsStruct_calloc_15.c
CWE401_Memory_Leak__twoIntsStruct_calloc_15_good
void CWE401_Memory_Leak__twoIntsStruct_calloc_15_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
478
void CWE401_Memory_Leak__twoIntsStruct_calloc_16_bad() { twoIntsStruct * data; data = NULL; while(1) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (twoIntsStruct *)calloc(100, sizeof(twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine(&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/100585/CWE401_Memory_Leak__twoIntsStruct_calloc_16.c
CWE401_Memory_Leak__twoIntsStruct_calloc_16_bad
void CWE401_Memory_Leak__twoIntsStruct_calloc_16_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
479
void CWE401_Memory_Leak__twoIntsStruct_calloc_16_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100585/CWE401_Memory_Leak__twoIntsStruct_calloc_16.c
CWE401_Memory_Leak__twoIntsStruct_calloc_16_good
void CWE401_Memory_Leak__twoIntsStruct_calloc_16_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
480
void CWE401_Memory_Leak__twoIntsStruct_calloc_17_bad() { int i,j; twoIntsStruct * data; data = NULL; for(i = 0; i < 1; i++) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (twoIntsStruct *)calloc(100, sizeof(twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine(&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/100586/CWE401_Memory_Leak__twoIntsStruct_calloc_17.c
CWE401_Memory_Leak__twoIntsStruct_calloc_17_bad
void CWE401_Memory_Leak__twoIntsStruct_calloc_17_bad(void) { undefined4 *puVar1; int iStack_10; int iStack_c; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); } for (iStack_10 = 0; iStack_10 < 1; iStack_10 = iStack_10 + 1) { } return; }
['gcc']
481
void CWE401_Memory_Leak__twoIntsStruct_calloc_17_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100586/CWE401_Memory_Leak__twoIntsStruct_calloc_17.c
CWE401_Memory_Leak__twoIntsStruct_calloc_17_good
void CWE401_Memory_Leak__twoIntsStruct_calloc_17_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
482
void CWE401_Memory_Leak__twoIntsStruct_calloc_21_bad() { twoIntsStruct * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (twoIntsStruct *)calloc(100, sizeof(twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine(&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/100588/CWE401_Memory_Leak__twoIntsStruct_calloc_21.c
CWE401_Memory_Leak__twoIntsStruct_calloc_21_bad
void CWE401_Memory_Leak__twoIntsStruct_calloc_21_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); badStatic = 1; badSink(puVar1); return; }
['gcc']
483
void CWE401_Memory_Leak__twoIntsStruct_calloc_21_good() { goodB2G1(); goodB2G2(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100588/CWE401_Memory_Leak__twoIntsStruct_calloc_21.c
CWE401_Memory_Leak__twoIntsStruct_calloc_21_good
void CWE401_Memory_Leak__twoIntsStruct_calloc_21_good(void) { goodB2G1(); goodB2G2(); goodG2B(); return; }
['gcc']
484
void CWE401_Memory_Leak__twoIntsStruct_calloc_22_bad() { twoIntsStruct * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (twoIntsStruct *)calloc(100, sizeof(twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine(&data[0]); CWE401_Memory_Leak__twoIntsStruct_calloc_22_badGlobal = 1; /* true */ CWE401_Memory_Leak__twoIntsStruct_calloc_22_badSink(data); }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* true */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100589/CWE401_Memory_Leak__twoIntsStruct_calloc_22a.c
CWE401_Memory_Leak__twoIntsStruct_calloc_22_bad
void CWE401_Memory_Leak__twoIntsStruct_calloc_22_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); CWE401_Memory_Leak__twoIntsStruct_calloc_22_badGlobal = 1; CWE401_Memory_Leak__twoIntsStruct_calloc_22_badSink(puVar1); return; }
['gcc']
485
void CWE401_Memory_Leak__twoIntsStruct_calloc_22_good() { goodB2G1(); goodB2G2(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100589/CWE401_Memory_Leak__twoIntsStruct_calloc_22a.c
CWE401_Memory_Leak__twoIntsStruct_calloc_22_good
void CWE401_Memory_Leak__twoIntsStruct_calloc_22_good(void) { goodB2G1(); goodB2G2(); goodG2B(); return; }
['gcc']
486
void CWE401_Memory_Leak__twoIntsStruct_calloc_22_badSink(twoIntsStruct * data) { if(CWE401_Memory_Leak__twoIntsStruct_calloc_22_badGlobal) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100589/CWE401_Memory_Leak__twoIntsStruct_calloc_22b.c
CWE401_Memory_Leak__twoIntsStruct_calloc_22_badSink
void CWE401_Memory_Leak__twoIntsStruct_calloc_22_badSink(void) { return; }
['gcc']
487
void CWE401_Memory_Leak__twoIntsStruct_calloc_22_goodB2G1Sink(twoIntsStruct * data) { if(CWE401_Memory_Leak__twoIntsStruct_calloc_22_goodB2G1Global) { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); } else { /* FIX: Deallocate memory */ free(data); } }
['/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* FIX: Deallocate memory */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100589/CWE401_Memory_Leak__twoIntsStruct_calloc_22b.c
CWE401_Memory_Leak__twoIntsStruct_calloc_22_goodB2G1Sink
void CWE401_Memory_Leak__twoIntsStruct_calloc_22_goodB2G1Sink(undefined8 param_1) { if (CWE401_Memory_Leak__twoIntsStruct_calloc_22_goodB2G1Global == 0) { func_0x00400a20(param_1); } else { printLine(&UNK_00401314); } return; }
['gcc']
488
void CWE401_Memory_Leak__twoIntsStruct_calloc_22_goodB2G2Sink(twoIntsStruct * data) { if(CWE401_Memory_Leak__twoIntsStruct_calloc_22_goodB2G2Global) { /* FIX: Deallocate memory */ free(data); } }
['/* FIX: Deallocate memory */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100589/CWE401_Memory_Leak__twoIntsStruct_calloc_22b.c
CWE401_Memory_Leak__twoIntsStruct_calloc_22_goodB2G2Sink
void CWE401_Memory_Leak__twoIntsStruct_calloc_22_goodB2G2Sink(undefined8 param_1) { if (CWE401_Memory_Leak__twoIntsStruct_calloc_22_goodB2G2Global != 0) { func_0x00400a20(param_1); } return; }
['gcc']
489
void CWE401_Memory_Leak__twoIntsStruct_calloc_22_goodG2BSink(twoIntsStruct * data) { if(CWE401_Memory_Leak__twoIntsStruct_calloc_22_goodG2BGlobal) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100589/CWE401_Memory_Leak__twoIntsStruct_calloc_22b.c
CWE401_Memory_Leak__twoIntsStruct_calloc_22_goodG2BSink
void CWE401_Memory_Leak__twoIntsStruct_calloc_22_goodG2BSink(void) { return; }
['gcc']
490
void CWE401_Memory_Leak__twoIntsStruct_calloc_31_bad() { twoIntsStruct * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (twoIntsStruct *)calloc(100, sizeof(twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine(&data[0]); { twoIntsStruct * dataCopy = data; 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/100590/CWE401_Memory_Leak__twoIntsStruct_calloc_31.c
CWE401_Memory_Leak__twoIntsStruct_calloc_31_bad
void CWE401_Memory_Leak__twoIntsStruct_calloc_31_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
491
void CWE401_Memory_Leak__twoIntsStruct_calloc_31_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100590/CWE401_Memory_Leak__twoIntsStruct_calloc_31.c
CWE401_Memory_Leak__twoIntsStruct_calloc_31_good
void CWE401_Memory_Leak__twoIntsStruct_calloc_31_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
492
void CWE401_Memory_Leak__twoIntsStruct_calloc_32_bad() { twoIntsStruct * data; twoIntsStruct * *dataPtr1 = &data; twoIntsStruct * *dataPtr2 = &data; data = NULL; { twoIntsStruct * data = *dataPtr1; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (twoIntsStruct *)calloc(100, sizeof(twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine(&data[0]); *dataPtr1 = data; } { 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/100591/CWE401_Memory_Leak__twoIntsStruct_calloc_32.c
CWE401_Memory_Leak__twoIntsStruct_calloc_32_bad
/* WARNING: Restarted to delay deadcode elimination for space: stack */ void CWE401_Memory_Leak__twoIntsStruct_calloc_32_bad(void) { undefined8 auStack_30 [2]; undefined4 *puStack_20; undefined8 *puStack_18; undefined8 *puStack_10; puStack_10 = auStack_30; puStack_18 = auStack_30; auStack_30[0] = 0; puStack_20 = (undefined4 *)0x0; puStack_20 = (undefined4 *)func_0x00400a40(100,8); *puStack_20 = 0; puStack_20[1] = 0; printStructLine(puStack_20); *puStack_10 = puStack_20; return; }
['gcc']
493
void CWE401_Memory_Leak__twoIntsStruct_calloc_32_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100591/CWE401_Memory_Leak__twoIntsStruct_calloc_32.c
CWE401_Memory_Leak__twoIntsStruct_calloc_32_good
void CWE401_Memory_Leak__twoIntsStruct_calloc_32_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
494
void CWE401_Memory_Leak__twoIntsStruct_calloc_34_bad() { twoIntsStruct * data; CWE401_Memory_Leak__twoIntsStruct_calloc_34_unionType myUnion; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (twoIntsStruct *)calloc(100, sizeof(twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine(&data[0]); myUnion.unionFirst = data; { 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/100593/CWE401_Memory_Leak__twoIntsStruct_calloc_34.c
CWE401_Memory_Leak__twoIntsStruct_calloc_34_bad
void CWE401_Memory_Leak__twoIntsStruct_calloc_34_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); return; }
['gcc']
495
void CWE401_Memory_Leak__twoIntsStruct_calloc_34_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100593/CWE401_Memory_Leak__twoIntsStruct_calloc_34.c
CWE401_Memory_Leak__twoIntsStruct_calloc_34_good
void CWE401_Memory_Leak__twoIntsStruct_calloc_34_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
496
void CWE401_Memory_Leak__twoIntsStruct_calloc_41_bad() { twoIntsStruct * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (twoIntsStruct *)calloc(100, sizeof(twoIntsStruct)); /* Initialize and make use of data */ data[0].intOne = 0; data[0].intTwo = 0; printStructLine(&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/100594/CWE401_Memory_Leak__twoIntsStruct_calloc_41.c
CWE401_Memory_Leak__twoIntsStruct_calloc_41_bad
void CWE401_Memory_Leak__twoIntsStruct_calloc_41_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a40(100,8); *puVar1 = 0; puVar1[1] = 0; printStructLine(puVar1); badSink(puVar1); return; }
['gcc']
497
void CWE401_Memory_Leak__twoIntsStruct_calloc_41_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100594/CWE401_Memory_Leak__twoIntsStruct_calloc_41.c
CWE401_Memory_Leak__twoIntsStruct_calloc_41_good
void CWE401_Memory_Leak__twoIntsStruct_calloc_41_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
498
void CWE401_Memory_Leak__twoIntsStruct_calloc_42_bad() { 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/100595/CWE401_Memory_Leak__twoIntsStruct_calloc_42.c
CWE401_Memory_Leak__twoIntsStruct_calloc_42_bad
void CWE401_Memory_Leak__twoIntsStruct_calloc_42_bad(void) { badSource(0); return; }
['gcc']
499
void CWE401_Memory_Leak__twoIntsStruct_calloc_42_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100595/CWE401_Memory_Leak__twoIntsStruct_calloc_42.c
CWE401_Memory_Leak__twoIntsStruct_calloc_42_good
void CWE401_Memory_Leak__twoIntsStruct_calloc_42_good(void) { goodB2G(); goodG2B(); return; }
['gcc']