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,500 | void CWE690_NULL_Deref_From_Return__long_calloc_54e_goodB2GSink(long * data)
{
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
data[0] = 5L;
printLongLine(data[0]);
free(data);
}
} | ['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111490/CWE690_NULL_Deref_From_Return__long_calloc_54e.c | CWE690_NULL_Deref_From_Return__long_calloc_54e_goodB2GSink |
void CWE690_NULL_Deref_From_Return__long_calloc_54e_goodB2GSink(undefined8 *param_1)
{
if (param_1 != (undefined8 *)0x0) {
*param_1 = 5;
printLongLine(*param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,501 | void CWE690_NULL_Deref_From_Return__long_calloc_61_bad()
{
long * data;
data = NULL; /* Initialize data */
data = CWE690_NULL_Deref_From_Return__long_calloc_61b_badSource(data);
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5L;
printLongLine(data[0]);
free(data);
} | ['/* Initialize data */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111491/CWE690_NULL_Deref_From_Return__long_calloc_61a.c | CWE690_NULL_Deref_From_Return__long_calloc_61_bad |
void CWE690_NULL_Deref_From_Return__long_calloc_61_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)CWE690_NULL_Deref_From_Return__long_calloc_61b_badSource(0);
*puVar1 = 5;
printLongLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,502 | void CWE690_NULL_Deref_From_Return__long_calloc_61_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111491/CWE690_NULL_Deref_From_Return__long_calloc_61a.c | CWE690_NULL_Deref_From_Return__long_calloc_61_good |
void CWE690_NULL_Deref_From_Return__long_calloc_61_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,503 | long * CWE690_NULL_Deref_From_Return__long_calloc_61b_badSource(long * data)
{
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)calloc(1, sizeof(long));
return data;
} | ['/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111491/CWE690_NULL_Deref_From_Return__long_calloc_61b.c | CWE690_NULL_Deref_From_Return__long_calloc_61b_badSource |
undefined8 CWE690_NULL_Deref_From_Return__long_calloc_61b_badSource(void)
{
undefined8 uVar1;
uVar1 = func_0x00400a90(1,8);
return uVar1;
}
| ['gcc'] |
8,504 | long * CWE690_NULL_Deref_From_Return__long_calloc_61b_goodB2GSource(long * data)
{
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)calloc(1, sizeof(long));
return data;
} | ['/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111491/CWE690_NULL_Deref_From_Return__long_calloc_61b.c | CWE690_NULL_Deref_From_Return__long_calloc_61b_goodB2GSource |
undefined8 CWE690_NULL_Deref_From_Return__long_calloc_61b_goodB2GSource(void)
{
undefined8 uVar1;
uVar1 = func_0x00400a90(1,8);
return uVar1;
}
| ['gcc'] |
8,505 | void CWE690_NULL_Deref_From_Return__long_calloc_63_bad()
{
long * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)calloc(1, sizeof(long));
CWE690_NULL_Deref_From_Return__long_calloc_63b_badSink(&data);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111493/CWE690_NULL_Deref_From_Return__long_calloc_63a.c | CWE690_NULL_Deref_From_Return__long_calloc_63_bad |
void CWE690_NULL_Deref_From_Return__long_calloc_63_bad(void)
{
undefined8 uStack_10;
uStack_10 = 0;
uStack_10 = func_0x00400a90(1,8);
CWE690_NULL_Deref_From_Return__long_calloc_63b_badSink(&uStack_10);
return;
}
| ['gcc'] |
8,506 | void CWE690_NULL_Deref_From_Return__long_calloc_63_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111493/CWE690_NULL_Deref_From_Return__long_calloc_63a.c | CWE690_NULL_Deref_From_Return__long_calloc_63_good |
void CWE690_NULL_Deref_From_Return__long_calloc_63_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,507 | void CWE690_NULL_Deref_From_Return__long_calloc_63b_badSink(long * * dataPtr)
{
long * data = *dataPtr;
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5L;
printLongLine(data[0]);
free(data);
} | ['/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111493/CWE690_NULL_Deref_From_Return__long_calloc_63b.c | CWE690_NULL_Deref_From_Return__long_calloc_63b_badSink |
void CWE690_NULL_Deref_From_Return__long_calloc_63b_badSink(undefined8 *param_1)
{
param_1 = (undefined8 *)*param_1;
*param_1 = 5;
printLongLine(*param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
8,508 | void CWE690_NULL_Deref_From_Return__long_calloc_63b_goodB2GSink(long * * dataPtr)
{
long * data = *dataPtr;
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
data[0] = 5L;
printLongLine(data[0]);
free(data);
}
} | ['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111493/CWE690_NULL_Deref_From_Return__long_calloc_63b.c | CWE690_NULL_Deref_From_Return__long_calloc_63b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__long_calloc_63b_goodB2GSink(undefined8 *param_1)
{
param_1 = (undefined8 *)*param_1;
if (param_1 != (undefined8 *)0x0) {
*param_1 = 5;
printLongLine(*param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,509 | void CWE690_NULL_Deref_From_Return__long_calloc_64_bad()
{
long * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)calloc(1, sizeof(long));
CWE690_NULL_Deref_From_Return__long_calloc_64b_badSink(&data);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111494/CWE690_NULL_Deref_From_Return__long_calloc_64a.c | CWE690_NULL_Deref_From_Return__long_calloc_64_bad |
void CWE690_NULL_Deref_From_Return__long_calloc_64_bad(void)
{
undefined8 uStack_10;
uStack_10 = 0;
uStack_10 = func_0x00400a90(1,8);
CWE690_NULL_Deref_From_Return__long_calloc_64b_badSink(&uStack_10);
return;
}
| ['gcc'] |
8,510 | void CWE690_NULL_Deref_From_Return__long_calloc_64_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111494/CWE690_NULL_Deref_From_Return__long_calloc_64a.c | CWE690_NULL_Deref_From_Return__long_calloc_64_good |
void CWE690_NULL_Deref_From_Return__long_calloc_64_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,511 | void CWE690_NULL_Deref_From_Return__long_calloc_64b_badSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
long * * dataPtr = (long * *)dataVoidPtr;
/* dereference dataPtr into data */
long * data = (*dataPtr);
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5L;
printLongLine(data[0]);
free(data);
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111494/CWE690_NULL_Deref_From_Return__long_calloc_64b.c | CWE690_NULL_Deref_From_Return__long_calloc_64b_badSink |
void CWE690_NULL_Deref_From_Return__long_calloc_64b_badSink(undefined8 *param_1)
{
param_1 = (undefined8 *)*param_1;
*param_1 = 5;
printLongLine(*param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
8,512 | void CWE690_NULL_Deref_From_Return__long_calloc_64b_goodB2GSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
long * * dataPtr = (long * *)dataVoidPtr;
/* dereference dataPtr into data */
long * data = (*dataPtr);
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
data[0] = 5L;
printLongLine(data[0]);
free(data);
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111494/CWE690_NULL_Deref_From_Return__long_calloc_64b.c | CWE690_NULL_Deref_From_Return__long_calloc_64b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__long_calloc_64b_goodB2GSink(undefined8 *param_1)
{
param_1 = (undefined8 *)*param_1;
if (param_1 != (undefined8 *)0x0) {
*param_1 = 5;
printLongLine(*param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,513 | void CWE690_NULL_Deref_From_Return__long_calloc_66_bad()
{
long * data;
long * dataArray[5];
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)calloc(1, sizeof(long));
/* put data in array */
dataArray[2] = data;
CWE690_NULL_Deref_From_Return__long_calloc_66b_badSink(dataArray);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* put data in array */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111496/CWE690_NULL_Deref_From_Return__long_calloc_66a.c | CWE690_NULL_Deref_From_Return__long_calloc_66_bad |
void CWE690_NULL_Deref_From_Return__long_calloc_66_bad(void)
{
undefined auStack_38 [16];
undefined8 uStack_28;
undefined8 uStack_10;
uStack_10 = 0;
uStack_28 = func_0x00400a90(1,8);
uStack_10 = uStack_28;
CWE690_NULL_Deref_From_Return__long_calloc_66b_badSink(auStack_38);
return;
}
| ['gcc'] |
8,514 | void CWE690_NULL_Deref_From_Return__long_calloc_66_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111496/CWE690_NULL_Deref_From_Return__long_calloc_66a.c | CWE690_NULL_Deref_From_Return__long_calloc_66_good |
void CWE690_NULL_Deref_From_Return__long_calloc_66_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,515 | void CWE690_NULL_Deref_From_Return__long_calloc_66b_badSink(long * dataArray[])
{
/* copy data out of dataArray */
long * data = dataArray[2];
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5L;
printLongLine(data[0]);
free(data);
} | ['/* copy data out of dataArray */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111496/CWE690_NULL_Deref_From_Return__long_calloc_66b.c | CWE690_NULL_Deref_From_Return__long_calloc_66b_badSink |
void CWE690_NULL_Deref_From_Return__long_calloc_66b_badSink(long param_1)
{
undefined8 *puVar1;
puVar1 = *(undefined8 **)(param_1 + 0x10);
*puVar1 = 5;
printLongLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,516 | void CWE690_NULL_Deref_From_Return__long_calloc_66b_goodB2GSink(long * dataArray[])
{
long * data = dataArray[2];
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
data[0] = 5L;
printLongLine(data[0]);
free(data);
}
} | ['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111496/CWE690_NULL_Deref_From_Return__long_calloc_66b.c | CWE690_NULL_Deref_From_Return__long_calloc_66b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__long_calloc_66b_goodB2GSink(long param_1)
{
undefined8 *puVar1;
puVar1 = *(undefined8 **)(param_1 + 0x10);
if (puVar1 != (undefined8 *)0x0) {
*puVar1 = 5;
printLongLine(*puVar1);
func_0x00400a20(puVar1);
}
return;
}
| ['gcc'] |
8,517 | void CWE690_NULL_Deref_From_Return__long_calloc_67_bad()
{
long * data;
CWE690_NULL_Deref_From_Return__long_calloc_67_structType myStruct;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)calloc(1, sizeof(long));
myStruct.structFirst = data;
CWE690_NULL_Deref_From_Return__long_calloc_67b_badSink(myStruct);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111497/CWE690_NULL_Deref_From_Return__long_calloc_67a.c | CWE690_NULL_Deref_From_Return__long_calloc_67_bad |
void CWE690_NULL_Deref_From_Return__long_calloc_67_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400a90(1,8);
CWE690_NULL_Deref_From_Return__long_calloc_67b_badSink(uVar1);
return;
}
| ['gcc'] |
8,518 | void CWE690_NULL_Deref_From_Return__long_calloc_67_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111497/CWE690_NULL_Deref_From_Return__long_calloc_67a.c | CWE690_NULL_Deref_From_Return__long_calloc_67_good |
void CWE690_NULL_Deref_From_Return__long_calloc_67_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,519 | void CWE690_NULL_Deref_From_Return__long_calloc_67b_badSink(CWE690_NULL_Deref_From_Return__long_calloc_67_structType myStruct)
{
long * data = myStruct.structFirst;
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5L;
printLongLine(data[0]);
free(data);
} | ['/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111497/CWE690_NULL_Deref_From_Return__long_calloc_67b.c | CWE690_NULL_Deref_From_Return__long_calloc_67b_badSink |
void CWE690_NULL_Deref_From_Return__long_calloc_67b_badSink(undefined8 *param_1)
{
*param_1 = 5;
printLongLine(*param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
8,520 | void CWE690_NULL_Deref_From_Return__long_calloc_67b_goodB2GSink(CWE690_NULL_Deref_From_Return__long_calloc_67_structType myStruct)
{
long * data = myStruct.structFirst;
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
data[0] = 5L;
printLongLine(data[0]);
free(data);
}
} | ['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111497/CWE690_NULL_Deref_From_Return__long_calloc_67b.c | CWE690_NULL_Deref_From_Return__long_calloc_67b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__long_calloc_67b_goodB2GSink(undefined8 *param_1)
{
if (param_1 != (undefined8 *)0x0) {
*param_1 = 5;
printLongLine(*param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,521 | void CWE690_NULL_Deref_From_Return__long_malloc_08_bad()
{
long * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)malloc(1*sizeof(long));
if(staticReturnsTrue())
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5L;
printLongLine(data[0]);
free(data);
}
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111513/CWE690_NULL_Deref_From_Return__long_malloc_08.c | CWE690_NULL_Deref_From_Return__long_malloc_08_bad |
void CWE690_NULL_Deref_From_Return__long_malloc_08_bad(void)
{
int iVar1;
undefined8 *puVar2;
puVar2 = (undefined8 *)func_0x00400ab0(8);
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
*puVar2 = 5;
printLongLine(*puVar2);
func_0x00400a20(puVar2);
}
return;
}
| ['gcc'] |
8,522 | void CWE690_NULL_Deref_From_Return__long_malloc_08_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111513/CWE690_NULL_Deref_From_Return__long_malloc_08.c | CWE690_NULL_Deref_From_Return__long_malloc_08_good |
void CWE690_NULL_Deref_From_Return__long_malloc_08_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,523 | void CWE690_NULL_Deref_From_Return__long_malloc_11_bad()
{
long * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)malloc(1*sizeof(long));
if(globalReturnsTrue())
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5L;
printLongLine(data[0]);
free(data);
}
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111516/CWE690_NULL_Deref_From_Return__long_malloc_11.c | CWE690_NULL_Deref_From_Return__long_malloc_11_bad |
void CWE690_NULL_Deref_From_Return__long_malloc_11_bad(void)
{
int iVar1;
undefined8 *puVar2;
puVar2 = (undefined8 *)func_0x00400ab0(8);
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
*puVar2 = 5;
printLongLine(*puVar2);
func_0x00400a20(puVar2);
}
return;
}
| ['gcc'] |
8,524 | void CWE690_NULL_Deref_From_Return__long_malloc_11_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111516/CWE690_NULL_Deref_From_Return__long_malloc_11.c | CWE690_NULL_Deref_From_Return__long_malloc_11_good |
void CWE690_NULL_Deref_From_Return__long_malloc_11_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,525 | void CWE690_NULL_Deref_From_Return__long_malloc_12_bad()
{
long * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)malloc(1*sizeof(long));
if(globalReturnsTrueOrFalse())
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5L;
printLongLine(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] = 5L;
printLongLine(data[0]);
free(data);
}
}
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */', '/* 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/111517/CWE690_NULL_Deref_From_Return__long_malloc_12.c | CWE690_NULL_Deref_From_Return__long_malloc_12_bad |
void CWE690_NULL_Deref_From_Return__long_malloc_12_bad(void)
{
int iVar1;
undefined8 *puVar2;
puVar2 = (undefined8 *)func_0x00400ab0(8);
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
if (puVar2 != (undefined8 *)0x0) {
*puVar2 = 5;
printLongLine(*puVar2);
func_0x00400a20(puVar2);
}
}
else {
*puVar2 = 5;
printLongLine(*puVar2);
func_0x00400a20(puVar2);
}
return;
}
| ['gcc'] |
8,526 | void CWE690_NULL_Deref_From_Return__long_malloc_12_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111517/CWE690_NULL_Deref_From_Return__long_malloc_12.c | CWE690_NULL_Deref_From_Return__long_malloc_12_good |
void CWE690_NULL_Deref_From_Return__long_malloc_12_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,527 | void CWE690_NULL_Deref_From_Return__long_malloc_41_bad()
{
long * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)malloc(1*sizeof(long));
badSink(data);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111530/CWE690_NULL_Deref_From_Return__long_malloc_41.c | CWE690_NULL_Deref_From_Return__long_malloc_41_bad |
void CWE690_NULL_Deref_From_Return__long_malloc_41_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(8);
badSink(uVar1);
return;
}
| ['gcc'] |
8,528 | void CWE690_NULL_Deref_From_Return__long_malloc_41_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111530/CWE690_NULL_Deref_From_Return__long_malloc_41.c | CWE690_NULL_Deref_From_Return__long_malloc_41_good |
void CWE690_NULL_Deref_From_Return__long_malloc_41_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,529 | void CWE690_NULL_Deref_From_Return__long_malloc_42_bad()
{
long * data;
data = NULL; /* Initialize data */
data = badSource(data);
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5L;
printLongLine(data[0]);
free(data);
} | ['/* Initialize data */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111531/CWE690_NULL_Deref_From_Return__long_malloc_42.c | CWE690_NULL_Deref_From_Return__long_malloc_42_bad |
void CWE690_NULL_Deref_From_Return__long_malloc_42_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)badSource(0);
*puVar1 = 5;
printLongLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,530 | void CWE690_NULL_Deref_From_Return__long_malloc_42_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111531/CWE690_NULL_Deref_From_Return__long_malloc_42.c | CWE690_NULL_Deref_From_Return__long_malloc_42_good |
void CWE690_NULL_Deref_From_Return__long_malloc_42_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,531 | void CWE690_NULL_Deref_From_Return__long_malloc_51_bad()
{
long * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)malloc(1*sizeof(long));
CWE690_NULL_Deref_From_Return__long_malloc_51b_badSink(data);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111535/CWE690_NULL_Deref_From_Return__long_malloc_51a.c | CWE690_NULL_Deref_From_Return__long_malloc_51_bad |
void CWE690_NULL_Deref_From_Return__long_malloc_51_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(8);
CWE690_NULL_Deref_From_Return__long_malloc_51b_badSink(uVar1);
return;
}
| ['gcc'] |
8,532 | void CWE690_NULL_Deref_From_Return__long_malloc_51_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111535/CWE690_NULL_Deref_From_Return__long_malloc_51a.c | CWE690_NULL_Deref_From_Return__long_malloc_51_good |
void CWE690_NULL_Deref_From_Return__long_malloc_51_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,533 | void CWE690_NULL_Deref_From_Return__long_malloc_51b_badSink(long * data)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5L;
printLongLine(data[0]);
free(data);
} | ['/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111535/CWE690_NULL_Deref_From_Return__long_malloc_51b.c | CWE690_NULL_Deref_From_Return__long_malloc_51b_badSink |
void CWE690_NULL_Deref_From_Return__long_malloc_51b_badSink(undefined8 *param_1)
{
*param_1 = 5;
printLongLine(*param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
8,534 | void CWE690_NULL_Deref_From_Return__long_malloc_51b_goodB2GSink(long * data)
{
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
data[0] = 5L;
printLongLine(data[0]);
free(data);
}
} | ['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111535/CWE690_NULL_Deref_From_Return__long_malloc_51b.c | CWE690_NULL_Deref_From_Return__long_malloc_51b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__long_malloc_51b_goodB2GSink(undefined8 *param_1)
{
if (param_1 != (undefined8 *)0x0) {
*param_1 = 5;
printLongLine(*param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,535 | void CWE690_NULL_Deref_From_Return__long_malloc_52_bad()
{
long * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)malloc(1*sizeof(long));
CWE690_NULL_Deref_From_Return__long_malloc_52b_badSink(data);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111536/CWE690_NULL_Deref_From_Return__long_malloc_52a.c | CWE690_NULL_Deref_From_Return__long_malloc_52_bad |
void CWE690_NULL_Deref_From_Return__long_malloc_52_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(8);
CWE690_NULL_Deref_From_Return__long_malloc_52b_badSink(uVar1);
return;
}
| ['gcc'] |
8,536 | void CWE690_NULL_Deref_From_Return__long_malloc_52_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111536/CWE690_NULL_Deref_From_Return__long_malloc_52a.c | CWE690_NULL_Deref_From_Return__long_malloc_52_good |
void CWE690_NULL_Deref_From_Return__long_malloc_52_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,537 | void CWE690_NULL_Deref_From_Return__long_malloc_52b_badSink(long * data)
{
CWE690_NULL_Deref_From_Return__long_malloc_52c_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111536/CWE690_NULL_Deref_From_Return__long_malloc_52b.c | CWE690_NULL_Deref_From_Return__long_malloc_52b_badSink |
void CWE690_NULL_Deref_From_Return__long_malloc_52b_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__long_malloc_52c_badSink(param_1);
return;
}
| ['gcc'] |
8,538 | void CWE690_NULL_Deref_From_Return__long_malloc_52b_goodB2GSink(long * data)
{
CWE690_NULL_Deref_From_Return__long_malloc_52c_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111536/CWE690_NULL_Deref_From_Return__long_malloc_52b.c | CWE690_NULL_Deref_From_Return__long_malloc_52b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__long_malloc_52b_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__long_malloc_52c_goodB2GSink(param_1);
return;
}
| ['gcc'] |
8,539 | void CWE690_NULL_Deref_From_Return__long_malloc_52c_badSink(long * data)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5L;
printLongLine(data[0]);
free(data);
} | ['/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111536/CWE690_NULL_Deref_From_Return__long_malloc_52c.c | CWE690_NULL_Deref_From_Return__long_malloc_52c_badSink |
void CWE690_NULL_Deref_From_Return__long_malloc_52c_badSink(undefined8 *param_1)
{
*param_1 = 5;
printLongLine(*param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
8,540 | void CWE690_NULL_Deref_From_Return__long_malloc_52c_goodB2GSink(long * data)
{
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
data[0] = 5L;
printLongLine(data[0]);
free(data);
}
} | ['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111536/CWE690_NULL_Deref_From_Return__long_malloc_52c.c | CWE690_NULL_Deref_From_Return__long_malloc_52c_goodB2GSink |
void CWE690_NULL_Deref_From_Return__long_malloc_52c_goodB2GSink(undefined8 *param_1)
{
if (param_1 != (undefined8 *)0x0) {
*param_1 = 5;
printLongLine(*param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,541 | void CWE690_NULL_Deref_From_Return__long_malloc_53_bad()
{
long * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)malloc(1*sizeof(long));
CWE690_NULL_Deref_From_Return__long_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/111537/CWE690_NULL_Deref_From_Return__long_malloc_53a.c | CWE690_NULL_Deref_From_Return__long_malloc_53_bad |
void CWE690_NULL_Deref_From_Return__long_malloc_53_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(8);
CWE690_NULL_Deref_From_Return__long_malloc_53b_badSink(uVar1);
return;
}
| ['gcc'] |
8,542 | void CWE690_NULL_Deref_From_Return__long_malloc_53_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111537/CWE690_NULL_Deref_From_Return__long_malloc_53a.c | CWE690_NULL_Deref_From_Return__long_malloc_53_good |
void CWE690_NULL_Deref_From_Return__long_malloc_53_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,543 | void CWE690_NULL_Deref_From_Return__long_malloc_53b_badSink(long * data)
{
CWE690_NULL_Deref_From_Return__long_malloc_53c_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111537/CWE690_NULL_Deref_From_Return__long_malloc_53b.c | CWE690_NULL_Deref_From_Return__long_malloc_53b_badSink |
void CWE690_NULL_Deref_From_Return__long_malloc_53b_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__long_malloc_53c_badSink(param_1);
return;
}
| ['gcc'] |
8,544 | void CWE690_NULL_Deref_From_Return__long_malloc_53b_goodB2GSink(long * data)
{
CWE690_NULL_Deref_From_Return__long_malloc_53c_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111537/CWE690_NULL_Deref_From_Return__long_malloc_53b.c | CWE690_NULL_Deref_From_Return__long_malloc_53b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__long_malloc_53b_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__long_malloc_53c_goodB2GSink(param_1);
return;
}
| ['gcc'] |
8,545 | void CWE690_NULL_Deref_From_Return__long_malloc_53c_badSink(long * data)
{
CWE690_NULL_Deref_From_Return__long_malloc_53d_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111537/CWE690_NULL_Deref_From_Return__long_malloc_53c.c | CWE690_NULL_Deref_From_Return__long_malloc_53c_badSink |
void CWE690_NULL_Deref_From_Return__long_malloc_53c_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__long_malloc_53d_badSink(param_1);
return;
}
| ['gcc'] |
8,546 | void CWE690_NULL_Deref_From_Return__long_malloc_53c_goodB2GSink(long * data)
{
CWE690_NULL_Deref_From_Return__long_malloc_53d_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111537/CWE690_NULL_Deref_From_Return__long_malloc_53c.c | CWE690_NULL_Deref_From_Return__long_malloc_53c_goodB2GSink |
void CWE690_NULL_Deref_From_Return__long_malloc_53c_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__long_malloc_53d_goodB2GSink(param_1);
return;
}
| ['gcc'] |
8,547 | void CWE690_NULL_Deref_From_Return__long_malloc_53d_badSink(long * data)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5L;
printLongLine(data[0]);
free(data);
} | ['/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111537/CWE690_NULL_Deref_From_Return__long_malloc_53d.c | CWE690_NULL_Deref_From_Return__long_malloc_53d_badSink |
void CWE690_NULL_Deref_From_Return__long_malloc_53d_badSink(undefined8 *param_1)
{
*param_1 = 5;
printLongLine(*param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
8,548 | void CWE690_NULL_Deref_From_Return__long_malloc_53d_goodB2GSink(long * data)
{
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
data[0] = 5L;
printLongLine(data[0]);
free(data);
}
} | ['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111537/CWE690_NULL_Deref_From_Return__long_malloc_53d.c | CWE690_NULL_Deref_From_Return__long_malloc_53d_goodB2GSink |
void CWE690_NULL_Deref_From_Return__long_malloc_53d_goodB2GSink(undefined8 *param_1)
{
if (param_1 != (undefined8 *)0x0) {
*param_1 = 5;
printLongLine(*param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,549 | void CWE690_NULL_Deref_From_Return__long_malloc_54_bad()
{
long * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)malloc(1*sizeof(long));
CWE690_NULL_Deref_From_Return__long_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/111538/CWE690_NULL_Deref_From_Return__long_malloc_54a.c | CWE690_NULL_Deref_From_Return__long_malloc_54_bad |
void CWE690_NULL_Deref_From_Return__long_malloc_54_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(8);
CWE690_NULL_Deref_From_Return__long_malloc_54b_badSink(uVar1);
return;
}
| ['gcc'] |
8,550 | void CWE690_NULL_Deref_From_Return__long_malloc_54_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111538/CWE690_NULL_Deref_From_Return__long_malloc_54a.c | CWE690_NULL_Deref_From_Return__long_malloc_54_good |
void CWE690_NULL_Deref_From_Return__long_malloc_54_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,551 | void CWE690_NULL_Deref_From_Return__long_malloc_54b_badSink(long * data)
{
CWE690_NULL_Deref_From_Return__long_malloc_54c_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111538/CWE690_NULL_Deref_From_Return__long_malloc_54b.c | CWE690_NULL_Deref_From_Return__long_malloc_54b_badSink |
void CWE690_NULL_Deref_From_Return__long_malloc_54b_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__long_malloc_54c_badSink(param_1);
return;
}
| ['gcc'] |
8,552 | void CWE690_NULL_Deref_From_Return__long_malloc_54b_goodB2GSink(long * data)
{
CWE690_NULL_Deref_From_Return__long_malloc_54c_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111538/CWE690_NULL_Deref_From_Return__long_malloc_54b.c | CWE690_NULL_Deref_From_Return__long_malloc_54b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__long_malloc_54b_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__long_malloc_54c_goodB2GSink(param_1);
return;
}
| ['gcc'] |
8,553 | void CWE690_NULL_Deref_From_Return__long_malloc_54c_badSink(long * data)
{
CWE690_NULL_Deref_From_Return__long_malloc_54d_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111538/CWE690_NULL_Deref_From_Return__long_malloc_54c.c | CWE690_NULL_Deref_From_Return__long_malloc_54c_badSink |
void CWE690_NULL_Deref_From_Return__long_malloc_54c_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__long_malloc_54d_badSink(param_1);
return;
}
| ['gcc'] |
8,554 | void CWE690_NULL_Deref_From_Return__long_malloc_54c_goodB2GSink(long * data)
{
CWE690_NULL_Deref_From_Return__long_malloc_54d_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111538/CWE690_NULL_Deref_From_Return__long_malloc_54c.c | CWE690_NULL_Deref_From_Return__long_malloc_54c_goodB2GSink |
void CWE690_NULL_Deref_From_Return__long_malloc_54c_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__long_malloc_54d_goodB2GSink(param_1);
return;
}
| ['gcc'] |
8,555 | void CWE690_NULL_Deref_From_Return__long_malloc_54d_badSink(long * data)
{
CWE690_NULL_Deref_From_Return__long_malloc_54e_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111538/CWE690_NULL_Deref_From_Return__long_malloc_54d.c | CWE690_NULL_Deref_From_Return__long_malloc_54d_badSink |
void CWE690_NULL_Deref_From_Return__long_malloc_54d_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__long_malloc_54e_badSink(param_1);
return;
}
| ['gcc'] |
8,556 | void CWE690_NULL_Deref_From_Return__long_malloc_54d_goodB2GSink(long * data)
{
CWE690_NULL_Deref_From_Return__long_malloc_54e_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111538/CWE690_NULL_Deref_From_Return__long_malloc_54d.c | CWE690_NULL_Deref_From_Return__long_malloc_54d_goodB2GSink |
void CWE690_NULL_Deref_From_Return__long_malloc_54d_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__long_malloc_54e_goodB2GSink(param_1);
return;
}
| ['gcc'] |
8,557 | void CWE690_NULL_Deref_From_Return__long_malloc_54e_badSink(long * data)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5L;
printLongLine(data[0]);
free(data);
} | ['/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111538/CWE690_NULL_Deref_From_Return__long_malloc_54e.c | CWE690_NULL_Deref_From_Return__long_malloc_54e_badSink |
void CWE690_NULL_Deref_From_Return__long_malloc_54e_badSink(undefined8 *param_1)
{
*param_1 = 5;
printLongLine(*param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
8,558 | void CWE690_NULL_Deref_From_Return__long_malloc_54e_goodB2GSink(long * data)
{
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
data[0] = 5L;
printLongLine(data[0]);
free(data);
}
} | ['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111538/CWE690_NULL_Deref_From_Return__long_malloc_54e.c | CWE690_NULL_Deref_From_Return__long_malloc_54e_goodB2GSink |
void CWE690_NULL_Deref_From_Return__long_malloc_54e_goodB2GSink(undefined8 *param_1)
{
if (param_1 != (undefined8 *)0x0) {
*param_1 = 5;
printLongLine(*param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,559 | void CWE690_NULL_Deref_From_Return__long_malloc_61_bad()
{
long * data;
data = NULL; /* Initialize data */
data = CWE690_NULL_Deref_From_Return__long_malloc_61b_badSource(data);
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5L;
printLongLine(data[0]);
free(data);
} | ['/* Initialize data */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111539/CWE690_NULL_Deref_From_Return__long_malloc_61a.c | CWE690_NULL_Deref_From_Return__long_malloc_61_bad |
void CWE690_NULL_Deref_From_Return__long_malloc_61_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)CWE690_NULL_Deref_From_Return__long_malloc_61b_badSource(0);
*puVar1 = 5;
printLongLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,560 | void CWE690_NULL_Deref_From_Return__long_malloc_61_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111539/CWE690_NULL_Deref_From_Return__long_malloc_61a.c | CWE690_NULL_Deref_From_Return__long_malloc_61_good |
void CWE690_NULL_Deref_From_Return__long_malloc_61_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,561 | long * CWE690_NULL_Deref_From_Return__long_malloc_61b_badSource(long * data)
{
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)malloc(1*sizeof(long));
return data;
} | ['/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111539/CWE690_NULL_Deref_From_Return__long_malloc_61b.c | CWE690_NULL_Deref_From_Return__long_malloc_61b_badSource |
undefined8 CWE690_NULL_Deref_From_Return__long_malloc_61b_badSource(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(8);
return uVar1;
}
| ['gcc'] |
8,562 | long * CWE690_NULL_Deref_From_Return__long_malloc_61b_goodB2GSource(long * data)
{
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)malloc(1*sizeof(long));
return data;
} | ['/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111539/CWE690_NULL_Deref_From_Return__long_malloc_61b.c | CWE690_NULL_Deref_From_Return__long_malloc_61b_goodB2GSource |
undefined8 CWE690_NULL_Deref_From_Return__long_malloc_61b_goodB2GSource(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(8);
return uVar1;
}
| ['gcc'] |
8,563 | void CWE690_NULL_Deref_From_Return__long_malloc_63_bad()
{
long * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)malloc(1*sizeof(long));
CWE690_NULL_Deref_From_Return__long_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/111541/CWE690_NULL_Deref_From_Return__long_malloc_63a.c | CWE690_NULL_Deref_From_Return__long_malloc_63_bad |
void CWE690_NULL_Deref_From_Return__long_malloc_63_bad(void)
{
undefined8 uStack_10;
uStack_10 = 0;
uStack_10 = func_0x00400ab0(8);
CWE690_NULL_Deref_From_Return__long_malloc_63b_badSink(&uStack_10);
return;
}
| ['gcc'] |
8,564 | void CWE690_NULL_Deref_From_Return__long_malloc_63_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111541/CWE690_NULL_Deref_From_Return__long_malloc_63a.c | CWE690_NULL_Deref_From_Return__long_malloc_63_good |
void CWE690_NULL_Deref_From_Return__long_malloc_63_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,565 | void CWE690_NULL_Deref_From_Return__long_malloc_63b_badSink(long * * dataPtr)
{
long * data = *dataPtr;
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5L;
printLongLine(data[0]);
free(data);
} | ['/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111541/CWE690_NULL_Deref_From_Return__long_malloc_63b.c | CWE690_NULL_Deref_From_Return__long_malloc_63b_badSink |
void CWE690_NULL_Deref_From_Return__long_malloc_63b_badSink(undefined8 *param_1)
{
param_1 = (undefined8 *)*param_1;
*param_1 = 5;
printLongLine(*param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
8,566 | void CWE690_NULL_Deref_From_Return__long_malloc_63b_goodB2GSink(long * * dataPtr)
{
long * data = *dataPtr;
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
data[0] = 5L;
printLongLine(data[0]);
free(data);
}
} | ['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111541/CWE690_NULL_Deref_From_Return__long_malloc_63b.c | CWE690_NULL_Deref_From_Return__long_malloc_63b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__long_malloc_63b_goodB2GSink(undefined8 *param_1)
{
param_1 = (undefined8 *)*param_1;
if (param_1 != (undefined8 *)0x0) {
*param_1 = 5;
printLongLine(*param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,567 | void CWE690_NULL_Deref_From_Return__long_malloc_64_bad()
{
long * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)malloc(1*sizeof(long));
CWE690_NULL_Deref_From_Return__long_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/111542/CWE690_NULL_Deref_From_Return__long_malloc_64a.c | CWE690_NULL_Deref_From_Return__long_malloc_64_bad |
void CWE690_NULL_Deref_From_Return__long_malloc_64_bad(void)
{
undefined8 uStack_10;
uStack_10 = 0;
uStack_10 = func_0x00400ab0(8);
CWE690_NULL_Deref_From_Return__long_malloc_64b_badSink(&uStack_10);
return;
}
| ['gcc'] |
8,568 | void CWE690_NULL_Deref_From_Return__long_malloc_64_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111542/CWE690_NULL_Deref_From_Return__long_malloc_64a.c | CWE690_NULL_Deref_From_Return__long_malloc_64_good |
void CWE690_NULL_Deref_From_Return__long_malloc_64_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,569 | void CWE690_NULL_Deref_From_Return__long_malloc_64b_badSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
long * * dataPtr = (long * *)dataVoidPtr;
/* dereference dataPtr into data */
long * data = (*dataPtr);
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5L;
printLongLine(data[0]);
free(data);
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111542/CWE690_NULL_Deref_From_Return__long_malloc_64b.c | CWE690_NULL_Deref_From_Return__long_malloc_64b_badSink |
void CWE690_NULL_Deref_From_Return__long_malloc_64b_badSink(undefined8 *param_1)
{
param_1 = (undefined8 *)*param_1;
*param_1 = 5;
printLongLine(*param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
8,570 | void CWE690_NULL_Deref_From_Return__long_malloc_64b_goodB2GSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
long * * dataPtr = (long * *)dataVoidPtr;
/* dereference dataPtr into data */
long * data = (*dataPtr);
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
data[0] = 5L;
printLongLine(data[0]);
free(data);
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111542/CWE690_NULL_Deref_From_Return__long_malloc_64b.c | CWE690_NULL_Deref_From_Return__long_malloc_64b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__long_malloc_64b_goodB2GSink(undefined8 *param_1)
{
param_1 = (undefined8 *)*param_1;
if (param_1 != (undefined8 *)0x0) {
*param_1 = 5;
printLongLine(*param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,571 | void CWE690_NULL_Deref_From_Return__long_malloc_66_bad()
{
long * data;
long * dataArray[5];
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)malloc(1*sizeof(long));
/* put data in array */
dataArray[2] = data;
CWE690_NULL_Deref_From_Return__long_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/111544/CWE690_NULL_Deref_From_Return__long_malloc_66a.c | CWE690_NULL_Deref_From_Return__long_malloc_66_bad |
void CWE690_NULL_Deref_From_Return__long_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__long_malloc_66b_badSink(auStack_38);
return;
}
| ['gcc'] |
8,572 | void CWE690_NULL_Deref_From_Return__long_malloc_66_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111544/CWE690_NULL_Deref_From_Return__long_malloc_66a.c | CWE690_NULL_Deref_From_Return__long_malloc_66_good |
void CWE690_NULL_Deref_From_Return__long_malloc_66_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,573 | void CWE690_NULL_Deref_From_Return__long_malloc_66b_badSink(long * dataArray[])
{
/* copy data out of dataArray */
long * data = dataArray[2];
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5L;
printLongLine(data[0]);
free(data);
} | ['/* copy data out of dataArray */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111544/CWE690_NULL_Deref_From_Return__long_malloc_66b.c | CWE690_NULL_Deref_From_Return__long_malloc_66b_badSink |
void CWE690_NULL_Deref_From_Return__long_malloc_66b_badSink(long param_1)
{
undefined8 *puVar1;
puVar1 = *(undefined8 **)(param_1 + 0x10);
*puVar1 = 5;
printLongLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,574 | void CWE690_NULL_Deref_From_Return__long_malloc_66b_goodB2GSink(long * dataArray[])
{
long * data = dataArray[2];
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
data[0] = 5L;
printLongLine(data[0]);
free(data);
}
} | ['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111544/CWE690_NULL_Deref_From_Return__long_malloc_66b.c | CWE690_NULL_Deref_From_Return__long_malloc_66b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__long_malloc_66b_goodB2GSink(long param_1)
{
undefined8 *puVar1;
puVar1 = *(undefined8 **)(param_1 + 0x10);
if (puVar1 != (undefined8 *)0x0) {
*puVar1 = 5;
printLongLine(*puVar1);
func_0x00400a20(puVar1);
}
return;
}
| ['gcc'] |
8,575 | void CWE690_NULL_Deref_From_Return__long_malloc_67_bad()
{
long * data;
CWE690_NULL_Deref_From_Return__long_malloc_67_structType myStruct;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)malloc(1*sizeof(long));
myStruct.structFirst = data;
CWE690_NULL_Deref_From_Return__long_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/111545/CWE690_NULL_Deref_From_Return__long_malloc_67a.c | CWE690_NULL_Deref_From_Return__long_malloc_67_bad |
void CWE690_NULL_Deref_From_Return__long_malloc_67_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(8);
CWE690_NULL_Deref_From_Return__long_malloc_67b_badSink(uVar1);
return;
}
| ['gcc'] |
8,576 | void CWE690_NULL_Deref_From_Return__long_malloc_67_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111545/CWE690_NULL_Deref_From_Return__long_malloc_67a.c | CWE690_NULL_Deref_From_Return__long_malloc_67_good |
void CWE690_NULL_Deref_From_Return__long_malloc_67_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,577 | void CWE690_NULL_Deref_From_Return__long_malloc_67b_badSink(CWE690_NULL_Deref_From_Return__long_malloc_67_structType myStruct)
{
long * data = myStruct.structFirst;
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5L;
printLongLine(data[0]);
free(data);
} | ['/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111545/CWE690_NULL_Deref_From_Return__long_malloc_67b.c | CWE690_NULL_Deref_From_Return__long_malloc_67b_badSink |
void CWE690_NULL_Deref_From_Return__long_malloc_67b_badSink(undefined8 *param_1)
{
*param_1 = 5;
printLongLine(*param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
8,578 | void CWE690_NULL_Deref_From_Return__long_malloc_67b_goodB2GSink(CWE690_NULL_Deref_From_Return__long_malloc_67_structType myStruct)
{
long * data = myStruct.structFirst;
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
data[0] = 5L;
printLongLine(data[0]);
free(data);
}
} | ['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111545/CWE690_NULL_Deref_From_Return__long_malloc_67b.c | CWE690_NULL_Deref_From_Return__long_malloc_67b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__long_malloc_67b_goodB2GSink(undefined8 *param_1)
{
if (param_1 != (undefined8 *)0x0) {
*param_1 = 5;
printLongLine(*param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,579 | void CWE690_NULL_Deref_From_Return__long_realloc_01_bad()
{
long * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)realloc(data, 1*sizeof(long));
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5L;
printLongLine(data[0]);
free(data);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111554/CWE690_NULL_Deref_From_Return__long_realloc_01.c | CWE690_NULL_Deref_From_Return__long_realloc_01_bad |
void CWE690_NULL_Deref_From_Return__long_realloc_01_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400ad0(0,8);
*puVar1 = 5;
printLongLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,580 | void CWE690_NULL_Deref_From_Return__long_realloc_01_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111554/CWE690_NULL_Deref_From_Return__long_realloc_01.c | CWE690_NULL_Deref_From_Return__long_realloc_01_good |
void CWE690_NULL_Deref_From_Return__long_realloc_01_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,581 | void CWE690_NULL_Deref_From_Return__long_realloc_05_bad()
{
long * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)realloc(data, 1*sizeof(long));
if(staticTrue)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5L;
printLongLine(data[0]);
free(data);
}
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111558/CWE690_NULL_Deref_From_Return__long_realloc_05.c | CWE690_NULL_Deref_From_Return__long_realloc_05_bad |
void CWE690_NULL_Deref_From_Return__long_realloc_05_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400ad0(0,8);
if (staticTrue != 0) {
*puVar1 = 5;
printLongLine(*puVar1);
func_0x00400a20(puVar1);
}
return;
}
| ['gcc'] |
8,582 | void CWE690_NULL_Deref_From_Return__long_realloc_05_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111558/CWE690_NULL_Deref_From_Return__long_realloc_05.c | CWE690_NULL_Deref_From_Return__long_realloc_05_good |
void CWE690_NULL_Deref_From_Return__long_realloc_05_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,583 | void CWE690_NULL_Deref_From_Return__long_realloc_07_bad()
{
long * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)realloc(data, 1*sizeof(long));
if(staticFive==5)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5L;
printLongLine(data[0]);
free(data);
}
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111560/CWE690_NULL_Deref_From_Return__long_realloc_07.c | CWE690_NULL_Deref_From_Return__long_realloc_07_bad |
void CWE690_NULL_Deref_From_Return__long_realloc_07_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400ad0(0,8);
if (staticFive == 5) {
*puVar1 = 5;
printLongLine(*puVar1);
func_0x00400a20(puVar1);
}
return;
}
| ['gcc'] |
8,584 | void CWE690_NULL_Deref_From_Return__long_realloc_07_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111560/CWE690_NULL_Deref_From_Return__long_realloc_07.c | CWE690_NULL_Deref_From_Return__long_realloc_07_good |
void CWE690_NULL_Deref_From_Return__long_realloc_07_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,585 | void CWE690_NULL_Deref_From_Return__long_realloc_08_bad()
{
long * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)realloc(data, 1*sizeof(long));
if(staticReturnsTrue())
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5L;
printLongLine(data[0]);
free(data);
}
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111561/CWE690_NULL_Deref_From_Return__long_realloc_08.c | CWE690_NULL_Deref_From_Return__long_realloc_08_bad |
void CWE690_NULL_Deref_From_Return__long_realloc_08_bad(void)
{
int iVar1;
undefined8 *puVar2;
puVar2 = (undefined8 *)func_0x00400ad0(0,8);
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
*puVar2 = 5;
printLongLine(*puVar2);
func_0x00400a20(puVar2);
}
return;
}
| ['gcc'] |
8,586 | void CWE690_NULL_Deref_From_Return__long_realloc_08_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111561/CWE690_NULL_Deref_From_Return__long_realloc_08.c | CWE690_NULL_Deref_From_Return__long_realloc_08_good |
void CWE690_NULL_Deref_From_Return__long_realloc_08_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,587 | void CWE690_NULL_Deref_From_Return__long_realloc_10_bad()
{
long * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)realloc(data, 1*sizeof(long));
if(globalTrue)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5L;
printLongLine(data[0]);
free(data);
}
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111563/CWE690_NULL_Deref_From_Return__long_realloc_10.c | CWE690_NULL_Deref_From_Return__long_realloc_10_bad |
void CWE690_NULL_Deref_From_Return__long_realloc_10_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400ad0(0,8);
if (globalTrue != 0) {
*puVar1 = 5;
printLongLine(*puVar1);
func_0x00400a20(puVar1);
}
return;
}
| ['gcc'] |
8,588 | void CWE690_NULL_Deref_From_Return__long_realloc_10_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111563/CWE690_NULL_Deref_From_Return__long_realloc_10.c | CWE690_NULL_Deref_From_Return__long_realloc_10_good |
void CWE690_NULL_Deref_From_Return__long_realloc_10_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,589 | void CWE690_NULL_Deref_From_Return__long_realloc_11_bad()
{
long * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)realloc(data, 1*sizeof(long));
if(globalReturnsTrue())
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5L;
printLongLine(data[0]);
free(data);
}
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111564/CWE690_NULL_Deref_From_Return__long_realloc_11.c | CWE690_NULL_Deref_From_Return__long_realloc_11_bad |
void CWE690_NULL_Deref_From_Return__long_realloc_11_bad(void)
{
int iVar1;
undefined8 *puVar2;
puVar2 = (undefined8 *)func_0x00400ad0(0,8);
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
*puVar2 = 5;
printLongLine(*puVar2);
func_0x00400a20(puVar2);
}
return;
}
| ['gcc'] |
8,590 | void CWE690_NULL_Deref_From_Return__long_realloc_11_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111564/CWE690_NULL_Deref_From_Return__long_realloc_11.c | CWE690_NULL_Deref_From_Return__long_realloc_11_good |
void CWE690_NULL_Deref_From_Return__long_realloc_11_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,591 | void CWE690_NULL_Deref_From_Return__long_realloc_12_bad()
{
long * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)realloc(data, 1*sizeof(long));
if(globalReturnsTrueOrFalse())
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5L;
printLongLine(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] = 5L;
printLongLine(data[0]);
free(data);
}
}
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */', '/* 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/111565/CWE690_NULL_Deref_From_Return__long_realloc_12.c | CWE690_NULL_Deref_From_Return__long_realloc_12_bad |
void CWE690_NULL_Deref_From_Return__long_realloc_12_bad(void)
{
int iVar1;
undefined8 *puVar2;
puVar2 = (undefined8 *)func_0x00400ad0(0,8);
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
if (puVar2 != (undefined8 *)0x0) {
*puVar2 = 5;
printLongLine(*puVar2);
func_0x00400a20(puVar2);
}
}
else {
*puVar2 = 5;
printLongLine(*puVar2);
func_0x00400a20(puVar2);
}
return;
}
| ['gcc'] |
8,592 | void CWE690_NULL_Deref_From_Return__long_realloc_12_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111565/CWE690_NULL_Deref_From_Return__long_realloc_12.c | CWE690_NULL_Deref_From_Return__long_realloc_12_good |
void CWE690_NULL_Deref_From_Return__long_realloc_12_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,593 | void CWE690_NULL_Deref_From_Return__long_realloc_15_bad()
{
long * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)realloc(data, 1*sizeof(long));
switch(6)
{
case 6:
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5L;
printLongLine(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/111568/CWE690_NULL_Deref_From_Return__long_realloc_15.c | CWE690_NULL_Deref_From_Return__long_realloc_15_bad |
void CWE690_NULL_Deref_From_Return__long_realloc_15_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400ad0(0,8);
*puVar1 = 5;
printLongLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,594 | void CWE690_NULL_Deref_From_Return__long_realloc_15_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111568/CWE690_NULL_Deref_From_Return__long_realloc_15.c | CWE690_NULL_Deref_From_Return__long_realloc_15_good |
void CWE690_NULL_Deref_From_Return__long_realloc_15_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,595 | void CWE690_NULL_Deref_From_Return__long_realloc_16_bad()
{
long * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)realloc(data, 1*sizeof(long));
while(1)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5L;
printLongLine(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/111569/CWE690_NULL_Deref_From_Return__long_realloc_16.c | CWE690_NULL_Deref_From_Return__long_realloc_16_bad |
void CWE690_NULL_Deref_From_Return__long_realloc_16_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400ad0(0,8);
*puVar1 = 5;
printLongLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,596 | void CWE690_NULL_Deref_From_Return__long_realloc_16_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111569/CWE690_NULL_Deref_From_Return__long_realloc_16.c | CWE690_NULL_Deref_From_Return__long_realloc_16_good |
void CWE690_NULL_Deref_From_Return__long_realloc_16_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,597 | void CWE690_NULL_Deref_From_Return__long_realloc_17_bad()
{
int j;
long * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)realloc(data, 1*sizeof(long));
for(j = 0; j < 1; j++)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5L;
printLongLine(data[0]);
free(data);
}
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111570/CWE690_NULL_Deref_From_Return__long_realloc_17.c | CWE690_NULL_Deref_From_Return__long_realloc_17_bad |
void CWE690_NULL_Deref_From_Return__long_realloc_17_bad(void)
{
undefined8 *puVar1;
int iStack_c;
puVar1 = (undefined8 *)func_0x00400ad0(0,8);
for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) {
*puVar1 = 5;
printLongLine(*puVar1);
func_0x00400a20(puVar1);
}
return;
}
| ['gcc'] |
8,598 | void CWE690_NULL_Deref_From_Return__long_realloc_17_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111570/CWE690_NULL_Deref_From_Return__long_realloc_17.c | CWE690_NULL_Deref_From_Return__long_realloc_17_good |
void CWE690_NULL_Deref_From_Return__long_realloc_17_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,599 | void CWE690_NULL_Deref_From_Return__long_realloc_18_bad()
{
long * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (long *)realloc(data, 1*sizeof(long));
goto sink;
sink:
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5L;
printLongLine(data[0]);
free(data);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111571/CWE690_NULL_Deref_From_Return__long_realloc_18.c | CWE690_NULL_Deref_From_Return__long_realloc_18_bad |
void CWE690_NULL_Deref_From_Return__long_realloc_18_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400ad0(0,8);
*puVar1 = 5;
printLongLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.