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
1,000
void CWE401_Memory_Leak__wchar_t_realloc_03_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100813/CWE401_Memory_Leak__wchar_t_realloc_03.c
CWE401_Memory_Leak__wchar_t_realloc_03_good
void CWE401_Memory_Leak__wchar_t_realloc_03_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,001
void CWE401_Memory_Leak__wchar_t_realloc_04_bad() { wchar_t * data; data = NULL; if(STATIC_CONST_TRUE) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 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/100814/CWE401_Memory_Leak__wchar_t_realloc_04.c
CWE401_Memory_Leak__wchar_t_realloc_04_bad
void CWE401_Memory_Leak__wchar_t_realloc_04_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ad0(0,400); func_0x00400a80(uVar1,&UNK_004011b0); printWLine(uVar1); return; }
['gcc']
1,002
void CWE401_Memory_Leak__wchar_t_realloc_04_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100814/CWE401_Memory_Leak__wchar_t_realloc_04.c
CWE401_Memory_Leak__wchar_t_realloc_04_good
void CWE401_Memory_Leak__wchar_t_realloc_04_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,003
void CWE401_Memory_Leak__wchar_t_realloc_05_bad() { wchar_t * data; data = NULL; if(staticTrue) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 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/100815/CWE401_Memory_Leak__wchar_t_realloc_05.c
CWE401_Memory_Leak__wchar_t_realloc_05_bad
void CWE401_Memory_Leak__wchar_t_realloc_05_bad(void) { undefined8 uVar1; if (staticTrue != 0) { uVar1 = func_0x00400ad0(0,400); func_0x00400a80(uVar1,&UNK_004011a8); printWLine(uVar1); } return; }
['gcc']
1,004
void CWE401_Memory_Leak__wchar_t_realloc_05_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100815/CWE401_Memory_Leak__wchar_t_realloc_05.c
CWE401_Memory_Leak__wchar_t_realloc_05_good
void CWE401_Memory_Leak__wchar_t_realloc_05_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,005
void CWE401_Memory_Leak__wchar_t_realloc_06_bad() { wchar_t * data; data = NULL; if(STATIC_CONST_FIVE==5) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 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/100816/CWE401_Memory_Leak__wchar_t_realloc_06.c
CWE401_Memory_Leak__wchar_t_realloc_06_bad
void CWE401_Memory_Leak__wchar_t_realloc_06_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ad0(0,400); func_0x00400a80(uVar1,&UNK_004011b0); printWLine(uVar1); return; }
['gcc']
1,006
void CWE401_Memory_Leak__wchar_t_realloc_06_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100816/CWE401_Memory_Leak__wchar_t_realloc_06.c
CWE401_Memory_Leak__wchar_t_realloc_06_good
void CWE401_Memory_Leak__wchar_t_realloc_06_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,007
void CWE401_Memory_Leak__wchar_t_realloc_07_bad() { wchar_t * data; data = NULL; if(staticFive==5) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 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/100817/CWE401_Memory_Leak__wchar_t_realloc_07.c
CWE401_Memory_Leak__wchar_t_realloc_07_bad
void CWE401_Memory_Leak__wchar_t_realloc_07_bad(void) { undefined8 uVar1; if (staticFive == 5) { uVar1 = func_0x00400ad0(0,400); func_0x00400a80(uVar1,&UNK_004011a8); printWLine(uVar1); } return; }
['gcc']
1,008
void CWE401_Memory_Leak__wchar_t_realloc_07_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100817/CWE401_Memory_Leak__wchar_t_realloc_07.c
CWE401_Memory_Leak__wchar_t_realloc_07_good
void CWE401_Memory_Leak__wchar_t_realloc_07_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,009
void CWE401_Memory_Leak__wchar_t_realloc_08_bad() { wchar_t * data; data = NULL; if(staticReturnsTrue()) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 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/100818/CWE401_Memory_Leak__wchar_t_realloc_08.c
CWE401_Memory_Leak__wchar_t_realloc_08_bad
void CWE401_Memory_Leak__wchar_t_realloc_08_bad(void) { int iVar1; undefined8 uVar2; iVar1 = staticReturnsTrue(); if (iVar1 != 0) { uVar2 = func_0x00400ad0(0,400); func_0x00400a80(uVar2,&UNK_004011c8); printWLine(uVar2); } staticReturnsTrue(); return; }
['gcc']
1,010
void CWE401_Memory_Leak__wchar_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/100818/CWE401_Memory_Leak__wchar_t_realloc_08.c
CWE401_Memory_Leak__wchar_t_realloc_08_good
void CWE401_Memory_Leak__wchar_t_realloc_08_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,011
void CWE401_Memory_Leak__wchar_t_realloc_09_bad() { wchar_t * data; data = NULL; if(GLOBAL_CONST_TRUE) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 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/100819/CWE401_Memory_Leak__wchar_t_realloc_09.c
CWE401_Memory_Leak__wchar_t_realloc_09_bad
void CWE401_Memory_Leak__wchar_t_realloc_09_bad(void) { undefined8 uVar1; if (GLOBAL_CONST_TRUE != 0) { uVar1 = func_0x00400ad0(0,400); func_0x00400a80(uVar1,&UNK_004011a8); printWLine(uVar1); } return; }
['gcc']
1,012
void CWE401_Memory_Leak__wchar_t_realloc_09_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100819/CWE401_Memory_Leak__wchar_t_realloc_09.c
CWE401_Memory_Leak__wchar_t_realloc_09_good
void CWE401_Memory_Leak__wchar_t_realloc_09_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,013
void CWE401_Memory_Leak__wchar_t_realloc_10_bad() { wchar_t * data; data = NULL; if(globalTrue) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 100*sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); } if(globalTrue) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100820/CWE401_Memory_Leak__wchar_t_realloc_10.c
CWE401_Memory_Leak__wchar_t_realloc_10_bad
void CWE401_Memory_Leak__wchar_t_realloc_10_bad(void) { undefined8 uVar1; if (globalTrue != 0) { uVar1 = func_0x00400ad0(0,400); func_0x00400a80(uVar1,&UNK_004011a8); printWLine(uVar1); } return; }
['gcc']
1,014
void CWE401_Memory_Leak__wchar_t_realloc_10_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100820/CWE401_Memory_Leak__wchar_t_realloc_10.c
CWE401_Memory_Leak__wchar_t_realloc_10_good
void CWE401_Memory_Leak__wchar_t_realloc_10_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,015
void CWE401_Memory_Leak__wchar_t_realloc_11_bad() { wchar_t * data; data = NULL; if(globalReturnsTrue()) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 100*sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); } 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/100821/CWE401_Memory_Leak__wchar_t_realloc_11.c
CWE401_Memory_Leak__wchar_t_realloc_11_bad
void CWE401_Memory_Leak__wchar_t_realloc_11_bad(void) { int iVar1; undefined8 uVar2; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { uVar2 = func_0x00400ad0(0,400); func_0x00400a80(uVar2,&UNK_004011b8); printWLine(uVar2); } globalReturnsTrue(); return; }
['gcc']
1,016
void CWE401_Memory_Leak__wchar_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/100821/CWE401_Memory_Leak__wchar_t_realloc_11.c
CWE401_Memory_Leak__wchar_t_realloc_11_good
void CWE401_Memory_Leak__wchar_t_realloc_11_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,017
void CWE401_Memory_Leak__wchar_t_realloc_12_bad() { wchar_t * data; data = NULL; if(globalReturnsTrueOrFalse()) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 100*sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); } else { /* 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); } 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/100822/CWE401_Memory_Leak__wchar_t_realloc_12.c
CWE401_Memory_Leak__wchar_t_realloc_12_bad
void CWE401_Memory_Leak__wchar_t_realloc_12_bad(void) { int iVar1; undefined *puVar2; undefined auStack_1b8 [8]; undefined auStack_1b0 [400]; undefined *puStack_20; undefined auStack_18 [8]; undefined *puStack_10; puVar2 = auStack_18; puStack_10 = (undefined *)0x0; puStack_20 = &UNK_00400c3c; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { puVar2 = auStack_1b8; puStack_10 = auStack_1b0; func_0x00400ad0(puStack_10,&UNK_00401268,7); printWLine(puStack_10); } else { puStack_20 = &UNK_00400c51; puStack_10 = (undefined *)func_0x00400b20(puStack_10,400); puStack_20 = &UNK_00400c66; func_0x00400ad0(puStack_10,&UNK_00401268); puStack_20 = &UNK_00400c72; printWLine(puStack_10); } *(undefined **)(puVar2 + -8) = &UNK_00400cd1; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { *(undefined **)(puVar2 + -8) = &UNK_00400ce1; func_0x00400a60(puStack_10); } return; }
['gcc']
1,018
void CWE401_Memory_Leak__wchar_t_realloc_12_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100822/CWE401_Memory_Leak__wchar_t_realloc_12.c
CWE401_Memory_Leak__wchar_t_realloc_12_good
void CWE401_Memory_Leak__wchar_t_realloc_12_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
1,019
void CWE401_Memory_Leak__wchar_t_realloc_13_bad() { wchar_t * data; data = NULL; if(GLOBAL_CONST_FIVE==5) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 100*sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); } if(GLOBAL_CONST_FIVE==5) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100823/CWE401_Memory_Leak__wchar_t_realloc_13.c
CWE401_Memory_Leak__wchar_t_realloc_13_bad
void CWE401_Memory_Leak__wchar_t_realloc_13_bad(void) { undefined8 uVar1; if (GLOBAL_CONST_FIVE == 5) { uVar1 = func_0x00400ad0(0,400); func_0x00400a80(uVar1,&UNK_004011a8); printWLine(uVar1); } return; }
['gcc']
1,020
void CWE401_Memory_Leak__wchar_t_realloc_13_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100823/CWE401_Memory_Leak__wchar_t_realloc_13.c
CWE401_Memory_Leak__wchar_t_realloc_13_good
void CWE401_Memory_Leak__wchar_t_realloc_13_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,021
void CWE401_Memory_Leak__wchar_t_realloc_14_bad() { wchar_t * data; data = NULL; if(globalFive==5) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 100*sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); } if(globalFive==5) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100824/CWE401_Memory_Leak__wchar_t_realloc_14.c
CWE401_Memory_Leak__wchar_t_realloc_14_bad
void CWE401_Memory_Leak__wchar_t_realloc_14_bad(void) { undefined8 uVar1; if (globalFive == 5) { uVar1 = func_0x00400ad0(0,400); func_0x00400a80(uVar1,&UNK_004011a8); printWLine(uVar1); } return; }
['gcc']
1,022
void CWE401_Memory_Leak__wchar_t_realloc_14_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100824/CWE401_Memory_Leak__wchar_t_realloc_14.c
CWE401_Memory_Leak__wchar_t_realloc_14_good
void CWE401_Memory_Leak__wchar_t_realloc_14_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,023
void CWE401_Memory_Leak__wchar_t_realloc_15_bad() { wchar_t * data; data = NULL; switch(6) { case 6: /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 100*sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } switch(7) { case 7: /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100825/CWE401_Memory_Leak__wchar_t_realloc_15.c
CWE401_Memory_Leak__wchar_t_realloc_15_bad
void CWE401_Memory_Leak__wchar_t_realloc_15_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ad0(0,400); func_0x00400a80(uVar1,&UNK_00401198); printWLine(uVar1); return; }
['gcc']
1,024
void CWE401_Memory_Leak__wchar_t_realloc_15_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100825/CWE401_Memory_Leak__wchar_t_realloc_15.c
CWE401_Memory_Leak__wchar_t_realloc_15_good
void CWE401_Memory_Leak__wchar_t_realloc_15_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,025
void CWE401_Memory_Leak__wchar_t_realloc_16_bad() { wchar_t * data; data = NULL; while(1) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 100*sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); break; } while(1) { /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ break; } }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100826/CWE401_Memory_Leak__wchar_t_realloc_16.c
CWE401_Memory_Leak__wchar_t_realloc_16_bad
void CWE401_Memory_Leak__wchar_t_realloc_16_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ad0(0,400); func_0x00400a80(uVar1,&UNK_00401198); printWLine(uVar1); return; }
['gcc']
1,026
void CWE401_Memory_Leak__wchar_t_realloc_16_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100826/CWE401_Memory_Leak__wchar_t_realloc_16.c
CWE401_Memory_Leak__wchar_t_realloc_16_good
void CWE401_Memory_Leak__wchar_t_realloc_16_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
1,027
void CWE401_Memory_Leak__wchar_t_realloc_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 *)realloc(data, 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/100827/CWE401_Memory_Leak__wchar_t_realloc_17.c
CWE401_Memory_Leak__wchar_t_realloc_17_bad
void CWE401_Memory_Leak__wchar_t_realloc_17_bad(void) { undefined8 uStack_18; int iStack_10; int iStack_c; uStack_18 = 0; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { uStack_18 = func_0x00400ad0(uStack_18,400); func_0x00400a80(uStack_18,&UNK_004011c8); printWLine(uStack_18); } for (iStack_10 = 0; iStack_10 < 1; iStack_10 = iStack_10 + 1) { } return; }
['gcc']
1,028
void CWE401_Memory_Leak__wchar_t_realloc_17_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100827/CWE401_Memory_Leak__wchar_t_realloc_17.c
CWE401_Memory_Leak__wchar_t_realloc_17_good
void CWE401_Memory_Leak__wchar_t_realloc_17_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
1,029
void CWE401_Memory_Leak__wchar_t_realloc_18_bad() { wchar_t * data; data = NULL; goto source; source: /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 100*sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); goto sink; sink: /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100828/CWE401_Memory_Leak__wchar_t_realloc_18.c
CWE401_Memory_Leak__wchar_t_realloc_18_bad
void CWE401_Memory_Leak__wchar_t_realloc_18_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ad0(0,400); func_0x00400a80(uVar1,&UNK_00401198); printWLine(uVar1); return; }
['gcc']
1,030
void CWE401_Memory_Leak__wchar_t_realloc_18_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100828/CWE401_Memory_Leak__wchar_t_realloc_18.c
CWE401_Memory_Leak__wchar_t_realloc_18_good
void CWE401_Memory_Leak__wchar_t_realloc_18_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
1,031
void CWE401_Memory_Leak__wchar_t_realloc_21_bad() { wchar_t * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 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/100829/CWE401_Memory_Leak__wchar_t_realloc_21.c
CWE401_Memory_Leak__wchar_t_realloc_21_bad
void CWE401_Memory_Leak__wchar_t_realloc_21_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ad0(0,400); func_0x00400a80(uVar1,&UNK_004011b8); printWLine(uVar1); badStatic = 1; badSink(uVar1); return; }
['gcc']
1,032
void CWE401_Memory_Leak__wchar_t_realloc_21_good() { goodB2G1(); goodB2G2(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100829/CWE401_Memory_Leak__wchar_t_realloc_21.c
CWE401_Memory_Leak__wchar_t_realloc_21_good
void CWE401_Memory_Leak__wchar_t_realloc_21_good(void) { goodB2G1(); goodB2G2(); goodG2B(); return; }
['gcc']
1,033
void CWE401_Memory_Leak__wchar_t_realloc_22_bad() { wchar_t * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 100*sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); CWE401_Memory_Leak__wchar_t_realloc_22_badGlobal = 1; /* true */ CWE401_Memory_Leak__wchar_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/100830/CWE401_Memory_Leak__wchar_t_realloc_22a.c
CWE401_Memory_Leak__wchar_t_realloc_22_bad
void CWE401_Memory_Leak__wchar_t_realloc_22_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ad0(0,400); func_0x00400a80(uVar1,&UNK_004011b8); printWLine(uVar1); CWE401_Memory_Leak__wchar_t_realloc_22_badGlobal = 1; CWE401_Memory_Leak__wchar_t_realloc_22_badSink(uVar1); return; }
['gcc']
1,034
void CWE401_Memory_Leak__wchar_t_realloc_22_good() { goodB2G1(); goodB2G2(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100830/CWE401_Memory_Leak__wchar_t_realloc_22a.c
CWE401_Memory_Leak__wchar_t_realloc_22_good
void CWE401_Memory_Leak__wchar_t_realloc_22_good(void) { goodB2G1(); goodB2G2(); goodG2B(); return; }
['gcc']
1,035
void CWE401_Memory_Leak__wchar_t_realloc_22_badSink(wchar_t * data) { if(CWE401_Memory_Leak__wchar_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/100830/CWE401_Memory_Leak__wchar_t_realloc_22b.c
CWE401_Memory_Leak__wchar_t_realloc_22_badSink
void CWE401_Memory_Leak__wchar_t_realloc_22_badSink(void) { return; }
['gcc']
1,036
void CWE401_Memory_Leak__wchar_t_realloc_22_goodB2G1Sink(wchar_t * data) { if(CWE401_Memory_Leak__wchar_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/100830/CWE401_Memory_Leak__wchar_t_realloc_22b.c
CWE401_Memory_Leak__wchar_t_realloc_22_goodB2G1Sink
void CWE401_Memory_Leak__wchar_t_realloc_22_goodB2G1Sink(undefined8 param_1) { if (CWE401_Memory_Leak__wchar_t_realloc_22_goodB2G1Global == 0) { func_0x00400a60(param_1); } else { printLine(&UNK_00401354); } return; }
['gcc']
1,037
void CWE401_Memory_Leak__wchar_t_realloc_22_goodB2G2Sink(wchar_t * data) { if(CWE401_Memory_Leak__wchar_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/100830/CWE401_Memory_Leak__wchar_t_realloc_22b.c
CWE401_Memory_Leak__wchar_t_realloc_22_goodB2G2Sink
void CWE401_Memory_Leak__wchar_t_realloc_22_goodB2G2Sink(undefined8 param_1) { if (CWE401_Memory_Leak__wchar_t_realloc_22_goodB2G2Global != 0) { func_0x00400a60(param_1); } return; }
['gcc']
1,038
void CWE401_Memory_Leak__wchar_t_realloc_22_goodG2BSink(wchar_t * data) { if(CWE401_Memory_Leak__wchar_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/100830/CWE401_Memory_Leak__wchar_t_realloc_22b.c
CWE401_Memory_Leak__wchar_t_realloc_22_goodG2BSink
void CWE401_Memory_Leak__wchar_t_realloc_22_goodG2BSink(void) { return; }
['gcc']
1,039
void CWE401_Memory_Leak__wchar_t_realloc_31_bad() { wchar_t * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 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/100831/CWE401_Memory_Leak__wchar_t_realloc_31.c
CWE401_Memory_Leak__wchar_t_realloc_31_bad
void CWE401_Memory_Leak__wchar_t_realloc_31_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ad0(0,400); func_0x00400a80(uVar1,&UNK_004011a8); printWLine(uVar1); return; }
['gcc']
1,040
void CWE401_Memory_Leak__wchar_t_realloc_31_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100831/CWE401_Memory_Leak__wchar_t_realloc_31.c
CWE401_Memory_Leak__wchar_t_realloc_31_good
void CWE401_Memory_Leak__wchar_t_realloc_31_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
1,041
void CWE401_Memory_Leak__wchar_t_realloc_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 *)realloc(data, 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/100832/CWE401_Memory_Leak__wchar_t_realloc_32.c
CWE401_Memory_Leak__wchar_t_realloc_32_bad
/* WARNING: Restarted to delay deadcode elimination for space: stack */ void CWE401_Memory_Leak__wchar_t_realloc_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_0x00400ad0(0,400); func_0x00400a80(uStack_20,&UNK_004011c8); printWLine(uStack_20); *puStack_10 = uStack_20; return; }
['gcc']
1,042
void CWE401_Memory_Leak__wchar_t_realloc_32_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100832/CWE401_Memory_Leak__wchar_t_realloc_32.c
CWE401_Memory_Leak__wchar_t_realloc_32_good
void CWE401_Memory_Leak__wchar_t_realloc_32_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
1,043
void CWE401_Memory_Leak__wchar_t_realloc_34_bad() { wchar_t * data; CWE401_Memory_Leak__wchar_t_realloc_34_unionType myUnion; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 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/100834/CWE401_Memory_Leak__wchar_t_realloc_34.c
CWE401_Memory_Leak__wchar_t_realloc_34_bad
void CWE401_Memory_Leak__wchar_t_realloc_34_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ad0(0,400); func_0x00400a80(uVar1,&UNK_004011a8); printWLine(uVar1); return; }
['gcc']
1,044
void CWE401_Memory_Leak__wchar_t_realloc_34_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100834/CWE401_Memory_Leak__wchar_t_realloc_34.c
CWE401_Memory_Leak__wchar_t_realloc_34_good
void CWE401_Memory_Leak__wchar_t_realloc_34_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
1,045
void CWE401_Memory_Leak__wchar_t_realloc_41_bad() { wchar_t * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 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/100835/CWE401_Memory_Leak__wchar_t_realloc_41.c
CWE401_Memory_Leak__wchar_t_realloc_41_bad
void CWE401_Memory_Leak__wchar_t_realloc_41_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ad0(0,400); func_0x00400a80(uVar1,&UNK_004011b8); printWLine(uVar1); badSink(uVar1); return; }
['gcc']
1,046
void CWE401_Memory_Leak__wchar_t_realloc_41_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100835/CWE401_Memory_Leak__wchar_t_realloc_41.c
CWE401_Memory_Leak__wchar_t_realloc_41_good
void CWE401_Memory_Leak__wchar_t_realloc_41_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
1,047
void CWE401_Memory_Leak__wchar_t_realloc_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/100836/CWE401_Memory_Leak__wchar_t_realloc_42.c
CWE401_Memory_Leak__wchar_t_realloc_42_bad
void CWE401_Memory_Leak__wchar_t_realloc_42_bad(void) { badSource(0); return; }
['gcc']
1,048
void CWE401_Memory_Leak__wchar_t_realloc_42_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100836/CWE401_Memory_Leak__wchar_t_realloc_42.c
CWE401_Memory_Leak__wchar_t_realloc_42_good
void CWE401_Memory_Leak__wchar_t_realloc_42_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
1,049
void CWE401_Memory_Leak__wchar_t_realloc_44_bad() { wchar_t * data; /* define a function pointer */ void (*funcPtr) (wchar_t *) = badSink; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 100*sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); /* use the function pointer */ funcPtr(data); }
['/* define a function pointer */', '/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* use the function pointer */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100838/CWE401_Memory_Leak__wchar_t_realloc_44.c
CWE401_Memory_Leak__wchar_t_realloc_44_bad
void CWE401_Memory_Leak__wchar_t_realloc_44_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ad0(0,400); func_0x00400a80(uVar1,&UNK_004011b8); printWLine(uVar1); badSink(uVar1); return; }
['gcc']
1,050
void CWE401_Memory_Leak__wchar_t_realloc_44_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100838/CWE401_Memory_Leak__wchar_t_realloc_44.c
CWE401_Memory_Leak__wchar_t_realloc_44_good
void CWE401_Memory_Leak__wchar_t_realloc_44_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
1,051
void CWE401_Memory_Leak__wchar_t_realloc_45_bad() { wchar_t * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 100*sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); CWE401_Memory_Leak__wchar_t_realloc_45_badData = data; badSink(); }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100839/CWE401_Memory_Leak__wchar_t_realloc_45.c
CWE401_Memory_Leak__wchar_t_realloc_45_bad
void CWE401_Memory_Leak__wchar_t_realloc_45_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ad0(0,400); func_0x00400a80(uVar1,&UNK_004011c8); printWLine(uVar1); CWE401_Memory_Leak__wchar_t_realloc_45_badData = uVar1; badSink(); return; }
['gcc']
1,052
void CWE401_Memory_Leak__wchar_t_realloc_45_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100839/CWE401_Memory_Leak__wchar_t_realloc_45.c
CWE401_Memory_Leak__wchar_t_realloc_45_good
void CWE401_Memory_Leak__wchar_t_realloc_45_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
1,053
void CWE401_Memory_Leak__wchar_t_realloc_51_bad() { wchar_t * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 100*sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); CWE401_Memory_Leak__wchar_t_realloc_51b_badSink(data); }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100840/CWE401_Memory_Leak__wchar_t_realloc_51a.c
CWE401_Memory_Leak__wchar_t_realloc_51_bad
void CWE401_Memory_Leak__wchar_t_realloc_51_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ad0(0,400); func_0x00400a80(uVar1,&UNK_004011b8); printWLine(uVar1); CWE401_Memory_Leak__wchar_t_realloc_51b_badSink(uVar1); return; }
['gcc']
1,054
void CWE401_Memory_Leak__wchar_t_realloc_51_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100840/CWE401_Memory_Leak__wchar_t_realloc_51a.c
CWE401_Memory_Leak__wchar_t_realloc_51_good
void CWE401_Memory_Leak__wchar_t_realloc_51_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
1,055
void CWE401_Memory_Leak__wchar_t_realloc_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/100840/CWE401_Memory_Leak__wchar_t_realloc_51b.c
CWE401_Memory_Leak__wchar_t_realloc_51b_badSink
void CWE401_Memory_Leak__wchar_t_realloc_51b_badSink(void) { return; }
['gcc']
1,056
void CWE401_Memory_Leak__wchar_t_realloc_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/100840/CWE401_Memory_Leak__wchar_t_realloc_51b.c
CWE401_Memory_Leak__wchar_t_realloc_51b_goodG2BSink
void CWE401_Memory_Leak__wchar_t_realloc_51b_goodG2BSink(void) { return; }
['gcc']
1,057
void CWE401_Memory_Leak__wchar_t_realloc_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/100840/CWE401_Memory_Leak__wchar_t_realloc_51b.c
CWE401_Memory_Leak__wchar_t_realloc_51b_goodB2GSink
void CWE401_Memory_Leak__wchar_t_realloc_51b_goodB2GSink(undefined8 param_1) { func_0x00400a60(param_1); return; }
['gcc']
1,058
void CWE401_Memory_Leak__wchar_t_realloc_52_bad() { wchar_t * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 100*sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); CWE401_Memory_Leak__wchar_t_realloc_52b_badSink(data); }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100841/CWE401_Memory_Leak__wchar_t_realloc_52a.c
CWE401_Memory_Leak__wchar_t_realloc_52_bad
void CWE401_Memory_Leak__wchar_t_realloc_52_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ad0(0,400); func_0x00400a80(uVar1,&UNK_004011c8); printWLine(uVar1); CWE401_Memory_Leak__wchar_t_realloc_52b_badSink(uVar1); return; }
['gcc']
1,059
void CWE401_Memory_Leak__wchar_t_realloc_52_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100841/CWE401_Memory_Leak__wchar_t_realloc_52a.c
CWE401_Memory_Leak__wchar_t_realloc_52_good
void CWE401_Memory_Leak__wchar_t_realloc_52_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
1,060
void CWE401_Memory_Leak__wchar_t_realloc_52b_badSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_realloc_52c_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100841/CWE401_Memory_Leak__wchar_t_realloc_52b.c
CWE401_Memory_Leak__wchar_t_realloc_52b_badSink
void CWE401_Memory_Leak__wchar_t_realloc_52b_badSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_realloc_52c_badSink(param_1); return; }
['gcc']
1,061
void CWE401_Memory_Leak__wchar_t_realloc_52b_goodG2BSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_realloc_52c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100841/CWE401_Memory_Leak__wchar_t_realloc_52b.c
CWE401_Memory_Leak__wchar_t_realloc_52b_goodG2BSink
void CWE401_Memory_Leak__wchar_t_realloc_52b_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_realloc_52c_goodG2BSink(param_1); return; }
['gcc']
1,062
void CWE401_Memory_Leak__wchar_t_realloc_52b_goodB2GSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_realloc_52c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100841/CWE401_Memory_Leak__wchar_t_realloc_52b.c
CWE401_Memory_Leak__wchar_t_realloc_52b_goodB2GSink
void CWE401_Memory_Leak__wchar_t_realloc_52b_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_realloc_52c_goodB2GSink(param_1); return; }
['gcc']
1,063
void CWE401_Memory_Leak__wchar_t_realloc_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/100841/CWE401_Memory_Leak__wchar_t_realloc_52c.c
CWE401_Memory_Leak__wchar_t_realloc_52c_badSink
void CWE401_Memory_Leak__wchar_t_realloc_52c_badSink(void) { return; }
['gcc']
1,064
void CWE401_Memory_Leak__wchar_t_realloc_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/100841/CWE401_Memory_Leak__wchar_t_realloc_52c.c
CWE401_Memory_Leak__wchar_t_realloc_52c_goodG2BSink
void CWE401_Memory_Leak__wchar_t_realloc_52c_goodG2BSink(void) { return; }
['gcc']
1,065
void CWE401_Memory_Leak__wchar_t_realloc_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/100841/CWE401_Memory_Leak__wchar_t_realloc_52c.c
CWE401_Memory_Leak__wchar_t_realloc_52c_goodB2GSink
void CWE401_Memory_Leak__wchar_t_realloc_52c_goodB2GSink(undefined8 param_1) { func_0x00400a60(param_1); return; }
['gcc']
1,066
void CWE401_Memory_Leak__wchar_t_realloc_53_bad() { wchar_t * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 100*sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); CWE401_Memory_Leak__wchar_t_realloc_53b_badSink(data); }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100842/CWE401_Memory_Leak__wchar_t_realloc_53a.c
CWE401_Memory_Leak__wchar_t_realloc_53_bad
void CWE401_Memory_Leak__wchar_t_realloc_53_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ad0(0,400); func_0x00400a80(uVar1,&UNK_004011e8); printWLine(uVar1); CWE401_Memory_Leak__wchar_t_realloc_53b_badSink(uVar1); return; }
['gcc']
1,067
void CWE401_Memory_Leak__wchar_t_realloc_53_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100842/CWE401_Memory_Leak__wchar_t_realloc_53a.c
CWE401_Memory_Leak__wchar_t_realloc_53_good
void CWE401_Memory_Leak__wchar_t_realloc_53_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
1,068
void CWE401_Memory_Leak__wchar_t_realloc_53b_badSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_realloc_53c_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100842/CWE401_Memory_Leak__wchar_t_realloc_53b.c
CWE401_Memory_Leak__wchar_t_realloc_53b_badSink
void CWE401_Memory_Leak__wchar_t_realloc_53b_badSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_realloc_53c_badSink(param_1); return; }
['gcc']
1,069
void CWE401_Memory_Leak__wchar_t_realloc_53b_goodG2BSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_realloc_53c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100842/CWE401_Memory_Leak__wchar_t_realloc_53b.c
CWE401_Memory_Leak__wchar_t_realloc_53b_goodG2BSink
void CWE401_Memory_Leak__wchar_t_realloc_53b_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_realloc_53c_goodG2BSink(param_1); return; }
['gcc']
1,070
void CWE401_Memory_Leak__wchar_t_realloc_53b_goodB2GSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_realloc_53c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100842/CWE401_Memory_Leak__wchar_t_realloc_53b.c
CWE401_Memory_Leak__wchar_t_realloc_53b_goodB2GSink
void CWE401_Memory_Leak__wchar_t_realloc_53b_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_realloc_53c_goodB2GSink(param_1); return; }
['gcc']
1,071
void CWE401_Memory_Leak__wchar_t_realloc_53c_badSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_realloc_53d_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100842/CWE401_Memory_Leak__wchar_t_realloc_53c.c
CWE401_Memory_Leak__wchar_t_realloc_53c_badSink
void CWE401_Memory_Leak__wchar_t_realloc_53c_badSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_realloc_53d_badSink(param_1); return; }
['gcc']
1,072
void CWE401_Memory_Leak__wchar_t_realloc_53c_goodG2BSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_realloc_53d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100842/CWE401_Memory_Leak__wchar_t_realloc_53c.c
CWE401_Memory_Leak__wchar_t_realloc_53c_goodG2BSink
void CWE401_Memory_Leak__wchar_t_realloc_53c_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_realloc_53d_goodG2BSink(param_1); return; }
['gcc']
1,073
void CWE401_Memory_Leak__wchar_t_realloc_53c_goodB2GSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_realloc_53d_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100842/CWE401_Memory_Leak__wchar_t_realloc_53c.c
CWE401_Memory_Leak__wchar_t_realloc_53c_goodB2GSink
void CWE401_Memory_Leak__wchar_t_realloc_53c_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_realloc_53d_goodB2GSink(param_1); return; }
['gcc']
1,074
void CWE401_Memory_Leak__wchar_t_realloc_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/100842/CWE401_Memory_Leak__wchar_t_realloc_53d.c
CWE401_Memory_Leak__wchar_t_realloc_53d_badSink
void CWE401_Memory_Leak__wchar_t_realloc_53d_badSink(void) { return; }
['gcc']
1,075
void CWE401_Memory_Leak__wchar_t_realloc_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/100842/CWE401_Memory_Leak__wchar_t_realloc_53d.c
CWE401_Memory_Leak__wchar_t_realloc_53d_goodG2BSink
void CWE401_Memory_Leak__wchar_t_realloc_53d_goodG2BSink(void) { return; }
['gcc']
1,076
void CWE401_Memory_Leak__wchar_t_realloc_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/100842/CWE401_Memory_Leak__wchar_t_realloc_53d.c
CWE401_Memory_Leak__wchar_t_realloc_53d_goodB2GSink
void CWE401_Memory_Leak__wchar_t_realloc_53d_goodB2GSink(undefined8 param_1) { func_0x00400a60(param_1); return; }
['gcc']
1,077
void CWE401_Memory_Leak__wchar_t_realloc_54_bad() { wchar_t * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 100*sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); CWE401_Memory_Leak__wchar_t_realloc_54b_badSink(data); }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100843/CWE401_Memory_Leak__wchar_t_realloc_54a.c
CWE401_Memory_Leak__wchar_t_realloc_54_bad
void CWE401_Memory_Leak__wchar_t_realloc_54_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ad0(0,400); func_0x00400a80(uVar1,&UNK_00401208); printWLine(uVar1); CWE401_Memory_Leak__wchar_t_realloc_54b_badSink(uVar1); return; }
['gcc']
1,078
void CWE401_Memory_Leak__wchar_t_realloc_54_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100843/CWE401_Memory_Leak__wchar_t_realloc_54a.c
CWE401_Memory_Leak__wchar_t_realloc_54_good
void CWE401_Memory_Leak__wchar_t_realloc_54_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
1,079
void CWE401_Memory_Leak__wchar_t_realloc_54b_badSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_realloc_54c_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100843/CWE401_Memory_Leak__wchar_t_realloc_54b.c
CWE401_Memory_Leak__wchar_t_realloc_54b_badSink
void CWE401_Memory_Leak__wchar_t_realloc_54b_badSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_realloc_54c_badSink(param_1); return; }
['gcc']
1,080
void CWE401_Memory_Leak__wchar_t_realloc_54b_goodG2BSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_realloc_54c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100843/CWE401_Memory_Leak__wchar_t_realloc_54b.c
CWE401_Memory_Leak__wchar_t_realloc_54b_goodG2BSink
void CWE401_Memory_Leak__wchar_t_realloc_54b_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_realloc_54c_goodG2BSink(param_1); return; }
['gcc']
1,081
void CWE401_Memory_Leak__wchar_t_realloc_54b_goodB2GSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_realloc_54c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100843/CWE401_Memory_Leak__wchar_t_realloc_54b.c
CWE401_Memory_Leak__wchar_t_realloc_54b_goodB2GSink
void CWE401_Memory_Leak__wchar_t_realloc_54b_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_realloc_54c_goodB2GSink(param_1); return; }
['gcc']
1,082
void CWE401_Memory_Leak__wchar_t_realloc_54c_badSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_realloc_54d_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100843/CWE401_Memory_Leak__wchar_t_realloc_54c.c
CWE401_Memory_Leak__wchar_t_realloc_54c_badSink
void CWE401_Memory_Leak__wchar_t_realloc_54c_badSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_realloc_54d_badSink(param_1); return; }
['gcc']
1,083
void CWE401_Memory_Leak__wchar_t_realloc_54c_goodG2BSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_realloc_54d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100843/CWE401_Memory_Leak__wchar_t_realloc_54c.c
CWE401_Memory_Leak__wchar_t_realloc_54c_goodG2BSink
void CWE401_Memory_Leak__wchar_t_realloc_54c_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_realloc_54d_goodG2BSink(param_1); return; }
['gcc']
1,084
void CWE401_Memory_Leak__wchar_t_realloc_54c_goodB2GSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_realloc_54d_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100843/CWE401_Memory_Leak__wchar_t_realloc_54c.c
CWE401_Memory_Leak__wchar_t_realloc_54c_goodB2GSink
void CWE401_Memory_Leak__wchar_t_realloc_54c_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_realloc_54d_goodB2GSink(param_1); return; }
['gcc']
1,085
void CWE401_Memory_Leak__wchar_t_realloc_54d_badSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_realloc_54e_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100843/CWE401_Memory_Leak__wchar_t_realloc_54d.c
CWE401_Memory_Leak__wchar_t_realloc_54d_badSink
void CWE401_Memory_Leak__wchar_t_realloc_54d_badSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_realloc_54e_badSink(param_1); return; }
['gcc']
1,086
void CWE401_Memory_Leak__wchar_t_realloc_54d_goodG2BSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_realloc_54e_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100843/CWE401_Memory_Leak__wchar_t_realloc_54d.c
CWE401_Memory_Leak__wchar_t_realloc_54d_goodG2BSink
void CWE401_Memory_Leak__wchar_t_realloc_54d_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_realloc_54e_goodG2BSink(param_1); return; }
['gcc']
1,087
void CWE401_Memory_Leak__wchar_t_realloc_54d_goodB2GSink(wchar_t * data) { CWE401_Memory_Leak__wchar_t_realloc_54e_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100843/CWE401_Memory_Leak__wchar_t_realloc_54d.c
CWE401_Memory_Leak__wchar_t_realloc_54d_goodB2GSink
void CWE401_Memory_Leak__wchar_t_realloc_54d_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__wchar_t_realloc_54e_goodB2GSink(param_1); return; }
['gcc']
1,088
void CWE401_Memory_Leak__wchar_t_realloc_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/100843/CWE401_Memory_Leak__wchar_t_realloc_54e.c
CWE401_Memory_Leak__wchar_t_realloc_54e_badSink
void CWE401_Memory_Leak__wchar_t_realloc_54e_badSink(void) { return; }
['gcc']
1,089
void CWE401_Memory_Leak__wchar_t_realloc_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/100843/CWE401_Memory_Leak__wchar_t_realloc_54e.c
CWE401_Memory_Leak__wchar_t_realloc_54e_goodG2BSink
void CWE401_Memory_Leak__wchar_t_realloc_54e_goodG2BSink(void) { return; }
['gcc']
1,090
void CWE401_Memory_Leak__wchar_t_realloc_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/100843/CWE401_Memory_Leak__wchar_t_realloc_54e.c
CWE401_Memory_Leak__wchar_t_realloc_54e_goodB2GSink
void CWE401_Memory_Leak__wchar_t_realloc_54e_goodB2GSink(undefined8 param_1) { func_0x00400a60(param_1); return; }
['gcc']
1,091
void CWE401_Memory_Leak__wchar_t_realloc_61_bad() { wchar_t * data; data = NULL; data = CWE401_Memory_Leak__wchar_t_realloc_61b_badSource(data); /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ }
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100844/CWE401_Memory_Leak__wchar_t_realloc_61a.c
CWE401_Memory_Leak__wchar_t_realloc_61_bad
void CWE401_Memory_Leak__wchar_t_realloc_61_bad(void) { CWE401_Memory_Leak__wchar_t_realloc_61b_badSource(0); return; }
['gcc']
1,092
void CWE401_Memory_Leak__wchar_t_realloc_61_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100844/CWE401_Memory_Leak__wchar_t_realloc_61a.c
CWE401_Memory_Leak__wchar_t_realloc_61_good
void CWE401_Memory_Leak__wchar_t_realloc_61_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
1,093
wchar_t * CWE401_Memory_Leak__wchar_t_realloc_61b_badSource(wchar_t * data) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 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/100844/CWE401_Memory_Leak__wchar_t_realloc_61b.c
CWE401_Memory_Leak__wchar_t_realloc_61b_badSource
undefined8 CWE401_Memory_Leak__wchar_t_realloc_61b_badSource(undefined8 param_1) { undefined8 uVar1; uVar1 = func_0x00400ad0(param_1,400); func_0x00400a80(uVar1,&UNK_004011b8); printWLine(uVar1); return uVar1; }
['gcc']
1,094
wchar_t * CWE401_Memory_Leak__wchar_t_realloc_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/100844/CWE401_Memory_Leak__wchar_t_realloc_61b.c
CWE401_Memory_Leak__wchar_t_realloc_61b_goodG2BSource
undefined * CWE401_Memory_Leak__wchar_t_realloc_61b_goodG2BSource(void) { undefined auStack_1b0 [416]; undefined *puStack_10; puStack_10 = auStack_1b0; func_0x00400ad0(puStack_10,&UNK_004012b8,7); printWLine(puStack_10); return puStack_10; }
['gcc']
1,095
wchar_t * CWE401_Memory_Leak__wchar_t_realloc_61b_goodB2GSource(wchar_t * data) { /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 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/100844/CWE401_Memory_Leak__wchar_t_realloc_61b.c
CWE401_Memory_Leak__wchar_t_realloc_61b_goodB2GSource
undefined8 CWE401_Memory_Leak__wchar_t_realloc_61b_goodB2GSource(undefined8 param_1) { undefined8 uVar1; uVar1 = func_0x00400b20(param_1,400); func_0x00400ad0(uVar1,&UNK_004012b8); printWLine(uVar1); return uVar1; }
['gcc']
1,096
void CWE401_Memory_Leak__wchar_t_realloc_63_bad() { wchar_t * data; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (wchar_t *)realloc(data, 100*sizeof(wchar_t)); /* Initialize and make use of data */ wcscpy(data, L"A String"); printWLine(data); CWE401_Memory_Leak__wchar_t_realloc_63b_badSink(&data); }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100846/CWE401_Memory_Leak__wchar_t_realloc_63a.c
CWE401_Memory_Leak__wchar_t_realloc_63_bad
void CWE401_Memory_Leak__wchar_t_realloc_63_bad(void) { undefined8 uStack_10; uStack_10 = 0; uStack_10 = func_0x00400ad0(0,400); func_0x00400a80(uStack_10,&UNK_004011b8); printWLine(uStack_10); CWE401_Memory_Leak__wchar_t_realloc_63b_badSink(&uStack_10); return; }
['gcc']
1,097
void CWE401_Memory_Leak__wchar_t_realloc_63_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100846/CWE401_Memory_Leak__wchar_t_realloc_63a.c
CWE401_Memory_Leak__wchar_t_realloc_63_good
void CWE401_Memory_Leak__wchar_t_realloc_63_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
1,098
void CWE401_Memory_Leak__wchar_t_realloc_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/100846/CWE401_Memory_Leak__wchar_t_realloc_63b.c
CWE401_Memory_Leak__wchar_t_realloc_63b_badSink
void CWE401_Memory_Leak__wchar_t_realloc_63b_badSink(void) { return; }
['gcc']
1,099
void CWE401_Memory_Leak__wchar_t_realloc_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/100846/CWE401_Memory_Leak__wchar_t_realloc_63b.c
CWE401_Memory_Leak__wchar_t_realloc_63b_goodG2BSink
void CWE401_Memory_Leak__wchar_t_realloc_63b_goodG2BSink(void) { return; }
['gcc']