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,800 | void CWE690_NULL_Deref_From_Return__struct_malloc_53_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_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/111681/CWE690_NULL_Deref_From_Return__struct_malloc_53a.c | CWE690_NULL_Deref_From_Return__struct_malloc_53_bad |
void CWE690_NULL_Deref_From_Return__struct_malloc_53_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(8);
CWE690_NULL_Deref_From_Return__struct_malloc_53b_badSink(uVar1);
return;
}
| ['gcc'] |
8,801 | void CWE690_NULL_Deref_From_Return__struct_malloc_53_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111681/CWE690_NULL_Deref_From_Return__struct_malloc_53a.c | CWE690_NULL_Deref_From_Return__struct_malloc_53_good |
void CWE690_NULL_Deref_From_Return__struct_malloc_53_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,802 | void CWE690_NULL_Deref_From_Return__struct_malloc_53b_badSink(twoIntsStruct * data)
{
CWE690_NULL_Deref_From_Return__struct_malloc_53c_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111681/CWE690_NULL_Deref_From_Return__struct_malloc_53b.c | CWE690_NULL_Deref_From_Return__struct_malloc_53b_badSink |
void CWE690_NULL_Deref_From_Return__struct_malloc_53b_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__struct_malloc_53c_badSink(param_1);
return;
}
| ['gcc'] |
8,803 | void CWE690_NULL_Deref_From_Return__struct_malloc_53b_goodB2GSink(twoIntsStruct * data)
{
CWE690_NULL_Deref_From_Return__struct_malloc_53c_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111681/CWE690_NULL_Deref_From_Return__struct_malloc_53b.c | CWE690_NULL_Deref_From_Return__struct_malloc_53b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__struct_malloc_53b_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__struct_malloc_53c_goodB2GSink(param_1);
return;
}
| ['gcc'] |
8,804 | void CWE690_NULL_Deref_From_Return__struct_malloc_53c_badSink(twoIntsStruct * data)
{
CWE690_NULL_Deref_From_Return__struct_malloc_53d_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111681/CWE690_NULL_Deref_From_Return__struct_malloc_53c.c | CWE690_NULL_Deref_From_Return__struct_malloc_53c_badSink |
void CWE690_NULL_Deref_From_Return__struct_malloc_53c_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__struct_malloc_53d_badSink(param_1);
return;
}
| ['gcc'] |
8,805 | void CWE690_NULL_Deref_From_Return__struct_malloc_53c_goodB2GSink(twoIntsStruct * data)
{
CWE690_NULL_Deref_From_Return__struct_malloc_53d_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111681/CWE690_NULL_Deref_From_Return__struct_malloc_53c.c | CWE690_NULL_Deref_From_Return__struct_malloc_53c_goodB2GSink |
void CWE690_NULL_Deref_From_Return__struct_malloc_53c_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__struct_malloc_53d_goodB2GSink(param_1);
return;
}
| ['gcc'] |
8,806 | void CWE690_NULL_Deref_From_Return__struct_malloc_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/111681/CWE690_NULL_Deref_From_Return__struct_malloc_53d.c | CWE690_NULL_Deref_From_Return__struct_malloc_53d_badSink |
void CWE690_NULL_Deref_From_Return__struct_malloc_53d_badSink(undefined4 *param_1)
{
*param_1 = 1;
param_1[1] = 1;
printStructLine(param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
8,807 | void CWE690_NULL_Deref_From_Return__struct_malloc_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/111681/CWE690_NULL_Deref_From_Return__struct_malloc_53d.c | CWE690_NULL_Deref_From_Return__struct_malloc_53d_goodB2GSink |
void CWE690_NULL_Deref_From_Return__struct_malloc_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,808 | void CWE690_NULL_Deref_From_Return__struct_malloc_54_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_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/111682/CWE690_NULL_Deref_From_Return__struct_malloc_54a.c | CWE690_NULL_Deref_From_Return__struct_malloc_54_bad |
void CWE690_NULL_Deref_From_Return__struct_malloc_54_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(8);
CWE690_NULL_Deref_From_Return__struct_malloc_54b_badSink(uVar1);
return;
}
| ['gcc'] |
8,809 | void CWE690_NULL_Deref_From_Return__struct_malloc_54_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111682/CWE690_NULL_Deref_From_Return__struct_malloc_54a.c | CWE690_NULL_Deref_From_Return__struct_malloc_54_good |
void CWE690_NULL_Deref_From_Return__struct_malloc_54_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,810 | void CWE690_NULL_Deref_From_Return__struct_malloc_54b_badSink(twoIntsStruct * data)
{
CWE690_NULL_Deref_From_Return__struct_malloc_54c_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111682/CWE690_NULL_Deref_From_Return__struct_malloc_54b.c | CWE690_NULL_Deref_From_Return__struct_malloc_54b_badSink |
void CWE690_NULL_Deref_From_Return__struct_malloc_54b_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__struct_malloc_54c_badSink(param_1);
return;
}
| ['gcc'] |
8,811 | void CWE690_NULL_Deref_From_Return__struct_malloc_54b_goodB2GSink(twoIntsStruct * data)
{
CWE690_NULL_Deref_From_Return__struct_malloc_54c_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111682/CWE690_NULL_Deref_From_Return__struct_malloc_54b.c | CWE690_NULL_Deref_From_Return__struct_malloc_54b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__struct_malloc_54b_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__struct_malloc_54c_goodB2GSink(param_1);
return;
}
| ['gcc'] |
8,812 | void CWE690_NULL_Deref_From_Return__struct_malloc_54c_badSink(twoIntsStruct * data)
{
CWE690_NULL_Deref_From_Return__struct_malloc_54d_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111682/CWE690_NULL_Deref_From_Return__struct_malloc_54c.c | CWE690_NULL_Deref_From_Return__struct_malloc_54c_badSink |
void CWE690_NULL_Deref_From_Return__struct_malloc_54c_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__struct_malloc_54d_badSink(param_1);
return;
}
| ['gcc'] |
8,813 | void CWE690_NULL_Deref_From_Return__struct_malloc_54c_goodB2GSink(twoIntsStruct * data)
{
CWE690_NULL_Deref_From_Return__struct_malloc_54d_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111682/CWE690_NULL_Deref_From_Return__struct_malloc_54c.c | CWE690_NULL_Deref_From_Return__struct_malloc_54c_goodB2GSink |
void CWE690_NULL_Deref_From_Return__struct_malloc_54c_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__struct_malloc_54d_goodB2GSink(param_1);
return;
}
| ['gcc'] |
8,814 | void CWE690_NULL_Deref_From_Return__struct_malloc_54d_badSink(twoIntsStruct * data)
{
CWE690_NULL_Deref_From_Return__struct_malloc_54e_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111682/CWE690_NULL_Deref_From_Return__struct_malloc_54d.c | CWE690_NULL_Deref_From_Return__struct_malloc_54d_badSink |
void CWE690_NULL_Deref_From_Return__struct_malloc_54d_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__struct_malloc_54e_badSink(param_1);
return;
}
| ['gcc'] |
8,815 | void CWE690_NULL_Deref_From_Return__struct_malloc_54d_goodB2GSink(twoIntsStruct * data)
{
CWE690_NULL_Deref_From_Return__struct_malloc_54e_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111682/CWE690_NULL_Deref_From_Return__struct_malloc_54d.c | CWE690_NULL_Deref_From_Return__struct_malloc_54d_goodB2GSink |
void CWE690_NULL_Deref_From_Return__struct_malloc_54d_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__struct_malloc_54e_goodB2GSink(param_1);
return;
}
| ['gcc'] |
8,816 | void CWE690_NULL_Deref_From_Return__struct_malloc_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/111682/CWE690_NULL_Deref_From_Return__struct_malloc_54e.c | CWE690_NULL_Deref_From_Return__struct_malloc_54e_badSink |
void CWE690_NULL_Deref_From_Return__struct_malloc_54e_badSink(undefined4 *param_1)
{
*param_1 = 1;
param_1[1] = 1;
printStructLine(param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
8,817 | void CWE690_NULL_Deref_From_Return__struct_malloc_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/111682/CWE690_NULL_Deref_From_Return__struct_malloc_54e.c | CWE690_NULL_Deref_From_Return__struct_malloc_54e_goodB2GSink |
void CWE690_NULL_Deref_From_Return__struct_malloc_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,818 | void CWE690_NULL_Deref_From_Return__struct_malloc_61_bad()
{
twoIntsStruct * data;
data = NULL; /* Initialize data */
data = CWE690_NULL_Deref_From_Return__struct_malloc_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/111683/CWE690_NULL_Deref_From_Return__struct_malloc_61a.c | CWE690_NULL_Deref_From_Return__struct_malloc_61_bad |
void CWE690_NULL_Deref_From_Return__struct_malloc_61_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)CWE690_NULL_Deref_From_Return__struct_malloc_61b_badSource(0);
*puVar1 = 1;
puVar1[1] = 1;
printStructLine(puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,819 | void CWE690_NULL_Deref_From_Return__struct_malloc_61_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111683/CWE690_NULL_Deref_From_Return__struct_malloc_61a.c | CWE690_NULL_Deref_From_Return__struct_malloc_61_good |
void CWE690_NULL_Deref_From_Return__struct_malloc_61_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,820 | twoIntsStruct * CWE690_NULL_Deref_From_Return__struct_malloc_61b_badSource(twoIntsStruct * data)
{
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (twoIntsStruct *)malloc(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/111683/CWE690_NULL_Deref_From_Return__struct_malloc_61b.c | CWE690_NULL_Deref_From_Return__struct_malloc_61b_badSource |
undefined8 CWE690_NULL_Deref_From_Return__struct_malloc_61b_badSource(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(8);
return uVar1;
}
| ['gcc'] |
8,821 | twoIntsStruct * CWE690_NULL_Deref_From_Return__struct_malloc_61b_goodB2GSource(twoIntsStruct * data)
{
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (twoIntsStruct *)malloc(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/111683/CWE690_NULL_Deref_From_Return__struct_malloc_61b.c | CWE690_NULL_Deref_From_Return__struct_malloc_61b_goodB2GSource |
undefined8 CWE690_NULL_Deref_From_Return__struct_malloc_61b_goodB2GSource(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(8);
return uVar1;
}
| ['gcc'] |
8,822 | void CWE690_NULL_Deref_From_Return__struct_malloc_63_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_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/111685/CWE690_NULL_Deref_From_Return__struct_malloc_63a.c | CWE690_NULL_Deref_From_Return__struct_malloc_63_bad |
void CWE690_NULL_Deref_From_Return__struct_malloc_63_bad(void)
{
undefined8 uStack_10;
uStack_10 = 0;
uStack_10 = func_0x00400ab0(8);
CWE690_NULL_Deref_From_Return__struct_malloc_63b_badSink(&uStack_10);
return;
}
| ['gcc'] |
8,823 | void CWE690_NULL_Deref_From_Return__struct_malloc_63_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111685/CWE690_NULL_Deref_From_Return__struct_malloc_63a.c | CWE690_NULL_Deref_From_Return__struct_malloc_63_good |
void CWE690_NULL_Deref_From_Return__struct_malloc_63_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,824 | void CWE690_NULL_Deref_From_Return__struct_malloc_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/111685/CWE690_NULL_Deref_From_Return__struct_malloc_63b.c | CWE690_NULL_Deref_From_Return__struct_malloc_63b_badSink |
void CWE690_NULL_Deref_From_Return__struct_malloc_63b_badSink(undefined8 *param_1)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)*param_1;
*puVar1 = 1;
puVar1[1] = 1;
printStructLine(puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,825 | void CWE690_NULL_Deref_From_Return__struct_malloc_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/111685/CWE690_NULL_Deref_From_Return__struct_malloc_63b.c | CWE690_NULL_Deref_From_Return__struct_malloc_63b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__struct_malloc_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,826 | void CWE690_NULL_Deref_From_Return__struct_malloc_64_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_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/111686/CWE690_NULL_Deref_From_Return__struct_malloc_64a.c | CWE690_NULL_Deref_From_Return__struct_malloc_64_bad |
void CWE690_NULL_Deref_From_Return__struct_malloc_64_bad(void)
{
undefined8 uStack_10;
uStack_10 = 0;
uStack_10 = func_0x00400ab0(8);
CWE690_NULL_Deref_From_Return__struct_malloc_64b_badSink(&uStack_10);
return;
}
| ['gcc'] |
8,827 | void CWE690_NULL_Deref_From_Return__struct_malloc_64_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111686/CWE690_NULL_Deref_From_Return__struct_malloc_64a.c | CWE690_NULL_Deref_From_Return__struct_malloc_64_good |
void CWE690_NULL_Deref_From_Return__struct_malloc_64_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,828 | void CWE690_NULL_Deref_From_Return__struct_malloc_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/111686/CWE690_NULL_Deref_From_Return__struct_malloc_64b.c | CWE690_NULL_Deref_From_Return__struct_malloc_64b_badSink |
void CWE690_NULL_Deref_From_Return__struct_malloc_64b_badSink(undefined8 *param_1)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)*param_1;
*puVar1 = 1;
puVar1[1] = 1;
printStructLine(puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,829 | void CWE690_NULL_Deref_From_Return__struct_malloc_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/111686/CWE690_NULL_Deref_From_Return__struct_malloc_64b.c | CWE690_NULL_Deref_From_Return__struct_malloc_64b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__struct_malloc_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,830 | void CWE690_NULL_Deref_From_Return__struct_malloc_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 *)malloc(1*sizeof(twoIntsStruct));
/* put data in array */
dataArray[2] = data;
CWE690_NULL_Deref_From_Return__struct_malloc_66b_badSink(dataArray);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* put data in array */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111688/CWE690_NULL_Deref_From_Return__struct_malloc_66a.c | CWE690_NULL_Deref_From_Return__struct_malloc_66_bad |
void CWE690_NULL_Deref_From_Return__struct_malloc_66_bad(void)
{
undefined auStack_38 [16];
undefined8 uStack_28;
undefined8 uStack_10;
uStack_10 = 0;
uStack_28 = func_0x00400ab0(8);
uStack_10 = uStack_28;
CWE690_NULL_Deref_From_Return__struct_malloc_66b_badSink(auStack_38);
return;
}
| ['gcc'] |
8,831 | void CWE690_NULL_Deref_From_Return__struct_malloc_66_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111688/CWE690_NULL_Deref_From_Return__struct_malloc_66a.c | CWE690_NULL_Deref_From_Return__struct_malloc_66_good |
void CWE690_NULL_Deref_From_Return__struct_malloc_66_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,832 | void CWE690_NULL_Deref_From_Return__struct_malloc_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/111688/CWE690_NULL_Deref_From_Return__struct_malloc_66b.c | CWE690_NULL_Deref_From_Return__struct_malloc_66b_badSink |
void CWE690_NULL_Deref_From_Return__struct_malloc_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,833 | void CWE690_NULL_Deref_From_Return__struct_malloc_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/111688/CWE690_NULL_Deref_From_Return__struct_malloc_66b.c | CWE690_NULL_Deref_From_Return__struct_malloc_66b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__struct_malloc_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,834 | void CWE690_NULL_Deref_From_Return__struct_malloc_67_bad()
{
twoIntsStruct * data;
CWE690_NULL_Deref_From_Return__struct_malloc_67_structType myStruct;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (twoIntsStruct *)malloc(1*sizeof(twoIntsStruct));
myStruct.structFirst = data;
CWE690_NULL_Deref_From_Return__struct_malloc_67b_badSink(myStruct);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111689/CWE690_NULL_Deref_From_Return__struct_malloc_67a.c | CWE690_NULL_Deref_From_Return__struct_malloc_67_bad |
void CWE690_NULL_Deref_From_Return__struct_malloc_67_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(8);
CWE690_NULL_Deref_From_Return__struct_malloc_67b_badSink(uVar1);
return;
}
| ['gcc'] |
8,835 | void CWE690_NULL_Deref_From_Return__struct_malloc_67_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111689/CWE690_NULL_Deref_From_Return__struct_malloc_67a.c | CWE690_NULL_Deref_From_Return__struct_malloc_67_good |
void CWE690_NULL_Deref_From_Return__struct_malloc_67_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,836 | void CWE690_NULL_Deref_From_Return__struct_malloc_67b_badSink(CWE690_NULL_Deref_From_Return__struct_malloc_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/111689/CWE690_NULL_Deref_From_Return__struct_malloc_67b.c | CWE690_NULL_Deref_From_Return__struct_malloc_67b_badSink |
void CWE690_NULL_Deref_From_Return__struct_malloc_67b_badSink(undefined4 *param_1)
{
*param_1 = 1;
param_1[1] = 1;
printStructLine(param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
8,837 | void CWE690_NULL_Deref_From_Return__struct_malloc_67b_goodB2GSink(CWE690_NULL_Deref_From_Return__struct_malloc_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/111689/CWE690_NULL_Deref_From_Return__struct_malloc_67b.c | CWE690_NULL_Deref_From_Return__struct_malloc_67b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__struct_malloc_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,838 | void CWE690_NULL_Deref_From_Return__struct_realloc_03_bad()
{
twoIntsStruct * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (twoIntsStruct *)realloc(data, 1*sizeof(twoIntsStruct));
if(5==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/111700/CWE690_NULL_Deref_From_Return__struct_realloc_03.c | CWE690_NULL_Deref_From_Return__struct_realloc_03_bad |
void CWE690_NULL_Deref_From_Return__struct_realloc_03_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ad0(0,8);
*puVar1 = 1;
puVar1[1] = 1;
printStructLine(puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,839 | void CWE690_NULL_Deref_From_Return__struct_realloc_03_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111700/CWE690_NULL_Deref_From_Return__struct_realloc_03.c | CWE690_NULL_Deref_From_Return__struct_realloc_03_good |
void CWE690_NULL_Deref_From_Return__struct_realloc_03_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,840 | void CWE690_NULL_Deref_From_Return__struct_realloc_04_bad()
{
twoIntsStruct * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (twoIntsStruct *)realloc(data, 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/111701/CWE690_NULL_Deref_From_Return__struct_realloc_04.c | CWE690_NULL_Deref_From_Return__struct_realloc_04_bad |
void CWE690_NULL_Deref_From_Return__struct_realloc_04_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ad0(0,8);
*puVar1 = 1;
puVar1[1] = 1;
printStructLine(puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,841 | void CWE690_NULL_Deref_From_Return__struct_realloc_04_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111701/CWE690_NULL_Deref_From_Return__struct_realloc_04.c | CWE690_NULL_Deref_From_Return__struct_realloc_04_good |
void CWE690_NULL_Deref_From_Return__struct_realloc_04_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,842 | void CWE690_NULL_Deref_From_Return__struct_realloc_05_bad()
{
twoIntsStruct * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (twoIntsStruct *)realloc(data, 1*sizeof(twoIntsStruct));
if(staticTrue)
{
/* 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/111702/CWE690_NULL_Deref_From_Return__struct_realloc_05.c | CWE690_NULL_Deref_From_Return__struct_realloc_05_bad |
void CWE690_NULL_Deref_From_Return__struct_realloc_05_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ad0(0,8);
if (staticTrue != 0) {
*puVar1 = 1;
puVar1[1] = 1;
printStructLine(puVar1);
func_0x00400a20(puVar1);
}
return;
}
| ['gcc'] |
8,843 | void CWE690_NULL_Deref_From_Return__struct_realloc_05_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111702/CWE690_NULL_Deref_From_Return__struct_realloc_05.c | CWE690_NULL_Deref_From_Return__struct_realloc_05_good |
void CWE690_NULL_Deref_From_Return__struct_realloc_05_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,844 | void CWE690_NULL_Deref_From_Return__struct_realloc_06_bad()
{
twoIntsStruct * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (twoIntsStruct *)realloc(data, 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/111703/CWE690_NULL_Deref_From_Return__struct_realloc_06.c | CWE690_NULL_Deref_From_Return__struct_realloc_06_bad |
void CWE690_NULL_Deref_From_Return__struct_realloc_06_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ad0(0,8);
*puVar1 = 1;
puVar1[1] = 1;
printStructLine(puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,845 | void CWE690_NULL_Deref_From_Return__struct_realloc_06_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111703/CWE690_NULL_Deref_From_Return__struct_realloc_06.c | CWE690_NULL_Deref_From_Return__struct_realloc_06_good |
void CWE690_NULL_Deref_From_Return__struct_realloc_06_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,846 | void CWE690_NULL_Deref_From_Return__struct_realloc_07_bad()
{
twoIntsStruct * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (twoIntsStruct *)realloc(data, 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/111704/CWE690_NULL_Deref_From_Return__struct_realloc_07.c | CWE690_NULL_Deref_From_Return__struct_realloc_07_bad |
void CWE690_NULL_Deref_From_Return__struct_realloc_07_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ad0(0,8);
if (staticFive == 5) {
*puVar1 = 1;
puVar1[1] = 1;
printStructLine(puVar1);
func_0x00400a20(puVar1);
}
return;
}
| ['gcc'] |
8,847 | void CWE690_NULL_Deref_From_Return__struct_realloc_07_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111704/CWE690_NULL_Deref_From_Return__struct_realloc_07.c | CWE690_NULL_Deref_From_Return__struct_realloc_07_good |
void CWE690_NULL_Deref_From_Return__struct_realloc_07_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,848 | void CWE690_NULL_Deref_From_Return__struct_realloc_08_bad()
{
twoIntsStruct * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (twoIntsStruct *)realloc(data, 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/111705/CWE690_NULL_Deref_From_Return__struct_realloc_08.c | CWE690_NULL_Deref_From_Return__struct_realloc_08_bad |
void CWE690_NULL_Deref_From_Return__struct_realloc_08_bad(void)
{
int iVar1;
undefined4 *puVar2;
puVar2 = (undefined4 *)func_0x00400ad0(0,8);
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
*puVar2 = 1;
puVar2[1] = 1;
printStructLine(puVar2);
func_0x00400a20(puVar2);
}
return;
}
| ['gcc'] |
8,849 | void CWE690_NULL_Deref_From_Return__struct_realloc_08_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111705/CWE690_NULL_Deref_From_Return__struct_realloc_08.c | CWE690_NULL_Deref_From_Return__struct_realloc_08_good |
void CWE690_NULL_Deref_From_Return__struct_realloc_08_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,850 | void CWE690_NULL_Deref_From_Return__struct_realloc_09_bad()
{
twoIntsStruct * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (twoIntsStruct *)realloc(data, 1*sizeof(twoIntsStruct));
if(GLOBAL_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/111706/CWE690_NULL_Deref_From_Return__struct_realloc_09.c | CWE690_NULL_Deref_From_Return__struct_realloc_09_bad |
void CWE690_NULL_Deref_From_Return__struct_realloc_09_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ad0(0,8);
if (GLOBAL_CONST_TRUE != 0) {
*puVar1 = 1;
puVar1[1] = 1;
printStructLine(puVar1);
func_0x00400a20(puVar1);
}
return;
}
| ['gcc'] |
8,851 | void CWE690_NULL_Deref_From_Return__struct_realloc_09_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111706/CWE690_NULL_Deref_From_Return__struct_realloc_09.c | CWE690_NULL_Deref_From_Return__struct_realloc_09_good |
void CWE690_NULL_Deref_From_Return__struct_realloc_09_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,852 | void CWE690_NULL_Deref_From_Return__struct_realloc_10_bad()
{
twoIntsStruct * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (twoIntsStruct *)realloc(data, 1*sizeof(twoIntsStruct));
if(globalTrue)
{
/* 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/111707/CWE690_NULL_Deref_From_Return__struct_realloc_10.c | CWE690_NULL_Deref_From_Return__struct_realloc_10_bad |
void CWE690_NULL_Deref_From_Return__struct_realloc_10_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ad0(0,8);
if (globalTrue != 0) {
*puVar1 = 1;
puVar1[1] = 1;
printStructLine(puVar1);
func_0x00400a20(puVar1);
}
return;
}
| ['gcc'] |
8,853 | void CWE690_NULL_Deref_From_Return__struct_realloc_10_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111707/CWE690_NULL_Deref_From_Return__struct_realloc_10.c | CWE690_NULL_Deref_From_Return__struct_realloc_10_good |
void CWE690_NULL_Deref_From_Return__struct_realloc_10_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,854 | void CWE690_NULL_Deref_From_Return__struct_realloc_11_bad()
{
twoIntsStruct * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (twoIntsStruct *)realloc(data, 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/111708/CWE690_NULL_Deref_From_Return__struct_realloc_11.c | CWE690_NULL_Deref_From_Return__struct_realloc_11_bad |
void CWE690_NULL_Deref_From_Return__struct_realloc_11_bad(void)
{
int iVar1;
undefined4 *puVar2;
puVar2 = (undefined4 *)func_0x00400ad0(0,8);
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
*puVar2 = 1;
puVar2[1] = 1;
printStructLine(puVar2);
func_0x00400a20(puVar2);
}
return;
}
| ['gcc'] |
8,855 | void CWE690_NULL_Deref_From_Return__struct_realloc_11_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111708/CWE690_NULL_Deref_From_Return__struct_realloc_11.c | CWE690_NULL_Deref_From_Return__struct_realloc_11_good |
void CWE690_NULL_Deref_From_Return__struct_realloc_11_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,856 | void CWE690_NULL_Deref_From_Return__struct_realloc_12_bad()
{
twoIntsStruct * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (twoIntsStruct *)realloc(data, 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/111709/CWE690_NULL_Deref_From_Return__struct_realloc_12.c | CWE690_NULL_Deref_From_Return__struct_realloc_12_bad |
void CWE690_NULL_Deref_From_Return__struct_realloc_12_bad(void)
{
int iVar1;
undefined4 *puVar2;
puVar2 = (undefined4 *)func_0x00400ad0(0,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,857 | void CWE690_NULL_Deref_From_Return__struct_realloc_12_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111709/CWE690_NULL_Deref_From_Return__struct_realloc_12.c | CWE690_NULL_Deref_From_Return__struct_realloc_12_good |
void CWE690_NULL_Deref_From_Return__struct_realloc_12_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,858 | void CWE690_NULL_Deref_From_Return__struct_realloc_13_bad()
{
twoIntsStruct * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (twoIntsStruct *)realloc(data, 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/111710/CWE690_NULL_Deref_From_Return__struct_realloc_13.c | CWE690_NULL_Deref_From_Return__struct_realloc_13_bad |
void CWE690_NULL_Deref_From_Return__struct_realloc_13_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ad0(0,8);
if (GLOBAL_CONST_FIVE == 5) {
*puVar1 = 1;
puVar1[1] = 1;
printStructLine(puVar1);
func_0x00400a20(puVar1);
}
return;
}
| ['gcc'] |
8,859 | void CWE690_NULL_Deref_From_Return__struct_realloc_13_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111710/CWE690_NULL_Deref_From_Return__struct_realloc_13.c | CWE690_NULL_Deref_From_Return__struct_realloc_13_good |
void CWE690_NULL_Deref_From_Return__struct_realloc_13_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,860 | void CWE690_NULL_Deref_From_Return__struct_realloc_14_bad()
{
twoIntsStruct * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (twoIntsStruct *)realloc(data, 1*sizeof(twoIntsStruct));
if(globalFive==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/111711/CWE690_NULL_Deref_From_Return__struct_realloc_14.c | CWE690_NULL_Deref_From_Return__struct_realloc_14_bad |
void CWE690_NULL_Deref_From_Return__struct_realloc_14_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ad0(0,8);
if (globalFive == 5) {
*puVar1 = 1;
puVar1[1] = 1;
printStructLine(puVar1);
func_0x00400a20(puVar1);
}
return;
}
| ['gcc'] |
8,861 | void CWE690_NULL_Deref_From_Return__struct_realloc_14_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111711/CWE690_NULL_Deref_From_Return__struct_realloc_14.c | CWE690_NULL_Deref_From_Return__struct_realloc_14_good |
void CWE690_NULL_Deref_From_Return__struct_realloc_14_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,862 | void CWE690_NULL_Deref_From_Return__struct_realloc_15_bad()
{
twoIntsStruct * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (twoIntsStruct *)realloc(data, 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/111712/CWE690_NULL_Deref_From_Return__struct_realloc_15.c | CWE690_NULL_Deref_From_Return__struct_realloc_15_bad |
void CWE690_NULL_Deref_From_Return__struct_realloc_15_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ad0(0,8);
*puVar1 = 1;
puVar1[1] = 1;
printStructLine(puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,863 | void CWE690_NULL_Deref_From_Return__struct_realloc_15_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111712/CWE690_NULL_Deref_From_Return__struct_realloc_15.c | CWE690_NULL_Deref_From_Return__struct_realloc_15_good |
void CWE690_NULL_Deref_From_Return__struct_realloc_15_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,864 | void CWE690_NULL_Deref_From_Return__struct_realloc_16_bad()
{
twoIntsStruct * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (twoIntsStruct *)realloc(data, 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/111713/CWE690_NULL_Deref_From_Return__struct_realloc_16.c | CWE690_NULL_Deref_From_Return__struct_realloc_16_bad |
void CWE690_NULL_Deref_From_Return__struct_realloc_16_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ad0(0,8);
*puVar1 = 1;
puVar1[1] = 1;
printStructLine(puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,865 | void CWE690_NULL_Deref_From_Return__struct_realloc_16_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111713/CWE690_NULL_Deref_From_Return__struct_realloc_16.c | CWE690_NULL_Deref_From_Return__struct_realloc_16_good |
void CWE690_NULL_Deref_From_Return__struct_realloc_16_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,866 | void CWE690_NULL_Deref_From_Return__struct_realloc_17_bad()
{
int j;
twoIntsStruct * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (twoIntsStruct *)realloc(data, 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/111714/CWE690_NULL_Deref_From_Return__struct_realloc_17.c | CWE690_NULL_Deref_From_Return__struct_realloc_17_bad |
void CWE690_NULL_Deref_From_Return__struct_realloc_17_bad(void)
{
undefined4 *puVar1;
int iStack_c;
puVar1 = (undefined4 *)func_0x00400ad0(0,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,867 | void CWE690_NULL_Deref_From_Return__struct_realloc_17_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111714/CWE690_NULL_Deref_From_Return__struct_realloc_17.c | CWE690_NULL_Deref_From_Return__struct_realloc_17_good |
void CWE690_NULL_Deref_From_Return__struct_realloc_17_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,868 | void CWE690_NULL_Deref_From_Return__struct_realloc_18_bad()
{
twoIntsStruct * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (twoIntsStruct *)realloc(data, 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/111715/CWE690_NULL_Deref_From_Return__struct_realloc_18.c | CWE690_NULL_Deref_From_Return__struct_realloc_18_bad |
void CWE690_NULL_Deref_From_Return__struct_realloc_18_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ad0(0,8);
*puVar1 = 1;
puVar1[1] = 1;
printStructLine(puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,869 | void CWE690_NULL_Deref_From_Return__struct_realloc_18_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111715/CWE690_NULL_Deref_From_Return__struct_realloc_18.c | CWE690_NULL_Deref_From_Return__struct_realloc_18_good |
void CWE690_NULL_Deref_From_Return__struct_realloc_18_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,870 | void CWE690_NULL_Deref_From_Return__struct_realloc_21_bad()
{
twoIntsStruct * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (twoIntsStruct *)realloc(data, 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/111716/CWE690_NULL_Deref_From_Return__struct_realloc_21.c | CWE690_NULL_Deref_From_Return__struct_realloc_21_bad |
void CWE690_NULL_Deref_From_Return__struct_realloc_21_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ad0(0,8);
badStatic = 1;
badSink(uVar1);
return;
}
| ['gcc'] |
8,871 | void CWE690_NULL_Deref_From_Return__struct_realloc_21_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111716/CWE690_NULL_Deref_From_Return__struct_realloc_21.c | CWE690_NULL_Deref_From_Return__struct_realloc_21_good |
void CWE690_NULL_Deref_From_Return__struct_realloc_21_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,872 | void CWE690_NULL_Deref_From_Return__struct_realloc_22_bad()
{
twoIntsStruct * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (twoIntsStruct *)realloc(data, 1*sizeof(twoIntsStruct));
CWE690_NULL_Deref_From_Return__struct_realloc_22_badGlobal = 1; /* true */
CWE690_NULL_Deref_From_Return__struct_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/111717/CWE690_NULL_Deref_From_Return__struct_realloc_22a.c | CWE690_NULL_Deref_From_Return__struct_realloc_22_bad |
void CWE690_NULL_Deref_From_Return__struct_realloc_22_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ad0(0,8);
CWE690_NULL_Deref_From_Return__struct_realloc_22_badGlobal = 1;
CWE690_NULL_Deref_From_Return__struct_realloc_22_badSink(uVar1);
return;
}
| ['gcc'] |
8,873 | void CWE690_NULL_Deref_From_Return__struct_realloc_22_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111717/CWE690_NULL_Deref_From_Return__struct_realloc_22a.c | CWE690_NULL_Deref_From_Return__struct_realloc_22_good |
void CWE690_NULL_Deref_From_Return__struct_realloc_22_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,874 | void CWE690_NULL_Deref_From_Return__struct_realloc_22_badSink(twoIntsStruct * data)
{
if(CWE690_NULL_Deref_From_Return__struct_realloc_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/111717/CWE690_NULL_Deref_From_Return__struct_realloc_22b.c | CWE690_NULL_Deref_From_Return__struct_realloc_22_badSink |
void CWE690_NULL_Deref_From_Return__struct_realloc_22_badSink(undefined4 *param_1)
{
if (CWE690_NULL_Deref_From_Return__struct_realloc_22_badGlobal != 0) {
*param_1 = 1;
param_1[1] = 1;
printStructLine(param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,875 | void CWE690_NULL_Deref_From_Return__struct_realloc_22_goodB2G1Sink(twoIntsStruct * data)
{
if(CWE690_NULL_Deref_From_Return__struct_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].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/111717/CWE690_NULL_Deref_From_Return__struct_realloc_22b.c | CWE690_NULL_Deref_From_Return__struct_realloc_22_goodB2G1Sink |
void CWE690_NULL_Deref_From_Return__struct_realloc_22_goodB2G1Sink(undefined4 *param_1)
{
if (CWE690_NULL_Deref_From_Return__struct_realloc_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_00401294);
}
return;
}
| ['gcc'] |
8,876 | void CWE690_NULL_Deref_From_Return__struct_realloc_22_goodB2G2Sink(twoIntsStruct * data)
{
if(CWE690_NULL_Deref_From_Return__struct_realloc_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/111717/CWE690_NULL_Deref_From_Return__struct_realloc_22b.c | CWE690_NULL_Deref_From_Return__struct_realloc_22_goodB2G2Sink |
void CWE690_NULL_Deref_From_Return__struct_realloc_22_goodB2G2Sink(undefined4 *param_1)
{
if ((CWE690_NULL_Deref_From_Return__struct_realloc_22_goodB2G2Global != 0) &&
(param_1 != (undefined4 *)0x0)) {
*param_1 = 1;
param_1[1] = 1;
printStructLine(param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,877 | void CWE690_NULL_Deref_From_Return__struct_realloc_31_bad()
{
twoIntsStruct * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (twoIntsStruct *)realloc(data, 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/111718/CWE690_NULL_Deref_From_Return__struct_realloc_31.c | CWE690_NULL_Deref_From_Return__struct_realloc_31_bad |
void CWE690_NULL_Deref_From_Return__struct_realloc_31_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ad0(0,8);
*puVar1 = 1;
puVar1[1] = 1;
printStructLine(puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,878 | void CWE690_NULL_Deref_From_Return__struct_realloc_31_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111718/CWE690_NULL_Deref_From_Return__struct_realloc_31.c | CWE690_NULL_Deref_From_Return__struct_realloc_31_good |
void CWE690_NULL_Deref_From_Return__struct_realloc_31_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,879 | void CWE690_NULL_Deref_From_Return__struct_realloc_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 *)realloc(data, 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/111719/CWE690_NULL_Deref_From_Return__struct_realloc_32.c | CWE690_NULL_Deref_From_Return__struct_realloc_32_bad |
/* WARNING: Restarted to delay deadcode elimination for space: stack */
void CWE690_NULL_Deref_From_Return__struct_realloc_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_0x00400ad0(0,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,880 | void CWE690_NULL_Deref_From_Return__struct_realloc_32_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111719/CWE690_NULL_Deref_From_Return__struct_realloc_32.c | CWE690_NULL_Deref_From_Return__struct_realloc_32_good |
void CWE690_NULL_Deref_From_Return__struct_realloc_32_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,881 | void CWE690_NULL_Deref_From_Return__struct_realloc_34_bad()
{
twoIntsStruct * data;
CWE690_NULL_Deref_From_Return__struct_realloc_34_unionType myUnion;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (twoIntsStruct *)realloc(data, 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/111721/CWE690_NULL_Deref_From_Return__struct_realloc_34.c | CWE690_NULL_Deref_From_Return__struct_realloc_34_bad |
void CWE690_NULL_Deref_From_Return__struct_realloc_34_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ad0(0,8);
*puVar1 = 1;
puVar1[1] = 1;
printStructLine(puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,882 | void CWE690_NULL_Deref_From_Return__struct_realloc_34_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111721/CWE690_NULL_Deref_From_Return__struct_realloc_34.c | CWE690_NULL_Deref_From_Return__struct_realloc_34_good |
void CWE690_NULL_Deref_From_Return__struct_realloc_34_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,883 | void CWE690_NULL_Deref_From_Return__struct_realloc_41_bad()
{
twoIntsStruct * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (twoIntsStruct *)realloc(data, 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/111722/CWE690_NULL_Deref_From_Return__struct_realloc_41.c | CWE690_NULL_Deref_From_Return__struct_realloc_41_bad |
void CWE690_NULL_Deref_From_Return__struct_realloc_41_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ad0(0,8);
badSink(uVar1);
return;
}
| ['gcc'] |
8,884 | void CWE690_NULL_Deref_From_Return__struct_realloc_41_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111722/CWE690_NULL_Deref_From_Return__struct_realloc_41.c | CWE690_NULL_Deref_From_Return__struct_realloc_41_good |
void CWE690_NULL_Deref_From_Return__struct_realloc_41_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,885 | void CWE690_NULL_Deref_From_Return__struct_realloc_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/111723/CWE690_NULL_Deref_From_Return__struct_realloc_42.c | CWE690_NULL_Deref_From_Return__struct_realloc_42_bad |
void CWE690_NULL_Deref_From_Return__struct_realloc_42_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)badSource(0);
*puVar1 = 1;
puVar1[1] = 1;
printStructLine(puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,886 | void CWE690_NULL_Deref_From_Return__struct_realloc_42_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111723/CWE690_NULL_Deref_From_Return__struct_realloc_42.c | CWE690_NULL_Deref_From_Return__struct_realloc_42_good |
void CWE690_NULL_Deref_From_Return__struct_realloc_42_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,887 | void CWE690_NULL_Deref_From_Return__struct_realloc_51_bad()
{
twoIntsStruct * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (twoIntsStruct *)realloc(data, 1*sizeof(twoIntsStruct));
CWE690_NULL_Deref_From_Return__struct_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/111727/CWE690_NULL_Deref_From_Return__struct_realloc_51a.c | CWE690_NULL_Deref_From_Return__struct_realloc_51_bad |
void CWE690_NULL_Deref_From_Return__struct_realloc_51_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ad0(0,8);
CWE690_NULL_Deref_From_Return__struct_realloc_51b_badSink(uVar1);
return;
}
| ['gcc'] |
8,888 | void CWE690_NULL_Deref_From_Return__struct_realloc_51_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111727/CWE690_NULL_Deref_From_Return__struct_realloc_51a.c | CWE690_NULL_Deref_From_Return__struct_realloc_51_good |
void CWE690_NULL_Deref_From_Return__struct_realloc_51_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,889 | void CWE690_NULL_Deref_From_Return__struct_realloc_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/111727/CWE690_NULL_Deref_From_Return__struct_realloc_51b.c | CWE690_NULL_Deref_From_Return__struct_realloc_51b_badSink |
void CWE690_NULL_Deref_From_Return__struct_realloc_51b_badSink(undefined4 *param_1)
{
*param_1 = 1;
param_1[1] = 1;
printStructLine(param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
8,890 | void CWE690_NULL_Deref_From_Return__struct_realloc_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/111727/CWE690_NULL_Deref_From_Return__struct_realloc_51b.c | CWE690_NULL_Deref_From_Return__struct_realloc_51b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__struct_realloc_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,891 | void CWE690_NULL_Deref_From_Return__struct_realloc_52_bad()
{
twoIntsStruct * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (twoIntsStruct *)realloc(data, 1*sizeof(twoIntsStruct));
CWE690_NULL_Deref_From_Return__struct_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/111728/CWE690_NULL_Deref_From_Return__struct_realloc_52a.c | CWE690_NULL_Deref_From_Return__struct_realloc_52_bad |
void CWE690_NULL_Deref_From_Return__struct_realloc_52_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ad0(0,8);
CWE690_NULL_Deref_From_Return__struct_realloc_52b_badSink(uVar1);
return;
}
| ['gcc'] |
8,892 | void CWE690_NULL_Deref_From_Return__struct_realloc_52_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111728/CWE690_NULL_Deref_From_Return__struct_realloc_52a.c | CWE690_NULL_Deref_From_Return__struct_realloc_52_good |
void CWE690_NULL_Deref_From_Return__struct_realloc_52_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,893 | void CWE690_NULL_Deref_From_Return__struct_realloc_52b_badSink(twoIntsStruct * data)
{
CWE690_NULL_Deref_From_Return__struct_realloc_52c_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111728/CWE690_NULL_Deref_From_Return__struct_realloc_52b.c | CWE690_NULL_Deref_From_Return__struct_realloc_52b_badSink |
void CWE690_NULL_Deref_From_Return__struct_realloc_52b_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__struct_realloc_52c_badSink(param_1);
return;
}
| ['gcc'] |
8,894 | void CWE690_NULL_Deref_From_Return__struct_realloc_52b_goodB2GSink(twoIntsStruct * data)
{
CWE690_NULL_Deref_From_Return__struct_realloc_52c_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111728/CWE690_NULL_Deref_From_Return__struct_realloc_52b.c | CWE690_NULL_Deref_From_Return__struct_realloc_52b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__struct_realloc_52b_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__struct_realloc_52c_goodB2GSink(param_1);
return;
}
| ['gcc'] |
8,895 | void CWE690_NULL_Deref_From_Return__struct_realloc_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/111728/CWE690_NULL_Deref_From_Return__struct_realloc_52c.c | CWE690_NULL_Deref_From_Return__struct_realloc_52c_badSink |
void CWE690_NULL_Deref_From_Return__struct_realloc_52c_badSink(undefined4 *param_1)
{
*param_1 = 1;
param_1[1] = 1;
printStructLine(param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
8,896 | void CWE690_NULL_Deref_From_Return__struct_realloc_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/111728/CWE690_NULL_Deref_From_Return__struct_realloc_52c.c | CWE690_NULL_Deref_From_Return__struct_realloc_52c_goodB2GSink |
void CWE690_NULL_Deref_From_Return__struct_realloc_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,897 | void CWE690_NULL_Deref_From_Return__struct_realloc_53_bad()
{
twoIntsStruct * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (twoIntsStruct *)realloc(data, 1*sizeof(twoIntsStruct));
CWE690_NULL_Deref_From_Return__struct_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/111729/CWE690_NULL_Deref_From_Return__struct_realloc_53a.c | CWE690_NULL_Deref_From_Return__struct_realloc_53_bad |
void CWE690_NULL_Deref_From_Return__struct_realloc_53_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ad0(0,8);
CWE690_NULL_Deref_From_Return__struct_realloc_53b_badSink(uVar1);
return;
}
| ['gcc'] |
8,898 | void CWE690_NULL_Deref_From_Return__struct_realloc_53_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111729/CWE690_NULL_Deref_From_Return__struct_realloc_53a.c | CWE690_NULL_Deref_From_Return__struct_realloc_53_good |
void CWE690_NULL_Deref_From_Return__struct_realloc_53_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,899 | void CWE690_NULL_Deref_From_Return__struct_realloc_53b_badSink(twoIntsStruct * data)
{
CWE690_NULL_Deref_From_Return__struct_realloc_53c_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111729/CWE690_NULL_Deref_From_Return__struct_realloc_53b.c | CWE690_NULL_Deref_From_Return__struct_realloc_53b_badSink |
void CWE690_NULL_Deref_From_Return__struct_realloc_53b_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__struct_realloc_53c_badSink(param_1);
return;
}
| ['gcc'] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.