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
9,100
void CWE690_NULL_Deref_From_Return__wchar_t_malloc_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: Check to see if the memory allocation function was successful before initializing the memory buffer */ if (data != NULL) { wcscpy(data, L"Initialize"); printWLine(data); free(data); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111878/CWE690_NULL_Deref_From_Return__wchar_t_malloc_64b.c
CWE690_NULL_Deref_From_Return__wchar_t_malloc_64b_goodB2GSink
void CWE690_NULL_Deref_From_Return__wchar_t_malloc_64b_goodB2GSink(long *param_1) { long lVar1; lVar1 = *param_1; if (lVar1 != 0) { func_0x00400ad0(lVar1,&UNK_00401238); printWLine(lVar1); func_0x00400a60(lVar1); } return; }
['gcc']
9,101
void CWE690_NULL_Deref_From_Return__wchar_t_malloc_66_bad() { wchar_t * data; wchar_t * dataArray[5]; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)malloc(20*sizeof(wchar_t)); /* put data in array */ dataArray[2] = data; CWE690_NULL_Deref_From_Return__wchar_t_malloc_66b_badSink(dataArray); }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* put data in array */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111880/CWE690_NULL_Deref_From_Return__wchar_t_malloc_66a.c
CWE690_NULL_Deref_From_Return__wchar_t_malloc_66_bad
void CWE690_NULL_Deref_From_Return__wchar_t_malloc_66_bad(void) { undefined auStack_38 [16]; undefined8 uStack_28; undefined8 uStack_10; uStack_10 = 0; uStack_28 = func_0x00400b00(0x50); uStack_10 = uStack_28; CWE690_NULL_Deref_From_Return__wchar_t_malloc_66b_badSink(auStack_38); return; }
['gcc']
9,102
void CWE690_NULL_Deref_From_Return__wchar_t_malloc_66_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111880/CWE690_NULL_Deref_From_Return__wchar_t_malloc_66a.c
CWE690_NULL_Deref_From_Return__wchar_t_malloc_66_good
void CWE690_NULL_Deref_From_Return__wchar_t_malloc_66_good(void) { goodB2G(); return; }
['gcc']
9,103
void CWE690_NULL_Deref_From_Return__wchar_t_malloc_66b_badSink(wchar_t * dataArray[]) { /* copy data out of dataArray */ wchar_t * data = dataArray[2]; /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); }
['/* copy data out of dataArray */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111880/CWE690_NULL_Deref_From_Return__wchar_t_malloc_66b.c
CWE690_NULL_Deref_From_Return__wchar_t_malloc_66b_badSink
void CWE690_NULL_Deref_From_Return__wchar_t_malloc_66b_badSink(long param_1) { undefined8 uVar1; uVar1 = *(undefined8 *)(param_1 + 0x10); func_0x00400ad0(uVar1,&UNK_00401218); printWLine(uVar1); func_0x00400a60(uVar1); return; }
['gcc']
9,104
void CWE690_NULL_Deref_From_Return__wchar_t_malloc_66b_goodB2GSink(wchar_t * dataArray[]) { wchar_t * data = dataArray[2]; /* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */ if (data != NULL) { wcscpy(data, L"Initialize"); printWLine(data); free(data); } }
['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111880/CWE690_NULL_Deref_From_Return__wchar_t_malloc_66b.c
CWE690_NULL_Deref_From_Return__wchar_t_malloc_66b_goodB2GSink
void CWE690_NULL_Deref_From_Return__wchar_t_malloc_66b_goodB2GSink(long param_1) { long lVar1; lVar1 = *(long *)(param_1 + 0x10); if (lVar1 != 0) { func_0x00400ad0(lVar1,&UNK_00401238); printWLine(lVar1); func_0x00400a60(lVar1); } return; }
['gcc']
9,105
void CWE690_NULL_Deref_From_Return__wchar_t_malloc_67_bad() { wchar_t * data; CWE690_NULL_Deref_From_Return__wchar_t_malloc_67_structType myStruct; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)malloc(20*sizeof(wchar_t)); myStruct.structFirst = data; CWE690_NULL_Deref_From_Return__wchar_t_malloc_67b_badSink(myStruct); }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111881/CWE690_NULL_Deref_From_Return__wchar_t_malloc_67a.c
CWE690_NULL_Deref_From_Return__wchar_t_malloc_67_bad
void CWE690_NULL_Deref_From_Return__wchar_t_malloc_67_bad(void) { undefined8 uVar1; uVar1 = func_0x00400b00(0x50); CWE690_NULL_Deref_From_Return__wchar_t_malloc_67b_badSink(uVar1); return; }
['gcc']
9,106
void CWE690_NULL_Deref_From_Return__wchar_t_malloc_67_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111881/CWE690_NULL_Deref_From_Return__wchar_t_malloc_67a.c
CWE690_NULL_Deref_From_Return__wchar_t_malloc_67_good
void CWE690_NULL_Deref_From_Return__wchar_t_malloc_67_good(void) { goodB2G(); return; }
['gcc']
9,107
void CWE690_NULL_Deref_From_Return__wchar_t_malloc_67b_badSink(CWE690_NULL_Deref_From_Return__wchar_t_malloc_67_structType myStruct) { wchar_t * data = myStruct.structFirst; /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); }
['/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111881/CWE690_NULL_Deref_From_Return__wchar_t_malloc_67b.c
CWE690_NULL_Deref_From_Return__wchar_t_malloc_67b_badSink
void CWE690_NULL_Deref_From_Return__wchar_t_malloc_67b_badSink(undefined8 param_1) { func_0x00400ad0(param_1,&UNK_00401218); printWLine(param_1); func_0x00400a60(param_1); return; }
['gcc']
9,108
void CWE690_NULL_Deref_From_Return__wchar_t_malloc_67b_goodB2GSink(CWE690_NULL_Deref_From_Return__wchar_t_malloc_67_structType myStruct) { wchar_t * data = myStruct.structFirst; /* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */ if (data != NULL) { wcscpy(data, L"Initialize"); printWLine(data); free(data); } }
['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111881/CWE690_NULL_Deref_From_Return__wchar_t_malloc_67b.c
CWE690_NULL_Deref_From_Return__wchar_t_malloc_67b_goodB2GSink
void CWE690_NULL_Deref_From_Return__wchar_t_malloc_67b_goodB2GSink(long param_1) { if (param_1 != 0) { func_0x00400ad0(param_1,&UNK_00401238); printWLine(param_1); func_0x00400a60(param_1); } return; }
['gcc']
9,109
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_01_bad() { wchar_t * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111890/CWE690_NULL_Deref_From_Return__wchar_t_realloc_01.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_01_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_01_bad(void) { undefined8 uVar1; uVar1 = func_0x00400b20(0,0x50); func_0x00400ad0(uVar1,&UNK_004011f8); printWLine(uVar1); func_0x00400a60(uVar1); return; }
['gcc']
9,110
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_01_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111890/CWE690_NULL_Deref_From_Return__wchar_t_realloc_01.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_01_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_01_good(void) { goodB2G(); return; }
['gcc']
9,111
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_02_bad() { wchar_t * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); if(1) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111891/CWE690_NULL_Deref_From_Return__wchar_t_realloc_02.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_02_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_02_bad(void) { undefined8 uVar1; uVar1 = func_0x00400b20(0,0x50); func_0x00400ad0(uVar1,&UNK_004011f8); printWLine(uVar1); func_0x00400a60(uVar1); return; }
['gcc']
9,112
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_02_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111891/CWE690_NULL_Deref_From_Return__wchar_t_realloc_02.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_02_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_02_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
9,113
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_03_bad() { wchar_t * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); if(5==5) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111892/CWE690_NULL_Deref_From_Return__wchar_t_realloc_03.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_03_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_03_bad(void) { undefined8 uVar1; uVar1 = func_0x00400b20(0,0x50); func_0x00400ad0(uVar1,&UNK_004011f8); printWLine(uVar1); func_0x00400a60(uVar1); return; }
['gcc']
9,114
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_03_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111892/CWE690_NULL_Deref_From_Return__wchar_t_realloc_03.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_03_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_03_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
9,115
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_04_bad() { wchar_t * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); if(STATIC_CONST_TRUE) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111893/CWE690_NULL_Deref_From_Return__wchar_t_realloc_04.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_04_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_04_bad(void) { undefined8 uVar1; uVar1 = func_0x00400b20(0,0x50); func_0x00400ad0(uVar1,&UNK_00401200); printWLine(uVar1); func_0x00400a60(uVar1); return; }
['gcc']
9,116
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_04_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111893/CWE690_NULL_Deref_From_Return__wchar_t_realloc_04.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_04_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_04_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
9,117
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_05_bad() { wchar_t * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); if(staticTrue) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111894/CWE690_NULL_Deref_From_Return__wchar_t_realloc_05.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_05_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_05_bad(void) { undefined8 uVar1; uVar1 = func_0x00400b20(0,0x50); if (staticTrue != 0) { func_0x00400ad0(uVar1,&UNK_004011f8); printWLine(uVar1); func_0x00400a60(uVar1); } return; }
['gcc']
9,118
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_05_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111894/CWE690_NULL_Deref_From_Return__wchar_t_realloc_05.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_05_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_05_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
9,119
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_06_bad() { wchar_t * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); if(STATIC_CONST_FIVE==5) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111895/CWE690_NULL_Deref_From_Return__wchar_t_realloc_06.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_06_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_06_bad(void) { undefined8 uVar1; uVar1 = func_0x00400b20(0,0x50); func_0x00400ad0(uVar1,&UNK_00401200); printWLine(uVar1); func_0x00400a60(uVar1); return; }
['gcc']
9,120
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_06_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111895/CWE690_NULL_Deref_From_Return__wchar_t_realloc_06.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_06_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_06_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
9,121
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_07_bad() { wchar_t * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); if(staticFive==5) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111896/CWE690_NULL_Deref_From_Return__wchar_t_realloc_07.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_07_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_07_bad(void) { undefined8 uVar1; uVar1 = func_0x00400b20(0,0x50); if (staticFive == 5) { func_0x00400ad0(uVar1,&UNK_00401208); printWLine(uVar1); func_0x00400a60(uVar1); } return; }
['gcc']
9,122
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_07_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111896/CWE690_NULL_Deref_From_Return__wchar_t_realloc_07.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_07_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_07_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
9,123
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_08_bad() { wchar_t * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); if(staticReturnsTrue()) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111897/CWE690_NULL_Deref_From_Return__wchar_t_realloc_08.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_08_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_08_bad(void) { int iVar1; undefined8 uVar2; uVar2 = func_0x00400b20(0,0x50); iVar1 = staticReturnsTrue(); if (iVar1 != 0) { func_0x00400ad0(uVar2,&UNK_00401218); printWLine(uVar2); func_0x00400a60(uVar2); } return; }
['gcc']
9,124
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_08_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111897/CWE690_NULL_Deref_From_Return__wchar_t_realloc_08.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_08_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_08_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
9,125
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_09_bad() { wchar_t * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); if(GLOBAL_CONST_TRUE) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111898/CWE690_NULL_Deref_From_Return__wchar_t_realloc_09.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_09_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_09_bad(void) { undefined8 uVar1; uVar1 = func_0x00400b20(0,0x50); if (GLOBAL_CONST_TRUE != 0) { func_0x00400ad0(uVar1,&UNK_004011f8); printWLine(uVar1); func_0x00400a60(uVar1); } return; }
['gcc']
9,126
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_09_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111898/CWE690_NULL_Deref_From_Return__wchar_t_realloc_09.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_09_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_09_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
9,127
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_10_bad() { wchar_t * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); if(globalTrue) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111899/CWE690_NULL_Deref_From_Return__wchar_t_realloc_10.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_10_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_10_bad(void) { undefined8 uVar1; uVar1 = func_0x00400b20(0,0x50); if (globalTrue != 0) { func_0x00400ad0(uVar1,&UNK_004011f8); printWLine(uVar1); func_0x00400a60(uVar1); } return; }
['gcc']
9,128
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_10_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111899/CWE690_NULL_Deref_From_Return__wchar_t_realloc_10.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_10_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_10_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
9,129
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_11_bad() { wchar_t * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); if(globalReturnsTrue()) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111900/CWE690_NULL_Deref_From_Return__wchar_t_realloc_11.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_11_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_11_bad(void) { int iVar1; undefined8 uVar2; uVar2 = func_0x00400b20(0,0x50); iVar1 = globalReturnsTrue(); if (iVar1 != 0) { func_0x00400ad0(uVar2,&UNK_00401208); printWLine(uVar2); func_0x00400a60(uVar2); } return; }
['gcc']
9,130
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_11_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111900/CWE690_NULL_Deref_From_Return__wchar_t_realloc_11.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_11_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_11_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
9,131
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_12_bad() { wchar_t * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); if(globalReturnsTrueOrFalse()) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); } else { /* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */ if (data != NULL) { wcscpy(data, L"Initialize"); printWLine(data); free(data); } } }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */', '/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111901/CWE690_NULL_Deref_From_Return__wchar_t_realloc_12.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_12_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_12_bad(void) { int iVar1; long lVar2; lVar2 = func_0x00400b20(0,0x50); iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { if (lVar2 != 0) { func_0x00400ad0(lVar2,&UNK_00401238); printWLine(lVar2); func_0x00400a60(lVar2); } } else { func_0x00400ad0(lVar2,&UNK_00401238); printWLine(lVar2); func_0x00400a60(lVar2); } return; }
['gcc']
9,132
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_12_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111901/CWE690_NULL_Deref_From_Return__wchar_t_realloc_12.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_12_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_12_good(void) { goodB2G(); return; }
['gcc']
9,133
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_13_bad() { wchar_t * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); if(GLOBAL_CONST_FIVE==5) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111902/CWE690_NULL_Deref_From_Return__wchar_t_realloc_13.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_13_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_13_bad(void) { undefined8 uVar1; uVar1 = func_0x00400b20(0,0x50); if (GLOBAL_CONST_FIVE == 5) { func_0x00400ad0(uVar1,&UNK_00401208); printWLine(uVar1); func_0x00400a60(uVar1); } return; }
['gcc']
9,134
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_13_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111902/CWE690_NULL_Deref_From_Return__wchar_t_realloc_13.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_13_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_13_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
9,135
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_14_bad() { wchar_t * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); if(globalFive==5) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111903/CWE690_NULL_Deref_From_Return__wchar_t_realloc_14.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_14_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_14_bad(void) { undefined8 uVar1; uVar1 = func_0x00400b20(0,0x50); if (globalFive == 5) { func_0x00400ad0(uVar1,&UNK_00401208); printWLine(uVar1); func_0x00400a60(uVar1); } return; }
['gcc']
9,136
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_14_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111903/CWE690_NULL_Deref_From_Return__wchar_t_realloc_14.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_14_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_14_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
9,137
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_15_bad() { wchar_t * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); switch(6) { case 6: /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111904/CWE690_NULL_Deref_From_Return__wchar_t_realloc_15.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_15_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_15_bad(void) { undefined8 uVar1; uVar1 = func_0x00400b20(0,0x50); func_0x00400ad0(uVar1,&UNK_004011f8); printWLine(uVar1); func_0x00400a60(uVar1); return; }
['gcc']
9,138
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_15_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111904/CWE690_NULL_Deref_From_Return__wchar_t_realloc_15.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_15_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_15_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
9,139
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_16_bad() { wchar_t * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); while(1) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); break; } }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111905/CWE690_NULL_Deref_From_Return__wchar_t_realloc_16.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_16_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_16_bad(void) { undefined8 uVar1; uVar1 = func_0x00400b20(0,0x50); func_0x00400ad0(uVar1,&UNK_004011f8); printWLine(uVar1); func_0x00400a60(uVar1); return; }
['gcc']
9,140
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_16_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111905/CWE690_NULL_Deref_From_Return__wchar_t_realloc_16.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_16_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_16_good(void) { goodB2G(); return; }
['gcc']
9,141
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_17_bad() { int j; wchar_t * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); for(j = 0; j < 1; j++) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111906/CWE690_NULL_Deref_From_Return__wchar_t_realloc_17.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_17_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_17_bad(void) { undefined8 uVar1; int iStack_c; uVar1 = func_0x00400b20(0,0x50); for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { func_0x00400ad0(uVar1,&UNK_00401208); printWLine(uVar1); func_0x00400a60(uVar1); } return; }
['gcc']
9,142
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_17_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111906/CWE690_NULL_Deref_From_Return__wchar_t_realloc_17.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_17_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_17_good(void) { goodB2G(); return; }
['gcc']
9,143
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_18_bad() { wchar_t * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); goto sink; sink: /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111907/CWE690_NULL_Deref_From_Return__wchar_t_realloc_18.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_18_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_18_bad(void) { undefined8 uVar1; uVar1 = func_0x00400b20(0,0x50); func_0x00400ad0(uVar1,&UNK_004011f8); printWLine(uVar1); func_0x00400a60(uVar1); return; }
['gcc']
9,144
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_18_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111907/CWE690_NULL_Deref_From_Return__wchar_t_realloc_18.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_18_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_18_good(void) { goodB2G(); return; }
['gcc']
9,145
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_21_bad() { wchar_t * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); badStatic = 1; /* true */ badSink(data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* true */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111908/CWE690_NULL_Deref_From_Return__wchar_t_realloc_21.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_21_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_21_bad(void) { undefined8 uVar1; uVar1 = func_0x00400b20(0,0x50); badStatic = 1; badSink(uVar1); return; }
['gcc']
9,146
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_21_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111908/CWE690_NULL_Deref_From_Return__wchar_t_realloc_21.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_21_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_21_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
9,147
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_22_bad() { wchar_t * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); CWE690_NULL_Deref_From_Return__wchar_t_realloc_22_badGlobal = 1; /* true */ CWE690_NULL_Deref_From_Return__wchar_t_realloc_22_badSink(data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* true */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111909/CWE690_NULL_Deref_From_Return__wchar_t_realloc_22a.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_22_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_22_bad(void) { undefined8 uVar1; uVar1 = func_0x00400b20(0,0x50); CWE690_NULL_Deref_From_Return__wchar_t_realloc_22_badGlobal = 1; CWE690_NULL_Deref_From_Return__wchar_t_realloc_22_badSink(uVar1); return; }
['gcc']
9,148
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_22_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111909/CWE690_NULL_Deref_From_Return__wchar_t_realloc_22a.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_22_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_22_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
9,149
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_22_badSink(wchar_t * data) { if(CWE690_NULL_Deref_From_Return__wchar_t_realloc_22_badGlobal) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); } }
['/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111909/CWE690_NULL_Deref_From_Return__wchar_t_realloc_22b.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_22_badSink
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_22_badSink(undefined8 param_1) { if (CWE690_NULL_Deref_From_Return__wchar_t_realloc_22_badGlobal != 0) { func_0x00400ad0(param_1,&UNK_00401228); printWLine(param_1); func_0x00400a60(param_1); } return; }
['gcc']
9,150
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_22_goodB2G1Sink(wchar_t * data) { if(CWE690_NULL_Deref_From_Return__wchar_t_realloc_22_goodB2G1Global) { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); } else { /* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */ if (data != NULL) { wcscpy(data, L"Initialize"); printWLine(data); free(data); } } }
['/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111909/CWE690_NULL_Deref_From_Return__wchar_t_realloc_22b.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_22_goodB2G1Sink
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_22_goodB2G1Sink(long param_1) { if (CWE690_NULL_Deref_From_Return__wchar_t_realloc_22_goodB2G1Global == 0) { if (param_1 != 0) { func_0x00400ad0(param_1,&UNK_004012f0); printWLine(param_1); func_0x00400a60(param_1); } } else { printLine(&UNK_004012d8); } return; }
['gcc']
9,151
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_22_goodB2G2Sink(wchar_t * data) { if(CWE690_NULL_Deref_From_Return__wchar_t_realloc_22_goodB2G2Global) { /* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */ if (data != NULL) { wcscpy(data, L"Initialize"); printWLine(data); free(data); } } }
['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111909/CWE690_NULL_Deref_From_Return__wchar_t_realloc_22b.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_22_goodB2G2Sink
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_22_goodB2G2Sink(long param_1) { if ((CWE690_NULL_Deref_From_Return__wchar_t_realloc_22_goodB2G2Global != 0) && (param_1 != 0)) { func_0x00400ad0(param_1,&UNK_004012f0); printWLine(param_1); func_0x00400a60(param_1); } return; }
['gcc']
9,152
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_31_bad() { wchar_t * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); { wchar_t * dataCopy = data; wchar_t * data = dataCopy; /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111910/CWE690_NULL_Deref_From_Return__wchar_t_realloc_31.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_31_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_31_bad(void) { undefined8 uVar1; uVar1 = func_0x00400b20(0,0x50); func_0x00400ad0(uVar1,&UNK_00401208); printWLine(uVar1); func_0x00400a60(uVar1); return; }
['gcc']
9,153
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_31_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111910/CWE690_NULL_Deref_From_Return__wchar_t_realloc_31.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_31_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_31_good(void) { goodB2G(); return; }
['gcc']
9,154
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_32_bad() { wchar_t * data; wchar_t * *dataPtr1 = &data; wchar_t * *dataPtr2 = &data; data = NULL; /* Initialize data */ { wchar_t * data = *dataPtr1; /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); *dataPtr1 = data; } { wchar_t * data = *dataPtr2; /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111911/CWE690_NULL_Deref_From_Return__wchar_t_realloc_32.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_32_bad
/* WARNING: Restarted to delay deadcode elimination for space: stack */ void CWE690_NULL_Deref_From_Return__wchar_t_realloc_32_bad(void) { undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined8 *puStack_18; undefined8 *puStack_10; puStack_10 = &uStack_30; puStack_18 = &uStack_30; uStack_30 = 0; uStack_20 = 0; uStack_20 = func_0x00400b20(0,0x50); *puStack_10 = uStack_20; uStack_28 = *puStack_18; func_0x00400ad0(uStack_28,&UNK_00401228); printWLine(uStack_28); func_0x00400a60(uStack_28); return; }
['gcc']
9,155
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_32_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111911/CWE690_NULL_Deref_From_Return__wchar_t_realloc_32.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_32_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_32_good(void) { goodB2G(); return; }
['gcc']
9,156
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_34_bad() { wchar_t * data; CWE690_NULL_Deref_From_Return__wchar_t_realloc_34_unionType myUnion; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); myUnion.unionFirst = data; { wchar_t * data = myUnion.unionSecond; /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); } }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111913/CWE690_NULL_Deref_From_Return__wchar_t_realloc_34.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_34_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_34_bad(void) { undefined8 uVar1; uVar1 = func_0x00400b20(0,0x50); func_0x00400ad0(uVar1,&UNK_00401208); printWLine(uVar1); func_0x00400a60(uVar1); return; }
['gcc']
9,157
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_34_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111913/CWE690_NULL_Deref_From_Return__wchar_t_realloc_34.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_34_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_34_good(void) { goodB2G(); return; }
['gcc']
9,158
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_41_bad() { wchar_t * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); badSink(data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111914/CWE690_NULL_Deref_From_Return__wchar_t_realloc_41.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_41_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_41_bad(void) { undefined8 uVar1; uVar1 = func_0x00400b20(0,0x50); badSink(uVar1); return; }
['gcc']
9,159
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_41_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111914/CWE690_NULL_Deref_From_Return__wchar_t_realloc_41.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_41_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_41_good(void) { goodB2G(); return; }
['gcc']
9,160
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_42_bad() { wchar_t * data; data = NULL; /* Initialize data */ data = badSource(data); /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); }
['/* Initialize data */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111915/CWE690_NULL_Deref_From_Return__wchar_t_realloc_42.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_42_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_42_bad(void) { undefined8 uVar1; uVar1 = badSource(0); func_0x00400ad0(uVar1,&UNK_00401218); printWLine(uVar1); func_0x00400a60(uVar1); return; }
['gcc']
9,161
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_42_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111915/CWE690_NULL_Deref_From_Return__wchar_t_realloc_42.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_42_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_42_good(void) { goodB2G(); return; }
['gcc']
9,162
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_51_bad() { wchar_t * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); CWE690_NULL_Deref_From_Return__wchar_t_realloc_51b_badSink(data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111919/CWE690_NULL_Deref_From_Return__wchar_t_realloc_51a.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_51_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_51_bad(void) { undefined8 uVar1; uVar1 = func_0x00400b20(0,0x50); CWE690_NULL_Deref_From_Return__wchar_t_realloc_51b_badSink(uVar1); return; }
['gcc']
9,163
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_51_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111919/CWE690_NULL_Deref_From_Return__wchar_t_realloc_51a.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_51_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_51_good(void) { goodB2G(); return; }
['gcc']
9,164
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_51b_badSink(wchar_t * data) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); }
['/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111919/CWE690_NULL_Deref_From_Return__wchar_t_realloc_51b.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_51b_badSink
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_51b_badSink(undefined8 param_1) { func_0x00400ad0(param_1,&UNK_00401218); printWLine(param_1); func_0x00400a60(param_1); return; }
['gcc']
9,165
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_51b_goodB2GSink(wchar_t * data) { /* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */ if (data != NULL) { wcscpy(data, L"Initialize"); printWLine(data); free(data); } }
['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111919/CWE690_NULL_Deref_From_Return__wchar_t_realloc_51b.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_51b_goodB2GSink
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_51b_goodB2GSink(long param_1) { if (param_1 != 0) { func_0x00400ad0(param_1,&UNK_00401228); printWLine(param_1); func_0x00400a60(param_1); } return; }
['gcc']
9,166
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_52_bad() { wchar_t * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); CWE690_NULL_Deref_From_Return__wchar_t_realloc_52b_badSink(data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111920/CWE690_NULL_Deref_From_Return__wchar_t_realloc_52a.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_52_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_52_bad(void) { undefined8 uVar1; uVar1 = func_0x00400b20(0,0x50); CWE690_NULL_Deref_From_Return__wchar_t_realloc_52b_badSink(uVar1); return; }
['gcc']
9,167
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_52_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111920/CWE690_NULL_Deref_From_Return__wchar_t_realloc_52a.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_52_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_52_good(void) { goodB2G(); return; }
['gcc']
9,168
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_52b_badSink(wchar_t * data) { CWE690_NULL_Deref_From_Return__wchar_t_realloc_52c_badSink(data); }
[]
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111920/CWE690_NULL_Deref_From_Return__wchar_t_realloc_52b.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_52b_badSink
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_52b_badSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__wchar_t_realloc_52c_badSink(param_1); return; }
['gcc']
9,169
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_52b_goodB2GSink(wchar_t * data) { CWE690_NULL_Deref_From_Return__wchar_t_realloc_52c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111920/CWE690_NULL_Deref_From_Return__wchar_t_realloc_52b.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_52b_goodB2GSink
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_52b_goodB2GSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__wchar_t_realloc_52c_goodB2GSink(param_1); return; }
['gcc']
9,170
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_52c_badSink(wchar_t * data) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); }
['/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111920/CWE690_NULL_Deref_From_Return__wchar_t_realloc_52c.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_52c_badSink
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_52c_badSink(undefined8 param_1) { func_0x00400ad0(param_1,&UNK_00401228); printWLine(param_1); func_0x00400a60(param_1); return; }
['gcc']
9,171
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_52c_goodB2GSink(wchar_t * data) { /* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */ if (data != NULL) { wcscpy(data, L"Initialize"); printWLine(data); free(data); } }
['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111920/CWE690_NULL_Deref_From_Return__wchar_t_realloc_52c.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_52c_goodB2GSink
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_52c_goodB2GSink(long param_1) { if (param_1 != 0) { func_0x00400ad0(param_1,&UNK_00401248); printWLine(param_1); func_0x00400a60(param_1); } return; }
['gcc']
9,172
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_53_bad() { wchar_t * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); CWE690_NULL_Deref_From_Return__wchar_t_realloc_53b_badSink(data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111921/CWE690_NULL_Deref_From_Return__wchar_t_realloc_53a.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_53_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_53_bad(void) { undefined8 uVar1; uVar1 = func_0x00400b20(0,0x50); CWE690_NULL_Deref_From_Return__wchar_t_realloc_53b_badSink(uVar1); return; }
['gcc']
9,173
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_53_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111921/CWE690_NULL_Deref_From_Return__wchar_t_realloc_53a.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_53_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_53_good(void) { goodB2G(); return; }
['gcc']
9,174
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_53b_badSink(wchar_t * data) { CWE690_NULL_Deref_From_Return__wchar_t_realloc_53c_badSink(data); }
[]
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111921/CWE690_NULL_Deref_From_Return__wchar_t_realloc_53b.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_53b_badSink
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_53b_badSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__wchar_t_realloc_53c_badSink(param_1); return; }
['gcc']
9,175
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_53b_goodB2GSink(wchar_t * data) { CWE690_NULL_Deref_From_Return__wchar_t_realloc_53c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111921/CWE690_NULL_Deref_From_Return__wchar_t_realloc_53b.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_53b_goodB2GSink
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_53b_goodB2GSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__wchar_t_realloc_53c_goodB2GSink(param_1); return; }
['gcc']
9,176
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_53c_badSink(wchar_t * data) { CWE690_NULL_Deref_From_Return__wchar_t_realloc_53d_badSink(data); }
[]
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111921/CWE690_NULL_Deref_From_Return__wchar_t_realloc_53c.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_53c_badSink
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_53c_badSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__wchar_t_realloc_53d_badSink(param_1); return; }
['gcc']
9,177
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_53c_goodB2GSink(wchar_t * data) { CWE690_NULL_Deref_From_Return__wchar_t_realloc_53d_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111921/CWE690_NULL_Deref_From_Return__wchar_t_realloc_53c.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_53c_goodB2GSink
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_53c_goodB2GSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__wchar_t_realloc_53d_goodB2GSink(param_1); return; }
['gcc']
9,178
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_53d_badSink(wchar_t * data) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); }
['/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111921/CWE690_NULL_Deref_From_Return__wchar_t_realloc_53d.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_53d_badSink
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_53d_badSink(undefined8 param_1) { func_0x00400ad0(param_1,&UNK_00401248); printWLine(param_1); func_0x00400a60(param_1); return; }
['gcc']
9,179
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_53d_goodB2GSink(wchar_t * data) { /* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */ if (data != NULL) { wcscpy(data, L"Initialize"); printWLine(data); free(data); } }
['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111921/CWE690_NULL_Deref_From_Return__wchar_t_realloc_53d.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_53d_goodB2GSink
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_53d_goodB2GSink(long param_1) { if (param_1 != 0) { func_0x00400ad0(param_1,&UNK_00401258); printWLine(param_1); func_0x00400a60(param_1); } return; }
['gcc']
9,180
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_54_bad() { wchar_t * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); CWE690_NULL_Deref_From_Return__wchar_t_realloc_54b_badSink(data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111922/CWE690_NULL_Deref_From_Return__wchar_t_realloc_54a.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_54_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_54_bad(void) { undefined8 uVar1; uVar1 = func_0x00400b20(0,0x50); CWE690_NULL_Deref_From_Return__wchar_t_realloc_54b_badSink(uVar1); return; }
['gcc']
9,181
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_54_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111922/CWE690_NULL_Deref_From_Return__wchar_t_realloc_54a.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_54_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_54_good(void) { goodB2G(); return; }
['gcc']
9,182
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_54b_badSink(wchar_t * data) { CWE690_NULL_Deref_From_Return__wchar_t_realloc_54c_badSink(data); }
[]
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111922/CWE690_NULL_Deref_From_Return__wchar_t_realloc_54b.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_54b_badSink
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_54b_badSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__wchar_t_realloc_54c_badSink(param_1); return; }
['gcc']
9,183
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_54b_goodB2GSink(wchar_t * data) { CWE690_NULL_Deref_From_Return__wchar_t_realloc_54c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111922/CWE690_NULL_Deref_From_Return__wchar_t_realloc_54b.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_54b_goodB2GSink
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_54b_goodB2GSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__wchar_t_realloc_54c_goodB2GSink(param_1); return; }
['gcc']
9,184
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_54c_badSink(wchar_t * data) { CWE690_NULL_Deref_From_Return__wchar_t_realloc_54d_badSink(data); }
[]
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111922/CWE690_NULL_Deref_From_Return__wchar_t_realloc_54c.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_54c_badSink
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_54c_badSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__wchar_t_realloc_54d_badSink(param_1); return; }
['gcc']
9,185
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_54c_goodB2GSink(wchar_t * data) { CWE690_NULL_Deref_From_Return__wchar_t_realloc_54d_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111922/CWE690_NULL_Deref_From_Return__wchar_t_realloc_54c.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_54c_goodB2GSink
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_54c_goodB2GSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__wchar_t_realloc_54d_goodB2GSink(param_1); return; }
['gcc']
9,186
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_54d_badSink(wchar_t * data) { CWE690_NULL_Deref_From_Return__wchar_t_realloc_54e_badSink(data); }
[]
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111922/CWE690_NULL_Deref_From_Return__wchar_t_realloc_54d.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_54d_badSink
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_54d_badSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__wchar_t_realloc_54e_badSink(param_1); return; }
['gcc']
9,187
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_54d_goodB2GSink(wchar_t * data) { CWE690_NULL_Deref_From_Return__wchar_t_realloc_54e_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111922/CWE690_NULL_Deref_From_Return__wchar_t_realloc_54d.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_54d_goodB2GSink
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_54d_goodB2GSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__wchar_t_realloc_54e_goodB2GSink(param_1); return; }
['gcc']
9,188
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_54e_badSink(wchar_t * data) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); }
['/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111922/CWE690_NULL_Deref_From_Return__wchar_t_realloc_54e.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_54e_badSink
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_54e_badSink(undefined8 param_1) { func_0x00400ad0(param_1,&UNK_00401268); printWLine(param_1); func_0x00400a60(param_1); return; }
['gcc']
9,189
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_54e_goodB2GSink(wchar_t * data) { /* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */ if (data != NULL) { wcscpy(data, L"Initialize"); printWLine(data); free(data); } }
['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111922/CWE690_NULL_Deref_From_Return__wchar_t_realloc_54e.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_54e_goodB2GSink
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_54e_goodB2GSink(long param_1) { if (param_1 != 0) { func_0x00400ad0(param_1,&UNK_00401278); printWLine(param_1); func_0x00400a60(param_1); } return; }
['gcc']
9,190
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_61_bad() { wchar_t * data; data = NULL; /* Initialize data */ data = CWE690_NULL_Deref_From_Return__wchar_t_realloc_61b_badSource(data); /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); }
['/* Initialize data */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111923/CWE690_NULL_Deref_From_Return__wchar_t_realloc_61a.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_61_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_61_bad(void) { undefined8 uVar1; uVar1 = CWE690_NULL_Deref_From_Return__wchar_t_realloc_61b_badSource(0); func_0x00400ad0(uVar1,&UNK_00401218); printWLine(uVar1); func_0x00400a60(uVar1); return; }
['gcc']
9,191
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_61_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111923/CWE690_NULL_Deref_From_Return__wchar_t_realloc_61a.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_61_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_61_good(void) { goodB2G(); return; }
['gcc']
9,192
wchar_t * CWE690_NULL_Deref_From_Return__wchar_t_realloc_61b_badSource(wchar_t * data) { /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); return data; }
['/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111923/CWE690_NULL_Deref_From_Return__wchar_t_realloc_61b.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_61b_badSource
undefined8 CWE690_NULL_Deref_From_Return__wchar_t_realloc_61b_badSource(undefined8 param_1) { undefined8 uVar1; uVar1 = func_0x00400b20(param_1,0x50); return uVar1; }
['gcc']
9,193
wchar_t * CWE690_NULL_Deref_From_Return__wchar_t_realloc_61b_goodB2GSource(wchar_t * data) { /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); return data; }
['/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111923/CWE690_NULL_Deref_From_Return__wchar_t_realloc_61b.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_61b_goodB2GSource
undefined8 CWE690_NULL_Deref_From_Return__wchar_t_realloc_61b_goodB2GSource(undefined8 param_1) { undefined8 uVar1; uVar1 = func_0x00400b20(param_1,0x50); return uVar1; }
['gcc']
9,194
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_63_bad() { wchar_t * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); CWE690_NULL_Deref_From_Return__wchar_t_realloc_63b_badSink(&data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111925/CWE690_NULL_Deref_From_Return__wchar_t_realloc_63a.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_63_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_63_bad(void) { undefined8 uStack_10; uStack_10 = 0; uStack_10 = func_0x00400b20(0,0x50); CWE690_NULL_Deref_From_Return__wchar_t_realloc_63b_badSink(&uStack_10); return; }
['gcc']
9,195
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_63_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111925/CWE690_NULL_Deref_From_Return__wchar_t_realloc_63a.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_63_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_63_good(void) { goodB2G(); return; }
['gcc']
9,196
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_63b_badSink(wchar_t * * dataPtr) { wchar_t * data = *dataPtr; /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ wcscpy(data, L"Initialize"); printWLine(data); free(data); }
['/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111925/CWE690_NULL_Deref_From_Return__wchar_t_realloc_63b.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_63b_badSink
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_63b_badSink(undefined8 *param_1) { undefined8 uVar1; uVar1 = *param_1; func_0x00400ad0(uVar1,&UNK_00401218); printWLine(uVar1); func_0x00400a60(uVar1); return; }
['gcc']
9,197
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_63b_goodB2GSink(wchar_t * * dataPtr) { wchar_t * data = *dataPtr; /* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */ if (data != NULL) { wcscpy(data, L"Initialize"); printWLine(data); free(data); } }
['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111925/CWE690_NULL_Deref_From_Return__wchar_t_realloc_63b.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_63b_goodB2GSink
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_63b_goodB2GSink(long *param_1) { long lVar1; lVar1 = *param_1; if (lVar1 != 0) { func_0x00400ad0(lVar1,&UNK_00401238); printWLine(lVar1); func_0x00400a60(lVar1); } return; }
['gcc']
9,198
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_64_bad() { wchar_t * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (wchar_t *)realloc(data, 20*sizeof(wchar_t)); CWE690_NULL_Deref_From_Return__wchar_t_realloc_64b_badSink(&data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */']
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111926/CWE690_NULL_Deref_From_Return__wchar_t_realloc_64a.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_64_bad
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_64_bad(void) { undefined8 uStack_10; uStack_10 = 0; uStack_10 = func_0x00400b20(0,0x50); CWE690_NULL_Deref_From_Return__wchar_t_realloc_64b_badSink(&uStack_10); return; }
['gcc']
9,199
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_64_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111926/CWE690_NULL_Deref_From_Return__wchar_t_realloc_64a.c
CWE690_NULL_Deref_From_Return__wchar_t_realloc_64_good
void CWE690_NULL_Deref_From_Return__wchar_t_realloc_64_good(void) { goodB2G(); return; }
['gcc']