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,000 | void CWE690_NULL_Deref_From_Return__char_realloc_54e_badSink(char * data)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
free(data);
} | ['/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111106/CWE690_NULL_Deref_From_Return__char_realloc_54e.c | CWE690_NULL_Deref_From_Return__char_realloc_54e_badSink |
void CWE690_NULL_Deref_From_Return__char_realloc_54e_badSink(undefined8 *param_1)
{
*param_1 = 0x696c616974696e49;
*(undefined2 *)(param_1 + 1) = 0x657a;
*(undefined *)((long)param_1 + 10) = 0;
printLine(param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
8,001 | void CWE690_NULL_Deref_From_Return__char_realloc_54e_goodB2GSink(char * data)
{
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
strcpy(data, "Initialize");
printLine(data);
free(data);
}
} | ['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111106/CWE690_NULL_Deref_From_Return__char_realloc_54e.c | CWE690_NULL_Deref_From_Return__char_realloc_54e_goodB2GSink |
void CWE690_NULL_Deref_From_Return__char_realloc_54e_goodB2GSink(undefined8 *param_1)
{
if (param_1 != (undefined8 *)0x0) {
*param_1 = 0x696c616974696e49;
*(undefined2 *)(param_1 + 1) = 0x657a;
*(undefined *)((long)param_1 + 10) = 0;
printLine(param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,002 | void CWE690_NULL_Deref_From_Return__char_realloc_61_bad()
{
char * data;
data = NULL; /* Initialize data */
data = CWE690_NULL_Deref_From_Return__char_realloc_61b_badSource(data);
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
free(data);
} | ['/* Initialize data */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111107/CWE690_NULL_Deref_From_Return__char_realloc_61a.c | CWE690_NULL_Deref_From_Return__char_realloc_61_bad |
void CWE690_NULL_Deref_From_Return__char_realloc_61_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)CWE690_NULL_Deref_From_Return__char_realloc_61b_badSource(0);
*puVar1 = 0x696c616974696e49;
*(undefined2 *)(puVar1 + 1) = 0x657a;
*(undefined *)((long)puVar1 + 10) = 0;
printLine(puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,003 | void CWE690_NULL_Deref_From_Return__char_realloc_61_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111107/CWE690_NULL_Deref_From_Return__char_realloc_61a.c | CWE690_NULL_Deref_From_Return__char_realloc_61_good |
void CWE690_NULL_Deref_From_Return__char_realloc_61_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,004 | char * CWE690_NULL_Deref_From_Return__char_realloc_61b_badSource(char * data)
{
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)realloc(data, 20*sizeof(char));
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/111107/CWE690_NULL_Deref_From_Return__char_realloc_61b.c | CWE690_NULL_Deref_From_Return__char_realloc_61b_badSource |
undefined8 CWE690_NULL_Deref_From_Return__char_realloc_61b_badSource(undefined8 param_1)
{
undefined8 uVar1;
uVar1 = func_0x00400ad0(param_1,0x14);
return uVar1;
}
| ['gcc'] |
8,005 | char * CWE690_NULL_Deref_From_Return__char_realloc_61b_goodB2GSource(char * data)
{
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)realloc(data, 20*sizeof(char));
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/111107/CWE690_NULL_Deref_From_Return__char_realloc_61b.c | CWE690_NULL_Deref_From_Return__char_realloc_61b_goodB2GSource |
undefined8 CWE690_NULL_Deref_From_Return__char_realloc_61b_goodB2GSource(undefined8 param_1)
{
undefined8 uVar1;
uVar1 = func_0x00400ad0(param_1,0x14);
return uVar1;
}
| ['gcc'] |
8,006 | void CWE690_NULL_Deref_From_Return__char_realloc_63_bad()
{
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)realloc(data, 20*sizeof(char));
CWE690_NULL_Deref_From_Return__char_realloc_63b_badSink(&data);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111109/CWE690_NULL_Deref_From_Return__char_realloc_63a.c | CWE690_NULL_Deref_From_Return__char_realloc_63_bad |
void CWE690_NULL_Deref_From_Return__char_realloc_63_bad(void)
{
undefined8 uStack_10;
uStack_10 = 0;
uStack_10 = func_0x00400ad0(0,0x14);
CWE690_NULL_Deref_From_Return__char_realloc_63b_badSink(&uStack_10);
return;
}
| ['gcc'] |
8,007 | void CWE690_NULL_Deref_From_Return__char_realloc_63_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111109/CWE690_NULL_Deref_From_Return__char_realloc_63a.c | CWE690_NULL_Deref_From_Return__char_realloc_63_good |
void CWE690_NULL_Deref_From_Return__char_realloc_63_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,008 | void CWE690_NULL_Deref_From_Return__char_realloc_63b_badSink(char * * dataPtr)
{
char * data = *dataPtr;
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
free(data);
} | ['/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111109/CWE690_NULL_Deref_From_Return__char_realloc_63b.c | CWE690_NULL_Deref_From_Return__char_realloc_63b_badSink |
void CWE690_NULL_Deref_From_Return__char_realloc_63b_badSink(undefined8 *param_1)
{
param_1 = (undefined8 *)*param_1;
*param_1 = 0x696c616974696e49;
*(undefined2 *)(param_1 + 1) = 0x657a;
*(undefined *)((long)param_1 + 10) = 0;
printLine(param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
8,009 | void CWE690_NULL_Deref_From_Return__char_realloc_63b_goodB2GSink(char * * dataPtr)
{
char * data = *dataPtr;
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
strcpy(data, "Initialize");
printLine(data);
free(data);
}
} | ['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111109/CWE690_NULL_Deref_From_Return__char_realloc_63b.c | CWE690_NULL_Deref_From_Return__char_realloc_63b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__char_realloc_63b_goodB2GSink(undefined8 *param_1)
{
param_1 = (undefined8 *)*param_1;
if (param_1 != (undefined8 *)0x0) {
*param_1 = 0x696c616974696e49;
*(undefined2 *)(param_1 + 1) = 0x657a;
*(undefined *)((long)param_1 + 10) = 0;
printLine(param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,010 | void CWE690_NULL_Deref_From_Return__char_realloc_64_bad()
{
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)realloc(data, 20*sizeof(char));
CWE690_NULL_Deref_From_Return__char_realloc_64b_badSink(&data);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111110/CWE690_NULL_Deref_From_Return__char_realloc_64a.c | CWE690_NULL_Deref_From_Return__char_realloc_64_bad |
void CWE690_NULL_Deref_From_Return__char_realloc_64_bad(void)
{
undefined8 uStack_10;
uStack_10 = 0;
uStack_10 = func_0x00400ad0(0,0x14);
CWE690_NULL_Deref_From_Return__char_realloc_64b_badSink(&uStack_10);
return;
}
| ['gcc'] |
8,011 | void CWE690_NULL_Deref_From_Return__char_realloc_64_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111110/CWE690_NULL_Deref_From_Return__char_realloc_64a.c | CWE690_NULL_Deref_From_Return__char_realloc_64_good |
void CWE690_NULL_Deref_From_Return__char_realloc_64_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,012 | void CWE690_NULL_Deref_From_Return__char_realloc_64b_badSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
char * * dataPtr = (char * *)dataVoidPtr;
/* dereference dataPtr into data */
char * data = (*dataPtr);
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
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/111110/CWE690_NULL_Deref_From_Return__char_realloc_64b.c | CWE690_NULL_Deref_From_Return__char_realloc_64b_badSink |
void CWE690_NULL_Deref_From_Return__char_realloc_64b_badSink(undefined8 *param_1)
{
param_1 = (undefined8 *)*param_1;
*param_1 = 0x696c616974696e49;
*(undefined2 *)(param_1 + 1) = 0x657a;
*(undefined *)((long)param_1 + 10) = 0;
printLine(param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
8,013 | void CWE690_NULL_Deref_From_Return__char_realloc_64b_goodB2GSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
char * * dataPtr = (char * *)dataVoidPtr;
/* dereference dataPtr into data */
char * data = (*dataPtr);
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
strcpy(data, "Initialize");
printLine(data);
free(data);
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111110/CWE690_NULL_Deref_From_Return__char_realloc_64b.c | CWE690_NULL_Deref_From_Return__char_realloc_64b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__char_realloc_64b_goodB2GSink(undefined8 *param_1)
{
param_1 = (undefined8 *)*param_1;
if (param_1 != (undefined8 *)0x0) {
*param_1 = 0x696c616974696e49;
*(undefined2 *)(param_1 + 1) = 0x657a;
*(undefined *)((long)param_1 + 10) = 0;
printLine(param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,014 | void CWE690_NULL_Deref_From_Return__char_realloc_66_bad()
{
char * data;
char * dataArray[5];
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)realloc(data, 20*sizeof(char));
/* put data in array */
dataArray[2] = data;
CWE690_NULL_Deref_From_Return__char_realloc_66b_badSink(dataArray);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* put data in array */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111112/CWE690_NULL_Deref_From_Return__char_realloc_66a.c | CWE690_NULL_Deref_From_Return__char_realloc_66_bad |
void CWE690_NULL_Deref_From_Return__char_realloc_66_bad(void)
{
undefined auStack_38 [16];
undefined8 uStack_28;
undefined8 uStack_10;
uStack_10 = 0;
uStack_28 = func_0x00400ad0(0,0x14);
uStack_10 = uStack_28;
CWE690_NULL_Deref_From_Return__char_realloc_66b_badSink(auStack_38);
return;
}
| ['gcc'] |
8,015 | void CWE690_NULL_Deref_From_Return__char_realloc_66_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111112/CWE690_NULL_Deref_From_Return__char_realloc_66a.c | CWE690_NULL_Deref_From_Return__char_realloc_66_good |
void CWE690_NULL_Deref_From_Return__char_realloc_66_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,016 | void CWE690_NULL_Deref_From_Return__char_realloc_66b_badSink(char * dataArray[])
{
/* copy data out of dataArray */
char * data = dataArray[2];
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
free(data);
} | ['/* copy data out of dataArray */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111112/CWE690_NULL_Deref_From_Return__char_realloc_66b.c | CWE690_NULL_Deref_From_Return__char_realloc_66b_badSink |
void CWE690_NULL_Deref_From_Return__char_realloc_66b_badSink(long param_1)
{
undefined8 *puVar1;
puVar1 = *(undefined8 **)(param_1 + 0x10);
*puVar1 = 0x696c616974696e49;
*(undefined2 *)(puVar1 + 1) = 0x657a;
*(undefined *)((long)puVar1 + 10) = 0;
printLine(puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,017 | void CWE690_NULL_Deref_From_Return__char_realloc_66b_goodB2GSink(char * dataArray[])
{
char * data = dataArray[2];
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
strcpy(data, "Initialize");
printLine(data);
free(data);
}
} | ['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111112/CWE690_NULL_Deref_From_Return__char_realloc_66b.c | CWE690_NULL_Deref_From_Return__char_realloc_66b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__char_realloc_66b_goodB2GSink(long param_1)
{
undefined8 *puVar1;
puVar1 = *(undefined8 **)(param_1 + 0x10);
if (puVar1 != (undefined8 *)0x0) {
*puVar1 = 0x696c616974696e49;
*(undefined2 *)(puVar1 + 1) = 0x657a;
*(undefined *)((long)puVar1 + 10) = 0;
printLine(puVar1);
func_0x00400a20(puVar1);
}
return;
}
| ['gcc'] |
8,018 | void CWE690_NULL_Deref_From_Return__char_realloc_67_bad()
{
char * data;
CWE690_NULL_Deref_From_Return__char_realloc_67_structType myStruct;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)realloc(data, 20*sizeof(char));
myStruct.structFirst = data;
CWE690_NULL_Deref_From_Return__char_realloc_67b_badSink(myStruct);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111113/CWE690_NULL_Deref_From_Return__char_realloc_67a.c | CWE690_NULL_Deref_From_Return__char_realloc_67_bad |
void CWE690_NULL_Deref_From_Return__char_realloc_67_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ad0(0,0x14);
CWE690_NULL_Deref_From_Return__char_realloc_67b_badSink(uVar1);
return;
}
| ['gcc'] |
8,019 | void CWE690_NULL_Deref_From_Return__char_realloc_67_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111113/CWE690_NULL_Deref_From_Return__char_realloc_67a.c | CWE690_NULL_Deref_From_Return__char_realloc_67_good |
void CWE690_NULL_Deref_From_Return__char_realloc_67_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,020 | void CWE690_NULL_Deref_From_Return__char_realloc_67b_badSink(CWE690_NULL_Deref_From_Return__char_realloc_67_structType myStruct)
{
char * data = myStruct.structFirst;
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
free(data);
} | ['/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111113/CWE690_NULL_Deref_From_Return__char_realloc_67b.c | CWE690_NULL_Deref_From_Return__char_realloc_67b_badSink |
void CWE690_NULL_Deref_From_Return__char_realloc_67b_badSink(undefined8 *param_1)
{
*param_1 = 0x696c616974696e49;
*(undefined2 *)(param_1 + 1) = 0x657a;
*(undefined *)((long)param_1 + 10) = 0;
printLine(param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
8,021 | void CWE690_NULL_Deref_From_Return__char_realloc_67b_goodB2GSink(CWE690_NULL_Deref_From_Return__char_realloc_67_structType myStruct)
{
char * data = myStruct.structFirst;
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
strcpy(data, "Initialize");
printLine(data);
free(data);
}
} | ['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111113/CWE690_NULL_Deref_From_Return__char_realloc_67b.c | CWE690_NULL_Deref_From_Return__char_realloc_67b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__char_realloc_67b_goodB2GSink(undefined8 *param_1)
{
if (param_1 != (undefined8 *)0x0) {
*param_1 = 0x696c616974696e49;
*(undefined2 *)(param_1 + 1) = 0x657a;
*(undefined *)((long)param_1 + 10) = 0;
printLine(param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,022 | void CWE690_NULL_Deref_From_Return__fopen_52_bad()
{
FILE * data;
/* Initialize data */
data = NULL;
/* POTENTIAL FLAW: Open a file without checking the return value for NULL */
data = fopen("file.txt", "w+");
CWE690_NULL_Deref_From_Return__fopen_52b_badSink(data);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Open a file without checking the return value for NULL */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111152/CWE690_NULL_Deref_From_Return__fopen_52a.c | CWE690_NULL_Deref_From_Return__fopen_52_bad |
void CWE690_NULL_Deref_From_Return__fopen_52_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ad0(&UNK_004011b7,&UNK_004011b4);
CWE690_NULL_Deref_From_Return__fopen_52b_badSink(uVar1);
return;
}
| ['gcc'] |
8,023 | void CWE690_NULL_Deref_From_Return__fopen_52_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111152/CWE690_NULL_Deref_From_Return__fopen_52a.c | CWE690_NULL_Deref_From_Return__fopen_52_good |
void CWE690_NULL_Deref_From_Return__fopen_52_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,024 | void CWE690_NULL_Deref_From_Return__fopen_52b_badSink(FILE * data)
{
CWE690_NULL_Deref_From_Return__fopen_52c_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111152/CWE690_NULL_Deref_From_Return__fopen_52b.c | CWE690_NULL_Deref_From_Return__fopen_52b_badSink |
void CWE690_NULL_Deref_From_Return__fopen_52b_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__fopen_52c_badSink(param_1);
return;
}
| ['gcc'] |
8,025 | void CWE690_NULL_Deref_From_Return__fopen_52b_goodB2GSink(FILE * data)
{
CWE690_NULL_Deref_From_Return__fopen_52c_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111152/CWE690_NULL_Deref_From_Return__fopen_52b.c | CWE690_NULL_Deref_From_Return__fopen_52b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__fopen_52b_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__fopen_52c_goodB2GSink(param_1);
return;
}
| ['gcc'] |
8,026 | void CWE690_NULL_Deref_From_Return__fopen_52c_badSink(FILE * data)
{
/* FLAW: if the fopen failed, data will be NULL here */
fclose(data);
} | ['/* FLAW: if the fopen failed, data will be NULL here */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111152/CWE690_NULL_Deref_From_Return__fopen_52c.c | CWE690_NULL_Deref_From_Return__fopen_52c_badSink |
void CWE690_NULL_Deref_From_Return__fopen_52c_badSink(undefined8 param_1)
{
func_0x00400a40(param_1);
return;
}
| ['gcc'] |
8,027 | void CWE690_NULL_Deref_From_Return__fopen_52c_goodB2GSink(FILE * data)
{
/* FIX: check the return value */
if (data != NULL)
{
fclose(data);
}
} | ['/* FIX: check the return value */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111152/CWE690_NULL_Deref_From_Return__fopen_52c.c | CWE690_NULL_Deref_From_Return__fopen_52c_goodB2GSink |
void CWE690_NULL_Deref_From_Return__fopen_52c_goodB2GSink(long param_1)
{
if (param_1 != 0) {
func_0x00400a40(param_1);
}
return;
}
| ['gcc'] |
8,028 | void CWE690_NULL_Deref_From_Return__fopen_53_bad()
{
FILE * data;
/* Initialize data */
data = NULL;
/* POTENTIAL FLAW: Open a file without checking the return value for NULL */
data = fopen("file.txt", "w+");
CWE690_NULL_Deref_From_Return__fopen_53b_badSink(data);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Open a file without checking the return value for NULL */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111153/CWE690_NULL_Deref_From_Return__fopen_53a.c | CWE690_NULL_Deref_From_Return__fopen_53_bad |
void CWE690_NULL_Deref_From_Return__fopen_53_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ad0(&UNK_004011d7,&UNK_004011d4);
CWE690_NULL_Deref_From_Return__fopen_53b_badSink(uVar1);
return;
}
| ['gcc'] |
8,029 | void CWE690_NULL_Deref_From_Return__fopen_53_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111153/CWE690_NULL_Deref_From_Return__fopen_53a.c | CWE690_NULL_Deref_From_Return__fopen_53_good |
void CWE690_NULL_Deref_From_Return__fopen_53_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,030 | void CWE690_NULL_Deref_From_Return__fopen_53b_badSink(FILE * data)
{
CWE690_NULL_Deref_From_Return__fopen_53c_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111153/CWE690_NULL_Deref_From_Return__fopen_53b.c | CWE690_NULL_Deref_From_Return__fopen_53b_badSink |
void CWE690_NULL_Deref_From_Return__fopen_53b_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__fopen_53c_badSink(param_1);
return;
}
| ['gcc'] |
8,031 | void CWE690_NULL_Deref_From_Return__fopen_53b_goodB2GSink(FILE * data)
{
CWE690_NULL_Deref_From_Return__fopen_53c_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111153/CWE690_NULL_Deref_From_Return__fopen_53b.c | CWE690_NULL_Deref_From_Return__fopen_53b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__fopen_53b_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__fopen_53c_goodB2GSink(param_1);
return;
}
| ['gcc'] |
8,032 | void CWE690_NULL_Deref_From_Return__fopen_53c_badSink(FILE * data)
{
CWE690_NULL_Deref_From_Return__fopen_53d_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111153/CWE690_NULL_Deref_From_Return__fopen_53c.c | CWE690_NULL_Deref_From_Return__fopen_53c_badSink |
void CWE690_NULL_Deref_From_Return__fopen_53c_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__fopen_53d_badSink(param_1);
return;
}
| ['gcc'] |
8,033 | void CWE690_NULL_Deref_From_Return__fopen_53c_goodB2GSink(FILE * data)
{
CWE690_NULL_Deref_From_Return__fopen_53d_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111153/CWE690_NULL_Deref_From_Return__fopen_53c.c | CWE690_NULL_Deref_From_Return__fopen_53c_goodB2GSink |
void CWE690_NULL_Deref_From_Return__fopen_53c_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__fopen_53d_goodB2GSink(param_1);
return;
}
| ['gcc'] |
8,034 | void CWE690_NULL_Deref_From_Return__fopen_53d_badSink(FILE * data)
{
/* FLAW: if the fopen failed, data will be NULL here */
fclose(data);
} | ['/* FLAW: if the fopen failed, data will be NULL here */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111153/CWE690_NULL_Deref_From_Return__fopen_53d.c | CWE690_NULL_Deref_From_Return__fopen_53d_badSink |
void CWE690_NULL_Deref_From_Return__fopen_53d_badSink(undefined8 param_1)
{
func_0x00400a40(param_1);
return;
}
| ['gcc'] |
8,035 | void CWE690_NULL_Deref_From_Return__fopen_53d_goodB2GSink(FILE * data)
{
/* FIX: check the return value */
if (data != NULL)
{
fclose(data);
}
} | ['/* FIX: check the return value */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111153/CWE690_NULL_Deref_From_Return__fopen_53d.c | CWE690_NULL_Deref_From_Return__fopen_53d_goodB2GSink |
void CWE690_NULL_Deref_From_Return__fopen_53d_goodB2GSink(long param_1)
{
if (param_1 != 0) {
func_0x00400a40(param_1);
}
return;
}
| ['gcc'] |
8,036 | void CWE690_NULL_Deref_From_Return__fopen_54_bad()
{
FILE * data;
/* Initialize data */
data = NULL;
/* POTENTIAL FLAW: Open a file without checking the return value for NULL */
data = fopen("file.txt", "w+");
CWE690_NULL_Deref_From_Return__fopen_54b_badSink(data);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Open a file without checking the return value for NULL */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111154/CWE690_NULL_Deref_From_Return__fopen_54a.c | CWE690_NULL_Deref_From_Return__fopen_54_bad |
void CWE690_NULL_Deref_From_Return__fopen_54_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ad0(&UNK_004011f7,&UNK_004011f4);
CWE690_NULL_Deref_From_Return__fopen_54b_badSink(uVar1);
return;
}
| ['gcc'] |
8,037 | void CWE690_NULL_Deref_From_Return__fopen_54_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111154/CWE690_NULL_Deref_From_Return__fopen_54a.c | CWE690_NULL_Deref_From_Return__fopen_54_good |
void CWE690_NULL_Deref_From_Return__fopen_54_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,038 | void CWE690_NULL_Deref_From_Return__fopen_54b_badSink(FILE * data)
{
CWE690_NULL_Deref_From_Return__fopen_54c_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111154/CWE690_NULL_Deref_From_Return__fopen_54b.c | CWE690_NULL_Deref_From_Return__fopen_54b_badSink |
void CWE690_NULL_Deref_From_Return__fopen_54b_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__fopen_54c_badSink(param_1);
return;
}
| ['gcc'] |
8,039 | void CWE690_NULL_Deref_From_Return__fopen_54b_goodB2GSink(FILE * data)
{
CWE690_NULL_Deref_From_Return__fopen_54c_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111154/CWE690_NULL_Deref_From_Return__fopen_54b.c | CWE690_NULL_Deref_From_Return__fopen_54b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__fopen_54b_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__fopen_54c_goodB2GSink(param_1);
return;
}
| ['gcc'] |
8,040 | void CWE690_NULL_Deref_From_Return__fopen_54c_badSink(FILE * data)
{
CWE690_NULL_Deref_From_Return__fopen_54d_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111154/CWE690_NULL_Deref_From_Return__fopen_54c.c | CWE690_NULL_Deref_From_Return__fopen_54c_badSink |
void CWE690_NULL_Deref_From_Return__fopen_54c_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__fopen_54d_badSink(param_1);
return;
}
| ['gcc'] |
8,041 | void CWE690_NULL_Deref_From_Return__fopen_54c_goodB2GSink(FILE * data)
{
CWE690_NULL_Deref_From_Return__fopen_54d_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111154/CWE690_NULL_Deref_From_Return__fopen_54c.c | CWE690_NULL_Deref_From_Return__fopen_54c_goodB2GSink |
void CWE690_NULL_Deref_From_Return__fopen_54c_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__fopen_54d_goodB2GSink(param_1);
return;
}
| ['gcc'] |
8,042 | void CWE690_NULL_Deref_From_Return__fopen_54d_badSink(FILE * data)
{
CWE690_NULL_Deref_From_Return__fopen_54e_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111154/CWE690_NULL_Deref_From_Return__fopen_54d.c | CWE690_NULL_Deref_From_Return__fopen_54d_badSink |
void CWE690_NULL_Deref_From_Return__fopen_54d_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__fopen_54e_badSink(param_1);
return;
}
| ['gcc'] |
8,043 | void CWE690_NULL_Deref_From_Return__fopen_54d_goodB2GSink(FILE * data)
{
CWE690_NULL_Deref_From_Return__fopen_54e_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111154/CWE690_NULL_Deref_From_Return__fopen_54d.c | CWE690_NULL_Deref_From_Return__fopen_54d_goodB2GSink |
void CWE690_NULL_Deref_From_Return__fopen_54d_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__fopen_54e_goodB2GSink(param_1);
return;
}
| ['gcc'] |
8,044 | void CWE690_NULL_Deref_From_Return__fopen_54e_badSink(FILE * data)
{
/* FLAW: if the fopen failed, data will be NULL here */
fclose(data);
} | ['/* FLAW: if the fopen failed, data will be NULL here */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111154/CWE690_NULL_Deref_From_Return__fopen_54e.c | CWE690_NULL_Deref_From_Return__fopen_54e_badSink |
void CWE690_NULL_Deref_From_Return__fopen_54e_badSink(undefined8 param_1)
{
func_0x00400a40(param_1);
return;
}
| ['gcc'] |
8,045 | void CWE690_NULL_Deref_From_Return__fopen_54e_goodB2GSink(FILE * data)
{
/* FIX: check the return value */
if (data != NULL)
{
fclose(data);
}
} | ['/* FIX: check the return value */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111154/CWE690_NULL_Deref_From_Return__fopen_54e.c | CWE690_NULL_Deref_From_Return__fopen_54e_goodB2GSink |
void CWE690_NULL_Deref_From_Return__fopen_54e_goodB2GSink(long param_1)
{
if (param_1 != 0) {
func_0x00400a40(param_1);
}
return;
}
| ['gcc'] |
8,046 | void CWE690_NULL_Deref_From_Return__fopen_64_bad()
{
FILE * data;
/* Initialize data */
data = NULL;
/* POTENTIAL FLAW: Open a file without checking the return value for NULL */
data = fopen("file.txt", "w+");
CWE690_NULL_Deref_From_Return__fopen_64b_badSink(&data);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Open a file without checking the return value for NULL */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111158/CWE690_NULL_Deref_From_Return__fopen_64a.c | CWE690_NULL_Deref_From_Return__fopen_64_bad |
void CWE690_NULL_Deref_From_Return__fopen_64_bad(void)
{
undefined8 uStack_10;
uStack_10 = 0;
uStack_10 = func_0x00400ad0(&UNK_004011b7,&UNK_004011b4);
CWE690_NULL_Deref_From_Return__fopen_64b_badSink(&uStack_10);
return;
}
| ['gcc'] |
8,047 | void CWE690_NULL_Deref_From_Return__fopen_64_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111158/CWE690_NULL_Deref_From_Return__fopen_64a.c | CWE690_NULL_Deref_From_Return__fopen_64_good |
void CWE690_NULL_Deref_From_Return__fopen_64_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,048 | void CWE690_NULL_Deref_From_Return__fopen_64b_badSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
FILE * * dataPtr = (FILE * *)dataVoidPtr;
/* dereference dataPtr into data */
FILE * data = (*dataPtr);
/* FLAW: if the fopen failed, data will be NULL here */
fclose(data);
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* FLAW: if the fopen failed, data will be NULL here */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111158/CWE690_NULL_Deref_From_Return__fopen_64b.c | CWE690_NULL_Deref_From_Return__fopen_64b_badSink |
void CWE690_NULL_Deref_From_Return__fopen_64b_badSink(undefined8 *param_1)
{
func_0x00400a40(*param_1);
return;
}
| ['gcc'] |
8,049 | void CWE690_NULL_Deref_From_Return__fopen_64b_goodB2GSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
FILE * * dataPtr = (FILE * *)dataVoidPtr;
/* dereference dataPtr into data */
FILE * data = (*dataPtr);
/* FIX: check the return value */
if (data != NULL)
{
fclose(data);
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* FIX: check the return value */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111158/CWE690_NULL_Deref_From_Return__fopen_64b.c | CWE690_NULL_Deref_From_Return__fopen_64b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__fopen_64b_goodB2GSink(long *param_1)
{
if (*param_1 != 0) {
func_0x00400a40(*param_1);
}
return;
}
| ['gcc'] |
8,050 | void CWE690_NULL_Deref_From_Return__fopen_66_bad()
{
FILE * data;
FILE * dataArray[5];
/* Initialize data */
data = NULL;
/* POTENTIAL FLAW: Open a file without checking the return value for NULL */
data = fopen("file.txt", "w+");
/* put data in array */
dataArray[2] = data;
CWE690_NULL_Deref_From_Return__fopen_66b_badSink(dataArray);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Open a file without checking the return value for NULL */', '/* put data in array */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111160/CWE690_NULL_Deref_From_Return__fopen_66a.c | CWE690_NULL_Deref_From_Return__fopen_66_bad |
void CWE690_NULL_Deref_From_Return__fopen_66_bad(void)
{
undefined auStack_38 [16];
undefined8 uStack_28;
undefined8 uStack_10;
uStack_10 = 0;
uStack_28 = func_0x00400ad0(&UNK_004011b7,&UNK_004011b4);
uStack_10 = uStack_28;
CWE690_NULL_Deref_From_Return__fopen_66b_badSink(auStack_38);
return;
}
| ['gcc'] |
8,051 | void CWE690_NULL_Deref_From_Return__fopen_66_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111160/CWE690_NULL_Deref_From_Return__fopen_66a.c | CWE690_NULL_Deref_From_Return__fopen_66_good |
void CWE690_NULL_Deref_From_Return__fopen_66_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,052 | void CWE690_NULL_Deref_From_Return__fopen_66b_badSink(FILE * dataArray[])
{
/* copy data out of dataArray */
FILE * data = dataArray[2];
/* FLAW: if the fopen failed, data will be NULL here */
fclose(data);
} | ['/* copy data out of dataArray */', '/* FLAW: if the fopen failed, data will be NULL here */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111160/CWE690_NULL_Deref_From_Return__fopen_66b.c | CWE690_NULL_Deref_From_Return__fopen_66b_badSink |
void CWE690_NULL_Deref_From_Return__fopen_66b_badSink(long param_1)
{
func_0x00400a40(*(undefined8 *)(param_1 + 0x10));
return;
}
| ['gcc'] |
8,053 | void CWE690_NULL_Deref_From_Return__fopen_66b_goodB2GSink(FILE * dataArray[])
{
FILE * data = dataArray[2];
/* FIX: check the return value */
if (data != NULL)
{
fclose(data);
}
} | ['/* FIX: check the return value */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111160/CWE690_NULL_Deref_From_Return__fopen_66b.c | CWE690_NULL_Deref_From_Return__fopen_66b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__fopen_66b_goodB2GSink(long param_1)
{
if (*(long *)(param_1 + 0x10) != 0) {
func_0x00400a40(*(long *)(param_1 + 0x10));
}
return;
}
| ['gcc'] |
8,054 | void CWE690_NULL_Deref_From_Return__fopen_67_bad()
{
FILE * data;
CWE690_NULL_Deref_From_Return__fopen_67_structType myStruct;
/* Initialize data */
data = NULL;
/* POTENTIAL FLAW: Open a file without checking the return value for NULL */
data = fopen("file.txt", "w+");
myStruct.structFirst = data;
CWE690_NULL_Deref_From_Return__fopen_67b_badSink(myStruct);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Open a file without checking the return value for NULL */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111161/CWE690_NULL_Deref_From_Return__fopen_67a.c | CWE690_NULL_Deref_From_Return__fopen_67_bad |
void CWE690_NULL_Deref_From_Return__fopen_67_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ad0(&UNK_004011b7,&UNK_004011b4);
CWE690_NULL_Deref_From_Return__fopen_67b_badSink(uVar1);
return;
}
| ['gcc'] |
8,055 | void CWE690_NULL_Deref_From_Return__fopen_67_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111161/CWE690_NULL_Deref_From_Return__fopen_67a.c | CWE690_NULL_Deref_From_Return__fopen_67_good |
void CWE690_NULL_Deref_From_Return__fopen_67_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,056 | void CWE690_NULL_Deref_From_Return__fopen_67b_badSink(CWE690_NULL_Deref_From_Return__fopen_67_structType myStruct)
{
FILE * data = myStruct.structFirst;
/* FLAW: if the fopen failed, data will be NULL here */
fclose(data);
} | ['/* FLAW: if the fopen failed, data will be NULL here */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111161/CWE690_NULL_Deref_From_Return__fopen_67b.c | CWE690_NULL_Deref_From_Return__fopen_67b_badSink |
void CWE690_NULL_Deref_From_Return__fopen_67b_badSink(undefined8 param_1)
{
func_0x00400a40(param_1);
return;
}
| ['gcc'] |
8,057 | void CWE690_NULL_Deref_From_Return__fopen_67b_goodB2GSink(CWE690_NULL_Deref_From_Return__fopen_67_structType myStruct)
{
FILE * data = myStruct.structFirst;
/* FIX: check the return value */
if (data != NULL)
{
fclose(data);
}
} | ['/* FIX: check the return value */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111161/CWE690_NULL_Deref_From_Return__fopen_67b.c | CWE690_NULL_Deref_From_Return__fopen_67b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__fopen_67b_goodB2GSink(long param_1)
{
if (param_1 != 0) {
func_0x00400a40(param_1);
}
return;
}
| ['gcc'] |
8,058 | void CWE690_NULL_Deref_From_Return__int64_t_calloc_08_bad()
{
int64_t * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int64_t *)calloc(1, sizeof(int64_t));
if(staticReturnsTrue())
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5LL;
printLongLongLine(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/111177/CWE690_NULL_Deref_From_Return__int64_t_calloc_08.c | CWE690_NULL_Deref_From_Return__int64_t_calloc_08_bad |
void CWE690_NULL_Deref_From_Return__int64_t_calloc_08_bad(void)
{
int iVar1;
undefined8 *puVar2;
puVar2 = (undefined8 *)func_0x00400a90(1,8);
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
*puVar2 = 5;
printLongLongLine(*puVar2);
func_0x00400a20(puVar2);
}
return;
}
| ['gcc'] |
8,059 | void CWE690_NULL_Deref_From_Return__int64_t_calloc_08_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111177/CWE690_NULL_Deref_From_Return__int64_t_calloc_08.c | CWE690_NULL_Deref_From_Return__int64_t_calloc_08_good |
void CWE690_NULL_Deref_From_Return__int64_t_calloc_08_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,060 | void CWE690_NULL_Deref_From_Return__int64_t_calloc_11_bad()
{
int64_t * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int64_t *)calloc(1, sizeof(int64_t));
if(globalReturnsTrue())
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5LL;
printLongLongLine(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/111180/CWE690_NULL_Deref_From_Return__int64_t_calloc_11.c | CWE690_NULL_Deref_From_Return__int64_t_calloc_11_bad |
void CWE690_NULL_Deref_From_Return__int64_t_calloc_11_bad(void)
{
int iVar1;
undefined8 *puVar2;
puVar2 = (undefined8 *)func_0x00400a90(1,8);
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
*puVar2 = 5;
printLongLongLine(*puVar2);
func_0x00400a20(puVar2);
}
return;
}
| ['gcc'] |
8,061 | void CWE690_NULL_Deref_From_Return__int64_t_calloc_11_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111180/CWE690_NULL_Deref_From_Return__int64_t_calloc_11.c | CWE690_NULL_Deref_From_Return__int64_t_calloc_11_good |
void CWE690_NULL_Deref_From_Return__int64_t_calloc_11_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,062 | void CWE690_NULL_Deref_From_Return__int64_t_calloc_12_bad()
{
int64_t * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int64_t *)calloc(1, sizeof(int64_t));
if(globalReturnsTrueOrFalse())
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5LL;
printLongLongLine(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] = 5LL;
printLongLongLine(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/111181/CWE690_NULL_Deref_From_Return__int64_t_calloc_12.c | CWE690_NULL_Deref_From_Return__int64_t_calloc_12_bad |
void CWE690_NULL_Deref_From_Return__int64_t_calloc_12_bad(void)
{
int iVar1;
undefined8 *puVar2;
puVar2 = (undefined8 *)func_0x00400a90(1,8);
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
if (puVar2 != (undefined8 *)0x0) {
*puVar2 = 5;
printLongLongLine(*puVar2);
func_0x00400a20(puVar2);
}
}
else {
*puVar2 = 5;
printLongLongLine(*puVar2);
func_0x00400a20(puVar2);
}
return;
}
| ['gcc'] |
8,063 | void CWE690_NULL_Deref_From_Return__int64_t_calloc_12_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111181/CWE690_NULL_Deref_From_Return__int64_t_calloc_12.c | CWE690_NULL_Deref_From_Return__int64_t_calloc_12_good |
void CWE690_NULL_Deref_From_Return__int64_t_calloc_12_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,064 | void CWE690_NULL_Deref_From_Return__int64_t_calloc_21_bad()
{
int64_t * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int64_t *)calloc(1, sizeof(int64_t));
badStatic = 1; /* true */
badSink(data);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* true */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111188/CWE690_NULL_Deref_From_Return__int64_t_calloc_21.c | CWE690_NULL_Deref_From_Return__int64_t_calloc_21_bad |
void CWE690_NULL_Deref_From_Return__int64_t_calloc_21_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400a90(1,8);
badStatic = 1;
badSink(uVar1);
return;
}
| ['gcc'] |
8,065 | void CWE690_NULL_Deref_From_Return__int64_t_calloc_21_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111188/CWE690_NULL_Deref_From_Return__int64_t_calloc_21.c | CWE690_NULL_Deref_From_Return__int64_t_calloc_21_good |
void CWE690_NULL_Deref_From_Return__int64_t_calloc_21_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,066 | void CWE690_NULL_Deref_From_Return__int64_t_calloc_22_bad()
{
int64_t * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int64_t *)calloc(1, sizeof(int64_t));
CWE690_NULL_Deref_From_Return__int64_t_calloc_22_badGlobal = 1; /* true */
CWE690_NULL_Deref_From_Return__int64_t_calloc_22_badSink(data);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* true */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111189/CWE690_NULL_Deref_From_Return__int64_t_calloc_22a.c | CWE690_NULL_Deref_From_Return__int64_t_calloc_22_bad |
void CWE690_NULL_Deref_From_Return__int64_t_calloc_22_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400a90(1,8);
CWE690_NULL_Deref_From_Return__int64_t_calloc_22_badGlobal = 1;
CWE690_NULL_Deref_From_Return__int64_t_calloc_22_badSink(uVar1);
return;
}
| ['gcc'] |
8,067 | void CWE690_NULL_Deref_From_Return__int64_t_calloc_22_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111189/CWE690_NULL_Deref_From_Return__int64_t_calloc_22a.c | CWE690_NULL_Deref_From_Return__int64_t_calloc_22_good |
void CWE690_NULL_Deref_From_Return__int64_t_calloc_22_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,068 | void CWE690_NULL_Deref_From_Return__int64_t_calloc_22_badSink(int64_t * data)
{
if(CWE690_NULL_Deref_From_Return__int64_t_calloc_22_badGlobal)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5LL;
printLongLongLine(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/111189/CWE690_NULL_Deref_From_Return__int64_t_calloc_22b.c | CWE690_NULL_Deref_From_Return__int64_t_calloc_22_badSink |
void CWE690_NULL_Deref_From_Return__int64_t_calloc_22_badSink(undefined8 *param_1)
{
if (CWE690_NULL_Deref_From_Return__int64_t_calloc_22_badGlobal != 0) {
*param_1 = 5;
printLongLongLine(*param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,069 | void CWE690_NULL_Deref_From_Return__int64_t_calloc_22_goodB2G1Sink(int64_t * data)
{
if(CWE690_NULL_Deref_From_Return__int64_t_calloc_22_goodB2G1Global)
{
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
}
else
{
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
data[0] = 5LL;
printLongLongLine(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/111189/CWE690_NULL_Deref_From_Return__int64_t_calloc_22b.c | CWE690_NULL_Deref_From_Return__int64_t_calloc_22_goodB2G1Sink |
void CWE690_NULL_Deref_From_Return__int64_t_calloc_22_goodB2G1Sink(undefined8 *param_1)
{
if (CWE690_NULL_Deref_From_Return__int64_t_calloc_22_goodB2G1Global == 0) {
if (param_1 != (undefined8 *)0x0) {
*param_1 = 5;
printLongLongLine(*param_1);
func_0x00400a20(param_1);
}
}
else {
printLine(&UNK_00401274);
}
return;
}
| ['gcc'] |
8,070 | void CWE690_NULL_Deref_From_Return__int64_t_calloc_22_goodB2G2Sink(int64_t * data)
{
if(CWE690_NULL_Deref_From_Return__int64_t_calloc_22_goodB2G2Global)
{
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
data[0] = 5LL;
printLongLongLine(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/111189/CWE690_NULL_Deref_From_Return__int64_t_calloc_22b.c | CWE690_NULL_Deref_From_Return__int64_t_calloc_22_goodB2G2Sink |
void CWE690_NULL_Deref_From_Return__int64_t_calloc_22_goodB2G2Sink(undefined8 *param_1)
{
if ((CWE690_NULL_Deref_From_Return__int64_t_calloc_22_goodB2G2Global != 0) &&
(param_1 != (undefined8 *)0x0)) {
*param_1 = 5;
printLongLongLine(*param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,071 | void CWE690_NULL_Deref_From_Return__int64_t_calloc_31_bad()
{
int64_t * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int64_t *)calloc(1, sizeof(int64_t));
{
int64_t * dataCopy = data;
int64_t * data = dataCopy;
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5LL;
printLongLongLine(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/111190/CWE690_NULL_Deref_From_Return__int64_t_calloc_31.c | CWE690_NULL_Deref_From_Return__int64_t_calloc_31_bad |
void CWE690_NULL_Deref_From_Return__int64_t_calloc_31_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400a90(1,8);
*puVar1 = 5;
printLongLongLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,072 | void CWE690_NULL_Deref_From_Return__int64_t_calloc_31_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111190/CWE690_NULL_Deref_From_Return__int64_t_calloc_31.c | CWE690_NULL_Deref_From_Return__int64_t_calloc_31_good |
void CWE690_NULL_Deref_From_Return__int64_t_calloc_31_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,073 | void CWE690_NULL_Deref_From_Return__int64_t_calloc_34_bad()
{
int64_t * data;
CWE690_NULL_Deref_From_Return__int64_t_calloc_34_unionType myUnion;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int64_t *)calloc(1, sizeof(int64_t));
myUnion.unionFirst = data;
{
int64_t * data = myUnion.unionSecond;
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5LL;
printLongLongLine(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/111193/CWE690_NULL_Deref_From_Return__int64_t_calloc_34.c | CWE690_NULL_Deref_From_Return__int64_t_calloc_34_bad |
void CWE690_NULL_Deref_From_Return__int64_t_calloc_34_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400a90(1,8);
*puVar1 = 5;
printLongLongLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,074 | void CWE690_NULL_Deref_From_Return__int64_t_calloc_34_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111193/CWE690_NULL_Deref_From_Return__int64_t_calloc_34.c | CWE690_NULL_Deref_From_Return__int64_t_calloc_34_good |
void CWE690_NULL_Deref_From_Return__int64_t_calloc_34_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,075 | void CWE690_NULL_Deref_From_Return__int64_t_calloc_41_bad()
{
int64_t * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int64_t *)calloc(1, sizeof(int64_t));
badSink(data);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111194/CWE690_NULL_Deref_From_Return__int64_t_calloc_41.c | CWE690_NULL_Deref_From_Return__int64_t_calloc_41_bad |
void CWE690_NULL_Deref_From_Return__int64_t_calloc_41_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400a90(1,8);
badSink(uVar1);
return;
}
| ['gcc'] |
8,076 | void CWE690_NULL_Deref_From_Return__int64_t_calloc_41_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111194/CWE690_NULL_Deref_From_Return__int64_t_calloc_41.c | CWE690_NULL_Deref_From_Return__int64_t_calloc_41_good |
void CWE690_NULL_Deref_From_Return__int64_t_calloc_41_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,077 | void CWE690_NULL_Deref_From_Return__int64_t_calloc_42_bad()
{
int64_t * data;
data = NULL; /* Initialize data */
data = badSource(data);
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5LL;
printLongLongLine(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/111195/CWE690_NULL_Deref_From_Return__int64_t_calloc_42.c | CWE690_NULL_Deref_From_Return__int64_t_calloc_42_bad |
void CWE690_NULL_Deref_From_Return__int64_t_calloc_42_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)badSource(0);
*puVar1 = 5;
printLongLongLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,078 | void CWE690_NULL_Deref_From_Return__int64_t_calloc_42_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111195/CWE690_NULL_Deref_From_Return__int64_t_calloc_42.c | CWE690_NULL_Deref_From_Return__int64_t_calloc_42_good |
void CWE690_NULL_Deref_From_Return__int64_t_calloc_42_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,079 | void CWE690_NULL_Deref_From_Return__int64_t_calloc_51_bad()
{
int64_t * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int64_t *)calloc(1, sizeof(int64_t));
CWE690_NULL_Deref_From_Return__int64_t_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/111199/CWE690_NULL_Deref_From_Return__int64_t_calloc_51a.c | CWE690_NULL_Deref_From_Return__int64_t_calloc_51_bad |
void CWE690_NULL_Deref_From_Return__int64_t_calloc_51_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400a90(1,8);
CWE690_NULL_Deref_From_Return__int64_t_calloc_51b_badSink(uVar1);
return;
}
| ['gcc'] |
8,080 | void CWE690_NULL_Deref_From_Return__int64_t_calloc_51_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111199/CWE690_NULL_Deref_From_Return__int64_t_calloc_51a.c | CWE690_NULL_Deref_From_Return__int64_t_calloc_51_good |
void CWE690_NULL_Deref_From_Return__int64_t_calloc_51_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,081 | void CWE690_NULL_Deref_From_Return__int64_t_calloc_51b_badSink(int64_t * data)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5LL;
printLongLongLine(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/111199/CWE690_NULL_Deref_From_Return__int64_t_calloc_51b.c | CWE690_NULL_Deref_From_Return__int64_t_calloc_51b_badSink |
void CWE690_NULL_Deref_From_Return__int64_t_calloc_51b_badSink(undefined8 *param_1)
{
*param_1 = 5;
printLongLongLine(*param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
8,082 | void CWE690_NULL_Deref_From_Return__int64_t_calloc_51b_goodB2GSink(int64_t * data)
{
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
data[0] = 5LL;
printLongLongLine(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/111199/CWE690_NULL_Deref_From_Return__int64_t_calloc_51b.c | CWE690_NULL_Deref_From_Return__int64_t_calloc_51b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__int64_t_calloc_51b_goodB2GSink(undefined8 *param_1)
{
if (param_1 != (undefined8 *)0x0) {
*param_1 = 5;
printLongLongLine(*param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,083 | void CWE690_NULL_Deref_From_Return__int64_t_malloc_08_bad()
{
int64_t * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int64_t *)malloc(1*sizeof(int64_t));
if(staticReturnsTrue())
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5LL;
printLongLongLine(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/111225/CWE690_NULL_Deref_From_Return__int64_t_malloc_08.c | CWE690_NULL_Deref_From_Return__int64_t_malloc_08_bad |
void CWE690_NULL_Deref_From_Return__int64_t_malloc_08_bad(void)
{
int iVar1;
undefined8 *puVar2;
puVar2 = (undefined8 *)func_0x00400ab0(8);
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
*puVar2 = 5;
printLongLongLine(*puVar2);
func_0x00400a20(puVar2);
}
return;
}
| ['gcc'] |
8,084 | void CWE690_NULL_Deref_From_Return__int64_t_malloc_08_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111225/CWE690_NULL_Deref_From_Return__int64_t_malloc_08.c | CWE690_NULL_Deref_From_Return__int64_t_malloc_08_good |
void CWE690_NULL_Deref_From_Return__int64_t_malloc_08_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,085 | void CWE690_NULL_Deref_From_Return__int64_t_malloc_11_bad()
{
int64_t * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int64_t *)malloc(1*sizeof(int64_t));
if(globalReturnsTrue())
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5LL;
printLongLongLine(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/111228/CWE690_NULL_Deref_From_Return__int64_t_malloc_11.c | CWE690_NULL_Deref_From_Return__int64_t_malloc_11_bad |
void CWE690_NULL_Deref_From_Return__int64_t_malloc_11_bad(void)
{
int iVar1;
undefined8 *puVar2;
puVar2 = (undefined8 *)func_0x00400ab0(8);
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
*puVar2 = 5;
printLongLongLine(*puVar2);
func_0x00400a20(puVar2);
}
return;
}
| ['gcc'] |
8,086 | void CWE690_NULL_Deref_From_Return__int64_t_malloc_11_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111228/CWE690_NULL_Deref_From_Return__int64_t_malloc_11.c | CWE690_NULL_Deref_From_Return__int64_t_malloc_11_good |
void CWE690_NULL_Deref_From_Return__int64_t_malloc_11_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,087 | void CWE690_NULL_Deref_From_Return__int64_t_malloc_12_bad()
{
int64_t * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int64_t *)malloc(1*sizeof(int64_t));
if(globalReturnsTrueOrFalse())
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5LL;
printLongLongLine(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] = 5LL;
printLongLongLine(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/111229/CWE690_NULL_Deref_From_Return__int64_t_malloc_12.c | CWE690_NULL_Deref_From_Return__int64_t_malloc_12_bad |
void CWE690_NULL_Deref_From_Return__int64_t_malloc_12_bad(void)
{
int iVar1;
undefined8 *puVar2;
puVar2 = (undefined8 *)func_0x00400ab0(8);
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
if (puVar2 != (undefined8 *)0x0) {
*puVar2 = 5;
printLongLongLine(*puVar2);
func_0x00400a20(puVar2);
}
}
else {
*puVar2 = 5;
printLongLongLine(*puVar2);
func_0x00400a20(puVar2);
}
return;
}
| ['gcc'] |
8,088 | void CWE690_NULL_Deref_From_Return__int64_t_malloc_12_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111229/CWE690_NULL_Deref_From_Return__int64_t_malloc_12.c | CWE690_NULL_Deref_From_Return__int64_t_malloc_12_good |
void CWE690_NULL_Deref_From_Return__int64_t_malloc_12_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,089 | void CWE690_NULL_Deref_From_Return__int64_t_malloc_21_bad()
{
int64_t * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int64_t *)malloc(1*sizeof(int64_t));
badStatic = 1; /* true */
badSink(data);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* true */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111236/CWE690_NULL_Deref_From_Return__int64_t_malloc_21.c | CWE690_NULL_Deref_From_Return__int64_t_malloc_21_bad |
void CWE690_NULL_Deref_From_Return__int64_t_malloc_21_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(8);
badStatic = 1;
badSink(uVar1);
return;
}
| ['gcc'] |
8,090 | void CWE690_NULL_Deref_From_Return__int64_t_malloc_21_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111236/CWE690_NULL_Deref_From_Return__int64_t_malloc_21.c | CWE690_NULL_Deref_From_Return__int64_t_malloc_21_good |
void CWE690_NULL_Deref_From_Return__int64_t_malloc_21_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,091 | void CWE690_NULL_Deref_From_Return__int64_t_malloc_22_bad()
{
int64_t * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int64_t *)malloc(1*sizeof(int64_t));
CWE690_NULL_Deref_From_Return__int64_t_malloc_22_badGlobal = 1; /* true */
CWE690_NULL_Deref_From_Return__int64_t_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/111237/CWE690_NULL_Deref_From_Return__int64_t_malloc_22a.c | CWE690_NULL_Deref_From_Return__int64_t_malloc_22_bad |
void CWE690_NULL_Deref_From_Return__int64_t_malloc_22_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(8);
CWE690_NULL_Deref_From_Return__int64_t_malloc_22_badGlobal = 1;
CWE690_NULL_Deref_From_Return__int64_t_malloc_22_badSink(uVar1);
return;
}
| ['gcc'] |
8,092 | void CWE690_NULL_Deref_From_Return__int64_t_malloc_22_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111237/CWE690_NULL_Deref_From_Return__int64_t_malloc_22a.c | CWE690_NULL_Deref_From_Return__int64_t_malloc_22_good |
void CWE690_NULL_Deref_From_Return__int64_t_malloc_22_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,093 | void CWE690_NULL_Deref_From_Return__int64_t_malloc_22_badSink(int64_t * data)
{
if(CWE690_NULL_Deref_From_Return__int64_t_malloc_22_badGlobal)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5LL;
printLongLongLine(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/111237/CWE690_NULL_Deref_From_Return__int64_t_malloc_22b.c | CWE690_NULL_Deref_From_Return__int64_t_malloc_22_badSink |
void CWE690_NULL_Deref_From_Return__int64_t_malloc_22_badSink(undefined8 *param_1)
{
if (CWE690_NULL_Deref_From_Return__int64_t_malloc_22_badGlobal != 0) {
*param_1 = 5;
printLongLongLine(*param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,094 | void CWE690_NULL_Deref_From_Return__int64_t_malloc_22_goodB2G1Sink(int64_t * data)
{
if(CWE690_NULL_Deref_From_Return__int64_t_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] = 5LL;
printLongLongLine(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/111237/CWE690_NULL_Deref_From_Return__int64_t_malloc_22b.c | CWE690_NULL_Deref_From_Return__int64_t_malloc_22_goodB2G1Sink |
void CWE690_NULL_Deref_From_Return__int64_t_malloc_22_goodB2G1Sink(undefined8 *param_1)
{
if (CWE690_NULL_Deref_From_Return__int64_t_malloc_22_goodB2G1Global == 0) {
if (param_1 != (undefined8 *)0x0) {
*param_1 = 5;
printLongLongLine(*param_1);
func_0x00400a20(param_1);
}
}
else {
printLine(&UNK_00401274);
}
return;
}
| ['gcc'] |
8,095 | void CWE690_NULL_Deref_From_Return__int64_t_malloc_22_goodB2G2Sink(int64_t * data)
{
if(CWE690_NULL_Deref_From_Return__int64_t_malloc_22_goodB2G2Global)
{
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
data[0] = 5LL;
printLongLongLine(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/111237/CWE690_NULL_Deref_From_Return__int64_t_malloc_22b.c | CWE690_NULL_Deref_From_Return__int64_t_malloc_22_goodB2G2Sink |
void CWE690_NULL_Deref_From_Return__int64_t_malloc_22_goodB2G2Sink(undefined8 *param_1)
{
if ((CWE690_NULL_Deref_From_Return__int64_t_malloc_22_goodB2G2Global != 0) &&
(param_1 != (undefined8 *)0x0)) {
*param_1 = 5;
printLongLongLine(*param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,096 | void CWE690_NULL_Deref_From_Return__int64_t_malloc_31_bad()
{
int64_t * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int64_t *)malloc(1*sizeof(int64_t));
{
int64_t * dataCopy = data;
int64_t * data = dataCopy;
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5LL;
printLongLongLine(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/111238/CWE690_NULL_Deref_From_Return__int64_t_malloc_31.c | CWE690_NULL_Deref_From_Return__int64_t_malloc_31_bad |
void CWE690_NULL_Deref_From_Return__int64_t_malloc_31_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400ab0(8);
*puVar1 = 5;
printLongLongLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,097 | void CWE690_NULL_Deref_From_Return__int64_t_malloc_31_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111238/CWE690_NULL_Deref_From_Return__int64_t_malloc_31.c | CWE690_NULL_Deref_From_Return__int64_t_malloc_31_good |
void CWE690_NULL_Deref_From_Return__int64_t_malloc_31_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,098 | void CWE690_NULL_Deref_From_Return__int64_t_malloc_34_bad()
{
int64_t * data;
CWE690_NULL_Deref_From_Return__int64_t_malloc_34_unionType myUnion;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int64_t *)malloc(1*sizeof(int64_t));
myUnion.unionFirst = data;
{
int64_t * data = myUnion.unionSecond;
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5LL;
printLongLongLine(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/111241/CWE690_NULL_Deref_From_Return__int64_t_malloc_34.c | CWE690_NULL_Deref_From_Return__int64_t_malloc_34_bad |
void CWE690_NULL_Deref_From_Return__int64_t_malloc_34_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400ab0(8);
*puVar1 = 5;
printLongLongLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,099 | void CWE690_NULL_Deref_From_Return__int64_t_malloc_34_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111241/CWE690_NULL_Deref_From_Return__int64_t_malloc_34.c | CWE690_NULL_Deref_From_Return__int64_t_malloc_34_good |
void CWE690_NULL_Deref_From_Return__int64_t_malloc_34_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.