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,700
void CWE690_NULL_Deref_From_Return__struct_calloc_34_good() { goodB2G(); }
[]
null
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_good
void CWE690_NULL_Deref_From_Return__struct_calloc_34_good(void) { goodB2G(); return; }
['gcc']
8,701
void CWE690_NULL_Deref_From_Return__struct_calloc_41_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)); 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/111626/CWE690_NULL_Deref_From_Return__struct_calloc_41.c
CWE690_NULL_Deref_From_Return__struct_calloc_41_bad
void CWE690_NULL_Deref_From_Return__struct_calloc_41_bad(void) { undefined8 uVar1; uVar1 = func_0x00400a90(1,8); badSink(uVar1); return; }
['gcc']
8,702
void CWE690_NULL_Deref_From_Return__struct_calloc_41_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111626/CWE690_NULL_Deref_From_Return__struct_calloc_41.c
CWE690_NULL_Deref_From_Return__struct_calloc_41_good
void CWE690_NULL_Deref_From_Return__struct_calloc_41_good(void) { goodB2G(); return; }
['gcc']
8,703
void CWE690_NULL_Deref_From_Return__struct_calloc_42_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ data = badSource(data); /* 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 */', '/* 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/111627/CWE690_NULL_Deref_From_Return__struct_calloc_42.c
CWE690_NULL_Deref_From_Return__struct_calloc_42_bad
void CWE690_NULL_Deref_From_Return__struct_calloc_42_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)badSource(0); *puVar1 = 1; puVar1[1] = 1; printStructLine(puVar1); func_0x00400a20(puVar1); return; }
['gcc']
8,704
void CWE690_NULL_Deref_From_Return__struct_calloc_42_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111627/CWE690_NULL_Deref_From_Return__struct_calloc_42.c
CWE690_NULL_Deref_From_Return__struct_calloc_42_good
void CWE690_NULL_Deref_From_Return__struct_calloc_42_good(void) { goodB2G(); return; }
['gcc']
8,705
void CWE690_NULL_Deref_From_Return__struct_calloc_51_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_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/111631/CWE690_NULL_Deref_From_Return__struct_calloc_51a.c
CWE690_NULL_Deref_From_Return__struct_calloc_51_bad
void CWE690_NULL_Deref_From_Return__struct_calloc_51_bad(void) { undefined8 uVar1; uVar1 = func_0x00400a90(1,8); CWE690_NULL_Deref_From_Return__struct_calloc_51b_badSink(uVar1); return; }
['gcc']
8,706
void CWE690_NULL_Deref_From_Return__struct_calloc_51_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111631/CWE690_NULL_Deref_From_Return__struct_calloc_51a.c
CWE690_NULL_Deref_From_Return__struct_calloc_51_good
void CWE690_NULL_Deref_From_Return__struct_calloc_51_good(void) { goodB2G(); return; }
['gcc']
8,707
void CWE690_NULL_Deref_From_Return__struct_calloc_51b_badSink(twoIntsStruct * data) { /* 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/111631/CWE690_NULL_Deref_From_Return__struct_calloc_51b.c
CWE690_NULL_Deref_From_Return__struct_calloc_51b_badSink
void CWE690_NULL_Deref_From_Return__struct_calloc_51b_badSink(undefined4 *param_1) { *param_1 = 1; param_1[1] = 1; printStructLine(param_1); func_0x00400a20(param_1); return; }
['gcc']
8,708
void CWE690_NULL_Deref_From_Return__struct_calloc_51b_goodB2GSink(twoIntsStruct * data) { /* 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/111631/CWE690_NULL_Deref_From_Return__struct_calloc_51b.c
CWE690_NULL_Deref_From_Return__struct_calloc_51b_goodB2GSink
void CWE690_NULL_Deref_From_Return__struct_calloc_51b_goodB2GSink(undefined4 *param_1) { if (param_1 != (undefined4 *)0x0) { *param_1 = 1; param_1[1] = 1; printStructLine(param_1); func_0x00400a20(param_1); } return; }
['gcc']
8,709
void CWE690_NULL_Deref_From_Return__struct_calloc_52_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_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/111632/CWE690_NULL_Deref_From_Return__struct_calloc_52a.c
CWE690_NULL_Deref_From_Return__struct_calloc_52_bad
void CWE690_NULL_Deref_From_Return__struct_calloc_52_bad(void) { undefined8 uVar1; uVar1 = func_0x00400a90(1,8); CWE690_NULL_Deref_From_Return__struct_calloc_52b_badSink(uVar1); return; }
['gcc']
8,710
void CWE690_NULL_Deref_From_Return__struct_calloc_52_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111632/CWE690_NULL_Deref_From_Return__struct_calloc_52a.c
CWE690_NULL_Deref_From_Return__struct_calloc_52_good
void CWE690_NULL_Deref_From_Return__struct_calloc_52_good(void) { goodB2G(); return; }
['gcc']
8,711
void CWE690_NULL_Deref_From_Return__struct_calloc_52b_badSink(twoIntsStruct * data) { CWE690_NULL_Deref_From_Return__struct_calloc_52c_badSink(data); }
[]
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111632/CWE690_NULL_Deref_From_Return__struct_calloc_52b.c
CWE690_NULL_Deref_From_Return__struct_calloc_52b_badSink
void CWE690_NULL_Deref_From_Return__struct_calloc_52b_badSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__struct_calloc_52c_badSink(param_1); return; }
['gcc']
8,712
void CWE690_NULL_Deref_From_Return__struct_calloc_52b_goodB2GSink(twoIntsStruct * data) { CWE690_NULL_Deref_From_Return__struct_calloc_52c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111632/CWE690_NULL_Deref_From_Return__struct_calloc_52b.c
CWE690_NULL_Deref_From_Return__struct_calloc_52b_goodB2GSink
void CWE690_NULL_Deref_From_Return__struct_calloc_52b_goodB2GSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__struct_calloc_52c_goodB2GSink(param_1); return; }
['gcc']
8,713
void CWE690_NULL_Deref_From_Return__struct_calloc_52c_badSink(twoIntsStruct * data) { /* 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/111632/CWE690_NULL_Deref_From_Return__struct_calloc_52c.c
CWE690_NULL_Deref_From_Return__struct_calloc_52c_badSink
void CWE690_NULL_Deref_From_Return__struct_calloc_52c_badSink(undefined4 *param_1) { *param_1 = 1; param_1[1] = 1; printStructLine(param_1); func_0x00400a20(param_1); return; }
['gcc']
8,714
void CWE690_NULL_Deref_From_Return__struct_calloc_52c_goodB2GSink(twoIntsStruct * data) { /* 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/111632/CWE690_NULL_Deref_From_Return__struct_calloc_52c.c
CWE690_NULL_Deref_From_Return__struct_calloc_52c_goodB2GSink
void CWE690_NULL_Deref_From_Return__struct_calloc_52c_goodB2GSink(undefined4 *param_1) { if (param_1 != (undefined4 *)0x0) { *param_1 = 1; param_1[1] = 1; printStructLine(param_1); func_0x00400a20(param_1); } return; }
['gcc']
8,715
void CWE690_NULL_Deref_From_Return__struct_calloc_53_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_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/111633/CWE690_NULL_Deref_From_Return__struct_calloc_53a.c
CWE690_NULL_Deref_From_Return__struct_calloc_53_bad
void CWE690_NULL_Deref_From_Return__struct_calloc_53_bad(void) { undefined8 uVar1; uVar1 = func_0x00400a90(1,8); CWE690_NULL_Deref_From_Return__struct_calloc_53b_badSink(uVar1); return; }
['gcc']
8,716
void CWE690_NULL_Deref_From_Return__struct_calloc_53_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111633/CWE690_NULL_Deref_From_Return__struct_calloc_53a.c
CWE690_NULL_Deref_From_Return__struct_calloc_53_good
void CWE690_NULL_Deref_From_Return__struct_calloc_53_good(void) { goodB2G(); return; }
['gcc']
8,717
void CWE690_NULL_Deref_From_Return__struct_calloc_53b_badSink(twoIntsStruct * data) { CWE690_NULL_Deref_From_Return__struct_calloc_53c_badSink(data); }
[]
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111633/CWE690_NULL_Deref_From_Return__struct_calloc_53b.c
CWE690_NULL_Deref_From_Return__struct_calloc_53b_badSink
void CWE690_NULL_Deref_From_Return__struct_calloc_53b_badSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__struct_calloc_53c_badSink(param_1); return; }
['gcc']
8,718
void CWE690_NULL_Deref_From_Return__struct_calloc_53b_goodB2GSink(twoIntsStruct * data) { CWE690_NULL_Deref_From_Return__struct_calloc_53c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111633/CWE690_NULL_Deref_From_Return__struct_calloc_53b.c
CWE690_NULL_Deref_From_Return__struct_calloc_53b_goodB2GSink
void CWE690_NULL_Deref_From_Return__struct_calloc_53b_goodB2GSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__struct_calloc_53c_goodB2GSink(param_1); return; }
['gcc']
8,719
void CWE690_NULL_Deref_From_Return__struct_calloc_53c_badSink(twoIntsStruct * data) { CWE690_NULL_Deref_From_Return__struct_calloc_53d_badSink(data); }
[]
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111633/CWE690_NULL_Deref_From_Return__struct_calloc_53c.c
CWE690_NULL_Deref_From_Return__struct_calloc_53c_badSink
void CWE690_NULL_Deref_From_Return__struct_calloc_53c_badSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__struct_calloc_53d_badSink(param_1); return; }
['gcc']
8,720
void CWE690_NULL_Deref_From_Return__struct_calloc_53c_goodB2GSink(twoIntsStruct * data) { CWE690_NULL_Deref_From_Return__struct_calloc_53d_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111633/CWE690_NULL_Deref_From_Return__struct_calloc_53c.c
CWE690_NULL_Deref_From_Return__struct_calloc_53c_goodB2GSink
void CWE690_NULL_Deref_From_Return__struct_calloc_53c_goodB2GSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__struct_calloc_53d_goodB2GSink(param_1); return; }
['gcc']
8,721
void CWE690_NULL_Deref_From_Return__struct_calloc_53d_badSink(twoIntsStruct * data) { /* 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/111633/CWE690_NULL_Deref_From_Return__struct_calloc_53d.c
CWE690_NULL_Deref_From_Return__struct_calloc_53d_badSink
void CWE690_NULL_Deref_From_Return__struct_calloc_53d_badSink(undefined4 *param_1) { *param_1 = 1; param_1[1] = 1; printStructLine(param_1); func_0x00400a20(param_1); return; }
['gcc']
8,722
void CWE690_NULL_Deref_From_Return__struct_calloc_53d_goodB2GSink(twoIntsStruct * data) { /* 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/111633/CWE690_NULL_Deref_From_Return__struct_calloc_53d.c
CWE690_NULL_Deref_From_Return__struct_calloc_53d_goodB2GSink
void CWE690_NULL_Deref_From_Return__struct_calloc_53d_goodB2GSink(undefined4 *param_1) { if (param_1 != (undefined4 *)0x0) { *param_1 = 1; param_1[1] = 1; printStructLine(param_1); func_0x00400a20(param_1); } return; }
['gcc']
8,723
void CWE690_NULL_Deref_From_Return__struct_calloc_54_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_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/111634/CWE690_NULL_Deref_From_Return__struct_calloc_54a.c
CWE690_NULL_Deref_From_Return__struct_calloc_54_bad
void CWE690_NULL_Deref_From_Return__struct_calloc_54_bad(void) { undefined8 uVar1; uVar1 = func_0x00400a90(1,8); CWE690_NULL_Deref_From_Return__struct_calloc_54b_badSink(uVar1); return; }
['gcc']
8,724
void CWE690_NULL_Deref_From_Return__struct_calloc_54_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111634/CWE690_NULL_Deref_From_Return__struct_calloc_54a.c
CWE690_NULL_Deref_From_Return__struct_calloc_54_good
void CWE690_NULL_Deref_From_Return__struct_calloc_54_good(void) { goodB2G(); return; }
['gcc']
8,725
void CWE690_NULL_Deref_From_Return__struct_calloc_54b_badSink(twoIntsStruct * data) { CWE690_NULL_Deref_From_Return__struct_calloc_54c_badSink(data); }
[]
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111634/CWE690_NULL_Deref_From_Return__struct_calloc_54b.c
CWE690_NULL_Deref_From_Return__struct_calloc_54b_badSink
void CWE690_NULL_Deref_From_Return__struct_calloc_54b_badSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__struct_calloc_54c_badSink(param_1); return; }
['gcc']
8,726
void CWE690_NULL_Deref_From_Return__struct_calloc_54b_goodB2GSink(twoIntsStruct * data) { CWE690_NULL_Deref_From_Return__struct_calloc_54c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111634/CWE690_NULL_Deref_From_Return__struct_calloc_54b.c
CWE690_NULL_Deref_From_Return__struct_calloc_54b_goodB2GSink
void CWE690_NULL_Deref_From_Return__struct_calloc_54b_goodB2GSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__struct_calloc_54c_goodB2GSink(param_1); return; }
['gcc']
8,727
void CWE690_NULL_Deref_From_Return__struct_calloc_54c_badSink(twoIntsStruct * data) { CWE690_NULL_Deref_From_Return__struct_calloc_54d_badSink(data); }
[]
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111634/CWE690_NULL_Deref_From_Return__struct_calloc_54c.c
CWE690_NULL_Deref_From_Return__struct_calloc_54c_badSink
void CWE690_NULL_Deref_From_Return__struct_calloc_54c_badSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__struct_calloc_54d_badSink(param_1); return; }
['gcc']
8,728
void CWE690_NULL_Deref_From_Return__struct_calloc_54c_goodB2GSink(twoIntsStruct * data) { CWE690_NULL_Deref_From_Return__struct_calloc_54d_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111634/CWE690_NULL_Deref_From_Return__struct_calloc_54c.c
CWE690_NULL_Deref_From_Return__struct_calloc_54c_goodB2GSink
void CWE690_NULL_Deref_From_Return__struct_calloc_54c_goodB2GSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__struct_calloc_54d_goodB2GSink(param_1); return; }
['gcc']
8,729
void CWE690_NULL_Deref_From_Return__struct_calloc_54d_badSink(twoIntsStruct * data) { CWE690_NULL_Deref_From_Return__struct_calloc_54e_badSink(data); }
[]
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111634/CWE690_NULL_Deref_From_Return__struct_calloc_54d.c
CWE690_NULL_Deref_From_Return__struct_calloc_54d_badSink
void CWE690_NULL_Deref_From_Return__struct_calloc_54d_badSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__struct_calloc_54e_badSink(param_1); return; }
['gcc']
8,730
void CWE690_NULL_Deref_From_Return__struct_calloc_54d_goodB2GSink(twoIntsStruct * data) { CWE690_NULL_Deref_From_Return__struct_calloc_54e_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111634/CWE690_NULL_Deref_From_Return__struct_calloc_54d.c
CWE690_NULL_Deref_From_Return__struct_calloc_54d_goodB2GSink
void CWE690_NULL_Deref_From_Return__struct_calloc_54d_goodB2GSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__struct_calloc_54e_goodB2GSink(param_1); return; }
['gcc']
8,731
void CWE690_NULL_Deref_From_Return__struct_calloc_54e_badSink(twoIntsStruct * data) { /* 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/111634/CWE690_NULL_Deref_From_Return__struct_calloc_54e.c
CWE690_NULL_Deref_From_Return__struct_calloc_54e_badSink
void CWE690_NULL_Deref_From_Return__struct_calloc_54e_badSink(undefined4 *param_1) { *param_1 = 1; param_1[1] = 1; printStructLine(param_1); func_0x00400a20(param_1); return; }
['gcc']
8,732
void CWE690_NULL_Deref_From_Return__struct_calloc_54e_goodB2GSink(twoIntsStruct * data) { /* 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/111634/CWE690_NULL_Deref_From_Return__struct_calloc_54e.c
CWE690_NULL_Deref_From_Return__struct_calloc_54e_goodB2GSink
void CWE690_NULL_Deref_From_Return__struct_calloc_54e_goodB2GSink(undefined4 *param_1) { if (param_1 != (undefined4 *)0x0) { *param_1 = 1; param_1[1] = 1; printStructLine(param_1); func_0x00400a20(param_1); } return; }
['gcc']
8,733
void CWE690_NULL_Deref_From_Return__struct_calloc_61_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ data = CWE690_NULL_Deref_From_Return__struct_calloc_61b_badSource(data); /* 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 */', '/* 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/111635/CWE690_NULL_Deref_From_Return__struct_calloc_61a.c
CWE690_NULL_Deref_From_Return__struct_calloc_61_bad
void CWE690_NULL_Deref_From_Return__struct_calloc_61_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)CWE690_NULL_Deref_From_Return__struct_calloc_61b_badSource(0); *puVar1 = 1; puVar1[1] = 1; printStructLine(puVar1); func_0x00400a20(puVar1); return; }
['gcc']
8,734
void CWE690_NULL_Deref_From_Return__struct_calloc_61_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111635/CWE690_NULL_Deref_From_Return__struct_calloc_61a.c
CWE690_NULL_Deref_From_Return__struct_calloc_61_good
void CWE690_NULL_Deref_From_Return__struct_calloc_61_good(void) { goodB2G(); return; }
['gcc']
8,735
twoIntsStruct * CWE690_NULL_Deref_From_Return__struct_calloc_61b_badSource(twoIntsStruct * data) { /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)calloc(1, sizeof(twoIntsStruct)); 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/111635/CWE690_NULL_Deref_From_Return__struct_calloc_61b.c
CWE690_NULL_Deref_From_Return__struct_calloc_61b_badSource
undefined8 CWE690_NULL_Deref_From_Return__struct_calloc_61b_badSource(void) { undefined8 uVar1; uVar1 = func_0x00400a90(1,8); return uVar1; }
['gcc']
8,736
twoIntsStruct * CWE690_NULL_Deref_From_Return__struct_calloc_61b_goodB2GSource(twoIntsStruct * data) { /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)calloc(1, sizeof(twoIntsStruct)); 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/111635/CWE690_NULL_Deref_From_Return__struct_calloc_61b.c
CWE690_NULL_Deref_From_Return__struct_calloc_61b_goodB2GSource
undefined8 CWE690_NULL_Deref_From_Return__struct_calloc_61b_goodB2GSource(void) { undefined8 uVar1; uVar1 = func_0x00400a90(1,8); return uVar1; }
['gcc']
8,737
void CWE690_NULL_Deref_From_Return__struct_calloc_63_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_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/111637/CWE690_NULL_Deref_From_Return__struct_calloc_63a.c
CWE690_NULL_Deref_From_Return__struct_calloc_63_bad
void CWE690_NULL_Deref_From_Return__struct_calloc_63_bad(void) { undefined8 uStack_10; uStack_10 = 0; uStack_10 = func_0x00400a90(1,8); CWE690_NULL_Deref_From_Return__struct_calloc_63b_badSink(&uStack_10); return; }
['gcc']
8,738
void CWE690_NULL_Deref_From_Return__struct_calloc_63_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111637/CWE690_NULL_Deref_From_Return__struct_calloc_63a.c
CWE690_NULL_Deref_From_Return__struct_calloc_63_good
void CWE690_NULL_Deref_From_Return__struct_calloc_63_good(void) { goodB2G(); return; }
['gcc']
8,739
void CWE690_NULL_Deref_From_Return__struct_calloc_63b_badSink(twoIntsStruct * * dataPtr) { twoIntsStruct * data = *dataPtr; /* 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/111637/CWE690_NULL_Deref_From_Return__struct_calloc_63b.c
CWE690_NULL_Deref_From_Return__struct_calloc_63b_badSink
void CWE690_NULL_Deref_From_Return__struct_calloc_63b_badSink(undefined8 *param_1) { undefined4 *puVar1; puVar1 = (undefined4 *)*param_1; *puVar1 = 1; puVar1[1] = 1; printStructLine(puVar1); func_0x00400a20(puVar1); return; }
['gcc']
8,740
void CWE690_NULL_Deref_From_Return__struct_calloc_63b_goodB2GSink(twoIntsStruct * * dataPtr) { twoIntsStruct * data = *dataPtr; /* 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/111637/CWE690_NULL_Deref_From_Return__struct_calloc_63b.c
CWE690_NULL_Deref_From_Return__struct_calloc_63b_goodB2GSink
void CWE690_NULL_Deref_From_Return__struct_calloc_63b_goodB2GSink(undefined8 *param_1) { undefined4 *puVar1; puVar1 = (undefined4 *)*param_1; if (puVar1 != (undefined4 *)0x0) { *puVar1 = 1; puVar1[1] = 1; printStructLine(puVar1); func_0x00400a20(puVar1); } return; }
['gcc']
8,741
void CWE690_NULL_Deref_From_Return__struct_calloc_64_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_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/111638/CWE690_NULL_Deref_From_Return__struct_calloc_64a.c
CWE690_NULL_Deref_From_Return__struct_calloc_64_bad
void CWE690_NULL_Deref_From_Return__struct_calloc_64_bad(void) { undefined8 uStack_10; uStack_10 = 0; uStack_10 = func_0x00400a90(1,8); CWE690_NULL_Deref_From_Return__struct_calloc_64b_badSink(&uStack_10); return; }
['gcc']
8,742
void CWE690_NULL_Deref_From_Return__struct_calloc_64_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111638/CWE690_NULL_Deref_From_Return__struct_calloc_64a.c
CWE690_NULL_Deref_From_Return__struct_calloc_64_good
void CWE690_NULL_Deref_From_Return__struct_calloc_64_good(void) { goodB2G(); return; }
['gcc']
8,743
void CWE690_NULL_Deref_From_Return__struct_calloc_64b_badSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ twoIntsStruct * * dataPtr = (twoIntsStruct * *)dataVoidPtr; /* dereference dataPtr into data */ twoIntsStruct * data = (*dataPtr); /* 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); }
['/* 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/111638/CWE690_NULL_Deref_From_Return__struct_calloc_64b.c
CWE690_NULL_Deref_From_Return__struct_calloc_64b_badSink
void CWE690_NULL_Deref_From_Return__struct_calloc_64b_badSink(undefined8 *param_1) { undefined4 *puVar1; puVar1 = (undefined4 *)*param_1; *puVar1 = 1; puVar1[1] = 1; printStructLine(puVar1); func_0x00400a20(puVar1); return; }
['gcc']
8,744
void CWE690_NULL_Deref_From_Return__struct_calloc_64b_goodB2GSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ twoIntsStruct * * dataPtr = (twoIntsStruct * *)dataVoidPtr; /* dereference dataPtr into data */ twoIntsStruct * data = (*dataPtr); /* 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); } }
['/* 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/111638/CWE690_NULL_Deref_From_Return__struct_calloc_64b.c
CWE690_NULL_Deref_From_Return__struct_calloc_64b_goodB2GSink
void CWE690_NULL_Deref_From_Return__struct_calloc_64b_goodB2GSink(undefined8 *param_1) { undefined4 *puVar1; puVar1 = (undefined4 *)*param_1; if (puVar1 != (undefined4 *)0x0) { *puVar1 = 1; puVar1[1] = 1; printStructLine(puVar1); func_0x00400a20(puVar1); } return; }
['gcc']
8,745
void CWE690_NULL_Deref_From_Return__struct_calloc_66_bad() { twoIntsStruct * data; twoIntsStruct * dataArray[5]; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)calloc(1, sizeof(twoIntsStruct)); /* put data in array */ dataArray[2] = data; CWE690_NULL_Deref_From_Return__struct_calloc_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/111640/CWE690_NULL_Deref_From_Return__struct_calloc_66a.c
CWE690_NULL_Deref_From_Return__struct_calloc_66_bad
void CWE690_NULL_Deref_From_Return__struct_calloc_66_bad(void) { undefined auStack_38 [16]; undefined8 uStack_28; undefined8 uStack_10; uStack_10 = 0; uStack_28 = func_0x00400a90(1,8); uStack_10 = uStack_28; CWE690_NULL_Deref_From_Return__struct_calloc_66b_badSink(auStack_38); return; }
['gcc']
8,746
void CWE690_NULL_Deref_From_Return__struct_calloc_66_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111640/CWE690_NULL_Deref_From_Return__struct_calloc_66a.c
CWE690_NULL_Deref_From_Return__struct_calloc_66_good
void CWE690_NULL_Deref_From_Return__struct_calloc_66_good(void) { goodB2G(); return; }
['gcc']
8,747
void CWE690_NULL_Deref_From_Return__struct_calloc_66b_badSink(twoIntsStruct * dataArray[]) { /* copy data out of dataArray */ twoIntsStruct * data = dataArray[2]; /* 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); }
['/* 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/111640/CWE690_NULL_Deref_From_Return__struct_calloc_66b.c
CWE690_NULL_Deref_From_Return__struct_calloc_66b_badSink
void CWE690_NULL_Deref_From_Return__struct_calloc_66b_badSink(long param_1) { undefined4 *puVar1; puVar1 = *(undefined4 **)(param_1 + 0x10); *puVar1 = 1; puVar1[1] = 1; printStructLine(puVar1); func_0x00400a20(puVar1); return; }
['gcc']
8,748
void CWE690_NULL_Deref_From_Return__struct_calloc_66b_goodB2GSink(twoIntsStruct * dataArray[]) { twoIntsStruct * data = dataArray[2]; /* 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/111640/CWE690_NULL_Deref_From_Return__struct_calloc_66b.c
CWE690_NULL_Deref_From_Return__struct_calloc_66b_goodB2GSink
void CWE690_NULL_Deref_From_Return__struct_calloc_66b_goodB2GSink(long param_1) { undefined4 *puVar1; puVar1 = *(undefined4 **)(param_1 + 0x10); if (puVar1 != (undefined4 *)0x0) { *puVar1 = 1; puVar1[1] = 1; printStructLine(puVar1); func_0x00400a20(puVar1); } return; }
['gcc']
8,749
void CWE690_NULL_Deref_From_Return__struct_calloc_67_bad() { twoIntsStruct * data; CWE690_NULL_Deref_From_Return__struct_calloc_67_structType myStruct; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)calloc(1, sizeof(twoIntsStruct)); myStruct.structFirst = data; CWE690_NULL_Deref_From_Return__struct_calloc_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/111641/CWE690_NULL_Deref_From_Return__struct_calloc_67a.c
CWE690_NULL_Deref_From_Return__struct_calloc_67_bad
void CWE690_NULL_Deref_From_Return__struct_calloc_67_bad(void) { undefined8 uVar1; uVar1 = func_0x00400a90(1,8); CWE690_NULL_Deref_From_Return__struct_calloc_67b_badSink(uVar1); return; }
['gcc']
8,750
void CWE690_NULL_Deref_From_Return__struct_calloc_67_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111641/CWE690_NULL_Deref_From_Return__struct_calloc_67a.c
CWE690_NULL_Deref_From_Return__struct_calloc_67_good
void CWE690_NULL_Deref_From_Return__struct_calloc_67_good(void) { goodB2G(); return; }
['gcc']
8,751
void CWE690_NULL_Deref_From_Return__struct_calloc_67b_badSink(CWE690_NULL_Deref_From_Return__struct_calloc_67_structType myStruct) { twoIntsStruct * data = myStruct.structFirst; /* 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/111641/CWE690_NULL_Deref_From_Return__struct_calloc_67b.c
CWE690_NULL_Deref_From_Return__struct_calloc_67b_badSink
void CWE690_NULL_Deref_From_Return__struct_calloc_67b_badSink(undefined4 *param_1) { *param_1 = 1; param_1[1] = 1; printStructLine(param_1); func_0x00400a20(param_1); return; }
['gcc']
8,752
void CWE690_NULL_Deref_From_Return__struct_calloc_67b_goodB2GSink(CWE690_NULL_Deref_From_Return__struct_calloc_67_structType myStruct) { twoIntsStruct * data = myStruct.structFirst; /* 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/111641/CWE690_NULL_Deref_From_Return__struct_calloc_67b.c
CWE690_NULL_Deref_From_Return__struct_calloc_67b_goodB2GSink
void CWE690_NULL_Deref_From_Return__struct_calloc_67b_goodB2GSink(undefined4 *param_1) { if (param_1 != (undefined4 *)0x0) { *param_1 = 1; param_1[1] = 1; printStructLine(param_1); func_0x00400a20(param_1); } return; }
['gcc']
8,753
void CWE690_NULL_Deref_From_Return__struct_malloc_01_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)malloc(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/111650/CWE690_NULL_Deref_From_Return__struct_malloc_01.c
CWE690_NULL_Deref_From_Return__struct_malloc_01_bad
void CWE690_NULL_Deref_From_Return__struct_malloc_01_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400ab0(8); *puVar1 = 1; puVar1[1] = 1; printStructLine(puVar1); func_0x00400a20(puVar1); return; }
['gcc']
8,754
void CWE690_NULL_Deref_From_Return__struct_malloc_01_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111650/CWE690_NULL_Deref_From_Return__struct_malloc_01.c
CWE690_NULL_Deref_From_Return__struct_malloc_01_good
void CWE690_NULL_Deref_From_Return__struct_malloc_01_good(void) { goodB2G(); return; }
['gcc']
8,755
void CWE690_NULL_Deref_From_Return__struct_malloc_04_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)malloc(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/111653/CWE690_NULL_Deref_From_Return__struct_malloc_04.c
CWE690_NULL_Deref_From_Return__struct_malloc_04_bad
void CWE690_NULL_Deref_From_Return__struct_malloc_04_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400ab0(8); *puVar1 = 1; puVar1[1] = 1; printStructLine(puVar1); func_0x00400a20(puVar1); return; }
['gcc']
8,756
void CWE690_NULL_Deref_From_Return__struct_malloc_04_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111653/CWE690_NULL_Deref_From_Return__struct_malloc_04.c
CWE690_NULL_Deref_From_Return__struct_malloc_04_good
void CWE690_NULL_Deref_From_Return__struct_malloc_04_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
8,757
void CWE690_NULL_Deref_From_Return__struct_malloc_07_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)malloc(1*sizeof(twoIntsStruct)); if(staticFive==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/111656/CWE690_NULL_Deref_From_Return__struct_malloc_07.c
CWE690_NULL_Deref_From_Return__struct_malloc_07_bad
void CWE690_NULL_Deref_From_Return__struct_malloc_07_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400ab0(8); if (staticFive == 5) { *puVar1 = 1; puVar1[1] = 1; printStructLine(puVar1); func_0x00400a20(puVar1); } return; }
['gcc']
8,758
void CWE690_NULL_Deref_From_Return__struct_malloc_07_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111656/CWE690_NULL_Deref_From_Return__struct_malloc_07.c
CWE690_NULL_Deref_From_Return__struct_malloc_07_good
void CWE690_NULL_Deref_From_Return__struct_malloc_07_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
8,759
void CWE690_NULL_Deref_From_Return__struct_malloc_08_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)malloc(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/111657/CWE690_NULL_Deref_From_Return__struct_malloc_08.c
CWE690_NULL_Deref_From_Return__struct_malloc_08_bad
void CWE690_NULL_Deref_From_Return__struct_malloc_08_bad(void) { int iVar1; undefined4 *puVar2; puVar2 = (undefined4 *)func_0x00400ab0(8); iVar1 = staticReturnsTrue(); if (iVar1 != 0) { *puVar2 = 1; puVar2[1] = 1; printStructLine(puVar2); func_0x00400a20(puVar2); } return; }
['gcc']
8,760
void CWE690_NULL_Deref_From_Return__struct_malloc_08_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111657/CWE690_NULL_Deref_From_Return__struct_malloc_08.c
CWE690_NULL_Deref_From_Return__struct_malloc_08_good
void CWE690_NULL_Deref_From_Return__struct_malloc_08_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
8,761
void CWE690_NULL_Deref_From_Return__struct_malloc_11_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)malloc(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/111660/CWE690_NULL_Deref_From_Return__struct_malloc_11.c
CWE690_NULL_Deref_From_Return__struct_malloc_11_bad
void CWE690_NULL_Deref_From_Return__struct_malloc_11_bad(void) { int iVar1; undefined4 *puVar2; puVar2 = (undefined4 *)func_0x00400ab0(8); iVar1 = globalReturnsTrue(); if (iVar1 != 0) { *puVar2 = 1; puVar2[1] = 1; printStructLine(puVar2); func_0x00400a20(puVar2); } return; }
['gcc']
8,762
void CWE690_NULL_Deref_From_Return__struct_malloc_11_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111660/CWE690_NULL_Deref_From_Return__struct_malloc_11.c
CWE690_NULL_Deref_From_Return__struct_malloc_11_good
void CWE690_NULL_Deref_From_Return__struct_malloc_11_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
8,763
void CWE690_NULL_Deref_From_Return__struct_malloc_12_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)malloc(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/111661/CWE690_NULL_Deref_From_Return__struct_malloc_12.c
CWE690_NULL_Deref_From_Return__struct_malloc_12_bad
void CWE690_NULL_Deref_From_Return__struct_malloc_12_bad(void) { int iVar1; undefined4 *puVar2; puVar2 = (undefined4 *)func_0x00400ab0(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,764
void CWE690_NULL_Deref_From_Return__struct_malloc_12_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111661/CWE690_NULL_Deref_From_Return__struct_malloc_12.c
CWE690_NULL_Deref_From_Return__struct_malloc_12_good
void CWE690_NULL_Deref_From_Return__struct_malloc_12_good(void) { goodB2G(); return; }
['gcc']
8,765
void CWE690_NULL_Deref_From_Return__struct_malloc_15_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)malloc(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/111664/CWE690_NULL_Deref_From_Return__struct_malloc_15.c
CWE690_NULL_Deref_From_Return__struct_malloc_15_bad
void CWE690_NULL_Deref_From_Return__struct_malloc_15_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400ab0(8); *puVar1 = 1; puVar1[1] = 1; printStructLine(puVar1); func_0x00400a20(puVar1); return; }
['gcc']
8,766
void CWE690_NULL_Deref_From_Return__struct_malloc_15_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111664/CWE690_NULL_Deref_From_Return__struct_malloc_15.c
CWE690_NULL_Deref_From_Return__struct_malloc_15_good
void CWE690_NULL_Deref_From_Return__struct_malloc_15_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
8,767
void CWE690_NULL_Deref_From_Return__struct_malloc_16_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)malloc(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/111665/CWE690_NULL_Deref_From_Return__struct_malloc_16.c
CWE690_NULL_Deref_From_Return__struct_malloc_16_bad
void CWE690_NULL_Deref_From_Return__struct_malloc_16_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400ab0(8); *puVar1 = 1; puVar1[1] = 1; printStructLine(puVar1); func_0x00400a20(puVar1); return; }
['gcc']
8,768
void CWE690_NULL_Deref_From_Return__struct_malloc_16_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111665/CWE690_NULL_Deref_From_Return__struct_malloc_16.c
CWE690_NULL_Deref_From_Return__struct_malloc_16_good
void CWE690_NULL_Deref_From_Return__struct_malloc_16_good(void) { goodB2G(); return; }
['gcc']
8,769
void CWE690_NULL_Deref_From_Return__struct_malloc_17_bad() { int j; twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)malloc(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/111666/CWE690_NULL_Deref_From_Return__struct_malloc_17.c
CWE690_NULL_Deref_From_Return__struct_malloc_17_bad
void CWE690_NULL_Deref_From_Return__struct_malloc_17_bad(void) { undefined4 *puVar1; int iStack_c; puVar1 = (undefined4 *)func_0x00400ab0(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,770
void CWE690_NULL_Deref_From_Return__struct_malloc_17_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111666/CWE690_NULL_Deref_From_Return__struct_malloc_17.c
CWE690_NULL_Deref_From_Return__struct_malloc_17_good
void CWE690_NULL_Deref_From_Return__struct_malloc_17_good(void) { goodB2G(); return; }
['gcc']
8,771
void CWE690_NULL_Deref_From_Return__struct_malloc_18_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)malloc(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/111667/CWE690_NULL_Deref_From_Return__struct_malloc_18.c
CWE690_NULL_Deref_From_Return__struct_malloc_18_bad
void CWE690_NULL_Deref_From_Return__struct_malloc_18_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400ab0(8); *puVar1 = 1; puVar1[1] = 1; printStructLine(puVar1); func_0x00400a20(puVar1); return; }
['gcc']
8,772
void CWE690_NULL_Deref_From_Return__struct_malloc_18_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111667/CWE690_NULL_Deref_From_Return__struct_malloc_18.c
CWE690_NULL_Deref_From_Return__struct_malloc_18_good
void CWE690_NULL_Deref_From_Return__struct_malloc_18_good(void) { goodB2G(); return; }
['gcc']
8,773
void CWE690_NULL_Deref_From_Return__struct_malloc_21_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)malloc(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/111668/CWE690_NULL_Deref_From_Return__struct_malloc_21.c
CWE690_NULL_Deref_From_Return__struct_malloc_21_bad
void CWE690_NULL_Deref_From_Return__struct_malloc_21_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ab0(8); badStatic = 1; badSink(uVar1); return; }
['gcc']
8,774
void CWE690_NULL_Deref_From_Return__struct_malloc_21_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111668/CWE690_NULL_Deref_From_Return__struct_malloc_21.c
CWE690_NULL_Deref_From_Return__struct_malloc_21_good
void CWE690_NULL_Deref_From_Return__struct_malloc_21_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
8,775
void CWE690_NULL_Deref_From_Return__struct_malloc_22_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)malloc(1*sizeof(twoIntsStruct)); CWE690_NULL_Deref_From_Return__struct_malloc_22_badGlobal = 1; /* true */ CWE690_NULL_Deref_From_Return__struct_malloc_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/111669/CWE690_NULL_Deref_From_Return__struct_malloc_22a.c
CWE690_NULL_Deref_From_Return__struct_malloc_22_bad
void CWE690_NULL_Deref_From_Return__struct_malloc_22_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ab0(8); CWE690_NULL_Deref_From_Return__struct_malloc_22_badGlobal = 1; CWE690_NULL_Deref_From_Return__struct_malloc_22_badSink(uVar1); return; }
['gcc']
8,776
void CWE690_NULL_Deref_From_Return__struct_malloc_22_good() { goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111669/CWE690_NULL_Deref_From_Return__struct_malloc_22a.c
CWE690_NULL_Deref_From_Return__struct_malloc_22_good
void CWE690_NULL_Deref_From_Return__struct_malloc_22_good(void) { goodB2G1(); goodB2G2(); return; }
['gcc']
8,777
void CWE690_NULL_Deref_From_Return__struct_malloc_22_badSink(twoIntsStruct * data) { if(CWE690_NULL_Deref_From_Return__struct_malloc_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/111669/CWE690_NULL_Deref_From_Return__struct_malloc_22b.c
CWE690_NULL_Deref_From_Return__struct_malloc_22_badSink
void CWE690_NULL_Deref_From_Return__struct_malloc_22_badSink(undefined4 *param_1) { if (CWE690_NULL_Deref_From_Return__struct_malloc_22_badGlobal != 0) { *param_1 = 1; param_1[1] = 1; printStructLine(param_1); func_0x00400a20(param_1); } return; }
['gcc']
8,778
void CWE690_NULL_Deref_From_Return__struct_malloc_22_goodB2G1Sink(twoIntsStruct * data) { if(CWE690_NULL_Deref_From_Return__struct_malloc_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/111669/CWE690_NULL_Deref_From_Return__struct_malloc_22b.c
CWE690_NULL_Deref_From_Return__struct_malloc_22_goodB2G1Sink
void CWE690_NULL_Deref_From_Return__struct_malloc_22_goodB2G1Sink(undefined4 *param_1) { if (CWE690_NULL_Deref_From_Return__struct_malloc_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,779
void CWE690_NULL_Deref_From_Return__struct_malloc_22_goodB2G2Sink(twoIntsStruct * data) { if(CWE690_NULL_Deref_From_Return__struct_malloc_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/111669/CWE690_NULL_Deref_From_Return__struct_malloc_22b.c
CWE690_NULL_Deref_From_Return__struct_malloc_22_goodB2G2Sink
void CWE690_NULL_Deref_From_Return__struct_malloc_22_goodB2G2Sink(undefined4 *param_1) { if ((CWE690_NULL_Deref_From_Return__struct_malloc_22_goodB2G2Global != 0) && (param_1 != (undefined4 *)0x0)) { *param_1 = 1; param_1[1] = 1; printStructLine(param_1); func_0x00400a20(param_1); } return; }
['gcc']
8,780
void CWE690_NULL_Deref_From_Return__struct_malloc_31_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)malloc(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/111670/CWE690_NULL_Deref_From_Return__struct_malloc_31.c
CWE690_NULL_Deref_From_Return__struct_malloc_31_bad
void CWE690_NULL_Deref_From_Return__struct_malloc_31_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400ab0(8); *puVar1 = 1; puVar1[1] = 1; printStructLine(puVar1); func_0x00400a20(puVar1); return; }
['gcc']
8,781
void CWE690_NULL_Deref_From_Return__struct_malloc_31_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111670/CWE690_NULL_Deref_From_Return__struct_malloc_31.c
CWE690_NULL_Deref_From_Return__struct_malloc_31_good
void CWE690_NULL_Deref_From_Return__struct_malloc_31_good(void) { goodB2G(); return; }
['gcc']
8,782
void CWE690_NULL_Deref_From_Return__struct_malloc_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 *)malloc(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/111671/CWE690_NULL_Deref_From_Return__struct_malloc_32.c
CWE690_NULL_Deref_From_Return__struct_malloc_32_bad
/* WARNING: Restarted to delay deadcode elimination for space: stack */ void CWE690_NULL_Deref_From_Return__struct_malloc_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_0x00400ab0(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,783
void CWE690_NULL_Deref_From_Return__struct_malloc_32_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111671/CWE690_NULL_Deref_From_Return__struct_malloc_32.c
CWE690_NULL_Deref_From_Return__struct_malloc_32_good
void CWE690_NULL_Deref_From_Return__struct_malloc_32_good(void) { goodB2G(); return; }
['gcc']
8,784
void CWE690_NULL_Deref_From_Return__struct_malloc_34_bad() { twoIntsStruct * data; CWE690_NULL_Deref_From_Return__struct_malloc_34_unionType myUnion; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)malloc(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/111673/CWE690_NULL_Deref_From_Return__struct_malloc_34.c
CWE690_NULL_Deref_From_Return__struct_malloc_34_bad
void CWE690_NULL_Deref_From_Return__struct_malloc_34_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400ab0(8); *puVar1 = 1; puVar1[1] = 1; printStructLine(puVar1); func_0x00400a20(puVar1); return; }
['gcc']
8,785
void CWE690_NULL_Deref_From_Return__struct_malloc_34_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111673/CWE690_NULL_Deref_From_Return__struct_malloc_34.c
CWE690_NULL_Deref_From_Return__struct_malloc_34_good
void CWE690_NULL_Deref_From_Return__struct_malloc_34_good(void) { goodB2G(); return; }
['gcc']
8,786
void CWE690_NULL_Deref_From_Return__struct_malloc_41_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)malloc(1*sizeof(twoIntsStruct)); 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/111674/CWE690_NULL_Deref_From_Return__struct_malloc_41.c
CWE690_NULL_Deref_From_Return__struct_malloc_41_bad
void CWE690_NULL_Deref_From_Return__struct_malloc_41_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ab0(8); badSink(uVar1); return; }
['gcc']
8,787
void CWE690_NULL_Deref_From_Return__struct_malloc_41_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111674/CWE690_NULL_Deref_From_Return__struct_malloc_41.c
CWE690_NULL_Deref_From_Return__struct_malloc_41_good
void CWE690_NULL_Deref_From_Return__struct_malloc_41_good(void) { goodB2G(); return; }
['gcc']
8,788
void CWE690_NULL_Deref_From_Return__struct_malloc_42_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ data = badSource(data); /* 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 */', '/* 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/111675/CWE690_NULL_Deref_From_Return__struct_malloc_42.c
CWE690_NULL_Deref_From_Return__struct_malloc_42_bad
void CWE690_NULL_Deref_From_Return__struct_malloc_42_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)badSource(0); *puVar1 = 1; puVar1[1] = 1; printStructLine(puVar1); func_0x00400a20(puVar1); return; }
['gcc']
8,789
void CWE690_NULL_Deref_From_Return__struct_malloc_42_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111675/CWE690_NULL_Deref_From_Return__struct_malloc_42.c
CWE690_NULL_Deref_From_Return__struct_malloc_42_good
void CWE690_NULL_Deref_From_Return__struct_malloc_42_good(void) { goodB2G(); return; }
['gcc']
8,790
void CWE690_NULL_Deref_From_Return__struct_malloc_51_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)malloc(1*sizeof(twoIntsStruct)); CWE690_NULL_Deref_From_Return__struct_malloc_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/111679/CWE690_NULL_Deref_From_Return__struct_malloc_51a.c
CWE690_NULL_Deref_From_Return__struct_malloc_51_bad
void CWE690_NULL_Deref_From_Return__struct_malloc_51_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ab0(8); CWE690_NULL_Deref_From_Return__struct_malloc_51b_badSink(uVar1); return; }
['gcc']
8,791
void CWE690_NULL_Deref_From_Return__struct_malloc_51_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111679/CWE690_NULL_Deref_From_Return__struct_malloc_51a.c
CWE690_NULL_Deref_From_Return__struct_malloc_51_good
void CWE690_NULL_Deref_From_Return__struct_malloc_51_good(void) { goodB2G(); return; }
['gcc']
8,792
void CWE690_NULL_Deref_From_Return__struct_malloc_51b_badSink(twoIntsStruct * data) { /* 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/111679/CWE690_NULL_Deref_From_Return__struct_malloc_51b.c
CWE690_NULL_Deref_From_Return__struct_malloc_51b_badSink
void CWE690_NULL_Deref_From_Return__struct_malloc_51b_badSink(undefined4 *param_1) { *param_1 = 1; param_1[1] = 1; printStructLine(param_1); func_0x00400a20(param_1); return; }
['gcc']
8,793
void CWE690_NULL_Deref_From_Return__struct_malloc_51b_goodB2GSink(twoIntsStruct * data) { /* 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/111679/CWE690_NULL_Deref_From_Return__struct_malloc_51b.c
CWE690_NULL_Deref_From_Return__struct_malloc_51b_goodB2GSink
void CWE690_NULL_Deref_From_Return__struct_malloc_51b_goodB2GSink(undefined4 *param_1) { if (param_1 != (undefined4 *)0x0) { *param_1 = 1; param_1[1] = 1; printStructLine(param_1); func_0x00400a20(param_1); } return; }
['gcc']
8,794
void CWE690_NULL_Deref_From_Return__struct_malloc_52_bad() { twoIntsStruct * data; data = NULL; /* Initialize data */ /* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */ data = (twoIntsStruct *)malloc(1*sizeof(twoIntsStruct)); CWE690_NULL_Deref_From_Return__struct_malloc_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/111680/CWE690_NULL_Deref_From_Return__struct_malloc_52a.c
CWE690_NULL_Deref_From_Return__struct_malloc_52_bad
void CWE690_NULL_Deref_From_Return__struct_malloc_52_bad(void) { undefined8 uVar1; uVar1 = func_0x00400ab0(8); CWE690_NULL_Deref_From_Return__struct_malloc_52b_badSink(uVar1); return; }
['gcc']
8,795
void CWE690_NULL_Deref_From_Return__struct_malloc_52_good() { goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111680/CWE690_NULL_Deref_From_Return__struct_malloc_52a.c
CWE690_NULL_Deref_From_Return__struct_malloc_52_good
void CWE690_NULL_Deref_From_Return__struct_malloc_52_good(void) { goodB2G(); return; }
['gcc']
8,796
void CWE690_NULL_Deref_From_Return__struct_malloc_52b_badSink(twoIntsStruct * data) { CWE690_NULL_Deref_From_Return__struct_malloc_52c_badSink(data); }
[]
['CWE690']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111680/CWE690_NULL_Deref_From_Return__struct_malloc_52b.c
CWE690_NULL_Deref_From_Return__struct_malloc_52b_badSink
void CWE690_NULL_Deref_From_Return__struct_malloc_52b_badSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__struct_malloc_52c_badSink(param_1); return; }
['gcc']
8,797
void CWE690_NULL_Deref_From_Return__struct_malloc_52b_goodB2GSink(twoIntsStruct * data) { CWE690_NULL_Deref_From_Return__struct_malloc_52c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111680/CWE690_NULL_Deref_From_Return__struct_malloc_52b.c
CWE690_NULL_Deref_From_Return__struct_malloc_52b_goodB2GSink
void CWE690_NULL_Deref_From_Return__struct_malloc_52b_goodB2GSink(undefined8 param_1) { CWE690_NULL_Deref_From_Return__struct_malloc_52c_goodB2GSink(param_1); return; }
['gcc']
8,798
void CWE690_NULL_Deref_From_Return__struct_malloc_52c_badSink(twoIntsStruct * data) { /* 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/111680/CWE690_NULL_Deref_From_Return__struct_malloc_52c.c
CWE690_NULL_Deref_From_Return__struct_malloc_52c_badSink
void CWE690_NULL_Deref_From_Return__struct_malloc_52c_badSink(undefined4 *param_1) { *param_1 = 1; param_1[1] = 1; printStructLine(param_1); func_0x00400a20(param_1); return; }
['gcc']
8,799
void CWE690_NULL_Deref_From_Return__struct_malloc_52c_goodB2GSink(twoIntsStruct * data) { /* 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/111680/CWE690_NULL_Deref_From_Return__struct_malloc_52c.c
CWE690_NULL_Deref_From_Return__struct_malloc_52c_goodB2GSink
void CWE690_NULL_Deref_From_Return__struct_malloc_52c_goodB2GSink(undefined4 *param_1) { if (param_1 != (undefined4 *)0x0) { *param_1 = 1; param_1[1] = 1; printStructLine(param_1); func_0x00400a20(param_1); } return; }
['gcc']