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
55,400
void CWE401_Memory_Leak__int64_t_calloc_64b_badSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ int64_t * * dataPtr = (int64_t * *)dataVoidPtr; /* dereference dataPtr into data */ int64_t * data = (*dataPtr); /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99382/CWE401_Memory_Leak__int64_t_calloc_64b.c
CWE401_Memory_Leak__int64_t_calloc_64b_badSink
void CWE401_Memory_Leak__int64_t_calloc_64b_badSink(void) { return; }
['gcc']
55,401
void CWE401_Memory_Leak__int64_t_calloc_64b_goodG2BSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ int64_t * * dataPtr = (int64_t * *)dataVoidPtr; /* dereference dataPtr into data */ int64_t * data = (*dataPtr); /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99382/CWE401_Memory_Leak__int64_t_calloc_64b.c
CWE401_Memory_Leak__int64_t_calloc_64b_goodG2BSink
void CWE401_Memory_Leak__int64_t_calloc_64b_goodG2BSink(void) { return; }
['gcc']
55,402
void CWE401_Memory_Leak__int64_t_calloc_64b_goodB2GSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ int64_t * * dataPtr = (int64_t * *)dataVoidPtr; /* dereference dataPtr into data */ int64_t * data = (*dataPtr); /* FIX: Deallocate memory */ free(data); }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* FIX: Deallocate memory */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99382/CWE401_Memory_Leak__int64_t_calloc_64b.c
CWE401_Memory_Leak__int64_t_calloc_64b_goodB2GSink
void CWE401_Memory_Leak__int64_t_calloc_64b_goodB2GSink(undefined8 *param_1) { func_0x00400a20(*param_1); return; }
['gcc']
55,403
void CWE401_Memory_Leak__int64_t_calloc_66_bad() { int64_t * data; int64_t * dataArray[5]; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (int64_t *)calloc(100, sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); /* put data in array */ dataArray[2] = data; CWE401_Memory_Leak__int64_t_calloc_66b_badSink(dataArray); }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* put data in array */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99384/CWE401_Memory_Leak__int64_t_calloc_66a.c
CWE401_Memory_Leak__int64_t_calloc_66_bad
void CWE401_Memory_Leak__int64_t_calloc_66_bad(void) { undefined auStack_38 [16]; undefined8 *puStack_28; undefined8 *puStack_10; puStack_10 = (undefined8 *)0x0; puStack_10 = (undefined8 *)func_0x00400a40(100,8); *puStack_10 = 5; printLongLongLine(*puStack_10); puStack_28 = puStack_10; CWE401_Memory_Leak__int64_t_calloc_66b_badSink(auStack_38); return; }
['gcc']
55,404
void CWE401_Memory_Leak__int64_t_calloc_66_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99384/CWE401_Memory_Leak__int64_t_calloc_66a.c
CWE401_Memory_Leak__int64_t_calloc_66_good
void CWE401_Memory_Leak__int64_t_calloc_66_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
55,405
void CWE401_Memory_Leak__int64_t_calloc_66b_badSink(int64_t * dataArray[]) { /* copy data out of dataArray */ int64_t * data = dataArray[2]; /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ }
['/* copy data out of dataArray */', '/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99384/CWE401_Memory_Leak__int64_t_calloc_66b.c
CWE401_Memory_Leak__int64_t_calloc_66b_badSink
void CWE401_Memory_Leak__int64_t_calloc_66b_badSink(void) { return; }
['gcc']
55,406
void CWE401_Memory_Leak__int64_t_calloc_66b_goodG2BSink(int64_t * dataArray[]) { int64_t * data = dataArray[2]; /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ }
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99384/CWE401_Memory_Leak__int64_t_calloc_66b.c
CWE401_Memory_Leak__int64_t_calloc_66b_goodG2BSink
void CWE401_Memory_Leak__int64_t_calloc_66b_goodG2BSink(void) { return; }
['gcc']
55,407
void CWE401_Memory_Leak__int64_t_calloc_66b_goodB2GSink(int64_t * dataArray[]) { int64_t * data = dataArray[2]; /* FIX: Deallocate memory */ free(data); }
['/* FIX: Deallocate memory */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99384/CWE401_Memory_Leak__int64_t_calloc_66b.c
CWE401_Memory_Leak__int64_t_calloc_66b_goodB2GSink
void CWE401_Memory_Leak__int64_t_calloc_66b_goodB2GSink(long param_1) { func_0x00400a20(*(undefined8 *)(param_1 + 0x10)); return; }
['gcc']
55,408
void CWE401_Memory_Leak__int64_t_calloc_67_bad() { int64_t * data; CWE401_Memory_Leak__int64_t_calloc_67_structType myStruct; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (int64_t *)calloc(100, sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); myStruct.structFirst = data; CWE401_Memory_Leak__int64_t_calloc_67b_badSink(myStruct); }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99385/CWE401_Memory_Leak__int64_t_calloc_67a.c
CWE401_Memory_Leak__int64_t_calloc_67_bad
void CWE401_Memory_Leak__int64_t_calloc_67_bad(void) { undefined8 *puVar1; puVar1 = (undefined8 *)func_0x00400a40(100,8); *puVar1 = 5; printLongLongLine(*puVar1); CWE401_Memory_Leak__int64_t_calloc_67b_badSink(puVar1); return; }
['gcc']
55,409
void CWE401_Memory_Leak__int64_t_calloc_67_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99385/CWE401_Memory_Leak__int64_t_calloc_67a.c
CWE401_Memory_Leak__int64_t_calloc_67_good
void CWE401_Memory_Leak__int64_t_calloc_67_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
55,410
void CWE401_Memory_Leak__int64_t_calloc_67b_badSink(CWE401_Memory_Leak__int64_t_calloc_67_structType myStruct) { int64_t * 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/99385/CWE401_Memory_Leak__int64_t_calloc_67b.c
CWE401_Memory_Leak__int64_t_calloc_67b_badSink
void CWE401_Memory_Leak__int64_t_calloc_67b_badSink(void) { return; }
['gcc']
55,411
void CWE401_Memory_Leak__int64_t_calloc_67b_goodG2BSink(CWE401_Memory_Leak__int64_t_calloc_67_structType myStruct) { int64_t * 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/99385/CWE401_Memory_Leak__int64_t_calloc_67b.c
CWE401_Memory_Leak__int64_t_calloc_67b_goodG2BSink
void CWE401_Memory_Leak__int64_t_calloc_67b_goodG2BSink(void) { return; }
['gcc']
55,412
void CWE401_Memory_Leak__int64_t_calloc_67b_goodB2GSink(CWE401_Memory_Leak__int64_t_calloc_67_structType myStruct) { int64_t * 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/99385/CWE401_Memory_Leak__int64_t_calloc_67b.c
CWE401_Memory_Leak__int64_t_calloc_67b_goodB2GSink
void CWE401_Memory_Leak__int64_t_calloc_67b_goodB2GSink(undefined8 param_1) { func_0x00400a20(param_1); return; }
['gcc']
55,413
void CWE401_Memory_Leak__int64_t_malloc_08_bad() { int64_t * data; data = NULL; if(staticReturnsTrue()) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (int64_t *)malloc(100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(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/99401/CWE401_Memory_Leak__int64_t_malloc_08.c
CWE401_Memory_Leak__int64_t_malloc_08_bad
void CWE401_Memory_Leak__int64_t_malloc_08_bad(void) { int iVar1; undefined8 *puVar2; iVar1 = staticReturnsTrue(); if (iVar1 != 0) { puVar2 = (undefined8 *)func_0x00400a60(800); *puVar2 = 5; printLongLongLine(*puVar2); } staticReturnsTrue(); return; }
['gcc']
55,414
void CWE401_Memory_Leak__int64_t_malloc_08_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99401/CWE401_Memory_Leak__int64_t_malloc_08.c
CWE401_Memory_Leak__int64_t_malloc_08_good
void CWE401_Memory_Leak__int64_t_malloc_08_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
55,415
void CWE401_Memory_Leak__int64_t_malloc_11_bad() { int64_t * data; data = NULL; if(globalReturnsTrue()) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (int64_t *)malloc(100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(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/99404/CWE401_Memory_Leak__int64_t_malloc_11.c
CWE401_Memory_Leak__int64_t_malloc_11_bad
void CWE401_Memory_Leak__int64_t_malloc_11_bad(void) { int iVar1; undefined8 *puVar2; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { puVar2 = (undefined8 *)func_0x00400a60(800); *puVar2 = 5; printLongLongLine(*puVar2); } globalReturnsTrue(); return; }
['gcc']
55,416
void CWE401_Memory_Leak__int64_t_malloc_11_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99404/CWE401_Memory_Leak__int64_t_malloc_11.c
CWE401_Memory_Leak__int64_t_malloc_11_good
void CWE401_Memory_Leak__int64_t_malloc_11_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
55,417
void CWE401_Memory_Leak__int64_t_malloc_12_bad() { int64_t * data; data = NULL; if(globalReturnsTrueOrFalse()) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (int64_t *)malloc(100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); } else { /* FIX: Use memory allocated on the stack with ALLOCA */ data = (int64_t *)ALLOCA(100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(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/99405/CWE401_Memory_Leak__int64_t_malloc_12.c
CWE401_Memory_Leak__int64_t_malloc_12_bad
/* WARNING: Heritage AFTER dead removal. Example location: s0xfffffffffffffcc0 : 0x00400c5f */ /* WARNING: Restarted to delay deadcode elimination for space: stack */ void CWE401_Memory_Leak__int64_t_malloc_12_bad(undefined8 param_1,undefined8 param_2) { int iVar1; undefined *puVar2; undefined auStack_348 [8]; undefined8 auStack_340 [100]; undefined *puStack_20; undefined auStack_18 [8]; undefined8 *puStack_10; puVar2 = auStack_18; puStack_10 = (undefined8 *)0x0; puStack_20 = &UNK_00400bec; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { puVar2 = auStack_348; puStack_10 = auStack_340; auStack_340[0] = 5; printLongLongLine(5,param_2,7); } else { puStack_20 = &UNK_00400bfa; puStack_10 = (undefined8 *)func_0x00400ab0(800); *puStack_10 = 5; puStack_20 = &UNK_00400c18; printLongLongLine(*puStack_10); } *(undefined **)(puVar2 + -8) = &UNK_00400c74; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { *(undefined **)(puVar2 + -8) = &UNK_00400c84; func_0x00400a20(puStack_10); } return; }
['gcc']
55,418
void CWE401_Memory_Leak__int64_t_malloc_12_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99405/CWE401_Memory_Leak__int64_t_malloc_12.c
CWE401_Memory_Leak__int64_t_malloc_12_good
void CWE401_Memory_Leak__int64_t_malloc_12_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
55,419
void CWE401_Memory_Leak__int64_t_malloc_42_bad() { int64_t * 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/99419/CWE401_Memory_Leak__int64_t_malloc_42.c
CWE401_Memory_Leak__int64_t_malloc_42_bad
void CWE401_Memory_Leak__int64_t_malloc_42_bad(void) { badSource(0); return; }
['gcc']
55,420
void CWE401_Memory_Leak__int64_t_malloc_42_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99419/CWE401_Memory_Leak__int64_t_malloc_42.c
CWE401_Memory_Leak__int64_t_malloc_42_good
void CWE401_Memory_Leak__int64_t_malloc_42_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
55,421
void CWE401_Memory_Leak__int64_t_malloc_52_bad() { int64_t * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (int64_t *)malloc(100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); CWE401_Memory_Leak__int64_t_malloc_52b_badSink(data); }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99424/CWE401_Memory_Leak__int64_t_malloc_52a.c
CWE401_Memory_Leak__int64_t_malloc_52_bad
void CWE401_Memory_Leak__int64_t_malloc_52_bad(void) { undefined8 *puVar1; puVar1 = (undefined8 *)func_0x00400a60(800); *puVar1 = 5; printLongLongLine(*puVar1); CWE401_Memory_Leak__int64_t_malloc_52b_badSink(puVar1); return; }
['gcc']
55,422
void CWE401_Memory_Leak__int64_t_malloc_52_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99424/CWE401_Memory_Leak__int64_t_malloc_52a.c
CWE401_Memory_Leak__int64_t_malloc_52_good
void CWE401_Memory_Leak__int64_t_malloc_52_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
55,423
void CWE401_Memory_Leak__int64_t_malloc_52b_badSink(int64_t * data) { CWE401_Memory_Leak__int64_t_malloc_52c_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99424/CWE401_Memory_Leak__int64_t_malloc_52b.c
CWE401_Memory_Leak__int64_t_malloc_52b_badSink
void CWE401_Memory_Leak__int64_t_malloc_52b_badSink(undefined8 param_1) { CWE401_Memory_Leak__int64_t_malloc_52c_badSink(param_1); return; }
['gcc']
55,424
void CWE401_Memory_Leak__int64_t_malloc_52b_goodG2BSink(int64_t * data) { CWE401_Memory_Leak__int64_t_malloc_52c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99424/CWE401_Memory_Leak__int64_t_malloc_52b.c
CWE401_Memory_Leak__int64_t_malloc_52b_goodG2BSink
void CWE401_Memory_Leak__int64_t_malloc_52b_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__int64_t_malloc_52c_goodG2BSink(param_1); return; }
['gcc']
55,425
void CWE401_Memory_Leak__int64_t_malloc_52b_goodB2GSink(int64_t * data) { CWE401_Memory_Leak__int64_t_malloc_52c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99424/CWE401_Memory_Leak__int64_t_malloc_52b.c
CWE401_Memory_Leak__int64_t_malloc_52b_goodB2GSink
void CWE401_Memory_Leak__int64_t_malloc_52b_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__int64_t_malloc_52c_goodB2GSink(param_1); return; }
['gcc']
55,426
void CWE401_Memory_Leak__int64_t_malloc_52c_badSink(int64_t * data) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ }
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99424/CWE401_Memory_Leak__int64_t_malloc_52c.c
CWE401_Memory_Leak__int64_t_malloc_52c_badSink
void CWE401_Memory_Leak__int64_t_malloc_52c_badSink(void) { return; }
['gcc']
55,427
void CWE401_Memory_Leak__int64_t_malloc_52c_goodG2BSink(int64_t * data) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ }
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99424/CWE401_Memory_Leak__int64_t_malloc_52c.c
CWE401_Memory_Leak__int64_t_malloc_52c_goodG2BSink
void CWE401_Memory_Leak__int64_t_malloc_52c_goodG2BSink(void) { return; }
['gcc']
55,428
void CWE401_Memory_Leak__int64_t_malloc_52c_goodB2GSink(int64_t * data) { /* FIX: Deallocate memory */ free(data); }
['/* FIX: Deallocate memory */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99424/CWE401_Memory_Leak__int64_t_malloc_52c.c
CWE401_Memory_Leak__int64_t_malloc_52c_goodB2GSink
void CWE401_Memory_Leak__int64_t_malloc_52c_goodB2GSink(undefined8 param_1) { func_0x00400a20(param_1); return; }
['gcc']
55,429
void CWE401_Memory_Leak__int64_t_malloc_53_bad() { int64_t * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (int64_t *)malloc(100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); CWE401_Memory_Leak__int64_t_malloc_53b_badSink(data); }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99425/CWE401_Memory_Leak__int64_t_malloc_53a.c
CWE401_Memory_Leak__int64_t_malloc_53_bad
void CWE401_Memory_Leak__int64_t_malloc_53_bad(void) { undefined8 *puVar1; puVar1 = (undefined8 *)func_0x00400a60(800); *puVar1 = 5; printLongLongLine(*puVar1); CWE401_Memory_Leak__int64_t_malloc_53b_badSink(puVar1); return; }
['gcc']
55,430
void CWE401_Memory_Leak__int64_t_malloc_53_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99425/CWE401_Memory_Leak__int64_t_malloc_53a.c
CWE401_Memory_Leak__int64_t_malloc_53_good
void CWE401_Memory_Leak__int64_t_malloc_53_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
55,431
void CWE401_Memory_Leak__int64_t_malloc_53b_badSink(int64_t * data) { CWE401_Memory_Leak__int64_t_malloc_53c_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99425/CWE401_Memory_Leak__int64_t_malloc_53b.c
CWE401_Memory_Leak__int64_t_malloc_53b_badSink
void CWE401_Memory_Leak__int64_t_malloc_53b_badSink(undefined8 param_1) { CWE401_Memory_Leak__int64_t_malloc_53c_badSink(param_1); return; }
['gcc']
55,432
void CWE401_Memory_Leak__int64_t_malloc_53b_goodG2BSink(int64_t * data) { CWE401_Memory_Leak__int64_t_malloc_53c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99425/CWE401_Memory_Leak__int64_t_malloc_53b.c
CWE401_Memory_Leak__int64_t_malloc_53b_goodG2BSink
void CWE401_Memory_Leak__int64_t_malloc_53b_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__int64_t_malloc_53c_goodG2BSink(param_1); return; }
['gcc']
55,433
void CWE401_Memory_Leak__int64_t_malloc_53b_goodB2GSink(int64_t * data) { CWE401_Memory_Leak__int64_t_malloc_53c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99425/CWE401_Memory_Leak__int64_t_malloc_53b.c
CWE401_Memory_Leak__int64_t_malloc_53b_goodB2GSink
void CWE401_Memory_Leak__int64_t_malloc_53b_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__int64_t_malloc_53c_goodB2GSink(param_1); return; }
['gcc']
55,434
void CWE401_Memory_Leak__int64_t_malloc_53c_badSink(int64_t * data) { CWE401_Memory_Leak__int64_t_malloc_53d_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99425/CWE401_Memory_Leak__int64_t_malloc_53c.c
CWE401_Memory_Leak__int64_t_malloc_53c_badSink
void CWE401_Memory_Leak__int64_t_malloc_53c_badSink(undefined8 param_1) { CWE401_Memory_Leak__int64_t_malloc_53d_badSink(param_1); return; }
['gcc']
55,435
void CWE401_Memory_Leak__int64_t_malloc_53c_goodG2BSink(int64_t * data) { CWE401_Memory_Leak__int64_t_malloc_53d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99425/CWE401_Memory_Leak__int64_t_malloc_53c.c
CWE401_Memory_Leak__int64_t_malloc_53c_goodG2BSink
void CWE401_Memory_Leak__int64_t_malloc_53c_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__int64_t_malloc_53d_goodG2BSink(param_1); return; }
['gcc']
55,436
void CWE401_Memory_Leak__int64_t_malloc_53c_goodB2GSink(int64_t * data) { CWE401_Memory_Leak__int64_t_malloc_53d_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99425/CWE401_Memory_Leak__int64_t_malloc_53c.c
CWE401_Memory_Leak__int64_t_malloc_53c_goodB2GSink
void CWE401_Memory_Leak__int64_t_malloc_53c_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__int64_t_malloc_53d_goodB2GSink(param_1); return; }
['gcc']
55,437
void CWE401_Memory_Leak__int64_t_malloc_53d_badSink(int64_t * data) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ }
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99425/CWE401_Memory_Leak__int64_t_malloc_53d.c
CWE401_Memory_Leak__int64_t_malloc_53d_badSink
void CWE401_Memory_Leak__int64_t_malloc_53d_badSink(void) { return; }
['gcc']
55,438
void CWE401_Memory_Leak__int64_t_malloc_53d_goodG2BSink(int64_t * data) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ }
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99425/CWE401_Memory_Leak__int64_t_malloc_53d.c
CWE401_Memory_Leak__int64_t_malloc_53d_goodG2BSink
void CWE401_Memory_Leak__int64_t_malloc_53d_goodG2BSink(void) { return; }
['gcc']
55,439
void CWE401_Memory_Leak__int64_t_malloc_53d_goodB2GSink(int64_t * data) { /* FIX: Deallocate memory */ free(data); }
['/* FIX: Deallocate memory */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99425/CWE401_Memory_Leak__int64_t_malloc_53d.c
CWE401_Memory_Leak__int64_t_malloc_53d_goodB2GSink
void CWE401_Memory_Leak__int64_t_malloc_53d_goodB2GSink(undefined8 param_1) { func_0x00400a20(param_1); return; }
['gcc']
55,440
void CWE401_Memory_Leak__int64_t_malloc_54_bad() { int64_t * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (int64_t *)malloc(100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); CWE401_Memory_Leak__int64_t_malloc_54b_badSink(data); }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99426/CWE401_Memory_Leak__int64_t_malloc_54a.c
CWE401_Memory_Leak__int64_t_malloc_54_bad
void CWE401_Memory_Leak__int64_t_malloc_54_bad(void) { undefined8 *puVar1; puVar1 = (undefined8 *)func_0x00400a60(800); *puVar1 = 5; printLongLongLine(*puVar1); CWE401_Memory_Leak__int64_t_malloc_54b_badSink(puVar1); return; }
['gcc']
55,441
void CWE401_Memory_Leak__int64_t_malloc_54_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99426/CWE401_Memory_Leak__int64_t_malloc_54a.c
CWE401_Memory_Leak__int64_t_malloc_54_good
void CWE401_Memory_Leak__int64_t_malloc_54_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
55,442
void CWE401_Memory_Leak__int64_t_malloc_54b_badSink(int64_t * data) { CWE401_Memory_Leak__int64_t_malloc_54c_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99426/CWE401_Memory_Leak__int64_t_malloc_54b.c
CWE401_Memory_Leak__int64_t_malloc_54b_badSink
void CWE401_Memory_Leak__int64_t_malloc_54b_badSink(undefined8 param_1) { CWE401_Memory_Leak__int64_t_malloc_54c_badSink(param_1); return; }
['gcc']
55,443
void CWE401_Memory_Leak__int64_t_malloc_54b_goodG2BSink(int64_t * data) { CWE401_Memory_Leak__int64_t_malloc_54c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99426/CWE401_Memory_Leak__int64_t_malloc_54b.c
CWE401_Memory_Leak__int64_t_malloc_54b_goodG2BSink
void CWE401_Memory_Leak__int64_t_malloc_54b_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__int64_t_malloc_54c_goodG2BSink(param_1); return; }
['gcc']
55,444
void CWE401_Memory_Leak__int64_t_malloc_54b_goodB2GSink(int64_t * data) { CWE401_Memory_Leak__int64_t_malloc_54c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99426/CWE401_Memory_Leak__int64_t_malloc_54b.c
CWE401_Memory_Leak__int64_t_malloc_54b_goodB2GSink
void CWE401_Memory_Leak__int64_t_malloc_54b_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__int64_t_malloc_54c_goodB2GSink(param_1); return; }
['gcc']
55,445
void CWE401_Memory_Leak__int64_t_malloc_54c_badSink(int64_t * data) { CWE401_Memory_Leak__int64_t_malloc_54d_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99426/CWE401_Memory_Leak__int64_t_malloc_54c.c
CWE401_Memory_Leak__int64_t_malloc_54c_badSink
void CWE401_Memory_Leak__int64_t_malloc_54c_badSink(undefined8 param_1) { CWE401_Memory_Leak__int64_t_malloc_54d_badSink(param_1); return; }
['gcc']
55,446
void CWE401_Memory_Leak__int64_t_malloc_54c_goodG2BSink(int64_t * data) { CWE401_Memory_Leak__int64_t_malloc_54d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99426/CWE401_Memory_Leak__int64_t_malloc_54c.c
CWE401_Memory_Leak__int64_t_malloc_54c_goodG2BSink
void CWE401_Memory_Leak__int64_t_malloc_54c_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__int64_t_malloc_54d_goodG2BSink(param_1); return; }
['gcc']
55,447
void CWE401_Memory_Leak__int64_t_malloc_54c_goodB2GSink(int64_t * data) { CWE401_Memory_Leak__int64_t_malloc_54d_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99426/CWE401_Memory_Leak__int64_t_malloc_54c.c
CWE401_Memory_Leak__int64_t_malloc_54c_goodB2GSink
void CWE401_Memory_Leak__int64_t_malloc_54c_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__int64_t_malloc_54d_goodB2GSink(param_1); return; }
['gcc']
55,448
void CWE401_Memory_Leak__int64_t_malloc_54d_badSink(int64_t * data) { CWE401_Memory_Leak__int64_t_malloc_54e_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99426/CWE401_Memory_Leak__int64_t_malloc_54d.c
CWE401_Memory_Leak__int64_t_malloc_54d_badSink
void CWE401_Memory_Leak__int64_t_malloc_54d_badSink(undefined8 param_1) { CWE401_Memory_Leak__int64_t_malloc_54e_badSink(param_1); return; }
['gcc']
55,449
void CWE401_Memory_Leak__int64_t_malloc_54d_goodG2BSink(int64_t * data) { CWE401_Memory_Leak__int64_t_malloc_54e_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99426/CWE401_Memory_Leak__int64_t_malloc_54d.c
CWE401_Memory_Leak__int64_t_malloc_54d_goodG2BSink
void CWE401_Memory_Leak__int64_t_malloc_54d_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__int64_t_malloc_54e_goodG2BSink(param_1); return; }
['gcc']
55,450
void CWE401_Memory_Leak__int64_t_malloc_54d_goodB2GSink(int64_t * data) { CWE401_Memory_Leak__int64_t_malloc_54e_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99426/CWE401_Memory_Leak__int64_t_malloc_54d.c
CWE401_Memory_Leak__int64_t_malloc_54d_goodB2GSink
void CWE401_Memory_Leak__int64_t_malloc_54d_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__int64_t_malloc_54e_goodB2GSink(param_1); return; }
['gcc']
55,451
void CWE401_Memory_Leak__int64_t_malloc_54e_badSink(int64_t * data) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ }
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99426/CWE401_Memory_Leak__int64_t_malloc_54e.c
CWE401_Memory_Leak__int64_t_malloc_54e_badSink
void CWE401_Memory_Leak__int64_t_malloc_54e_badSink(void) { return; }
['gcc']
55,452
void CWE401_Memory_Leak__int64_t_malloc_54e_goodG2BSink(int64_t * data) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ }
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99426/CWE401_Memory_Leak__int64_t_malloc_54e.c
CWE401_Memory_Leak__int64_t_malloc_54e_goodG2BSink
void CWE401_Memory_Leak__int64_t_malloc_54e_goodG2BSink(void) { return; }
['gcc']
55,453
void CWE401_Memory_Leak__int64_t_malloc_54e_goodB2GSink(int64_t * data) { /* FIX: Deallocate memory */ free(data); }
['/* FIX: Deallocate memory */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99426/CWE401_Memory_Leak__int64_t_malloc_54e.c
CWE401_Memory_Leak__int64_t_malloc_54e_goodB2GSink
void CWE401_Memory_Leak__int64_t_malloc_54e_goodB2GSink(undefined8 param_1) { func_0x00400a20(param_1); return; }
['gcc']
55,454
void CWE401_Memory_Leak__int64_t_malloc_61_bad() { int64_t * data; data = NULL; data = CWE401_Memory_Leak__int64_t_malloc_61b_badSource(data); /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ }
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99427/CWE401_Memory_Leak__int64_t_malloc_61a.c
CWE401_Memory_Leak__int64_t_malloc_61_bad
void CWE401_Memory_Leak__int64_t_malloc_61_bad(void) { CWE401_Memory_Leak__int64_t_malloc_61b_badSource(0); return; }
['gcc']
55,455
void CWE401_Memory_Leak__int64_t_malloc_61_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99427/CWE401_Memory_Leak__int64_t_malloc_61a.c
CWE401_Memory_Leak__int64_t_malloc_61_good
void CWE401_Memory_Leak__int64_t_malloc_61_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
55,456
int64_t * CWE401_Memory_Leak__int64_t_malloc_61b_badSource(int64_t * data) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (int64_t *)malloc(100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(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/99427/CWE401_Memory_Leak__int64_t_malloc_61b.c
CWE401_Memory_Leak__int64_t_malloc_61b_badSource
undefined8 * CWE401_Memory_Leak__int64_t_malloc_61b_badSource(void) { undefined8 *puVar1; puVar1 = (undefined8 *)func_0x00400a60(800); *puVar1 = 5; printLongLongLine(*puVar1); return puVar1; }
['gcc']
55,457
int64_t * CWE401_Memory_Leak__int64_t_malloc_61b_goodG2BSource(int64_t * data) { /* FIX: Use memory allocated on the stack with ALLOCA */ data = (int64_t *)ALLOCA(100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(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/99427/CWE401_Memory_Leak__int64_t_malloc_61b.c
CWE401_Memory_Leak__int64_t_malloc_61b_goodG2BSource
/* WARNING: Heritage AFTER dead removal. Example location: s0xfffffffffffffcc0 : 0x00400c23 */ /* WARNING: Restarted to delay deadcode elimination for space: stack */ undefined8 * CWE401_Memory_Leak__int64_t_malloc_61b_goodG2BSource(undefined8 param_1,undefined8 param_2) { undefined8 auStack_340 [102]; undefined8 *puStack_10; puStack_10 = auStack_340; auStack_340[0] = 5; printLongLongLine(5,param_2,7); return puStack_10; }
['gcc']
55,458
int64_t * CWE401_Memory_Leak__int64_t_malloc_61b_goodB2GSource(int64_t * data) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (int64_t *)malloc(100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(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/99427/CWE401_Memory_Leak__int64_t_malloc_61b.c
CWE401_Memory_Leak__int64_t_malloc_61b_goodB2GSource
undefined8 * CWE401_Memory_Leak__int64_t_malloc_61b_goodB2GSource(void) { undefined8 *puVar1; puVar1 = (undefined8 *)func_0x00400ab0(800); *puVar1 = 5; printLongLongLine(*puVar1); return puVar1; }
['gcc']
55,459
void CWE401_Memory_Leak__int64_t_malloc_63_bad() { int64_t * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (int64_t *)malloc(100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); CWE401_Memory_Leak__int64_t_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/99429/CWE401_Memory_Leak__int64_t_malloc_63a.c
CWE401_Memory_Leak__int64_t_malloc_63_bad
void CWE401_Memory_Leak__int64_t_malloc_63_bad(void) { undefined8 *puStack_10; puStack_10 = (undefined8 *)0x0; puStack_10 = (undefined8 *)func_0x00400a60(800); *puStack_10 = 5; printLongLongLine(*puStack_10); CWE401_Memory_Leak__int64_t_malloc_63b_badSink(&puStack_10); return; }
['gcc']
55,460
void CWE401_Memory_Leak__int64_t_malloc_63_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99429/CWE401_Memory_Leak__int64_t_malloc_63a.c
CWE401_Memory_Leak__int64_t_malloc_63_good
void CWE401_Memory_Leak__int64_t_malloc_63_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
55,461
void CWE401_Memory_Leak__int64_t_malloc_63b_badSink(int64_t * * dataPtr) { int64_t * 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/99429/CWE401_Memory_Leak__int64_t_malloc_63b.c
CWE401_Memory_Leak__int64_t_malloc_63b_badSink
void CWE401_Memory_Leak__int64_t_malloc_63b_badSink(void) { return; }
['gcc']
55,462
void CWE401_Memory_Leak__int64_t_malloc_63b_goodG2BSink(int64_t * * dataPtr) { int64_t * 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/99429/CWE401_Memory_Leak__int64_t_malloc_63b.c
CWE401_Memory_Leak__int64_t_malloc_63b_goodG2BSink
void CWE401_Memory_Leak__int64_t_malloc_63b_goodG2BSink(void) { return; }
['gcc']
55,463
void CWE401_Memory_Leak__int64_t_malloc_63b_goodB2GSink(int64_t * * dataPtr) { int64_t * data = *dataPtr; /* FIX: Deallocate memory */ free(data); }
['/* FIX: Deallocate memory */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99429/CWE401_Memory_Leak__int64_t_malloc_63b.c
CWE401_Memory_Leak__int64_t_malloc_63b_goodB2GSink
void CWE401_Memory_Leak__int64_t_malloc_63b_goodB2GSink(undefined8 *param_1) { func_0x00400a20(*param_1); return; }
['gcc']
55,464
void CWE401_Memory_Leak__int64_t_malloc_64_bad() { int64_t * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (int64_t *)malloc(100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); CWE401_Memory_Leak__int64_t_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/99430/CWE401_Memory_Leak__int64_t_malloc_64a.c
CWE401_Memory_Leak__int64_t_malloc_64_bad
void CWE401_Memory_Leak__int64_t_malloc_64_bad(void) { undefined8 *puStack_10; puStack_10 = (undefined8 *)0x0; puStack_10 = (undefined8 *)func_0x00400a60(800); *puStack_10 = 5; printLongLongLine(*puStack_10); CWE401_Memory_Leak__int64_t_malloc_64b_badSink(&puStack_10); return; }
['gcc']
55,465
void CWE401_Memory_Leak__int64_t_malloc_64_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99430/CWE401_Memory_Leak__int64_t_malloc_64a.c
CWE401_Memory_Leak__int64_t_malloc_64_good
void CWE401_Memory_Leak__int64_t_malloc_64_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
55,466
void CWE401_Memory_Leak__int64_t_malloc_64b_badSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ int64_t * * dataPtr = (int64_t * *)dataVoidPtr; /* dereference dataPtr into data */ int64_t * data = (*dataPtr); /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99430/CWE401_Memory_Leak__int64_t_malloc_64b.c
CWE401_Memory_Leak__int64_t_malloc_64b_badSink
void CWE401_Memory_Leak__int64_t_malloc_64b_badSink(void) { return; }
['gcc']
55,467
void CWE401_Memory_Leak__int64_t_malloc_64b_goodG2BSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ int64_t * * dataPtr = (int64_t * *)dataVoidPtr; /* dereference dataPtr into data */ int64_t * data = (*dataPtr); /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99430/CWE401_Memory_Leak__int64_t_malloc_64b.c
CWE401_Memory_Leak__int64_t_malloc_64b_goodG2BSink
void CWE401_Memory_Leak__int64_t_malloc_64b_goodG2BSink(void) { return; }
['gcc']
55,468
void CWE401_Memory_Leak__int64_t_malloc_64b_goodB2GSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ int64_t * * dataPtr = (int64_t * *)dataVoidPtr; /* dereference dataPtr into data */ int64_t * data = (*dataPtr); /* FIX: Deallocate memory */ free(data); }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* FIX: Deallocate memory */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99430/CWE401_Memory_Leak__int64_t_malloc_64b.c
CWE401_Memory_Leak__int64_t_malloc_64b_goodB2GSink
void CWE401_Memory_Leak__int64_t_malloc_64b_goodB2GSink(undefined8 *param_1) { func_0x00400a20(*param_1); return; }
['gcc']
55,469
void CWE401_Memory_Leak__int64_t_malloc_66_bad() { int64_t * data; int64_t * dataArray[5]; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (int64_t *)malloc(100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); /* put data in array */ dataArray[2] = data; CWE401_Memory_Leak__int64_t_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/99432/CWE401_Memory_Leak__int64_t_malloc_66a.c
CWE401_Memory_Leak__int64_t_malloc_66_bad
void CWE401_Memory_Leak__int64_t_malloc_66_bad(void) { undefined auStack_38 [16]; undefined8 *puStack_28; undefined8 *puStack_10; puStack_10 = (undefined8 *)0x0; puStack_10 = (undefined8 *)func_0x00400a60(800); *puStack_10 = 5; printLongLongLine(*puStack_10); puStack_28 = puStack_10; CWE401_Memory_Leak__int64_t_malloc_66b_badSink(auStack_38); return; }
['gcc']
55,470
void CWE401_Memory_Leak__int64_t_malloc_66_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99432/CWE401_Memory_Leak__int64_t_malloc_66a.c
CWE401_Memory_Leak__int64_t_malloc_66_good
void CWE401_Memory_Leak__int64_t_malloc_66_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
55,471
void CWE401_Memory_Leak__int64_t_malloc_66b_badSink(int64_t * dataArray[]) { /* copy data out of dataArray */ int64_t * data = dataArray[2]; /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ }
['/* copy data out of dataArray */', '/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99432/CWE401_Memory_Leak__int64_t_malloc_66b.c
CWE401_Memory_Leak__int64_t_malloc_66b_badSink
void CWE401_Memory_Leak__int64_t_malloc_66b_badSink(void) { return; }
['gcc']
55,472
void CWE401_Memory_Leak__int64_t_malloc_66b_goodG2BSink(int64_t * dataArray[]) { int64_t * data = dataArray[2]; /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ }
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99432/CWE401_Memory_Leak__int64_t_malloc_66b.c
CWE401_Memory_Leak__int64_t_malloc_66b_goodG2BSink
void CWE401_Memory_Leak__int64_t_malloc_66b_goodG2BSink(void) { return; }
['gcc']
55,473
void CWE401_Memory_Leak__int64_t_malloc_66b_goodB2GSink(int64_t * dataArray[]) { int64_t * data = dataArray[2]; /* FIX: Deallocate memory */ free(data); }
['/* FIX: Deallocate memory */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99432/CWE401_Memory_Leak__int64_t_malloc_66b.c
CWE401_Memory_Leak__int64_t_malloc_66b_goodB2GSink
void CWE401_Memory_Leak__int64_t_malloc_66b_goodB2GSink(long param_1) { func_0x00400a20(*(undefined8 *)(param_1 + 0x10)); return; }
['gcc']
55,474
void CWE401_Memory_Leak__int64_t_malloc_67_bad() { int64_t * data; CWE401_Memory_Leak__int64_t_malloc_67_structType myStruct; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (int64_t *)malloc(100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); myStruct.structFirst = data; CWE401_Memory_Leak__int64_t_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/99433/CWE401_Memory_Leak__int64_t_malloc_67a.c
CWE401_Memory_Leak__int64_t_malloc_67_bad
void CWE401_Memory_Leak__int64_t_malloc_67_bad(void) { undefined8 *puVar1; puVar1 = (undefined8 *)func_0x00400a60(800); *puVar1 = 5; printLongLongLine(*puVar1); CWE401_Memory_Leak__int64_t_malloc_67b_badSink(puVar1); return; }
['gcc']
55,475
void CWE401_Memory_Leak__int64_t_malloc_67_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99433/CWE401_Memory_Leak__int64_t_malloc_67a.c
CWE401_Memory_Leak__int64_t_malloc_67_good
void CWE401_Memory_Leak__int64_t_malloc_67_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
55,476
void CWE401_Memory_Leak__int64_t_malloc_67b_badSink(CWE401_Memory_Leak__int64_t_malloc_67_structType myStruct) { int64_t * 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/99433/CWE401_Memory_Leak__int64_t_malloc_67b.c
CWE401_Memory_Leak__int64_t_malloc_67b_badSink
void CWE401_Memory_Leak__int64_t_malloc_67b_badSink(void) { return; }
['gcc']
55,477
void CWE401_Memory_Leak__int64_t_malloc_67b_goodG2BSink(CWE401_Memory_Leak__int64_t_malloc_67_structType myStruct) { int64_t * 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/99433/CWE401_Memory_Leak__int64_t_malloc_67b.c
CWE401_Memory_Leak__int64_t_malloc_67b_goodG2BSink
void CWE401_Memory_Leak__int64_t_malloc_67b_goodG2BSink(void) { return; }
['gcc']
55,478
void CWE401_Memory_Leak__int64_t_malloc_67b_goodB2GSink(CWE401_Memory_Leak__int64_t_malloc_67_structType myStruct) { int64_t * 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/99433/CWE401_Memory_Leak__int64_t_malloc_67b.c
CWE401_Memory_Leak__int64_t_malloc_67b_goodB2GSink
void CWE401_Memory_Leak__int64_t_malloc_67b_goodB2GSink(undefined8 param_1) { func_0x00400a20(param_1); return; }
['gcc']
55,479
void CWE401_Memory_Leak__int64_t_realloc_08_bad() { int64_t * data; data = NULL; if(staticReturnsTrue()) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (int64_t *)realloc(data, 100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(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/99449/CWE401_Memory_Leak__int64_t_realloc_08.c
CWE401_Memory_Leak__int64_t_realloc_08_bad
void CWE401_Memory_Leak__int64_t_realloc_08_bad(void) { int iVar1; undefined8 *puVar2; iVar1 = staticReturnsTrue(); if (iVar1 != 0) { puVar2 = (undefined8 *)func_0x00400a80(0,800); *puVar2 = 5; printLongLongLine(*puVar2); } staticReturnsTrue(); return; }
['gcc']
55,480
void CWE401_Memory_Leak__int64_t_realloc_08_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99449/CWE401_Memory_Leak__int64_t_realloc_08.c
CWE401_Memory_Leak__int64_t_realloc_08_good
void CWE401_Memory_Leak__int64_t_realloc_08_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
55,481
void CWE401_Memory_Leak__int64_t_realloc_11_bad() { int64_t * data; data = NULL; if(globalReturnsTrue()) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (int64_t *)realloc(data, 100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(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/99452/CWE401_Memory_Leak__int64_t_realloc_11.c
CWE401_Memory_Leak__int64_t_realloc_11_bad
void CWE401_Memory_Leak__int64_t_realloc_11_bad(void) { int iVar1; undefined8 *puVar2; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { puVar2 = (undefined8 *)func_0x00400a80(0,800); *puVar2 = 5; printLongLongLine(*puVar2); } globalReturnsTrue(); return; }
['gcc']
55,482
void CWE401_Memory_Leak__int64_t_realloc_11_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99452/CWE401_Memory_Leak__int64_t_realloc_11.c
CWE401_Memory_Leak__int64_t_realloc_11_good
void CWE401_Memory_Leak__int64_t_realloc_11_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
55,483
void CWE401_Memory_Leak__int64_t_realloc_12_bad() { int64_t * data; data = NULL; if(globalReturnsTrueOrFalse()) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (int64_t *)realloc(data, 100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); } else { /* FIX: Use memory allocated on the stack with ALLOCA */ data = (int64_t *)ALLOCA(100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(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/99453/CWE401_Memory_Leak__int64_t_realloc_12.c
CWE401_Memory_Leak__int64_t_realloc_12_bad
/* WARNING: Heritage AFTER dead removal. Example location: s0xfffffffffffffcc0 : 0x00400c66 */ /* WARNING: Restarted to delay deadcode elimination for space: stack */ void CWE401_Memory_Leak__int64_t_realloc_12_bad(void) { int iVar1; undefined *puVar2; undefined auStack_348 [8]; undefined8 auStack_340 [100]; undefined *puStack_20; undefined auStack_18 [8]; undefined8 *puStack_10; puVar2 = auStack_18; puStack_10 = (undefined8 *)0x0; puStack_20 = &UNK_00400bec; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { puVar2 = auStack_348; puStack_10 = auStack_340; auStack_340[0] = 5; printLongLongLine(5); } else { puStack_20 = &UNK_00400c01; puStack_10 = (undefined8 *)func_0x00400ad0(puStack_10,800); *puStack_10 = 5; puStack_20 = &UNK_00400c1f; printLongLongLine(*puStack_10); } *(undefined **)(puVar2 + -8) = &UNK_00400c7b; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { *(undefined **)(puVar2 + -8) = &UNK_00400c8b; func_0x00400a20(puStack_10); } return; }
['gcc']
55,484
void CWE401_Memory_Leak__int64_t_realloc_12_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99453/CWE401_Memory_Leak__int64_t_realloc_12.c
CWE401_Memory_Leak__int64_t_realloc_12_good
void CWE401_Memory_Leak__int64_t_realloc_12_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
55,485
void CWE401_Memory_Leak__int64_t_realloc_17_bad() { int i,j; int64_t * data; data = NULL; for(i = 0; i < 1; i++) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (int64_t *)realloc(data, 100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(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/99458/CWE401_Memory_Leak__int64_t_realloc_17.c
CWE401_Memory_Leak__int64_t_realloc_17_bad
void CWE401_Memory_Leak__int64_t_realloc_17_bad(void) { undefined8 *puStack_18; int iStack_10; int iStack_c; puStack_18 = (undefined8 *)0x0; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { puStack_18 = (undefined8 *)func_0x00400a80(puStack_18,800); *puStack_18 = 5; printLongLongLine(*puStack_18); } for (iStack_10 = 0; iStack_10 < 1; iStack_10 = iStack_10 + 1) { } return; }
['gcc']
55,486
void CWE401_Memory_Leak__int64_t_realloc_17_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99458/CWE401_Memory_Leak__int64_t_realloc_17.c
CWE401_Memory_Leak__int64_t_realloc_17_good
void CWE401_Memory_Leak__int64_t_realloc_17_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
55,487
void CWE401_Memory_Leak__int64_t_realloc_21_bad() { int64_t * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (int64_t *)realloc(data, 100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(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/99460/CWE401_Memory_Leak__int64_t_realloc_21.c
CWE401_Memory_Leak__int64_t_realloc_21_bad
void CWE401_Memory_Leak__int64_t_realloc_21_bad(void) { undefined8 *puVar1; puVar1 = (undefined8 *)func_0x00400a80(0,800); *puVar1 = 5; printLongLongLine(*puVar1); badStatic = 1; badSink(puVar1); return; }
['gcc']
55,488
void CWE401_Memory_Leak__int64_t_realloc_21_good() { goodB2G1(); goodB2G2(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99460/CWE401_Memory_Leak__int64_t_realloc_21.c
CWE401_Memory_Leak__int64_t_realloc_21_good
void CWE401_Memory_Leak__int64_t_realloc_21_good(void) { goodB2G1(); goodB2G2(); goodG2B(); return; }
['gcc']
55,489
void CWE401_Memory_Leak__int64_t_realloc_22_bad() { int64_t * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (int64_t *)realloc(data, 100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); CWE401_Memory_Leak__int64_t_realloc_22_badGlobal = 1; /* true */ CWE401_Memory_Leak__int64_t_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/99461/CWE401_Memory_Leak__int64_t_realloc_22a.c
CWE401_Memory_Leak__int64_t_realloc_22_bad
void CWE401_Memory_Leak__int64_t_realloc_22_bad(void) { undefined8 *puVar1; puVar1 = (undefined8 *)func_0x00400a80(0,800); *puVar1 = 5; printLongLongLine(*puVar1); CWE401_Memory_Leak__int64_t_realloc_22_badGlobal = 1; CWE401_Memory_Leak__int64_t_realloc_22_badSink(puVar1); return; }
['gcc']
55,490
void CWE401_Memory_Leak__int64_t_realloc_22_good() { goodB2G1(); goodB2G2(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99461/CWE401_Memory_Leak__int64_t_realloc_22a.c
CWE401_Memory_Leak__int64_t_realloc_22_good
void CWE401_Memory_Leak__int64_t_realloc_22_good(void) { goodB2G1(); goodB2G2(); goodG2B(); return; }
['gcc']
55,491
void CWE401_Memory_Leak__int64_t_realloc_22_badSink(int64_t * data) { if(CWE401_Memory_Leak__int64_t_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/99461/CWE401_Memory_Leak__int64_t_realloc_22b.c
CWE401_Memory_Leak__int64_t_realloc_22_badSink
void CWE401_Memory_Leak__int64_t_realloc_22_badSink(void) { return; }
['gcc']
55,492
void CWE401_Memory_Leak__int64_t_realloc_22_goodB2G1Sink(int64_t * data) { if(CWE401_Memory_Leak__int64_t_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/99461/CWE401_Memory_Leak__int64_t_realloc_22b.c
CWE401_Memory_Leak__int64_t_realloc_22_goodB2G1Sink
void CWE401_Memory_Leak__int64_t_realloc_22_goodB2G1Sink(undefined8 param_1) { if (CWE401_Memory_Leak__int64_t_realloc_22_goodB2G1Global == 0) { func_0x00400a20(param_1); } else { printLine(&UNK_00401304); } return; }
['gcc']
55,493
void CWE401_Memory_Leak__int64_t_realloc_22_goodB2G2Sink(int64_t * data) { if(CWE401_Memory_Leak__int64_t_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/99461/CWE401_Memory_Leak__int64_t_realloc_22b.c
CWE401_Memory_Leak__int64_t_realloc_22_goodB2G2Sink
void CWE401_Memory_Leak__int64_t_realloc_22_goodB2G2Sink(undefined8 param_1) { if (CWE401_Memory_Leak__int64_t_realloc_22_goodB2G2Global != 0) { func_0x00400a20(param_1); } return; }
['gcc']
55,494
void CWE401_Memory_Leak__int64_t_realloc_22_goodG2BSink(int64_t * data) { if(CWE401_Memory_Leak__int64_t_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/99461/CWE401_Memory_Leak__int64_t_realloc_22b.c
CWE401_Memory_Leak__int64_t_realloc_22_goodG2BSink
void CWE401_Memory_Leak__int64_t_realloc_22_goodG2BSink(void) { return; }
['gcc']
55,495
void CWE401_Memory_Leak__int64_t_realloc_31_bad() { int64_t * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (int64_t *)realloc(data, 100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); { int64_t * dataCopy = data; int64_t * 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/99462/CWE401_Memory_Leak__int64_t_realloc_31.c
CWE401_Memory_Leak__int64_t_realloc_31_bad
void CWE401_Memory_Leak__int64_t_realloc_31_bad(void) { undefined8 *puVar1; puVar1 = (undefined8 *)func_0x00400a80(0,800); *puVar1 = 5; printLongLongLine(*puVar1); return; }
['gcc']
55,496
void CWE401_Memory_Leak__int64_t_realloc_31_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99462/CWE401_Memory_Leak__int64_t_realloc_31.c
CWE401_Memory_Leak__int64_t_realloc_31_good
void CWE401_Memory_Leak__int64_t_realloc_31_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
55,497
void CWE401_Memory_Leak__int64_t_realloc_32_bad() { int64_t * data; int64_t * *dataPtr1 = &data; int64_t * *dataPtr2 = &data; data = NULL; { int64_t * data = *dataPtr1; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (int64_t *)realloc(data, 100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); *dataPtr1 = data; } { int64_t * 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/99463/CWE401_Memory_Leak__int64_t_realloc_32.c
CWE401_Memory_Leak__int64_t_realloc_32_bad
/* WARNING: Restarted to delay deadcode elimination for space: stack */ void CWE401_Memory_Leak__int64_t_realloc_32_bad(void) { undefined8 auStack_30 [2]; undefined8 *puStack_20; undefined8 *puStack_18; undefined8 *puStack_10; puStack_10 = auStack_30; puStack_18 = auStack_30; auStack_30[0] = 0; puStack_20 = (undefined8 *)0x0; puStack_20 = (undefined8 *)func_0x00400a80(0,800); *puStack_20 = 5; printLongLongLine(*puStack_20); *puStack_10 = puStack_20; return; }
['gcc']
55,498
void CWE401_Memory_Leak__int64_t_realloc_32_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99463/CWE401_Memory_Leak__int64_t_realloc_32.c
CWE401_Memory_Leak__int64_t_realloc_32_good
void CWE401_Memory_Leak__int64_t_realloc_32_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
55,499
void CWE401_Memory_Leak__int64_t_realloc_34_bad() { int64_t * data; CWE401_Memory_Leak__int64_t_realloc_34_unionType myUnion; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (int64_t *)realloc(data, 100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); myUnion.unionFirst = data; { int64_t * 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/99465/CWE401_Memory_Leak__int64_t_realloc_34.c
CWE401_Memory_Leak__int64_t_realloc_34_bad
void CWE401_Memory_Leak__int64_t_realloc_34_bad(void) { undefined8 *puVar1; puVar1 = (undefined8 *)func_0x00400a80(0,800); *puVar1 = 5; printLongLongLine(*puVar1); return; }
['gcc']