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
8,600
void CWE690_NULL_Deref_From_Return__long_realloc_18_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111571/CWE690_NULL_Deref_From_Return__long_realloc_18.c
CWE690_NULL_Deref_From_Return__long_realloc_18_good
void CWE690_NULL_Deref_From_Return__long_realloc_18_good(void) { goodB2G(); return; }
['gcc']
8,601
void CWE690_NULL_Deref_From_Return__long_realloc_21_bad() { long * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (long *)realloc(data, 1*sizeof(long)); 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/111572/CWE690_NULL_Deref_From_Return__long_realloc_21.c
CWE690_NULL_Deref_From_Return__long_realloc_21_bad
void CWE690_NULL_Deref_From_Return__long_realloc_21_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ad0(0,8); badStatic = 1; badSink(uVar1); return; }
['gcc']
8,602
void CWE690_NULL_Deref_From_Return__long_realloc_21_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111572/CWE690_NULL_Deref_From_Return__long_realloc_21.c
CWE690_NULL_Deref_From_Return__long_realloc_21_good
void CWE690_NULL_Deref_From_Return__long_realloc_21_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
8,603
void CWE690_NULL_Deref_From_Return__long_realloc_22_bad() { long * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (long *)realloc(data, 1*sizeof(long)); CWE690_NULL_Deref_From_Return__long_realloc_22_badGlobal = 1; /* true */ CWE690_NULL_Deref_From_Return__long_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/111573/CWE690_NULL_Deref_From_Return__long_realloc_22a.c
CWE690_NULL_Deref_From_Return__long_realloc_22_bad
void CWE690_NULL_Deref_From_Return__long_realloc_22_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ad0(0,8); CWE690_NULL_Deref_From_Return__long_realloc_22_badGlobal = 1; CWE690_NULL_Deref_From_Return__long_realloc_22_badSink(uVar1); return; }
['gcc']
8,604
void CWE690_NULL_Deref_From_Return__long_realloc_22_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111573/CWE690_NULL_Deref_From_Return__long_realloc_22a.c
CWE690_NULL_Deref_From_Return__long_realloc_22_good
void CWE690_NULL_Deref_From_Return__long_realloc_22_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
8,605
void CWE690_NULL_Deref_From_Return__long_realloc_22_badSink(long * data) { if(CWE690_NULL_Deref_From_Return__long_realloc_22_badGlobal) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ data[0] = 5L; printLongLine(data[0]); 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/111573/CWE690_NULL_Deref_From_Return__long_realloc_22b.c
CWE690_NULL_Deref_From_Return__long_realloc_22_badSink
void CWE690_NULL_Deref_From_Return__long_realloc_22_badSink(undefined8 *param_1) { if (CWE690_NULL_Deref_From_Return__long_realloc_22_badGlobal != 0) { *param_1 = 5; printLongLine(*param_1); func_0x00400a20(param_1); } return; }
['gcc']
8,606
void CWE690_NULL_Deref_From_Return__long_realloc_22_goodB2G1Sink(long * data) { if(CWE690_NULL_Deref_From_Return__long_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) { data[0] = 5L; printLongLine(data[0]); 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/111573/CWE690_NULL_Deref_From_Return__long_realloc_22b.c
CWE690_NULL_Deref_From_Return__long_realloc_22_goodB2G1Sink
void CWE690_NULL_Deref_From_Return__long_realloc_22_goodB2G1Sink(undefined8 *param_1) { if (CWE690_NULL_Deref_From_Return__long_realloc_22_goodB2G1Global == 0) { if (param_1 != (undefined8 *)0x0) { *param_1 = 5; printLongLine(*param_1); func_0x00400a20(param_1); } } else { printLine(&UNK_00401284); } return; }
['gcc']
8,607
void CWE690_NULL_Deref_From_Return__long_realloc_22_goodB2G2Sink(long * data) { if(CWE690_NULL_Deref_From_Return__long_realloc_22_goodB2G2Global) { /* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */ if (data != NULL) { data[0] = 5L; printLongLine(data[0]); 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/111573/CWE690_NULL_Deref_From_Return__long_realloc_22b.c
CWE690_NULL_Deref_From_Return__long_realloc_22_goodB2G2Sink
void CWE690_NULL_Deref_From_Return__long_realloc_22_goodB2G2Sink(undefined8 *param_1) { if ((CWE690_NULL_Deref_From_Return__long_realloc_22_goodB2G2Global != 0) && (param_1 != (undefined8 *)0x0)) { *param_1 = 5; printLongLine(*param_1); func_0x00400a20(param_1); } return; }
['gcc']
8,608
void CWE690_NULL_Deref_From_Return__long_realloc_31_bad() { long * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (long *)realloc(data, 1*sizeof(long)); { long * dataCopy = data; long * data = dataCopy; /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ data[0] = 5L; printLongLine(data[0]); 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/111574/CWE690_NULL_Deref_From_Return__long_realloc_31.c
CWE690_NULL_Deref_From_Return__long_realloc_31_bad
void CWE690_NULL_Deref_From_Return__long_realloc_31_bad(void) { undefined8 *puVar1; puVar1 = (undefined8 *)func_0x00400ad0(0,8); *puVar1 = 5; printLongLine(*puVar1); func_0x00400a20(puVar1); return; }
['gcc']
8,609
void CWE690_NULL_Deref_From_Return__long_realloc_31_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111574/CWE690_NULL_Deref_From_Return__long_realloc_31.c
CWE690_NULL_Deref_From_Return__long_realloc_31_good
void CWE690_NULL_Deref_From_Return__long_realloc_31_good(void) { goodB2G(); return; }
['gcc']
8,610
void CWE690_NULL_Deref_From_Return__long_realloc_32_bad() { long * data; long * *dataPtr1 = &data; long * *dataPtr2 = &data; data = NULL; /* Initialize data */ { long * data = *dataPtr1; /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (long *)realloc(data, 1*sizeof(long)); *dataPtr1 = data; } { long * data = *dataPtr2; /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ data[0] = 5L; printLongLine(data[0]); 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/111575/CWE690_NULL_Deref_From_Return__long_realloc_32.c
CWE690_NULL_Deref_From_Return__long_realloc_32_bad
/* WARNING: Restarted to delay deadcode elimination for space: stack */ void CWE690_NULL_Deref_From_Return__long_realloc_32_bad(void) { undefined8 uStack_30; undefined8 *puStack_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_0x00400ad0(0,8); *puStack_10 = uStack_20; puStack_28 = (undefined8 *)*puStack_18; *puStack_28 = 5; printLongLine(*puStack_28); func_0x00400a20(puStack_28); return; }
['gcc']
8,611
void CWE690_NULL_Deref_From_Return__long_realloc_32_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111575/CWE690_NULL_Deref_From_Return__long_realloc_32.c
CWE690_NULL_Deref_From_Return__long_realloc_32_good
void CWE690_NULL_Deref_From_Return__long_realloc_32_good(void) { goodB2G(); return; }
['gcc']
8,612
void CWE690_NULL_Deref_From_Return__long_realloc_34_bad() { long * data; CWE690_NULL_Deref_From_Return__long_realloc_34_unionType myUnion; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (long *)realloc(data, 1*sizeof(long)); myUnion.unionFirst = data; { long * data = myUnion.unionSecond; /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ data[0] = 5L; printLongLine(data[0]); 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/111577/CWE690_NULL_Deref_From_Return__long_realloc_34.c
CWE690_NULL_Deref_From_Return__long_realloc_34_bad
void CWE690_NULL_Deref_From_Return__long_realloc_34_bad(void) { undefined8 *puVar1; puVar1 = (undefined8 *)func_0x00400ad0(0,8); *puVar1 = 5; printLongLine(*puVar1); func_0x00400a20(puVar1); return; }
['gcc']
8,613
void CWE690_NULL_Deref_From_Return__long_realloc_34_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111577/CWE690_NULL_Deref_From_Return__long_realloc_34.c
CWE690_NULL_Deref_From_Return__long_realloc_34_good
void CWE690_NULL_Deref_From_Return__long_realloc_34_good(void) { goodB2G(); return; }
['gcc']
8,614
void CWE690_NULL_Deref_From_Return__long_realloc_41_bad() { long * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (long *)realloc(data, 1*sizeof(long)); 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/111578/CWE690_NULL_Deref_From_Return__long_realloc_41.c
CWE690_NULL_Deref_From_Return__long_realloc_41_bad
void CWE690_NULL_Deref_From_Return__long_realloc_41_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ad0(0,8); badSink(uVar1); return; }
['gcc']
8,615
void CWE690_NULL_Deref_From_Return__long_realloc_41_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111578/CWE690_NULL_Deref_From_Return__long_realloc_41.c
CWE690_NULL_Deref_From_Return__long_realloc_41_good
void CWE690_NULL_Deref_From_Return__long_realloc_41_good(void) { goodB2G(); return; }
['gcc']
8,616
void CWE690_NULL_Deref_From_Return__long_realloc_42_bad() { long * data; data = NULL; /* Initialize data */ data = badSource(data); /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ data[0] = 5L; printLongLine(data[0]); 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/111579/CWE690_NULL_Deref_From_Return__long_realloc_42.c
CWE690_NULL_Deref_From_Return__long_realloc_42_bad
void CWE690_NULL_Deref_From_Return__long_realloc_42_bad(void) { undefined8 *puVar1; puVar1 = (undefined8 *)badSource(0); *puVar1 = 5; printLongLine(*puVar1); func_0x00400a20(puVar1); return; }
['gcc']
8,617
void CWE690_NULL_Deref_From_Return__long_realloc_42_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111579/CWE690_NULL_Deref_From_Return__long_realloc_42.c
CWE690_NULL_Deref_From_Return__long_realloc_42_good
void CWE690_NULL_Deref_From_Return__long_realloc_42_good(void) { goodB2G(); return; }
['gcc']
8,618
void CWE690_NULL_Deref_From_Return__long_realloc_51_bad() { long * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (long *)realloc(data, 1*sizeof(long)); CWE690_NULL_Deref_From_Return__long_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/111583/CWE690_NULL_Deref_From_Return__long_realloc_51a.c
CWE690_NULL_Deref_From_Return__long_realloc_51_bad
void CWE690_NULL_Deref_From_Return__long_realloc_51_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ad0(0,8); CWE690_NULL_Deref_From_Return__long_realloc_51b_badSink(uVar1); return; }
['gcc']
8,619
void CWE690_NULL_Deref_From_Return__long_realloc_51_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111583/CWE690_NULL_Deref_From_Return__long_realloc_51a.c
CWE690_NULL_Deref_From_Return__long_realloc_51_good
void CWE690_NULL_Deref_From_Return__long_realloc_51_good(void) { goodB2G(); return; }
['gcc']
8,620
void CWE690_NULL_Deref_From_Return__long_realloc_51b_badSink(long * data) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ data[0] = 5L; printLongLine(data[0]); 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/111583/CWE690_NULL_Deref_From_Return__long_realloc_51b.c
CWE690_NULL_Deref_From_Return__long_realloc_51b_badSink
void CWE690_NULL_Deref_From_Return__long_realloc_51b_badSink(undefined8 *param_1) { *param_1 = 5; printLongLine(*param_1); func_0x00400a20(param_1); return; }
['gcc']
8,621
void CWE690_NULL_Deref_From_Return__long_realloc_51b_goodB2GSink(long * data) { /* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */ if (data != NULL) { data[0] = 5L; printLongLine(data[0]); 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/111583/CWE690_NULL_Deref_From_Return__long_realloc_51b.c
CWE690_NULL_Deref_From_Return__long_realloc_51b_goodB2GSink
void CWE690_NULL_Deref_From_Return__long_realloc_51b_goodB2GSink(undefined8 *param_1) { if (param_1 != (undefined8 *)0x0) { *param_1 = 5; printLongLine(*param_1); func_0x00400a20(param_1); } return; }
['gcc']
8,622
void CWE690_NULL_Deref_From_Return__long_realloc_52_bad() { long * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (long *)realloc(data, 1*sizeof(long)); CWE690_NULL_Deref_From_Return__long_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/111584/CWE690_NULL_Deref_From_Return__long_realloc_52a.c
CWE690_NULL_Deref_From_Return__long_realloc_52_bad
void CWE690_NULL_Deref_From_Return__long_realloc_52_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ad0(0,8); CWE690_NULL_Deref_From_Return__long_realloc_52b_badSink(uVar1); return; }
['gcc']
8,623
void CWE690_NULL_Deref_From_Return__long_realloc_52_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111584/CWE690_NULL_Deref_From_Return__long_realloc_52a.c
CWE690_NULL_Deref_From_Return__long_realloc_52_good
void CWE690_NULL_Deref_From_Return__long_realloc_52_good(void) { goodB2G(); return; }
['gcc']
8,624
void CWE690_NULL_Deref_From_Return__long_realloc_52b_badSink(long * data) { CWE690_NULL_Deref_From_Return__long_realloc_52c_badSink(data); }
[]
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111584/CWE690_NULL_Deref_From_Return__long_realloc_52b.c
CWE690_NULL_Deref_From_Return__long_realloc_52b_badSink
void CWE690_NULL_Deref_From_Return__long_realloc_52b_badSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__long_realloc_52c_badSink(param_1); return; }
['gcc']
8,625
void CWE690_NULL_Deref_From_Return__long_realloc_52b_goodB2GSink(long * data) { CWE690_NULL_Deref_From_Return__long_realloc_52c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111584/CWE690_NULL_Deref_From_Return__long_realloc_52b.c
CWE690_NULL_Deref_From_Return__long_realloc_52b_goodB2GSink
void CWE690_NULL_Deref_From_Return__long_realloc_52b_goodB2GSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__long_realloc_52c_goodB2GSink(param_1); return; }
['gcc']
8,626
void CWE690_NULL_Deref_From_Return__long_realloc_52c_badSink(long * data) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ data[0] = 5L; printLongLine(data[0]); 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/111584/CWE690_NULL_Deref_From_Return__long_realloc_52c.c
CWE690_NULL_Deref_From_Return__long_realloc_52c_badSink
void CWE690_NULL_Deref_From_Return__long_realloc_52c_badSink(undefined8 *param_1) { *param_1 = 5; printLongLine(*param_1); func_0x00400a20(param_1); return; }
['gcc']
8,627
void CWE690_NULL_Deref_From_Return__long_realloc_52c_goodB2GSink(long * data) { /* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */ if (data != NULL) { data[0] = 5L; printLongLine(data[0]); 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/111584/CWE690_NULL_Deref_From_Return__long_realloc_52c.c
CWE690_NULL_Deref_From_Return__long_realloc_52c_goodB2GSink
void CWE690_NULL_Deref_From_Return__long_realloc_52c_goodB2GSink(undefined8 *param_1) { if (param_1 != (undefined8 *)0x0) { *param_1 = 5; printLongLine(*param_1); func_0x00400a20(param_1); } return; }
['gcc']
8,628
void CWE690_NULL_Deref_From_Return__long_realloc_53_bad() { long * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (long *)realloc(data, 1*sizeof(long)); CWE690_NULL_Deref_From_Return__long_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/111585/CWE690_NULL_Deref_From_Return__long_realloc_53a.c
CWE690_NULL_Deref_From_Return__long_realloc_53_bad
void CWE690_NULL_Deref_From_Return__long_realloc_53_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ad0(0,8); CWE690_NULL_Deref_From_Return__long_realloc_53b_badSink(uVar1); return; }
['gcc']
8,629
void CWE690_NULL_Deref_From_Return__long_realloc_53_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111585/CWE690_NULL_Deref_From_Return__long_realloc_53a.c
CWE690_NULL_Deref_From_Return__long_realloc_53_good
void CWE690_NULL_Deref_From_Return__long_realloc_53_good(void) { goodB2G(); return; }
['gcc']
8,630
void CWE690_NULL_Deref_From_Return__long_realloc_53b_badSink(long * data) { CWE690_NULL_Deref_From_Return__long_realloc_53c_badSink(data); }
[]
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111585/CWE690_NULL_Deref_From_Return__long_realloc_53b.c
CWE690_NULL_Deref_From_Return__long_realloc_53b_badSink
void CWE690_NULL_Deref_From_Return__long_realloc_53b_badSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__long_realloc_53c_badSink(param_1); return; }
['gcc']
8,631
void CWE690_NULL_Deref_From_Return__long_realloc_53b_goodB2GSink(long * data) { CWE690_NULL_Deref_From_Return__long_realloc_53c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111585/CWE690_NULL_Deref_From_Return__long_realloc_53b.c
CWE690_NULL_Deref_From_Return__long_realloc_53b_goodB2GSink
void CWE690_NULL_Deref_From_Return__long_realloc_53b_goodB2GSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__long_realloc_53c_goodB2GSink(param_1); return; }
['gcc']
8,632
void CWE690_NULL_Deref_From_Return__long_realloc_53c_badSink(long * data) { CWE690_NULL_Deref_From_Return__long_realloc_53d_badSink(data); }
[]
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111585/CWE690_NULL_Deref_From_Return__long_realloc_53c.c
CWE690_NULL_Deref_From_Return__long_realloc_53c_badSink
void CWE690_NULL_Deref_From_Return__long_realloc_53c_badSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__long_realloc_53d_badSink(param_1); return; }
['gcc']
8,633
void CWE690_NULL_Deref_From_Return__long_realloc_53c_goodB2GSink(long * data) { CWE690_NULL_Deref_From_Return__long_realloc_53d_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111585/CWE690_NULL_Deref_From_Return__long_realloc_53c.c
CWE690_NULL_Deref_From_Return__long_realloc_53c_goodB2GSink
void CWE690_NULL_Deref_From_Return__long_realloc_53c_goodB2GSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__long_realloc_53d_goodB2GSink(param_1); return; }
['gcc']
8,634
void CWE690_NULL_Deref_From_Return__long_realloc_53d_badSink(long * data) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ data[0] = 5L; printLongLine(data[0]); 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/111585/CWE690_NULL_Deref_From_Return__long_realloc_53d.c
CWE690_NULL_Deref_From_Return__long_realloc_53d_badSink
void CWE690_NULL_Deref_From_Return__long_realloc_53d_badSink(undefined8 *param_1) { *param_1 = 5; printLongLine(*param_1); func_0x00400a20(param_1); return; }
['gcc']
8,635
void CWE690_NULL_Deref_From_Return__long_realloc_53d_goodB2GSink(long * data) { /* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */ if (data != NULL) { data[0] = 5L; printLongLine(data[0]); 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/111585/CWE690_NULL_Deref_From_Return__long_realloc_53d.c
CWE690_NULL_Deref_From_Return__long_realloc_53d_goodB2GSink
void CWE690_NULL_Deref_From_Return__long_realloc_53d_goodB2GSink(undefined8 *param_1) { if (param_1 != (undefined8 *)0x0) { *param_1 = 5; printLongLine(*param_1); func_0x00400a20(param_1); } return; }
['gcc']
8,636
void CWE690_NULL_Deref_From_Return__long_realloc_54_bad() { long * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (long *)realloc(data, 1*sizeof(long)); CWE690_NULL_Deref_From_Return__long_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/111586/CWE690_NULL_Deref_From_Return__long_realloc_54a.c
CWE690_NULL_Deref_From_Return__long_realloc_54_bad
void CWE690_NULL_Deref_From_Return__long_realloc_54_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ad0(0,8); CWE690_NULL_Deref_From_Return__long_realloc_54b_badSink(uVar1); return; }
['gcc']
8,637
void CWE690_NULL_Deref_From_Return__long_realloc_54_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111586/CWE690_NULL_Deref_From_Return__long_realloc_54a.c
CWE690_NULL_Deref_From_Return__long_realloc_54_good
void CWE690_NULL_Deref_From_Return__long_realloc_54_good(void) { goodB2G(); return; }
['gcc']
8,638
void CWE690_NULL_Deref_From_Return__long_realloc_54b_badSink(long * data) { CWE690_NULL_Deref_From_Return__long_realloc_54c_badSink(data); }
[]
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111586/CWE690_NULL_Deref_From_Return__long_realloc_54b.c
CWE690_NULL_Deref_From_Return__long_realloc_54b_badSink
void CWE690_NULL_Deref_From_Return__long_realloc_54b_badSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__long_realloc_54c_badSink(param_1); return; }
['gcc']
8,639
void CWE690_NULL_Deref_From_Return__long_realloc_54b_goodB2GSink(long * data) { CWE690_NULL_Deref_From_Return__long_realloc_54c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111586/CWE690_NULL_Deref_From_Return__long_realloc_54b.c
CWE690_NULL_Deref_From_Return__long_realloc_54b_goodB2GSink
void CWE690_NULL_Deref_From_Return__long_realloc_54b_goodB2GSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__long_realloc_54c_goodB2GSink(param_1); return; }
['gcc']
8,640
void CWE690_NULL_Deref_From_Return__long_realloc_54c_badSink(long * data) { CWE690_NULL_Deref_From_Return__long_realloc_54d_badSink(data); }
[]
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111586/CWE690_NULL_Deref_From_Return__long_realloc_54c.c
CWE690_NULL_Deref_From_Return__long_realloc_54c_badSink
void CWE690_NULL_Deref_From_Return__long_realloc_54c_badSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__long_realloc_54d_badSink(param_1); return; }
['gcc']
8,641
void CWE690_NULL_Deref_From_Return__long_realloc_54c_goodB2GSink(long * data) { CWE690_NULL_Deref_From_Return__long_realloc_54d_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111586/CWE690_NULL_Deref_From_Return__long_realloc_54c.c
CWE690_NULL_Deref_From_Return__long_realloc_54c_goodB2GSink
void CWE690_NULL_Deref_From_Return__long_realloc_54c_goodB2GSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__long_realloc_54d_goodB2GSink(param_1); return; }
['gcc']
8,642
void CWE690_NULL_Deref_From_Return__long_realloc_54d_badSink(long * data) { CWE690_NULL_Deref_From_Return__long_realloc_54e_badSink(data); }
[]
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111586/CWE690_NULL_Deref_From_Return__long_realloc_54d.c
CWE690_NULL_Deref_From_Return__long_realloc_54d_badSink
void CWE690_NULL_Deref_From_Return__long_realloc_54d_badSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__long_realloc_54e_badSink(param_1); return; }
['gcc']
8,643
void CWE690_NULL_Deref_From_Return__long_realloc_54d_goodB2GSink(long * data) { CWE690_NULL_Deref_From_Return__long_realloc_54e_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111586/CWE690_NULL_Deref_From_Return__long_realloc_54d.c
CWE690_NULL_Deref_From_Return__long_realloc_54d_goodB2GSink
void CWE690_NULL_Deref_From_Return__long_realloc_54d_goodB2GSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__long_realloc_54e_goodB2GSink(param_1); return; }
['gcc']
8,644
void CWE690_NULL_Deref_From_Return__long_realloc_54e_badSink(long * data) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ data[0] = 5L; printLongLine(data[0]); 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/111586/CWE690_NULL_Deref_From_Return__long_realloc_54e.c
CWE690_NULL_Deref_From_Return__long_realloc_54e_badSink
void CWE690_NULL_Deref_From_Return__long_realloc_54e_badSink(undefined8 *param_1) { *param_1 = 5; printLongLine(*param_1); func_0x00400a20(param_1); return; }
['gcc']
8,645
void CWE690_NULL_Deref_From_Return__long_realloc_54e_goodB2GSink(long * data) { /* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */ if (data != NULL) { data[0] = 5L; printLongLine(data[0]); 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/111586/CWE690_NULL_Deref_From_Return__long_realloc_54e.c
CWE690_NULL_Deref_From_Return__long_realloc_54e_goodB2GSink
void CWE690_NULL_Deref_From_Return__long_realloc_54e_goodB2GSink(undefined8 *param_1) { if (param_1 != (undefined8 *)0x0) { *param_1 = 5; printLongLine(*param_1); func_0x00400a20(param_1); } return; }
['gcc']
8,646
void CWE690_NULL_Deref_From_Return__long_realloc_61_bad() { long * data; data = NULL; /* Initialize data */ data = CWE690_NULL_Deref_From_Return__long_realloc_61b_badSource(data); /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ data[0] = 5L; printLongLine(data[0]); 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/111587/CWE690_NULL_Deref_From_Return__long_realloc_61a.c
CWE690_NULL_Deref_From_Return__long_realloc_61_bad
void CWE690_NULL_Deref_From_Return__long_realloc_61_bad(void) { undefined8 *puVar1; puVar1 = (undefined8 *)CWE690_NULL_Deref_From_Return__long_realloc_61b_badSource(0); *puVar1 = 5; printLongLine(*puVar1); func_0x00400a20(puVar1); return; }
['gcc']
8,647
void CWE690_NULL_Deref_From_Return__long_realloc_61_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111587/CWE690_NULL_Deref_From_Return__long_realloc_61a.c
CWE690_NULL_Deref_From_Return__long_realloc_61_good
void CWE690_NULL_Deref_From_Return__long_realloc_61_good(void) { goodB2G(); return; }
['gcc']
8,648
long * CWE690_NULL_Deref_From_Return__long_realloc_61b_badSource(long * data) { /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (long *)realloc(data, 1*sizeof(long)); 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/111587/CWE690_NULL_Deref_From_Return__long_realloc_61b.c
CWE690_NULL_Deref_From_Return__long_realloc_61b_badSource
undefined8 CWE690_NULL_Deref_From_Return__long_realloc_61b_badSource(undefined8 param_1) { undefined8 uVar1; uVar1 = func_0x00400ad0(param_1,8); return uVar1; }
['gcc']
8,649
long * CWE690_NULL_Deref_From_Return__long_realloc_61b_goodB2GSource(long * data) { /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (long *)realloc(data, 1*sizeof(long)); 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/111587/CWE690_NULL_Deref_From_Return__long_realloc_61b.c
CWE690_NULL_Deref_From_Return__long_realloc_61b_goodB2GSource
undefined8 CWE690_NULL_Deref_From_Return__long_realloc_61b_goodB2GSource(undefined8 param_1) { undefined8 uVar1; uVar1 = func_0x00400ad0(param_1,8); return uVar1; }
['gcc']
8,650
void CWE690_NULL_Deref_From_Return__long_realloc_63_bad() { long * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (long *)realloc(data, 1*sizeof(long)); CWE690_NULL_Deref_From_Return__long_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/111589/CWE690_NULL_Deref_From_Return__long_realloc_63a.c
CWE690_NULL_Deref_From_Return__long_realloc_63_bad
void CWE690_NULL_Deref_From_Return__long_realloc_63_bad(void) { undefined8 uStack_10; uStack_10 = 0; uStack_10 = func_0x00400ad0(0,8); CWE690_NULL_Deref_From_Return__long_realloc_63b_badSink(&uStack_10); return; }
['gcc']
8,651
void CWE690_NULL_Deref_From_Return__long_realloc_63_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111589/CWE690_NULL_Deref_From_Return__long_realloc_63a.c
CWE690_NULL_Deref_From_Return__long_realloc_63_good
void CWE690_NULL_Deref_From_Return__long_realloc_63_good(void) { goodB2G(); return; }
['gcc']
8,652
void CWE690_NULL_Deref_From_Return__long_realloc_63b_badSink(long * * dataPtr) { long * data = *dataPtr; /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ data[0] = 5L; printLongLine(data[0]); 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/111589/CWE690_NULL_Deref_From_Return__long_realloc_63b.c
CWE690_NULL_Deref_From_Return__long_realloc_63b_badSink
void CWE690_NULL_Deref_From_Return__long_realloc_63b_badSink(undefined8 *param_1) { param_1 = (undefined8 *)*param_1; *param_1 = 5; printLongLine(*param_1); func_0x00400a20(param_1); return; }
['gcc']
8,653
void CWE690_NULL_Deref_From_Return__long_realloc_63b_goodB2GSink(long * * dataPtr) { long * data = *dataPtr; /* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */ if (data != NULL) { data[0] = 5L; printLongLine(data[0]); 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/111589/CWE690_NULL_Deref_From_Return__long_realloc_63b.c
CWE690_NULL_Deref_From_Return__long_realloc_63b_goodB2GSink
void CWE690_NULL_Deref_From_Return__long_realloc_63b_goodB2GSink(undefined8 *param_1) { param_1 = (undefined8 *)*param_1; if (param_1 != (undefined8 *)0x0) { *param_1 = 5; printLongLine(*param_1); func_0x00400a20(param_1); } return; }
['gcc']
8,654
void CWE690_NULL_Deref_From_Return__long_realloc_64_bad() { long * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (long *)realloc(data, 1*sizeof(long)); CWE690_NULL_Deref_From_Return__long_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/111590/CWE690_NULL_Deref_From_Return__long_realloc_64a.c
CWE690_NULL_Deref_From_Return__long_realloc_64_bad
void CWE690_NULL_Deref_From_Return__long_realloc_64_bad(void) { undefined8 uStack_10; uStack_10 = 0; uStack_10 = func_0x00400ad0(0,8); CWE690_NULL_Deref_From_Return__long_realloc_64b_badSink(&uStack_10); return; }
['gcc']
8,655
void CWE690_NULL_Deref_From_Return__long_realloc_64_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111590/CWE690_NULL_Deref_From_Return__long_realloc_64a.c
CWE690_NULL_Deref_From_Return__long_realloc_64_good
void CWE690_NULL_Deref_From_Return__long_realloc_64_good(void) { goodB2G(); return; }
['gcc']
8,656
void CWE690_NULL_Deref_From_Return__long_realloc_64b_badSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ long * * dataPtr = (long * *)dataVoidPtr; /* dereference dataPtr into data */ long * data = (*dataPtr); /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ data[0] = 5L; printLongLine(data[0]); free(data); }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into 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/111590/CWE690_NULL_Deref_From_Return__long_realloc_64b.c
CWE690_NULL_Deref_From_Return__long_realloc_64b_badSink
void CWE690_NULL_Deref_From_Return__long_realloc_64b_badSink(undefined8 *param_1) { param_1 = (undefined8 *)*param_1; *param_1 = 5; printLongLine(*param_1); func_0x00400a20(param_1); return; }
['gcc']
8,657
void CWE690_NULL_Deref_From_Return__long_realloc_64b_goodB2GSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ long * * dataPtr = (long * *)dataVoidPtr; /* dereference dataPtr into data */ long * data = (*dataPtr); /* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */ if (data != NULL) { data[0] = 5L; printLongLine(data[0]); 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/111590/CWE690_NULL_Deref_From_Return__long_realloc_64b.c
CWE690_NULL_Deref_From_Return__long_realloc_64b_goodB2GSink
void CWE690_NULL_Deref_From_Return__long_realloc_64b_goodB2GSink(undefined8 *param_1) { param_1 = (undefined8 *)*param_1; if (param_1 != (undefined8 *)0x0) { *param_1 = 5; printLongLine(*param_1); func_0x00400a20(param_1); } return; }
['gcc']
8,658
void CWE690_NULL_Deref_From_Return__long_realloc_66_bad() { long * data; long * dataArray[5]; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (long *)realloc(data, 1*sizeof(long)); /* put data in array */ dataArray[2] = data; CWE690_NULL_Deref_From_Return__long_realloc_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/111592/CWE690_NULL_Deref_From_Return__long_realloc_66a.c
CWE690_NULL_Deref_From_Return__long_realloc_66_bad
void CWE690_NULL_Deref_From_Return__long_realloc_66_bad(void) { undefined auStack_38 [16]; undefined8 uStack_28; undefined8 uStack_10; uStack_10 = 0; uStack_28 = func_0x00400ad0(0,8); uStack_10 = uStack_28; CWE690_NULL_Deref_From_Return__long_realloc_66b_badSink(auStack_38); return; }
['gcc']
8,659
void CWE690_NULL_Deref_From_Return__long_realloc_66_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111592/CWE690_NULL_Deref_From_Return__long_realloc_66a.c
CWE690_NULL_Deref_From_Return__long_realloc_66_good
void CWE690_NULL_Deref_From_Return__long_realloc_66_good(void) { goodB2G(); return; }
['gcc']
8,660
void CWE690_NULL_Deref_From_Return__long_realloc_66b_badSink(long * dataArray[]) { /* copy data out of dataArray */ long * data = dataArray[2]; /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ data[0] = 5L; printLongLine(data[0]); 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/111592/CWE690_NULL_Deref_From_Return__long_realloc_66b.c
CWE690_NULL_Deref_From_Return__long_realloc_66b_badSink
void CWE690_NULL_Deref_From_Return__long_realloc_66b_badSink(long param_1) { undefined8 *puVar1; puVar1 = *(undefined8 **)(param_1 + 0x10); *puVar1 = 5; printLongLine(*puVar1); func_0x00400a20(puVar1); return; }
['gcc']
8,661
void CWE690_NULL_Deref_From_Return__long_realloc_66b_goodB2GSink(long * dataArray[]) { long * data = dataArray[2]; /* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */ if (data != NULL) { data[0] = 5L; printLongLine(data[0]); 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/111592/CWE690_NULL_Deref_From_Return__long_realloc_66b.c
CWE690_NULL_Deref_From_Return__long_realloc_66b_goodB2GSink
void CWE690_NULL_Deref_From_Return__long_realloc_66b_goodB2GSink(long param_1) { undefined8 *puVar1; puVar1 = *(undefined8 **)(param_1 + 0x10); if (puVar1 != (undefined8 *)0x0) { *puVar1 = 5; printLongLine(*puVar1); func_0x00400a20(puVar1); } return; }
['gcc']
8,662
void CWE690_NULL_Deref_From_Return__long_realloc_67_bad() { long * data; CWE690_NULL_Deref_From_Return__long_realloc_67_structType myStruct; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (long *)realloc(data, 1*sizeof(long)); myStruct.structFirst = data; CWE690_NULL_Deref_From_Return__long_realloc_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/111593/CWE690_NULL_Deref_From_Return__long_realloc_67a.c
CWE690_NULL_Deref_From_Return__long_realloc_67_bad
void CWE690_NULL_Deref_From_Return__long_realloc_67_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ad0(0,8); CWE690_NULL_Deref_From_Return__long_realloc_67b_badSink(uVar1); return; }
['gcc']
8,663
void CWE690_NULL_Deref_From_Return__long_realloc_67_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111593/CWE690_NULL_Deref_From_Return__long_realloc_67a.c
CWE690_NULL_Deref_From_Return__long_realloc_67_good
void CWE690_NULL_Deref_From_Return__long_realloc_67_good(void) { goodB2G(); return; }
['gcc']
8,664
void CWE690_NULL_Deref_From_Return__long_realloc_67b_badSink(CWE690_NULL_Deref_From_Return__long_realloc_67_structType myStruct) { long * data = myStruct.structFirst; /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ data[0] = 5L; printLongLine(data[0]); 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/111593/CWE690_NULL_Deref_From_Return__long_realloc_67b.c
CWE690_NULL_Deref_From_Return__long_realloc_67b_badSink
void CWE690_NULL_Deref_From_Return__long_realloc_67b_badSink(undefined8 *param_1) { *param_1 = 5; printLongLine(*param_1); func_0x00400a20(param_1); return; }
['gcc']
8,665
void CWE690_NULL_Deref_From_Return__long_realloc_67b_goodB2GSink(CWE690_NULL_Deref_From_Return__long_realloc_67_structType myStruct) { long * data = myStruct.structFirst; /* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */ if (data != NULL) { data[0] = 5L; printLongLine(data[0]); 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/111593/CWE690_NULL_Deref_From_Return__long_realloc_67b.c
CWE690_NULL_Deref_From_Return__long_realloc_67b_goodB2GSink
void CWE690_NULL_Deref_From_Return__long_realloc_67b_goodB2GSink(undefined8 *param_1) { if (param_1 != (undefined8 *)0x0) { *param_1 = 5; printLongLine(*param_1); func_0x00400a20(param_1); } return; }
['gcc']
8,666
void CWE690_NULL_Deref_From_Return__struct_calloc_01_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)calloc(1, sizeof(twoIntsStruct)); /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ data[0].intOne = 1; data[0].intTwo = 1; printStructLine(&data[0]); 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/111602/CWE690_NULL_Deref_From_Return__struct_calloc_01.c
CWE690_NULL_Deref_From_Return__struct_calloc_01_bad
void CWE690_NULL_Deref_From_Return__struct_calloc_01_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a90(1,8); *puVar1 = 1; puVar1[1] = 1; printStructLine(puVar1); func_0x00400a20(puVar1); return; }
['gcc']
8,667
void CWE690_NULL_Deref_From_Return__struct_calloc_01_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111602/CWE690_NULL_Deref_From_Return__struct_calloc_01.c
CWE690_NULL_Deref_From_Return__struct_calloc_01_good
void CWE690_NULL_Deref_From_Return__struct_calloc_01_good(void) { goodB2G(); return; }
['gcc']
8,668
void CWE690_NULL_Deref_From_Return__struct_calloc_04_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)calloc(1, sizeof(twoIntsStruct)); if(STATIC_CONST_TRUE) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ data[0].intOne = 1; data[0].intTwo = 1; printStructLine(&data[0]); 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/111605/CWE690_NULL_Deref_From_Return__struct_calloc_04.c
CWE690_NULL_Deref_From_Return__struct_calloc_04_bad
void CWE690_NULL_Deref_From_Return__struct_calloc_04_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a90(1,8); *puVar1 = 1; puVar1[1] = 1; printStructLine(puVar1); func_0x00400a20(puVar1); return; }
['gcc']
8,669
void CWE690_NULL_Deref_From_Return__struct_calloc_04_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111605/CWE690_NULL_Deref_From_Return__struct_calloc_04.c
CWE690_NULL_Deref_From_Return__struct_calloc_04_good
void CWE690_NULL_Deref_From_Return__struct_calloc_04_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
8,670
void CWE690_NULL_Deref_From_Return__struct_calloc_06_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)calloc(1, sizeof(twoIntsStruct)); if(STATIC_CONST_FIVE==5) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ data[0].intOne = 1; data[0].intTwo = 1; printStructLine(&data[0]); 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/111607/CWE690_NULL_Deref_From_Return__struct_calloc_06.c
CWE690_NULL_Deref_From_Return__struct_calloc_06_bad
void CWE690_NULL_Deref_From_Return__struct_calloc_06_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a90(1,8); *puVar1 = 1; puVar1[1] = 1; printStructLine(puVar1); func_0x00400a20(puVar1); return; }
['gcc']
8,671
void CWE690_NULL_Deref_From_Return__struct_calloc_06_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111607/CWE690_NULL_Deref_From_Return__struct_calloc_06.c
CWE690_NULL_Deref_From_Return__struct_calloc_06_good
void CWE690_NULL_Deref_From_Return__struct_calloc_06_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
8,672
void CWE690_NULL_Deref_From_Return__struct_calloc_08_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)calloc(1, sizeof(twoIntsStruct)); if(staticReturnsTrue()) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ data[0].intOne = 1; data[0].intTwo = 1; printStructLine(&data[0]); 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/111609/CWE690_NULL_Deref_From_Return__struct_calloc_08.c
CWE690_NULL_Deref_From_Return__struct_calloc_08_bad
void CWE690_NULL_Deref_From_Return__struct_calloc_08_bad(void) { int iVar1; undefined4 *puVar2; puVar2 = (undefined4 *)func_0x00400a90(1,8); iVar1 = staticReturnsTrue(); if (iVar1 != 0) { *puVar2 = 1; puVar2[1] = 1; printStructLine(puVar2); func_0x00400a20(puVar2); } return; }
['gcc']
8,673
void CWE690_NULL_Deref_From_Return__struct_calloc_08_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111609/CWE690_NULL_Deref_From_Return__struct_calloc_08.c
CWE690_NULL_Deref_From_Return__struct_calloc_08_good
void CWE690_NULL_Deref_From_Return__struct_calloc_08_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
8,674
void CWE690_NULL_Deref_From_Return__struct_calloc_11_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)calloc(1, sizeof(twoIntsStruct)); if(globalReturnsTrue()) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ data[0].intOne = 1; data[0].intTwo = 1; printStructLine(&data[0]); 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/111612/CWE690_NULL_Deref_From_Return__struct_calloc_11.c
CWE690_NULL_Deref_From_Return__struct_calloc_11_bad
void CWE690_NULL_Deref_From_Return__struct_calloc_11_bad(void) { int iVar1; undefined4 *puVar2; puVar2 = (undefined4 *)func_0x00400a90(1,8); iVar1 = globalReturnsTrue(); if (iVar1 != 0) { *puVar2 = 1; puVar2[1] = 1; printStructLine(puVar2); func_0x00400a20(puVar2); } return; }
['gcc']
8,675
void CWE690_NULL_Deref_From_Return__struct_calloc_11_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111612/CWE690_NULL_Deref_From_Return__struct_calloc_11.c
CWE690_NULL_Deref_From_Return__struct_calloc_11_good
void CWE690_NULL_Deref_From_Return__struct_calloc_11_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
8,676
void CWE690_NULL_Deref_From_Return__struct_calloc_12_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)calloc(1, sizeof(twoIntsStruct)); if(globalReturnsTrueOrFalse()) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ data[0].intOne = 1; data[0].intTwo = 1; printStructLine(&data[0]); free(data); } else { /* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */ if (data != NULL) { data[0].intOne = 1; data[0].intTwo = 1; printStructLine(&data[0]); 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/111613/CWE690_NULL_Deref_From_Return__struct_calloc_12.c
CWE690_NULL_Deref_From_Return__struct_calloc_12_bad
void CWE690_NULL_Deref_From_Return__struct_calloc_12_bad(void) { int iVar1; undefined4 *puVar2; puVar2 = (undefined4 *)func_0x00400a90(1,8); iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { if (puVar2 != (undefined4 *)0x0) { *puVar2 = 1; puVar2[1] = 1; printStructLine(puVar2); func_0x00400a20(puVar2); } } else { *puVar2 = 1; puVar2[1] = 1; printStructLine(puVar2); func_0x00400a20(puVar2); } return; }
['gcc']
8,677
void CWE690_NULL_Deref_From_Return__struct_calloc_12_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111613/CWE690_NULL_Deref_From_Return__struct_calloc_12.c
CWE690_NULL_Deref_From_Return__struct_calloc_12_good
void CWE690_NULL_Deref_From_Return__struct_calloc_12_good(void) { goodB2G(); return; }
['gcc']
8,678
void CWE690_NULL_Deref_From_Return__struct_calloc_13_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)calloc(1, sizeof(twoIntsStruct)); if(GLOBAL_CONST_FIVE==5) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ data[0].intOne = 1; data[0].intTwo = 1; printStructLine(&data[0]); 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/111614/CWE690_NULL_Deref_From_Return__struct_calloc_13.c
CWE690_NULL_Deref_From_Return__struct_calloc_13_bad
void CWE690_NULL_Deref_From_Return__struct_calloc_13_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a90(1,8); if (GLOBAL_CONST_FIVE == 5) { *puVar1 = 1; puVar1[1] = 1; printStructLine(puVar1); func_0x00400a20(puVar1); } return; }
['gcc']
8,679
void CWE690_NULL_Deref_From_Return__struct_calloc_13_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111614/CWE690_NULL_Deref_From_Return__struct_calloc_13.c
CWE690_NULL_Deref_From_Return__struct_calloc_13_good
void CWE690_NULL_Deref_From_Return__struct_calloc_13_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
8,680
void CWE690_NULL_Deref_From_Return__struct_calloc_15_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)calloc(1, sizeof(twoIntsStruct)); switch(6) { case 6: /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ data[0].intOne = 1; data[0].intTwo = 1; printStructLine(&data[0]); 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/111616/CWE690_NULL_Deref_From_Return__struct_calloc_15.c
CWE690_NULL_Deref_From_Return__struct_calloc_15_bad
void CWE690_NULL_Deref_From_Return__struct_calloc_15_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a90(1,8); *puVar1 = 1; puVar1[1] = 1; printStructLine(puVar1); func_0x00400a20(puVar1); return; }
['gcc']
8,681
void CWE690_NULL_Deref_From_Return__struct_calloc_15_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111616/CWE690_NULL_Deref_From_Return__struct_calloc_15.c
CWE690_NULL_Deref_From_Return__struct_calloc_15_good
void CWE690_NULL_Deref_From_Return__struct_calloc_15_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
8,682
void CWE690_NULL_Deref_From_Return__struct_calloc_16_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)calloc(1, sizeof(twoIntsStruct)); while(1) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ data[0].intOne = 1; data[0].intTwo = 1; printStructLine(&data[0]); 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/111617/CWE690_NULL_Deref_From_Return__struct_calloc_16.c
CWE690_NULL_Deref_From_Return__struct_calloc_16_bad
void CWE690_NULL_Deref_From_Return__struct_calloc_16_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a90(1,8); *puVar1 = 1; puVar1[1] = 1; printStructLine(puVar1); func_0x00400a20(puVar1); return; }
['gcc']
8,683
void CWE690_NULL_Deref_From_Return__struct_calloc_16_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111617/CWE690_NULL_Deref_From_Return__struct_calloc_16.c
CWE690_NULL_Deref_From_Return__struct_calloc_16_good
void CWE690_NULL_Deref_From_Return__struct_calloc_16_good(void) { goodB2G(); return; }
['gcc']
8,684
void CWE690_NULL_Deref_From_Return__struct_calloc_17_bad() { int j; twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)calloc(1, sizeof(twoIntsStruct)); for(j = 0; j < 1; j++) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ data[0].intOne = 1; data[0].intTwo = 1; printStructLine(&data[0]); 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/111618/CWE690_NULL_Deref_From_Return__struct_calloc_17.c
CWE690_NULL_Deref_From_Return__struct_calloc_17_bad
void CWE690_NULL_Deref_From_Return__struct_calloc_17_bad(void) { undefined4 *puVar1; int iStack_c; puVar1 = (undefined4 *)func_0x00400a90(1,8); for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { *puVar1 = 1; puVar1[1] = 1; printStructLine(puVar1); func_0x00400a20(puVar1); } return; }
['gcc']
8,685
void CWE690_NULL_Deref_From_Return__struct_calloc_17_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111618/CWE690_NULL_Deref_From_Return__struct_calloc_17.c
CWE690_NULL_Deref_From_Return__struct_calloc_17_good
void CWE690_NULL_Deref_From_Return__struct_calloc_17_good(void) { goodB2G(); return; }
['gcc']
8,686
void CWE690_NULL_Deref_From_Return__struct_calloc_18_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)calloc(1, sizeof(twoIntsStruct)); goto sink; sink: /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ data[0].intOne = 1; data[0].intTwo = 1; printStructLine(&data[0]); 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/111619/CWE690_NULL_Deref_From_Return__struct_calloc_18.c
CWE690_NULL_Deref_From_Return__struct_calloc_18_bad
void CWE690_NULL_Deref_From_Return__struct_calloc_18_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a90(1,8); *puVar1 = 1; puVar1[1] = 1; printStructLine(puVar1); func_0x00400a20(puVar1); return; }
['gcc']
8,687
void CWE690_NULL_Deref_From_Return__struct_calloc_18_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111619/CWE690_NULL_Deref_From_Return__struct_calloc_18.c
CWE690_NULL_Deref_From_Return__struct_calloc_18_good
void CWE690_NULL_Deref_From_Return__struct_calloc_18_good(void) { goodB2G(); return; }
['gcc']
8,688
void CWE690_NULL_Deref_From_Return__struct_calloc_21_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)calloc(1, sizeof(twoIntsStruct)); 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/111620/CWE690_NULL_Deref_From_Return__struct_calloc_21.c
CWE690_NULL_Deref_From_Return__struct_calloc_21_bad
void CWE690_NULL_Deref_From_Return__struct_calloc_21_bad(void) { undefined8 uVar1; uVar1 = func_0x00400a90(1,8); badStatic = 1; badSink(uVar1); return; }
['gcc']
8,689
void CWE690_NULL_Deref_From_Return__struct_calloc_21_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111620/CWE690_NULL_Deref_From_Return__struct_calloc_21.c
CWE690_NULL_Deref_From_Return__struct_calloc_21_good
void CWE690_NULL_Deref_From_Return__struct_calloc_21_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
8,690
void CWE690_NULL_Deref_From_Return__struct_calloc_22_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)calloc(1, sizeof(twoIntsStruct)); CWE690_NULL_Deref_From_Return__struct_calloc_22_badGlobal = 1; /* true */ CWE690_NULL_Deref_From_Return__struct_calloc_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/111621/CWE690_NULL_Deref_From_Return__struct_calloc_22a.c
CWE690_NULL_Deref_From_Return__struct_calloc_22_bad
void CWE690_NULL_Deref_From_Return__struct_calloc_22_bad(void) { undefined8 uVar1; uVar1 = func_0x00400a90(1,8); CWE690_NULL_Deref_From_Return__struct_calloc_22_badGlobal = 1; CWE690_NULL_Deref_From_Return__struct_calloc_22_badSink(uVar1); return; }
['gcc']
8,691
void CWE690_NULL_Deref_From_Return__struct_calloc_22_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111621/CWE690_NULL_Deref_From_Return__struct_calloc_22a.c
CWE690_NULL_Deref_From_Return__struct_calloc_22_good
void CWE690_NULL_Deref_From_Return__struct_calloc_22_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
8,692
void CWE690_NULL_Deref_From_Return__struct_calloc_22_badSink(twoIntsStruct * data) { if(CWE690_NULL_Deref_From_Return__struct_calloc_22_badGlobal) { /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ data[0].intOne = 1; data[0].intTwo = 1; printStructLine(&data[0]); 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/111621/CWE690_NULL_Deref_From_Return__struct_calloc_22b.c
CWE690_NULL_Deref_From_Return__struct_calloc_22_badSink
void CWE690_NULL_Deref_From_Return__struct_calloc_22_badSink(undefined4 *param_1) { if (CWE690_NULL_Deref_From_Return__struct_calloc_22_badGlobal != 0) { *param_1 = 1; param_1[1] = 1; printStructLine(param_1); func_0x00400a20(param_1); } return; }
['gcc']
8,693
void CWE690_NULL_Deref_From_Return__struct_calloc_22_goodB2G1Sink(twoIntsStruct * data) { if(CWE690_NULL_Deref_From_Return__struct_calloc_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) { data[0].intOne = 1; data[0].intTwo = 1; printStructLine(&data[0]); 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/111621/CWE690_NULL_Deref_From_Return__struct_calloc_22b.c
CWE690_NULL_Deref_From_Return__struct_calloc_22_goodB2G1Sink
void CWE690_NULL_Deref_From_Return__struct_calloc_22_goodB2G1Sink(undefined4 *param_1) { if (CWE690_NULL_Deref_From_Return__struct_calloc_22_goodB2G1Global == 0) { if (param_1 != (undefined4 *)0x0) { *param_1 = 1; param_1[1] = 1; printStructLine(param_1); func_0x00400a20(param_1); } } else { printLine(&UNK_00401284); } return; }
['gcc']
8,694
void CWE690_NULL_Deref_From_Return__struct_calloc_22_goodB2G2Sink(twoIntsStruct * data) { if(CWE690_NULL_Deref_From_Return__struct_calloc_22_goodB2G2Global) { /* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */ if (data != NULL) { data[0].intOne = 1; data[0].intTwo = 1; printStructLine(&data[0]); 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/111621/CWE690_NULL_Deref_From_Return__struct_calloc_22b.c
CWE690_NULL_Deref_From_Return__struct_calloc_22_goodB2G2Sink
void CWE690_NULL_Deref_From_Return__struct_calloc_22_goodB2G2Sink(undefined4 *param_1) { if ((CWE690_NULL_Deref_From_Return__struct_calloc_22_goodB2G2Global != 0) && (param_1 != (undefined4 *)0x0)) { *param_1 = 1; param_1[1] = 1; printStructLine(param_1); func_0x00400a20(param_1); } return; }
['gcc']
8,695
void CWE690_NULL_Deref_From_Return__struct_calloc_31_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)calloc(1, sizeof(twoIntsStruct)); { twoIntsStruct * dataCopy = data; twoIntsStruct * data = dataCopy; /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ data[0].intOne = 1; data[0].intTwo = 1; printStructLine(&data[0]); 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/111622/CWE690_NULL_Deref_From_Return__struct_calloc_31.c
CWE690_NULL_Deref_From_Return__struct_calloc_31_bad
void CWE690_NULL_Deref_From_Return__struct_calloc_31_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a90(1,8); *puVar1 = 1; puVar1[1] = 1; printStructLine(puVar1); func_0x00400a20(puVar1); return; }
['gcc']
8,696
void CWE690_NULL_Deref_From_Return__struct_calloc_31_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111622/CWE690_NULL_Deref_From_Return__struct_calloc_31.c
CWE690_NULL_Deref_From_Return__struct_calloc_31_good
void CWE690_NULL_Deref_From_Return__struct_calloc_31_good(void) { goodB2G(); return; }
['gcc']
8,697
void CWE690_NULL_Deref_From_Return__struct_calloc_32_bad() { twoIntsStruct * data; twoIntsStruct * *dataPtr1 = &data; twoIntsStruct * *dataPtr2 = &data; data = NULL; /* Initialize data */ { twoIntsStruct * data = *dataPtr1; /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)calloc(1, sizeof(twoIntsStruct)); *dataPtr1 = data; } { twoIntsStruct * data = *dataPtr2; /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ data[0].intOne = 1; data[0].intTwo = 1; printStructLine(&data[0]); 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/111623/CWE690_NULL_Deref_From_Return__struct_calloc_32.c
CWE690_NULL_Deref_From_Return__struct_calloc_32_bad
/* WARNING: Restarted to delay deadcode elimination for space: stack */ void CWE690_NULL_Deref_From_Return__struct_calloc_32_bad(void) { undefined8 uStack_30; undefined4 *puStack_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_0x00400a90(1,8); *puStack_10 = uStack_20; puStack_28 = (undefined4 *)*puStack_18; *puStack_28 = 1; puStack_28[1] = 1; printStructLine(puStack_28); func_0x00400a20(puStack_28); return; }
['gcc']
8,698
void CWE690_NULL_Deref_From_Return__struct_calloc_32_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111623/CWE690_NULL_Deref_From_Return__struct_calloc_32.c
CWE690_NULL_Deref_From_Return__struct_calloc_32_good
void CWE690_NULL_Deref_From_Return__struct_calloc_32_good(void) { goodB2G(); return; }
['gcc']
8,699
void CWE690_NULL_Deref_From_Return__struct_calloc_34_bad() { twoIntsStruct * data; CWE690_NULL_Deref_From_Return__struct_calloc_34_unionType myUnion; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)calloc(1, sizeof(twoIntsStruct)); myUnion.unionFirst = data; { twoIntsStruct * data = myUnion.unionSecond; /* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */ data[0].intOne = 1; data[0].intTwo = 1; printStructLine(&data[0]); 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/111625/CWE690_NULL_Deref_From_Return__struct_calloc_34.c
CWE690_NULL_Deref_From_Return__struct_calloc_34_bad
void CWE690_NULL_Deref_From_Return__struct_calloc_34_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a90(1,8); *puVar1 = 1; puVar1[1] = 1; printStructLine(puVar1); func_0x00400a20(puVar1); return; }
['gcc']