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
800
void CWE401_Memory_Leak__wchar_t_calloc_16_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100730/CWE401_Memory_Leak__wchar_t_calloc_16.c
CWE401_Memory_Leak__wchar_t_calloc_16_good
void CWE401_Memory_Leak__wchar_t_calloc_16_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
801
void CWE401_Memory_Leak__wchar_t_calloc_17_bad() { int i,j; wchar_t * data; data = NULL; for(i = 0; i < 1; i++) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)calloc(100, sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); } 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/100731/CWE401_Memory_Leak__wchar_t_calloc_17.c
CWE401_Memory_Leak__wchar_t_calloc_17_bad
void CWE401_Memory_Leak__wchar_t_calloc_17_bad(void) { undefined8 uVar1; int iStack_10; int iStack_c; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { uVar1 = func_0x00400a80(100,4); func_0x00400a90(uVar1,&UNK_004011b8); printWLine(uVar1); } for (iStack_10 = 0; iStack_10 < 1; iStack_10 = iStack_10 + 1) { } return; }
['gcc']
802
void CWE401_Memory_Leak__wchar_t_calloc_17_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100731/CWE401_Memory_Leak__wchar_t_calloc_17.c
CWE401_Memory_Leak__wchar_t_calloc_17_good
void CWE401_Memory_Leak__wchar_t_calloc_17_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
803
void CWE401_Memory_Leak__wchar_t_calloc_21_bad() { wchar_t * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)calloc(100, sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); 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/100733/CWE401_Memory_Leak__wchar_t_calloc_21.c
CWE401_Memory_Leak__wchar_t_calloc_21_bad
void CWE401_Memory_Leak__wchar_t_calloc_21_bad(void) { undefined8 uVar1; uVar1 = func_0x00400a80(100,4); func_0x00400a90(uVar1,&UNK_004011b8); printWLine(uVar1); badStatic = 1; badSink(uVar1); return; }
['gcc']
804
void CWE401_Memory_Leak__wchar_t_calloc_21_good() { goodB2G1(); goodB2G2(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100733/CWE401_Memory_Leak__wchar_t_calloc_21.c
CWE401_Memory_Leak__wchar_t_calloc_21_good
void CWE401_Memory_Leak__wchar_t_calloc_21_good(void) { goodB2G1(); goodB2G2(); goodG2B(); return; }
['gcc']
805
void CWE401_Memory_Leak__wchar_t_calloc_22_bad() { wchar_t * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)calloc(100, sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); CWE401_Memory_Leak__wchar_t_calloc_22_badGlobal = 1; /* true */ CWE401_Memory_Leak__wchar_t_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/100734/CWE401_Memory_Leak__wchar_t_calloc_22a.c
CWE401_Memory_Leak__wchar_t_calloc_22_bad
void CWE401_Memory_Leak__wchar_t_calloc_22_bad(void) { undefined8 uVar1; uVar1 = func_0x00400a80(100,4); func_0x00400a90(uVar1,&UNK_004011b8); printWLine(uVar1); CWE401_Memory_Leak__wchar_t_calloc_22_badGlobal = 1; CWE401_Memory_Leak__wchar_t_calloc_22_badSink(uVar1); return; }
['gcc']
806
void CWE401_Memory_Leak__wchar_t_calloc_22_good() { goodB2G1(); goodB2G2(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100734/CWE401_Memory_Leak__wchar_t_calloc_22a.c
CWE401_Memory_Leak__wchar_t_calloc_22_good
void CWE401_Memory_Leak__wchar_t_calloc_22_good(void) { goodB2G1(); goodB2G2(); goodG2B(); return; }
['gcc']
807
void CWE401_Memory_Leak__wchar_t_calloc_22_badSink(wchar_t * data) { if(CWE401_Memory_Leak__wchar_t_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/100734/CWE401_Memory_Leak__wchar_t_calloc_22b.c
CWE401_Memory_Leak__wchar_t_calloc_22_badSink
void CWE401_Memory_Leak__wchar_t_calloc_22_badSink(void) { return; }
['gcc']
808
void CWE401_Memory_Leak__wchar_t_calloc_22_goodB2G1Sink(wchar_t * data) { if(CWE401_Memory_Leak__wchar_t_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/100734/CWE401_Memory_Leak__wchar_t_calloc_22b.c
CWE401_Memory_Leak__wchar_t_calloc_22_goodB2G1Sink
void CWE401_Memory_Leak__wchar_t_calloc_22_goodB2G1Sink(undefined8 param_1) { if (CWE401_Memory_Leak__wchar_t_calloc_22_goodB2G1Global == 0) { func_0x00400a60(param_1); } else { printLine(&UNK_00401354); } return; }
['gcc']
809
void CWE401_Memory_Leak__wchar_t_calloc_22_goodB2G2Sink(wchar_t * data) { if(CWE401_Memory_Leak__wchar_t_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/100734/CWE401_Memory_Leak__wchar_t_calloc_22b.c
CWE401_Memory_Leak__wchar_t_calloc_22_goodB2G2Sink
void CWE401_Memory_Leak__wchar_t_calloc_22_goodB2G2Sink(undefined8 param_1) { if (CWE401_Memory_Leak__wchar_t_calloc_22_goodB2G2Global != 0) { func_0x00400a60(param_1); } return; }
['gcc']
810
void CWE401_Memory_Leak__wchar_t_calloc_22_goodG2BSink(wchar_t * data) { if(CWE401_Memory_Leak__wchar_t_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/100734/CWE401_Memory_Leak__wchar_t_calloc_22b.c
CWE401_Memory_Leak__wchar_t_calloc_22_goodG2BSink
void CWE401_Memory_Leak__wchar_t_calloc_22_goodG2BSink(void) { return; }
['gcc']
811
void CWE401_Memory_Leak__wchar_t_calloc_31_bad() { wchar_t * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)calloc(100, sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); { wchar_t * dataCopy = data; wchar_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/100735/CWE401_Memory_Leak__wchar_t_calloc_31.c
CWE401_Memory_Leak__wchar_t_calloc_31_bad
void CWE401_Memory_Leak__wchar_t_calloc_31_bad(void) { undefined8 uVar1; uVar1 = func_0x00400a80(100,4); func_0x00400a90(uVar1,&UNK_004011a8); printWLine(uVar1); return; }
['gcc']
812
void CWE401_Memory_Leak__wchar_t_calloc_31_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100735/CWE401_Memory_Leak__wchar_t_calloc_31.c
CWE401_Memory_Leak__wchar_t_calloc_31_good
void CWE401_Memory_Leak__wchar_t_calloc_31_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
813
void CWE401_Memory_Leak__wchar_t_calloc_32_bad() { wchar_t * data; wchar_t * *dataPtr1 = &data; wchar_t * *dataPtr2 = &data; data = NULL; { wchar_t * data = *dataPtr1; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)calloc(100, sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); *dataPtr1 = data; } { wchar_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/100736/CWE401_Memory_Leak__wchar_t_calloc_32.c
CWE401_Memory_Leak__wchar_t_calloc_32_bad
/* WARNING: Restarted to delay deadcode elimination for space: stack */ void CWE401_Memory_Leak__wchar_t_calloc_32_bad(void) { undefined8 auStack_30 [2]; undefined8 uStack_20; undefined8 *puStack_18; undefined8 *puStack_10; puStack_10 = auStack_30; puStack_18 = auStack_30; auStack_30[0] = 0; uStack_20 = 0; uStack_20 = func_0x00400a80(100,4); func_0x00400a90(uStack_20,&UNK_004011c8); printWLine(uStack_20); *puStack_10 = uStack_20; return; }
['gcc']
814
void CWE401_Memory_Leak__wchar_t_calloc_32_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100736/CWE401_Memory_Leak__wchar_t_calloc_32.c
CWE401_Memory_Leak__wchar_t_calloc_32_good
void CWE401_Memory_Leak__wchar_t_calloc_32_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
815
void CWE401_Memory_Leak__wchar_t_calloc_34_bad() { wchar_t * data; CWE401_Memory_Leak__wchar_t_calloc_34_unionType myUnion; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)calloc(100, sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); myUnion.unionFirst = data; { wchar_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/100738/CWE401_Memory_Leak__wchar_t_calloc_34.c
CWE401_Memory_Leak__wchar_t_calloc_34_bad
void CWE401_Memory_Leak__wchar_t_calloc_34_bad(void) { undefined8 uVar1; uVar1 = func_0x00400a80(100,4); func_0x00400a90(uVar1,&UNK_004011a8); printWLine(uVar1); return; }
['gcc']
816
void CWE401_Memory_Leak__wchar_t_calloc_34_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100738/CWE401_Memory_Leak__wchar_t_calloc_34.c
CWE401_Memory_Leak__wchar_t_calloc_34_good
void CWE401_Memory_Leak__wchar_t_calloc_34_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
817
void CWE401_Memory_Leak__wchar_t_calloc_41_bad() { wchar_t * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)calloc(100, sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); 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/100739/CWE401_Memory_Leak__wchar_t_calloc_41.c
CWE401_Memory_Leak__wchar_t_calloc_41_bad
void CWE401_Memory_Leak__wchar_t_calloc_41_bad(void) { undefined8 uVar1; uVar1 = func_0x00400a80(100,4); func_0x00400a90(uVar1,&UNK_004011a8); printWLine(uVar1); badSink(uVar1); return; }
['gcc']
818
void CWE401_Memory_Leak__wchar_t_calloc_41_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100739/CWE401_Memory_Leak__wchar_t_calloc_41.c
CWE401_Memory_Leak__wchar_t_calloc_41_good
void CWE401_Memory_Leak__wchar_t_calloc_41_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
819
void CWE401_Memory_Leak__wchar_t_calloc_42_bad() { wchar_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/100740/CWE401_Memory_Leak__wchar_t_calloc_42.c
CWE401_Memory_Leak__wchar_t_calloc_42_bad
void CWE401_Memory_Leak__wchar_t_calloc_42_bad(void) { badSource(0); return; }
['gcc']
820
void CWE401_Memory_Leak__wchar_t_calloc_42_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100740/CWE401_Memory_Leak__wchar_t_calloc_42.c
CWE401_Memory_Leak__wchar_t_calloc_42_good
void CWE401_Memory_Leak__wchar_t_calloc_42_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
821
void CWE401_Memory_Leak__wchar_t_calloc_51_bad() { wchar_t * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)calloc(100, sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); CWE401_Memory_Leak__wchar_t_calloc_51b_badSink(data); }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100744/CWE401_Memory_Leak__wchar_t_calloc_51a.c
CWE401_Memory_Leak__wchar_t_calloc_51_bad
void CWE401_Memory_Leak__wchar_t_calloc_51_bad(void) { undefined8 uVar1; uVar1 = func_0x00400a80(100,4); func_0x00400a90(uVar1,&UNK_004011a8); printWLine(uVar1); CWE401_Memory_Leak__wchar_t_calloc_51b_badSink(uVar1); return; }
['gcc']
822
void CWE401_Memory_Leak__wchar_t_calloc_51_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100744/CWE401_Memory_Leak__wchar_t_calloc_51a.c
CWE401_Memory_Leak__wchar_t_calloc_51_good
void CWE401_Memory_Leak__wchar_t_calloc_51_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
823
void CWE401_Memory_Leak__wchar_t_calloc_51b_badSink(wchar_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/100744/CWE401_Memory_Leak__wchar_t_calloc_51b.c
CWE401_Memory_Leak__wchar_t_calloc_51b_badSink
void CWE401_Memory_Leak__wchar_t_calloc_51b_badSink(void) { return; }
['gcc']
824
void CWE401_Memory_Leak__wchar_t_calloc_51b_goodG2BSink(wchar_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/100744/CWE401_Memory_Leak__wchar_t_calloc_51b.c
CWE401_Memory_Leak__wchar_t_calloc_51b_goodG2BSink
void CWE401_Memory_Leak__wchar_t_calloc_51b_goodG2BSink(void) { return; }
['gcc']
825
void CWE401_Memory_Leak__wchar_t_calloc_51b_goodB2GSink(wchar_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/100744/CWE401_Memory_Leak__wchar_t_calloc_51b.c
CWE401_Memory_Leak__wchar_t_calloc_51b_goodB2GSink
void CWE401_Memory_Leak__wchar_t_calloc_51b_goodB2GSink(undefined8 param_1) { func_0x00400a60(param_1); return; }
['gcc']
826
void CWE401_Memory_Leak__wchar_t_calloc_52_bad() { wchar_t * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)calloc(100, sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); CWE401_Memory_Leak__wchar_t_calloc_52b_badSink(data); }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100745/CWE401_Memory_Leak__wchar_t_calloc_52a.c
CWE401_Memory_Leak__wchar_t_calloc_52_bad
void CWE401_Memory_Leak__wchar_t_calloc_52_bad(void) { undefined8 uVar1; uVar1 = func_0x00400a80(100,4); func_0x00400a90(uVar1,&UNK_004011c8); printWLine(uVar1); CWE401_Memory_Leak__wchar_t_calloc_52b_badSink(uVar1); return; }
['gcc']
827
void CWE401_Memory_Leak__wchar_t_calloc_52_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100745/CWE401_Memory_Leak__wchar_t_calloc_52a.c
CWE401_Memory_Leak__wchar_t_calloc_52_good
void CWE401_Memory_Leak__wchar_t_calloc_52_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
828
void CWE401_Memory_Leak__wchar_t_calloc_52b_badSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_calloc_52c_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100745/CWE401_Memory_Leak__wchar_t_calloc_52b.c
CWE401_Memory_Leak__wchar_t_calloc_52b_badSink
void CWE401_Memory_Leak__wchar_t_calloc_52b_badSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_calloc_52c_badSink(param_1); return; }
['gcc']
829
void CWE401_Memory_Leak__wchar_t_calloc_52b_goodG2BSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_calloc_52c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100745/CWE401_Memory_Leak__wchar_t_calloc_52b.c
CWE401_Memory_Leak__wchar_t_calloc_52b_goodG2BSink
void CWE401_Memory_Leak__wchar_t_calloc_52b_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_calloc_52c_goodG2BSink(param_1); return; }
['gcc']
830
void CWE401_Memory_Leak__wchar_t_calloc_52b_goodB2GSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_calloc_52c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100745/CWE401_Memory_Leak__wchar_t_calloc_52b.c
CWE401_Memory_Leak__wchar_t_calloc_52b_goodB2GSink
void CWE401_Memory_Leak__wchar_t_calloc_52b_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_calloc_52c_goodB2GSink(param_1); return; }
['gcc']
831
void CWE401_Memory_Leak__wchar_t_calloc_52c_badSink(wchar_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/100745/CWE401_Memory_Leak__wchar_t_calloc_52c.c
CWE401_Memory_Leak__wchar_t_calloc_52c_badSink
void CWE401_Memory_Leak__wchar_t_calloc_52c_badSink(void) { return; }
['gcc']
832
void CWE401_Memory_Leak__wchar_t_calloc_52c_goodG2BSink(wchar_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/100745/CWE401_Memory_Leak__wchar_t_calloc_52c.c
CWE401_Memory_Leak__wchar_t_calloc_52c_goodG2BSink
void CWE401_Memory_Leak__wchar_t_calloc_52c_goodG2BSink(void) { return; }
['gcc']
833
void CWE401_Memory_Leak__wchar_t_calloc_52c_goodB2GSink(wchar_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/100745/CWE401_Memory_Leak__wchar_t_calloc_52c.c
CWE401_Memory_Leak__wchar_t_calloc_52c_goodB2GSink
void CWE401_Memory_Leak__wchar_t_calloc_52c_goodB2GSink(undefined8 param_1) { func_0x00400a60(param_1); return; }
['gcc']
834
void CWE401_Memory_Leak__wchar_t_calloc_53_bad() { wchar_t * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)calloc(100, sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); CWE401_Memory_Leak__wchar_t_calloc_53b_badSink(data); }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100746/CWE401_Memory_Leak__wchar_t_calloc_53a.c
CWE401_Memory_Leak__wchar_t_calloc_53_bad
void CWE401_Memory_Leak__wchar_t_calloc_53_bad(void) { undefined8 uVar1; uVar1 = func_0x00400a80(100,4); func_0x00400a90(uVar1,&UNK_004011e8); printWLine(uVar1); CWE401_Memory_Leak__wchar_t_calloc_53b_badSink(uVar1); return; }
['gcc']
835
void CWE401_Memory_Leak__wchar_t_calloc_53_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100746/CWE401_Memory_Leak__wchar_t_calloc_53a.c
CWE401_Memory_Leak__wchar_t_calloc_53_good
void CWE401_Memory_Leak__wchar_t_calloc_53_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
836
void CWE401_Memory_Leak__wchar_t_calloc_53b_badSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_calloc_53c_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100746/CWE401_Memory_Leak__wchar_t_calloc_53b.c
CWE401_Memory_Leak__wchar_t_calloc_53b_badSink
void CWE401_Memory_Leak__wchar_t_calloc_53b_badSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_calloc_53c_badSink(param_1); return; }
['gcc']
837
void CWE401_Memory_Leak__wchar_t_calloc_53b_goodG2BSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_calloc_53c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100746/CWE401_Memory_Leak__wchar_t_calloc_53b.c
CWE401_Memory_Leak__wchar_t_calloc_53b_goodG2BSink
void CWE401_Memory_Leak__wchar_t_calloc_53b_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_calloc_53c_goodG2BSink(param_1); return; }
['gcc']
838
void CWE401_Memory_Leak__wchar_t_calloc_53b_goodB2GSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_calloc_53c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100746/CWE401_Memory_Leak__wchar_t_calloc_53b.c
CWE401_Memory_Leak__wchar_t_calloc_53b_goodB2GSink
void CWE401_Memory_Leak__wchar_t_calloc_53b_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_calloc_53c_goodB2GSink(param_1); return; }
['gcc']
839
void CWE401_Memory_Leak__wchar_t_calloc_53c_badSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_calloc_53d_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100746/CWE401_Memory_Leak__wchar_t_calloc_53c.c
CWE401_Memory_Leak__wchar_t_calloc_53c_badSink
void CWE401_Memory_Leak__wchar_t_calloc_53c_badSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_calloc_53d_badSink(param_1); return; }
['gcc']
840
void CWE401_Memory_Leak__wchar_t_calloc_53c_goodG2BSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_calloc_53d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100746/CWE401_Memory_Leak__wchar_t_calloc_53c.c
CWE401_Memory_Leak__wchar_t_calloc_53c_goodG2BSink
void CWE401_Memory_Leak__wchar_t_calloc_53c_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_calloc_53d_goodG2BSink(param_1); return; }
['gcc']
841
void CWE401_Memory_Leak__wchar_t_calloc_53c_goodB2GSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_calloc_53d_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100746/CWE401_Memory_Leak__wchar_t_calloc_53c.c
CWE401_Memory_Leak__wchar_t_calloc_53c_goodB2GSink
void CWE401_Memory_Leak__wchar_t_calloc_53c_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_calloc_53d_goodB2GSink(param_1); return; }
['gcc']
842
void CWE401_Memory_Leak__wchar_t_calloc_53d_badSink(wchar_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/100746/CWE401_Memory_Leak__wchar_t_calloc_53d.c
CWE401_Memory_Leak__wchar_t_calloc_53d_badSink
void CWE401_Memory_Leak__wchar_t_calloc_53d_badSink(void) { return; }
['gcc']
843
void CWE401_Memory_Leak__wchar_t_calloc_53d_goodG2BSink(wchar_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/100746/CWE401_Memory_Leak__wchar_t_calloc_53d.c
CWE401_Memory_Leak__wchar_t_calloc_53d_goodG2BSink
void CWE401_Memory_Leak__wchar_t_calloc_53d_goodG2BSink(void) { return; }
['gcc']
844
void CWE401_Memory_Leak__wchar_t_calloc_53d_goodB2GSink(wchar_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/100746/CWE401_Memory_Leak__wchar_t_calloc_53d.c
CWE401_Memory_Leak__wchar_t_calloc_53d_goodB2GSink
void CWE401_Memory_Leak__wchar_t_calloc_53d_goodB2GSink(undefined8 param_1) { func_0x00400a60(param_1); return; }
['gcc']
845
void CWE401_Memory_Leak__wchar_t_calloc_54_bad() { wchar_t * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)calloc(100, sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); CWE401_Memory_Leak__wchar_t_calloc_54b_badSink(data); }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100747/CWE401_Memory_Leak__wchar_t_calloc_54a.c
CWE401_Memory_Leak__wchar_t_calloc_54_bad
void CWE401_Memory_Leak__wchar_t_calloc_54_bad(void) { undefined8 uVar1; uVar1 = func_0x00400a80(100,4); func_0x00400a90(uVar1,&UNK_004011f8); printWLine(uVar1); CWE401_Memory_Leak__wchar_t_calloc_54b_badSink(uVar1); return; }
['gcc']
846
void CWE401_Memory_Leak__wchar_t_calloc_54_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100747/CWE401_Memory_Leak__wchar_t_calloc_54a.c
CWE401_Memory_Leak__wchar_t_calloc_54_good
void CWE401_Memory_Leak__wchar_t_calloc_54_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
847
void CWE401_Memory_Leak__wchar_t_calloc_54b_badSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_calloc_54c_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100747/CWE401_Memory_Leak__wchar_t_calloc_54b.c
CWE401_Memory_Leak__wchar_t_calloc_54b_badSink
void CWE401_Memory_Leak__wchar_t_calloc_54b_badSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_calloc_54c_badSink(param_1); return; }
['gcc']
848
void CWE401_Memory_Leak__wchar_t_calloc_54b_goodG2BSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_calloc_54c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100747/CWE401_Memory_Leak__wchar_t_calloc_54b.c
CWE401_Memory_Leak__wchar_t_calloc_54b_goodG2BSink
void CWE401_Memory_Leak__wchar_t_calloc_54b_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_calloc_54c_goodG2BSink(param_1); return; }
['gcc']
849
void CWE401_Memory_Leak__wchar_t_calloc_54b_goodB2GSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_calloc_54c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100747/CWE401_Memory_Leak__wchar_t_calloc_54b.c
CWE401_Memory_Leak__wchar_t_calloc_54b_goodB2GSink
void CWE401_Memory_Leak__wchar_t_calloc_54b_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_calloc_54c_goodB2GSink(param_1); return; }
['gcc']
850
void CWE401_Memory_Leak__wchar_t_calloc_54c_badSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_calloc_54d_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100747/CWE401_Memory_Leak__wchar_t_calloc_54c.c
CWE401_Memory_Leak__wchar_t_calloc_54c_badSink
void CWE401_Memory_Leak__wchar_t_calloc_54c_badSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_calloc_54d_badSink(param_1); return; }
['gcc']
851
void CWE401_Memory_Leak__wchar_t_calloc_54c_goodG2BSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_calloc_54d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100747/CWE401_Memory_Leak__wchar_t_calloc_54c.c
CWE401_Memory_Leak__wchar_t_calloc_54c_goodG2BSink
void CWE401_Memory_Leak__wchar_t_calloc_54c_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_calloc_54d_goodG2BSink(param_1); return; }
['gcc']
852
void CWE401_Memory_Leak__wchar_t_calloc_54c_goodB2GSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_calloc_54d_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100747/CWE401_Memory_Leak__wchar_t_calloc_54c.c
CWE401_Memory_Leak__wchar_t_calloc_54c_goodB2GSink
void CWE401_Memory_Leak__wchar_t_calloc_54c_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_calloc_54d_goodB2GSink(param_1); return; }
['gcc']
853
void CWE401_Memory_Leak__wchar_t_calloc_54d_badSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_calloc_54e_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100747/CWE401_Memory_Leak__wchar_t_calloc_54d.c
CWE401_Memory_Leak__wchar_t_calloc_54d_badSink
void CWE401_Memory_Leak__wchar_t_calloc_54d_badSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_calloc_54e_badSink(param_1); return; }
['gcc']
854
void CWE401_Memory_Leak__wchar_t_calloc_54d_goodG2BSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_calloc_54e_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100747/CWE401_Memory_Leak__wchar_t_calloc_54d.c
CWE401_Memory_Leak__wchar_t_calloc_54d_goodG2BSink
void CWE401_Memory_Leak__wchar_t_calloc_54d_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_calloc_54e_goodG2BSink(param_1); return; }
['gcc']
855
void CWE401_Memory_Leak__wchar_t_calloc_54d_goodB2GSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_calloc_54e_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100747/CWE401_Memory_Leak__wchar_t_calloc_54d.c
CWE401_Memory_Leak__wchar_t_calloc_54d_goodB2GSink
void CWE401_Memory_Leak__wchar_t_calloc_54d_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_calloc_54e_goodB2GSink(param_1); return; }
['gcc']
856
void CWE401_Memory_Leak__wchar_t_calloc_54e_badSink(wchar_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/100747/CWE401_Memory_Leak__wchar_t_calloc_54e.c
CWE401_Memory_Leak__wchar_t_calloc_54e_badSink
void CWE401_Memory_Leak__wchar_t_calloc_54e_badSink(void) { return; }
['gcc']
857
void CWE401_Memory_Leak__wchar_t_calloc_54e_goodG2BSink(wchar_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/100747/CWE401_Memory_Leak__wchar_t_calloc_54e.c
CWE401_Memory_Leak__wchar_t_calloc_54e_goodG2BSink
void CWE401_Memory_Leak__wchar_t_calloc_54e_goodG2BSink(void) { return; }
['gcc']
858
void CWE401_Memory_Leak__wchar_t_calloc_54e_goodB2GSink(wchar_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/100747/CWE401_Memory_Leak__wchar_t_calloc_54e.c
CWE401_Memory_Leak__wchar_t_calloc_54e_goodB2GSink
void CWE401_Memory_Leak__wchar_t_calloc_54e_goodB2GSink(undefined8 param_1) { func_0x00400a60(param_1); return; }
['gcc']
859
void CWE401_Memory_Leak__wchar_t_calloc_61_bad() { wchar_t * data; data = NULL; data = CWE401_Memory_Leak__wchar_t_calloc_61b_badSource(data); /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ }
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100748/CWE401_Memory_Leak__wchar_t_calloc_61a.c
CWE401_Memory_Leak__wchar_t_calloc_61_bad
void CWE401_Memory_Leak__wchar_t_calloc_61_bad(void) { CWE401_Memory_Leak__wchar_t_calloc_61b_badSource(0); return; }
['gcc']
860
void CWE401_Memory_Leak__wchar_t_calloc_61_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100748/CWE401_Memory_Leak__wchar_t_calloc_61a.c
CWE401_Memory_Leak__wchar_t_calloc_61_good
void CWE401_Memory_Leak__wchar_t_calloc_61_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
861
wchar_t * CWE401_Memory_Leak__wchar_t_calloc_61b_badSource(wchar_t * data) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)calloc(100, sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); 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/100748/CWE401_Memory_Leak__wchar_t_calloc_61b.c
CWE401_Memory_Leak__wchar_t_calloc_61b_badSource
undefined8 CWE401_Memory_Leak__wchar_t_calloc_61b_badSource(void) { undefined8 uVar1; uVar1 = func_0x00400a80(100,4); func_0x00400a90(uVar1,&UNK_004011b8); printWLine(uVar1); return uVar1; }
['gcc']
862
wchar_t * CWE401_Memory_Leak__wchar_t_calloc_61b_goodG2BSource(wchar_t * data) { /* FIX: Use memory allocated on the stack with ALLOCA */ data = (wchar_t *)ALLOCA(100*sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); 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/100748/CWE401_Memory_Leak__wchar_t_calloc_61b.c
CWE401_Memory_Leak__wchar_t_calloc_61b_goodG2BSource
undefined * CWE401_Memory_Leak__wchar_t_calloc_61b_goodG2BSource(void) { undefined auStack_1b0 [416]; undefined *puStack_10; puStack_10 = auStack_1b0; func_0x00400ae0(puStack_10,&UNK_004012b8,7); printWLine(puStack_10); return puStack_10; }
['gcc']
863
wchar_t * CWE401_Memory_Leak__wchar_t_calloc_61b_goodB2GSource(wchar_t * data) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)calloc(100, sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); 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/100748/CWE401_Memory_Leak__wchar_t_calloc_61b.c
CWE401_Memory_Leak__wchar_t_calloc_61b_goodB2GSource
undefined8 CWE401_Memory_Leak__wchar_t_calloc_61b_goodB2GSource(void) { undefined8 uVar1; uVar1 = func_0x00400ad0(100,4); func_0x00400ae0(uVar1,&UNK_004012b8); printWLine(uVar1); return uVar1; }
['gcc']
864
void CWE401_Memory_Leak__wchar_t_calloc_63_bad() { wchar_t * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)calloc(100, sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); CWE401_Memory_Leak__wchar_t_calloc_63b_badSink(&data); }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100750/CWE401_Memory_Leak__wchar_t_calloc_63a.c
CWE401_Memory_Leak__wchar_t_calloc_63_bad
void CWE401_Memory_Leak__wchar_t_calloc_63_bad(void) { undefined8 uStack_10; uStack_10 = 0; uStack_10 = func_0x00400a80(100,4); func_0x00400a90(uStack_10,&UNK_004011b8); printWLine(uStack_10); CWE401_Memory_Leak__wchar_t_calloc_63b_badSink(&uStack_10); return; }
['gcc']
865
void CWE401_Memory_Leak__wchar_t_calloc_63_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100750/CWE401_Memory_Leak__wchar_t_calloc_63a.c
CWE401_Memory_Leak__wchar_t_calloc_63_good
void CWE401_Memory_Leak__wchar_t_calloc_63_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
866
void CWE401_Memory_Leak__wchar_t_calloc_63b_badSink(wchar_t * * dataPtr) { wchar_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/100750/CWE401_Memory_Leak__wchar_t_calloc_63b.c
CWE401_Memory_Leak__wchar_t_calloc_63b_badSink
void CWE401_Memory_Leak__wchar_t_calloc_63b_badSink(void) { return; }
['gcc']
867
void CWE401_Memory_Leak__wchar_t_calloc_63b_goodG2BSink(wchar_t * * dataPtr) { wchar_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/100750/CWE401_Memory_Leak__wchar_t_calloc_63b.c
CWE401_Memory_Leak__wchar_t_calloc_63b_goodG2BSink
void CWE401_Memory_Leak__wchar_t_calloc_63b_goodG2BSink(void) { return; }
['gcc']
868
void CWE401_Memory_Leak__wchar_t_calloc_63b_goodB2GSink(wchar_t * * dataPtr) { wchar_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/100750/CWE401_Memory_Leak__wchar_t_calloc_63b.c
CWE401_Memory_Leak__wchar_t_calloc_63b_goodB2GSink
void CWE401_Memory_Leak__wchar_t_calloc_63b_goodB2GSink(undefined8 *param_1) { func_0x00400a60(*param_1); return; }
['gcc']
869
void CWE401_Memory_Leak__wchar_t_calloc_64_bad() { wchar_t * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)calloc(100, sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); CWE401_Memory_Leak__wchar_t_calloc_64b_badSink(&data); }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100751/CWE401_Memory_Leak__wchar_t_calloc_64a.c
CWE401_Memory_Leak__wchar_t_calloc_64_bad
void CWE401_Memory_Leak__wchar_t_calloc_64_bad(void) { undefined8 uStack_10; uStack_10 = 0; uStack_10 = func_0x00400a80(100,4); func_0x00400a90(uStack_10,&UNK_004011c8); printWLine(uStack_10); CWE401_Memory_Leak__wchar_t_calloc_64b_badSink(&uStack_10); return; }
['gcc']
870
void CWE401_Memory_Leak__wchar_t_calloc_64_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100751/CWE401_Memory_Leak__wchar_t_calloc_64a.c
CWE401_Memory_Leak__wchar_t_calloc_64_good
void CWE401_Memory_Leak__wchar_t_calloc_64_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
871
void CWE401_Memory_Leak__wchar_t_calloc_64b_badSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ wchar_t * * dataPtr = (wchar_t * *)dataVoidPtr; /* dereference dataPtr into data */ wchar_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/100751/CWE401_Memory_Leak__wchar_t_calloc_64b.c
CWE401_Memory_Leak__wchar_t_calloc_64b_badSink
void CWE401_Memory_Leak__wchar_t_calloc_64b_badSink(void) { return; }
['gcc']
872
void CWE401_Memory_Leak__wchar_t_calloc_64b_goodG2BSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ wchar_t * * dataPtr = (wchar_t * *)dataVoidPtr; /* dereference dataPtr into data */ wchar_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/100751/CWE401_Memory_Leak__wchar_t_calloc_64b.c
CWE401_Memory_Leak__wchar_t_calloc_64b_goodG2BSink
void CWE401_Memory_Leak__wchar_t_calloc_64b_goodG2BSink(void) { return; }
['gcc']
873
void CWE401_Memory_Leak__wchar_t_calloc_64b_goodB2GSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ wchar_t * * dataPtr = (wchar_t * *)dataVoidPtr; /* dereference dataPtr into data */ wchar_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/100751/CWE401_Memory_Leak__wchar_t_calloc_64b.c
CWE401_Memory_Leak__wchar_t_calloc_64b_goodB2GSink
void CWE401_Memory_Leak__wchar_t_calloc_64b_goodB2GSink(undefined8 *param_1) { func_0x00400a60(*param_1); return; }
['gcc']
874
void CWE401_Memory_Leak__wchar_t_calloc_66_bad() { wchar_t * data; wchar_t * dataArray[5]; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)calloc(100, sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); /* put data in array */ dataArray[2] = data; CWE401_Memory_Leak__wchar_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/100753/CWE401_Memory_Leak__wchar_t_calloc_66a.c
CWE401_Memory_Leak__wchar_t_calloc_66_bad
void CWE401_Memory_Leak__wchar_t_calloc_66_bad(void) { undefined auStack_38 [16]; undefined8 uStack_28; undefined8 uStack_10; uStack_10 = 0; uStack_10 = func_0x00400a80(100,4); func_0x00400a90(uStack_10,&UNK_004011c8); printWLine(uStack_10); uStack_28 = uStack_10; CWE401_Memory_Leak__wchar_t_calloc_66b_badSink(auStack_38); return; }
['gcc']
875
void CWE401_Memory_Leak__wchar_t_calloc_66_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100753/CWE401_Memory_Leak__wchar_t_calloc_66a.c
CWE401_Memory_Leak__wchar_t_calloc_66_good
void CWE401_Memory_Leak__wchar_t_calloc_66_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
876
void CWE401_Memory_Leak__wchar_t_calloc_66b_badSink(wchar_t * dataArray[]) { /* copy data out of dataArray */ wchar_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/100753/CWE401_Memory_Leak__wchar_t_calloc_66b.c
CWE401_Memory_Leak__wchar_t_calloc_66b_badSink
void CWE401_Memory_Leak__wchar_t_calloc_66b_badSink(void) { return; }
['gcc']
877
void CWE401_Memory_Leak__wchar_t_calloc_66b_goodG2BSink(wchar_t * dataArray[]) { wchar_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/100753/CWE401_Memory_Leak__wchar_t_calloc_66b.c
CWE401_Memory_Leak__wchar_t_calloc_66b_goodG2BSink
void CWE401_Memory_Leak__wchar_t_calloc_66b_goodG2BSink(void) { return; }
['gcc']
878
void CWE401_Memory_Leak__wchar_t_calloc_66b_goodB2GSink(wchar_t * dataArray[]) { wchar_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/100753/CWE401_Memory_Leak__wchar_t_calloc_66b.c
CWE401_Memory_Leak__wchar_t_calloc_66b_goodB2GSink
void CWE401_Memory_Leak__wchar_t_calloc_66b_goodB2GSink(long param_1) { func_0x00400a60(*(undefined8 *)(param_1 + 0x10)); return; }
['gcc']
879
void CWE401_Memory_Leak__wchar_t_calloc_67_bad() { wchar_t * data; CWE401_Memory_Leak__wchar_t_calloc_67_structType myStruct; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)calloc(100, sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); myStruct.structFirst = data; CWE401_Memory_Leak__wchar_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/100754/CWE401_Memory_Leak__wchar_t_calloc_67a.c
CWE401_Memory_Leak__wchar_t_calloc_67_bad
void CWE401_Memory_Leak__wchar_t_calloc_67_bad(void) { undefined8 uVar1; uVar1 = func_0x00400a80(100,4); func_0x00400a90(uVar1,&UNK_004011b8); printWLine(uVar1); CWE401_Memory_Leak__wchar_t_calloc_67b_badSink(uVar1); return; }
['gcc']
880
void CWE401_Memory_Leak__wchar_t_calloc_67_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100754/CWE401_Memory_Leak__wchar_t_calloc_67a.c
CWE401_Memory_Leak__wchar_t_calloc_67_good
void CWE401_Memory_Leak__wchar_t_calloc_67_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
881
void CWE401_Memory_Leak__wchar_t_calloc_67b_badSink(CWE401_Memory_Leak__wchar_t_calloc_67_structType myStruct) { wchar_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/100754/CWE401_Memory_Leak__wchar_t_calloc_67b.c
CWE401_Memory_Leak__wchar_t_calloc_67b_badSink
void CWE401_Memory_Leak__wchar_t_calloc_67b_badSink(void) { return; }
['gcc']
882
void CWE401_Memory_Leak__wchar_t_calloc_67b_goodG2BSink(CWE401_Memory_Leak__wchar_t_calloc_67_structType myStruct) { wchar_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/100754/CWE401_Memory_Leak__wchar_t_calloc_67b.c
CWE401_Memory_Leak__wchar_t_calloc_67b_goodG2BSink
void CWE401_Memory_Leak__wchar_t_calloc_67b_goodG2BSink(void) { return; }
['gcc']
883
void CWE401_Memory_Leak__wchar_t_calloc_67b_goodB2GSink(CWE401_Memory_Leak__wchar_t_calloc_67_structType myStruct) { wchar_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/100754/CWE401_Memory_Leak__wchar_t_calloc_67b.c
CWE401_Memory_Leak__wchar_t_calloc_67b_goodB2GSink
void CWE401_Memory_Leak__wchar_t_calloc_67b_goodB2GSink(undefined8 param_1) { func_0x00400a60(param_1); return; }
['gcc']
884
void CWE401_Memory_Leak__wchar_t_malloc_02_bad() { wchar_t * data; data = NULL; if(1) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)malloc(100*sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); } 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/100764/CWE401_Memory_Leak__wchar_t_malloc_02.c
CWE401_Memory_Leak__wchar_t_malloc_02_bad
void CWE401_Memory_Leak__wchar_t_malloc_02_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ab0(400); func_0x00400a80(uVar1,&UNK_00401198); printWLine(uVar1); return; }
['gcc']
885
void CWE401_Memory_Leak__wchar_t_malloc_02_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100764/CWE401_Memory_Leak__wchar_t_malloc_02.c
CWE401_Memory_Leak__wchar_t_malloc_02_good
void CWE401_Memory_Leak__wchar_t_malloc_02_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
886
void CWE401_Memory_Leak__wchar_t_malloc_03_bad() { wchar_t * data; data = NULL; if(5==5) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)malloc(100*sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); } 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/100765/CWE401_Memory_Leak__wchar_t_malloc_03.c
CWE401_Memory_Leak__wchar_t_malloc_03_bad
void CWE401_Memory_Leak__wchar_t_malloc_03_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ab0(400); func_0x00400a80(uVar1,&UNK_00401198); printWLine(uVar1); return; }
['gcc']
887
void CWE401_Memory_Leak__wchar_t_malloc_03_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100765/CWE401_Memory_Leak__wchar_t_malloc_03.c
CWE401_Memory_Leak__wchar_t_malloc_03_good
void CWE401_Memory_Leak__wchar_t_malloc_03_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
888
void CWE401_Memory_Leak__wchar_t_malloc_04_bad() { wchar_t * data; data = NULL; if(STATIC_CONST_TRUE) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)malloc(100*sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); } if(STATIC_CONST_TRUE) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100766/CWE401_Memory_Leak__wchar_t_malloc_04.c
CWE401_Memory_Leak__wchar_t_malloc_04_bad
void CWE401_Memory_Leak__wchar_t_malloc_04_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ab0(400); func_0x00400a80(uVar1,&UNK_004011a0); printWLine(uVar1); return; }
['gcc']
889
void CWE401_Memory_Leak__wchar_t_malloc_04_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100766/CWE401_Memory_Leak__wchar_t_malloc_04.c
CWE401_Memory_Leak__wchar_t_malloc_04_good
void CWE401_Memory_Leak__wchar_t_malloc_04_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
890
void CWE401_Memory_Leak__wchar_t_malloc_05_bad() { wchar_t * data; data = NULL; if(staticTrue) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)malloc(100*sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); } 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/100767/CWE401_Memory_Leak__wchar_t_malloc_05.c
CWE401_Memory_Leak__wchar_t_malloc_05_bad
void CWE401_Memory_Leak__wchar_t_malloc_05_bad(void) { undefined8 uVar1; if (staticTrue != 0) { uVar1 = func_0x00400ab0(400); func_0x00400a80(uVar1,&UNK_00401198); printWLine(uVar1); } return; }
['gcc']
891
void CWE401_Memory_Leak__wchar_t_malloc_05_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100767/CWE401_Memory_Leak__wchar_t_malloc_05.c
CWE401_Memory_Leak__wchar_t_malloc_05_good
void CWE401_Memory_Leak__wchar_t_malloc_05_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
892
void CWE401_Memory_Leak__wchar_t_malloc_06_bad() { wchar_t * data; data = NULL; if(STATIC_CONST_FIVE==5) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)malloc(100*sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); } 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/100768/CWE401_Memory_Leak__wchar_t_malloc_06.c
CWE401_Memory_Leak__wchar_t_malloc_06_bad
void CWE401_Memory_Leak__wchar_t_malloc_06_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ab0(400); func_0x00400a80(uVar1,&UNK_004011a0); printWLine(uVar1); return; }
['gcc']
893
void CWE401_Memory_Leak__wchar_t_malloc_06_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100768/CWE401_Memory_Leak__wchar_t_malloc_06.c
CWE401_Memory_Leak__wchar_t_malloc_06_good
void CWE401_Memory_Leak__wchar_t_malloc_06_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
894
void CWE401_Memory_Leak__wchar_t_malloc_07_bad() { wchar_t * data; data = NULL; if(staticFive==5) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)malloc(100*sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); } if(staticFive==5) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100769/CWE401_Memory_Leak__wchar_t_malloc_07.c
CWE401_Memory_Leak__wchar_t_malloc_07_bad
void CWE401_Memory_Leak__wchar_t_malloc_07_bad(void) { undefined8 uVar1; if (staticFive == 5) { uVar1 = func_0x00400ab0(400); func_0x00400a80(uVar1,&UNK_00401198); printWLine(uVar1); } return; }
['gcc']
895
void CWE401_Memory_Leak__wchar_t_malloc_07_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100769/CWE401_Memory_Leak__wchar_t_malloc_07.c
CWE401_Memory_Leak__wchar_t_malloc_07_good
void CWE401_Memory_Leak__wchar_t_malloc_07_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
896
void CWE401_Memory_Leak__wchar_t_malloc_08_bad() { wchar_t * data; data = NULL; if(staticReturnsTrue()) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)malloc(100*sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); } 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/100770/CWE401_Memory_Leak__wchar_t_malloc_08.c
CWE401_Memory_Leak__wchar_t_malloc_08_bad
void CWE401_Memory_Leak__wchar_t_malloc_08_bad(void) { int iVar1; undefined8 uVar2; iVar1 = staticReturnsTrue(); if (iVar1 != 0) { uVar2 = func_0x00400ab0(400); func_0x00400a80(uVar2,&UNK_004011c8); printWLine(uVar2); } staticReturnsTrue(); return; }
['gcc']
897
void CWE401_Memory_Leak__wchar_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/100770/CWE401_Memory_Leak__wchar_t_malloc_08.c
CWE401_Memory_Leak__wchar_t_malloc_08_good
void CWE401_Memory_Leak__wchar_t_malloc_08_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
898
void CWE401_Memory_Leak__wchar_t_malloc_09_bad() { wchar_t * data; data = NULL; if(GLOBAL_CONST_TRUE) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)malloc(100*sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); } 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/100771/CWE401_Memory_Leak__wchar_t_malloc_09.c
CWE401_Memory_Leak__wchar_t_malloc_09_bad
void CWE401_Memory_Leak__wchar_t_malloc_09_bad(void) { undefined8 uVar1; if (GLOBAL_CONST_TRUE != 0) { uVar1 = func_0x00400ab0(400); func_0x00400a80(uVar1,&UNK_00401198); printWLine(uVar1); } return; }
['gcc']
899
void CWE401_Memory_Leak__wchar_t_malloc_09_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100771/CWE401_Memory_Leak__wchar_t_malloc_09.c
CWE401_Memory_Leak__wchar_t_malloc_09_good
void CWE401_Memory_Leak__wchar_t_malloc_09_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']