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,300 | void CWE690_NULL_Deref_From_Return__int_malloc_21_bad()
{
int * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)malloc(1*sizeof(int));
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/111380/CWE690_NULL_Deref_From_Return__int_malloc_21.c | CWE690_NULL_Deref_From_Return__int_malloc_21_bad |
void CWE690_NULL_Deref_From_Return__int_malloc_21_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(4);
badStatic = 1;
badSink(uVar1);
return;
}
| ['gcc'] |
8,301 | void CWE690_NULL_Deref_From_Return__int_malloc_21_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111380/CWE690_NULL_Deref_From_Return__int_malloc_21.c | CWE690_NULL_Deref_From_Return__int_malloc_21_good |
void CWE690_NULL_Deref_From_Return__int_malloc_21_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,302 | void CWE690_NULL_Deref_From_Return__int_malloc_22_bad()
{
int * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)malloc(1*sizeof(int));
CWE690_NULL_Deref_From_Return__int_malloc_22_badGlobal = 1; /* true */
CWE690_NULL_Deref_From_Return__int_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/111381/CWE690_NULL_Deref_From_Return__int_malloc_22a.c | CWE690_NULL_Deref_From_Return__int_malloc_22_bad |
void CWE690_NULL_Deref_From_Return__int_malloc_22_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(4);
CWE690_NULL_Deref_From_Return__int_malloc_22_badGlobal = 1;
CWE690_NULL_Deref_From_Return__int_malloc_22_badSink(uVar1);
return;
}
| ['gcc'] |
8,303 | void CWE690_NULL_Deref_From_Return__int_malloc_22_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111381/CWE690_NULL_Deref_From_Return__int_malloc_22a.c | CWE690_NULL_Deref_From_Return__int_malloc_22_good |
void CWE690_NULL_Deref_From_Return__int_malloc_22_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,304 | void CWE690_NULL_Deref_From_Return__int_malloc_22_badSink(int * data)
{
if(CWE690_NULL_Deref_From_Return__int_malloc_22_badGlobal)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5;
printIntLine(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/111381/CWE690_NULL_Deref_From_Return__int_malloc_22b.c | CWE690_NULL_Deref_From_Return__int_malloc_22_badSink |
void CWE690_NULL_Deref_From_Return__int_malloc_22_badSink(undefined4 *param_1)
{
if (CWE690_NULL_Deref_From_Return__int_malloc_22_badGlobal != 0) {
*param_1 = 5;
printIntLine(*param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,305 | void CWE690_NULL_Deref_From_Return__int_malloc_22_goodB2G1Sink(int * data)
{
if(CWE690_NULL_Deref_From_Return__int_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] = 5;
printIntLine(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/111381/CWE690_NULL_Deref_From_Return__int_malloc_22b.c | CWE690_NULL_Deref_From_Return__int_malloc_22_goodB2G1Sink |
void CWE690_NULL_Deref_From_Return__int_malloc_22_goodB2G1Sink(undefined4 *param_1)
{
if (CWE690_NULL_Deref_From_Return__int_malloc_22_goodB2G1Global == 0) {
if (param_1 != (undefined4 *)0x0) {
*param_1 = 5;
printIntLine(*param_1);
func_0x00400a20(param_1);
}
}
else {
printLine(&UNK_00401264);
}
return;
}
| ['gcc'] |
8,306 | void CWE690_NULL_Deref_From_Return__int_malloc_22_goodB2G2Sink(int * data)
{
if(CWE690_NULL_Deref_From_Return__int_malloc_22_goodB2G2Global)
{
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
data[0] = 5;
printIntLine(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/111381/CWE690_NULL_Deref_From_Return__int_malloc_22b.c | CWE690_NULL_Deref_From_Return__int_malloc_22_goodB2G2Sink |
void CWE690_NULL_Deref_From_Return__int_malloc_22_goodB2G2Sink(undefined4 *param_1)
{
if ((CWE690_NULL_Deref_From_Return__int_malloc_22_goodB2G2Global != 0) &&
(param_1 != (undefined4 *)0x0)) {
*param_1 = 5;
printIntLine(*param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,307 | void CWE690_NULL_Deref_From_Return__int_malloc_31_bad()
{
int * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)malloc(1*sizeof(int));
{
int * dataCopy = data;
int * data = dataCopy;
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5;
printIntLine(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/111382/CWE690_NULL_Deref_From_Return__int_malloc_31.c | CWE690_NULL_Deref_From_Return__int_malloc_31_bad |
void CWE690_NULL_Deref_From_Return__int_malloc_31_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ab0(4);
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,308 | void CWE690_NULL_Deref_From_Return__int_malloc_31_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111382/CWE690_NULL_Deref_From_Return__int_malloc_31.c | CWE690_NULL_Deref_From_Return__int_malloc_31_good |
void CWE690_NULL_Deref_From_Return__int_malloc_31_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,309 | void CWE690_NULL_Deref_From_Return__int_malloc_32_bad()
{
int * data;
int * *dataPtr1 = &data;
int * *dataPtr2 = &data;
data = NULL; /* Initialize data */
{
int * data = *dataPtr1;
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)malloc(1*sizeof(int));
*dataPtr1 = data;
}
{
int * data = *dataPtr2;
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5;
printIntLine(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/111383/CWE690_NULL_Deref_From_Return__int_malloc_32.c | CWE690_NULL_Deref_From_Return__int_malloc_32_bad |
/* WARNING: Restarted to delay deadcode elimination for space: stack */
void CWE690_NULL_Deref_From_Return__int_malloc_32_bad(void)
{
undefined8 uStack_30;
undefined4 *puStack_28;
undefined8 uStack_20;
undefined8 *puStack_18;
undefined8 *puStack_10;
puStack_10 = &uStack_30;
puStack_18 = &uStack_30;
uStack_30 = 0;
uStack_20 = 0;
uStack_20 = func_0x00400ab0(4);
*puStack_10 = uStack_20;
puStack_28 = (undefined4 *)*puStack_18;
*puStack_28 = 5;
printIntLine(*puStack_28);
func_0x00400a20(puStack_28);
return;
}
| ['gcc'] |
8,310 | void CWE690_NULL_Deref_From_Return__int_malloc_32_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111383/CWE690_NULL_Deref_From_Return__int_malloc_32.c | CWE690_NULL_Deref_From_Return__int_malloc_32_good |
void CWE690_NULL_Deref_From_Return__int_malloc_32_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,311 | void CWE690_NULL_Deref_From_Return__int_malloc_34_bad()
{
int * data;
CWE690_NULL_Deref_From_Return__int_malloc_34_unionType myUnion;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)malloc(1*sizeof(int));
myUnion.unionFirst = data;
{
int * data = myUnion.unionSecond;
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5;
printIntLine(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/111385/CWE690_NULL_Deref_From_Return__int_malloc_34.c | CWE690_NULL_Deref_From_Return__int_malloc_34_bad |
void CWE690_NULL_Deref_From_Return__int_malloc_34_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ab0(4);
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,312 | void CWE690_NULL_Deref_From_Return__int_malloc_34_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111385/CWE690_NULL_Deref_From_Return__int_malloc_34.c | CWE690_NULL_Deref_From_Return__int_malloc_34_good |
void CWE690_NULL_Deref_From_Return__int_malloc_34_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,313 | void CWE690_NULL_Deref_From_Return__int_malloc_41_bad()
{
int * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)malloc(1*sizeof(int));
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/111386/CWE690_NULL_Deref_From_Return__int_malloc_41.c | CWE690_NULL_Deref_From_Return__int_malloc_41_bad |
void CWE690_NULL_Deref_From_Return__int_malloc_41_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(4);
badSink(uVar1);
return;
}
| ['gcc'] |
8,314 | void CWE690_NULL_Deref_From_Return__int_malloc_41_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111386/CWE690_NULL_Deref_From_Return__int_malloc_41.c | CWE690_NULL_Deref_From_Return__int_malloc_41_good |
void CWE690_NULL_Deref_From_Return__int_malloc_41_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,315 | void CWE690_NULL_Deref_From_Return__int_malloc_42_bad()
{
int * data;
data = NULL; /* Initialize data */
data = badSource(data);
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5;
printIntLine(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/111387/CWE690_NULL_Deref_From_Return__int_malloc_42.c | CWE690_NULL_Deref_From_Return__int_malloc_42_bad |
void CWE690_NULL_Deref_From_Return__int_malloc_42_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)badSource(0);
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,316 | void CWE690_NULL_Deref_From_Return__int_malloc_42_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111387/CWE690_NULL_Deref_From_Return__int_malloc_42.c | CWE690_NULL_Deref_From_Return__int_malloc_42_good |
void CWE690_NULL_Deref_From_Return__int_malloc_42_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,317 | void CWE690_NULL_Deref_From_Return__int_malloc_51_bad()
{
int * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)malloc(1*sizeof(int));
CWE690_NULL_Deref_From_Return__int_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/111391/CWE690_NULL_Deref_From_Return__int_malloc_51a.c | CWE690_NULL_Deref_From_Return__int_malloc_51_bad |
void CWE690_NULL_Deref_From_Return__int_malloc_51_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(4);
CWE690_NULL_Deref_From_Return__int_malloc_51b_badSink(uVar1);
return;
}
| ['gcc'] |
8,318 | void CWE690_NULL_Deref_From_Return__int_malloc_51_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111391/CWE690_NULL_Deref_From_Return__int_malloc_51a.c | CWE690_NULL_Deref_From_Return__int_malloc_51_good |
void CWE690_NULL_Deref_From_Return__int_malloc_51_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,319 | void CWE690_NULL_Deref_From_Return__int_malloc_51b_badSink(int * data)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5;
printIntLine(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/111391/CWE690_NULL_Deref_From_Return__int_malloc_51b.c | CWE690_NULL_Deref_From_Return__int_malloc_51b_badSink |
void CWE690_NULL_Deref_From_Return__int_malloc_51b_badSink(undefined4 *param_1)
{
*param_1 = 5;
printIntLine(*param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
8,320 | void CWE690_NULL_Deref_From_Return__int_malloc_51b_goodB2GSink(int * data)
{
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
data[0] = 5;
printIntLine(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/111391/CWE690_NULL_Deref_From_Return__int_malloc_51b.c | CWE690_NULL_Deref_From_Return__int_malloc_51b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__int_malloc_51b_goodB2GSink(undefined4 *param_1)
{
if (param_1 != (undefined4 *)0x0) {
*param_1 = 5;
printIntLine(*param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,321 | void CWE690_NULL_Deref_From_Return__int_malloc_52_bad()
{
int * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)malloc(1*sizeof(int));
CWE690_NULL_Deref_From_Return__int_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/111392/CWE690_NULL_Deref_From_Return__int_malloc_52a.c | CWE690_NULL_Deref_From_Return__int_malloc_52_bad |
void CWE690_NULL_Deref_From_Return__int_malloc_52_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(4);
CWE690_NULL_Deref_From_Return__int_malloc_52b_badSink(uVar1);
return;
}
| ['gcc'] |
8,322 | void CWE690_NULL_Deref_From_Return__int_malloc_52_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111392/CWE690_NULL_Deref_From_Return__int_malloc_52a.c | CWE690_NULL_Deref_From_Return__int_malloc_52_good |
void CWE690_NULL_Deref_From_Return__int_malloc_52_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,323 | void CWE690_NULL_Deref_From_Return__int_malloc_52b_badSink(int * data)
{
CWE690_NULL_Deref_From_Return__int_malloc_52c_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111392/CWE690_NULL_Deref_From_Return__int_malloc_52b.c | CWE690_NULL_Deref_From_Return__int_malloc_52b_badSink |
void CWE690_NULL_Deref_From_Return__int_malloc_52b_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__int_malloc_52c_badSink(param_1);
return;
}
| ['gcc'] |
8,324 | void CWE690_NULL_Deref_From_Return__int_malloc_52b_goodB2GSink(int * data)
{
CWE690_NULL_Deref_From_Return__int_malloc_52c_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111392/CWE690_NULL_Deref_From_Return__int_malloc_52b.c | CWE690_NULL_Deref_From_Return__int_malloc_52b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__int_malloc_52b_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__int_malloc_52c_goodB2GSink(param_1);
return;
}
| ['gcc'] |
8,325 | void CWE690_NULL_Deref_From_Return__int_malloc_52c_badSink(int * data)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5;
printIntLine(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/111392/CWE690_NULL_Deref_From_Return__int_malloc_52c.c | CWE690_NULL_Deref_From_Return__int_malloc_52c_badSink |
void CWE690_NULL_Deref_From_Return__int_malloc_52c_badSink(undefined4 *param_1)
{
*param_1 = 5;
printIntLine(*param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
8,326 | void CWE690_NULL_Deref_From_Return__int_malloc_52c_goodB2GSink(int * data)
{
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
data[0] = 5;
printIntLine(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/111392/CWE690_NULL_Deref_From_Return__int_malloc_52c.c | CWE690_NULL_Deref_From_Return__int_malloc_52c_goodB2GSink |
void CWE690_NULL_Deref_From_Return__int_malloc_52c_goodB2GSink(undefined4 *param_1)
{
if (param_1 != (undefined4 *)0x0) {
*param_1 = 5;
printIntLine(*param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,327 | void CWE690_NULL_Deref_From_Return__int_malloc_53_bad()
{
int * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)malloc(1*sizeof(int));
CWE690_NULL_Deref_From_Return__int_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/111393/CWE690_NULL_Deref_From_Return__int_malloc_53a.c | CWE690_NULL_Deref_From_Return__int_malloc_53_bad |
void CWE690_NULL_Deref_From_Return__int_malloc_53_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(4);
CWE690_NULL_Deref_From_Return__int_malloc_53b_badSink(uVar1);
return;
}
| ['gcc'] |
8,328 | void CWE690_NULL_Deref_From_Return__int_malloc_53_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111393/CWE690_NULL_Deref_From_Return__int_malloc_53a.c | CWE690_NULL_Deref_From_Return__int_malloc_53_good |
void CWE690_NULL_Deref_From_Return__int_malloc_53_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,329 | void CWE690_NULL_Deref_From_Return__int_malloc_53b_badSink(int * data)
{
CWE690_NULL_Deref_From_Return__int_malloc_53c_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111393/CWE690_NULL_Deref_From_Return__int_malloc_53b.c | CWE690_NULL_Deref_From_Return__int_malloc_53b_badSink |
void CWE690_NULL_Deref_From_Return__int_malloc_53b_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__int_malloc_53c_badSink(param_1);
return;
}
| ['gcc'] |
8,330 | void CWE690_NULL_Deref_From_Return__int_malloc_53b_goodB2GSink(int * data)
{
CWE690_NULL_Deref_From_Return__int_malloc_53c_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111393/CWE690_NULL_Deref_From_Return__int_malloc_53b.c | CWE690_NULL_Deref_From_Return__int_malloc_53b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__int_malloc_53b_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__int_malloc_53c_goodB2GSink(param_1);
return;
}
| ['gcc'] |
8,331 | void CWE690_NULL_Deref_From_Return__int_malloc_53c_badSink(int * data)
{
CWE690_NULL_Deref_From_Return__int_malloc_53d_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111393/CWE690_NULL_Deref_From_Return__int_malloc_53c.c | CWE690_NULL_Deref_From_Return__int_malloc_53c_badSink |
void CWE690_NULL_Deref_From_Return__int_malloc_53c_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__int_malloc_53d_badSink(param_1);
return;
}
| ['gcc'] |
8,332 | void CWE690_NULL_Deref_From_Return__int_malloc_53c_goodB2GSink(int * data)
{
CWE690_NULL_Deref_From_Return__int_malloc_53d_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111393/CWE690_NULL_Deref_From_Return__int_malloc_53c.c | CWE690_NULL_Deref_From_Return__int_malloc_53c_goodB2GSink |
void CWE690_NULL_Deref_From_Return__int_malloc_53c_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__int_malloc_53d_goodB2GSink(param_1);
return;
}
| ['gcc'] |
8,333 | void CWE690_NULL_Deref_From_Return__int_malloc_53d_badSink(int * data)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5;
printIntLine(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/111393/CWE690_NULL_Deref_From_Return__int_malloc_53d.c | CWE690_NULL_Deref_From_Return__int_malloc_53d_badSink |
void CWE690_NULL_Deref_From_Return__int_malloc_53d_badSink(undefined4 *param_1)
{
*param_1 = 5;
printIntLine(*param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
8,334 | void CWE690_NULL_Deref_From_Return__int_malloc_53d_goodB2GSink(int * data)
{
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
data[0] = 5;
printIntLine(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/111393/CWE690_NULL_Deref_From_Return__int_malloc_53d.c | CWE690_NULL_Deref_From_Return__int_malloc_53d_goodB2GSink |
void CWE690_NULL_Deref_From_Return__int_malloc_53d_goodB2GSink(undefined4 *param_1)
{
if (param_1 != (undefined4 *)0x0) {
*param_1 = 5;
printIntLine(*param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,335 | void CWE690_NULL_Deref_From_Return__int_malloc_54_bad()
{
int * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)malloc(1*sizeof(int));
CWE690_NULL_Deref_From_Return__int_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/111394/CWE690_NULL_Deref_From_Return__int_malloc_54a.c | CWE690_NULL_Deref_From_Return__int_malloc_54_bad |
void CWE690_NULL_Deref_From_Return__int_malloc_54_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(4);
CWE690_NULL_Deref_From_Return__int_malloc_54b_badSink(uVar1);
return;
}
| ['gcc'] |
8,336 | void CWE690_NULL_Deref_From_Return__int_malloc_54_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111394/CWE690_NULL_Deref_From_Return__int_malloc_54a.c | CWE690_NULL_Deref_From_Return__int_malloc_54_good |
void CWE690_NULL_Deref_From_Return__int_malloc_54_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,337 | void CWE690_NULL_Deref_From_Return__int_malloc_54b_badSink(int * data)
{
CWE690_NULL_Deref_From_Return__int_malloc_54c_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111394/CWE690_NULL_Deref_From_Return__int_malloc_54b.c | CWE690_NULL_Deref_From_Return__int_malloc_54b_badSink |
void CWE690_NULL_Deref_From_Return__int_malloc_54b_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__int_malloc_54c_badSink(param_1);
return;
}
| ['gcc'] |
8,338 | void CWE690_NULL_Deref_From_Return__int_malloc_54b_goodB2GSink(int * data)
{
CWE690_NULL_Deref_From_Return__int_malloc_54c_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111394/CWE690_NULL_Deref_From_Return__int_malloc_54b.c | CWE690_NULL_Deref_From_Return__int_malloc_54b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__int_malloc_54b_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__int_malloc_54c_goodB2GSink(param_1);
return;
}
| ['gcc'] |
8,339 | void CWE690_NULL_Deref_From_Return__int_malloc_54c_badSink(int * data)
{
CWE690_NULL_Deref_From_Return__int_malloc_54d_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111394/CWE690_NULL_Deref_From_Return__int_malloc_54c.c | CWE690_NULL_Deref_From_Return__int_malloc_54c_badSink |
void CWE690_NULL_Deref_From_Return__int_malloc_54c_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__int_malloc_54d_badSink(param_1);
return;
}
| ['gcc'] |
8,340 | void CWE690_NULL_Deref_From_Return__int_malloc_54c_goodB2GSink(int * data)
{
CWE690_NULL_Deref_From_Return__int_malloc_54d_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111394/CWE690_NULL_Deref_From_Return__int_malloc_54c.c | CWE690_NULL_Deref_From_Return__int_malloc_54c_goodB2GSink |
void CWE690_NULL_Deref_From_Return__int_malloc_54c_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__int_malloc_54d_goodB2GSink(param_1);
return;
}
| ['gcc'] |
8,341 | void CWE690_NULL_Deref_From_Return__int_malloc_54d_badSink(int * data)
{
CWE690_NULL_Deref_From_Return__int_malloc_54e_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111394/CWE690_NULL_Deref_From_Return__int_malloc_54d.c | CWE690_NULL_Deref_From_Return__int_malloc_54d_badSink |
void CWE690_NULL_Deref_From_Return__int_malloc_54d_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__int_malloc_54e_badSink(param_1);
return;
}
| ['gcc'] |
8,342 | void CWE690_NULL_Deref_From_Return__int_malloc_54d_goodB2GSink(int * data)
{
CWE690_NULL_Deref_From_Return__int_malloc_54e_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111394/CWE690_NULL_Deref_From_Return__int_malloc_54d.c | CWE690_NULL_Deref_From_Return__int_malloc_54d_goodB2GSink |
void CWE690_NULL_Deref_From_Return__int_malloc_54d_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__int_malloc_54e_goodB2GSink(param_1);
return;
}
| ['gcc'] |
8,343 | void CWE690_NULL_Deref_From_Return__int_malloc_54e_badSink(int * data)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5;
printIntLine(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/111394/CWE690_NULL_Deref_From_Return__int_malloc_54e.c | CWE690_NULL_Deref_From_Return__int_malloc_54e_badSink |
void CWE690_NULL_Deref_From_Return__int_malloc_54e_badSink(undefined4 *param_1)
{
*param_1 = 5;
printIntLine(*param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
8,344 | void CWE690_NULL_Deref_From_Return__int_malloc_54e_goodB2GSink(int * data)
{
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
data[0] = 5;
printIntLine(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/111394/CWE690_NULL_Deref_From_Return__int_malloc_54e.c | CWE690_NULL_Deref_From_Return__int_malloc_54e_goodB2GSink |
void CWE690_NULL_Deref_From_Return__int_malloc_54e_goodB2GSink(undefined4 *param_1)
{
if (param_1 != (undefined4 *)0x0) {
*param_1 = 5;
printIntLine(*param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,345 | void CWE690_NULL_Deref_From_Return__int_malloc_61_bad()
{
int * data;
data = NULL; /* Initialize data */
data = CWE690_NULL_Deref_From_Return__int_malloc_61b_badSource(data);
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5;
printIntLine(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/111395/CWE690_NULL_Deref_From_Return__int_malloc_61a.c | CWE690_NULL_Deref_From_Return__int_malloc_61_bad |
void CWE690_NULL_Deref_From_Return__int_malloc_61_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)CWE690_NULL_Deref_From_Return__int_malloc_61b_badSource(0);
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,346 | void CWE690_NULL_Deref_From_Return__int_malloc_61_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111395/CWE690_NULL_Deref_From_Return__int_malloc_61a.c | CWE690_NULL_Deref_From_Return__int_malloc_61_good |
void CWE690_NULL_Deref_From_Return__int_malloc_61_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,347 | int * CWE690_NULL_Deref_From_Return__int_malloc_61b_badSource(int * data)
{
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)malloc(1*sizeof(int));
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/111395/CWE690_NULL_Deref_From_Return__int_malloc_61b.c | CWE690_NULL_Deref_From_Return__int_malloc_61b_badSource |
undefined8 CWE690_NULL_Deref_From_Return__int_malloc_61b_badSource(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(4);
return uVar1;
}
| ['gcc'] |
8,348 | int * CWE690_NULL_Deref_From_Return__int_malloc_61b_goodB2GSource(int * data)
{
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)malloc(1*sizeof(int));
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/111395/CWE690_NULL_Deref_From_Return__int_malloc_61b.c | CWE690_NULL_Deref_From_Return__int_malloc_61b_goodB2GSource |
undefined8 CWE690_NULL_Deref_From_Return__int_malloc_61b_goodB2GSource(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(4);
return uVar1;
}
| ['gcc'] |
8,349 | void CWE690_NULL_Deref_From_Return__int_malloc_63_bad()
{
int * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)malloc(1*sizeof(int));
CWE690_NULL_Deref_From_Return__int_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/111397/CWE690_NULL_Deref_From_Return__int_malloc_63a.c | CWE690_NULL_Deref_From_Return__int_malloc_63_bad |
void CWE690_NULL_Deref_From_Return__int_malloc_63_bad(void)
{
undefined8 uStack_10;
uStack_10 = 0;
uStack_10 = func_0x00400ab0(4);
CWE690_NULL_Deref_From_Return__int_malloc_63b_badSink(&uStack_10);
return;
}
| ['gcc'] |
8,350 | void CWE690_NULL_Deref_From_Return__int_malloc_63_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111397/CWE690_NULL_Deref_From_Return__int_malloc_63a.c | CWE690_NULL_Deref_From_Return__int_malloc_63_good |
void CWE690_NULL_Deref_From_Return__int_malloc_63_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,351 | void CWE690_NULL_Deref_From_Return__int_malloc_63b_badSink(int * * dataPtr)
{
int * data = *dataPtr;
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5;
printIntLine(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/111397/CWE690_NULL_Deref_From_Return__int_malloc_63b.c | CWE690_NULL_Deref_From_Return__int_malloc_63b_badSink |
void CWE690_NULL_Deref_From_Return__int_malloc_63b_badSink(undefined8 *param_1)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)*param_1;
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,352 | void CWE690_NULL_Deref_From_Return__int_malloc_63b_goodB2GSink(int * * dataPtr)
{
int * data = *dataPtr;
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
data[0] = 5;
printIntLine(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/111397/CWE690_NULL_Deref_From_Return__int_malloc_63b.c | CWE690_NULL_Deref_From_Return__int_malloc_63b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__int_malloc_63b_goodB2GSink(undefined8 *param_1)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)*param_1;
if (puVar1 != (undefined4 *)0x0) {
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
}
return;
}
| ['gcc'] |
8,353 | void CWE690_NULL_Deref_From_Return__int_malloc_64_bad()
{
int * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)malloc(1*sizeof(int));
CWE690_NULL_Deref_From_Return__int_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/111398/CWE690_NULL_Deref_From_Return__int_malloc_64a.c | CWE690_NULL_Deref_From_Return__int_malloc_64_bad |
void CWE690_NULL_Deref_From_Return__int_malloc_64_bad(void)
{
undefined8 uStack_10;
uStack_10 = 0;
uStack_10 = func_0x00400ab0(4);
CWE690_NULL_Deref_From_Return__int_malloc_64b_badSink(&uStack_10);
return;
}
| ['gcc'] |
8,354 | void CWE690_NULL_Deref_From_Return__int_malloc_64_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111398/CWE690_NULL_Deref_From_Return__int_malloc_64a.c | CWE690_NULL_Deref_From_Return__int_malloc_64_good |
void CWE690_NULL_Deref_From_Return__int_malloc_64_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,355 | void CWE690_NULL_Deref_From_Return__int_malloc_64b_badSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
int * * dataPtr = (int * *)dataVoidPtr;
/* dereference dataPtr into data */
int * data = (*dataPtr);
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5;
printIntLine(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/111398/CWE690_NULL_Deref_From_Return__int_malloc_64b.c | CWE690_NULL_Deref_From_Return__int_malloc_64b_badSink |
void CWE690_NULL_Deref_From_Return__int_malloc_64b_badSink(undefined8 *param_1)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)*param_1;
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,356 | void CWE690_NULL_Deref_From_Return__int_malloc_64b_goodB2GSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
int * * dataPtr = (int * *)dataVoidPtr;
/* dereference dataPtr into data */
int * data = (*dataPtr);
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
data[0] = 5;
printIntLine(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/111398/CWE690_NULL_Deref_From_Return__int_malloc_64b.c | CWE690_NULL_Deref_From_Return__int_malloc_64b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__int_malloc_64b_goodB2GSink(undefined8 *param_1)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)*param_1;
if (puVar1 != (undefined4 *)0x0) {
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
}
return;
}
| ['gcc'] |
8,357 | void CWE690_NULL_Deref_From_Return__int_malloc_66_bad()
{
int * data;
int * dataArray[5];
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)malloc(1*sizeof(int));
/* put data in array */
dataArray[2] = data;
CWE690_NULL_Deref_From_Return__int_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/111400/CWE690_NULL_Deref_From_Return__int_malloc_66a.c | CWE690_NULL_Deref_From_Return__int_malloc_66_bad |
void CWE690_NULL_Deref_From_Return__int_malloc_66_bad(void)
{
undefined auStack_38 [16];
undefined8 uStack_28;
undefined8 uStack_10;
uStack_10 = 0;
uStack_28 = func_0x00400ab0(4);
uStack_10 = uStack_28;
CWE690_NULL_Deref_From_Return__int_malloc_66b_badSink(auStack_38);
return;
}
| ['gcc'] |
8,358 | void CWE690_NULL_Deref_From_Return__int_malloc_66_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111400/CWE690_NULL_Deref_From_Return__int_malloc_66a.c | CWE690_NULL_Deref_From_Return__int_malloc_66_good |
void CWE690_NULL_Deref_From_Return__int_malloc_66_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,359 | void CWE690_NULL_Deref_From_Return__int_malloc_66b_badSink(int * dataArray[])
{
/* copy data out of dataArray */
int * data = dataArray[2];
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5;
printIntLine(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/111400/CWE690_NULL_Deref_From_Return__int_malloc_66b.c | CWE690_NULL_Deref_From_Return__int_malloc_66b_badSink |
void CWE690_NULL_Deref_From_Return__int_malloc_66b_badSink(long param_1)
{
undefined4 *puVar1;
puVar1 = *(undefined4 **)(param_1 + 0x10);
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,360 | void CWE690_NULL_Deref_From_Return__int_malloc_66b_goodB2GSink(int * dataArray[])
{
int * data = dataArray[2];
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
data[0] = 5;
printIntLine(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/111400/CWE690_NULL_Deref_From_Return__int_malloc_66b.c | CWE690_NULL_Deref_From_Return__int_malloc_66b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__int_malloc_66b_goodB2GSink(long param_1)
{
undefined4 *puVar1;
puVar1 = *(undefined4 **)(param_1 + 0x10);
if (puVar1 != (undefined4 *)0x0) {
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
}
return;
}
| ['gcc'] |
8,361 | void CWE690_NULL_Deref_From_Return__int_malloc_67_bad()
{
int * data;
CWE690_NULL_Deref_From_Return__int_malloc_67_structType myStruct;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)malloc(1*sizeof(int));
myStruct.structFirst = data;
CWE690_NULL_Deref_From_Return__int_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/111401/CWE690_NULL_Deref_From_Return__int_malloc_67a.c | CWE690_NULL_Deref_From_Return__int_malloc_67_bad |
void CWE690_NULL_Deref_From_Return__int_malloc_67_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(4);
CWE690_NULL_Deref_From_Return__int_malloc_67b_badSink(uVar1);
return;
}
| ['gcc'] |
8,362 | void CWE690_NULL_Deref_From_Return__int_malloc_67_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111401/CWE690_NULL_Deref_From_Return__int_malloc_67a.c | CWE690_NULL_Deref_From_Return__int_malloc_67_good |
void CWE690_NULL_Deref_From_Return__int_malloc_67_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,363 | void CWE690_NULL_Deref_From_Return__int_malloc_67b_badSink(CWE690_NULL_Deref_From_Return__int_malloc_67_structType myStruct)
{
int * data = myStruct.structFirst;
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5;
printIntLine(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/111401/CWE690_NULL_Deref_From_Return__int_malloc_67b.c | CWE690_NULL_Deref_From_Return__int_malloc_67b_badSink |
void CWE690_NULL_Deref_From_Return__int_malloc_67b_badSink(undefined4 *param_1)
{
*param_1 = 5;
printIntLine(*param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
8,364 | void CWE690_NULL_Deref_From_Return__int_malloc_67b_goodB2GSink(CWE690_NULL_Deref_From_Return__int_malloc_67_structType myStruct)
{
int * data = myStruct.structFirst;
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
data[0] = 5;
printIntLine(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/111401/CWE690_NULL_Deref_From_Return__int_malloc_67b.c | CWE690_NULL_Deref_From_Return__int_malloc_67b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__int_malloc_67b_goodB2GSink(undefined4 *param_1)
{
if (param_1 != (undefined4 *)0x0) {
*param_1 = 5;
printIntLine(*param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,365 | void CWE690_NULL_Deref_From_Return__int_realloc_01_bad()
{
int * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)realloc(data, 1*sizeof(int));
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5;
printIntLine(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/111410/CWE690_NULL_Deref_From_Return__int_realloc_01.c | CWE690_NULL_Deref_From_Return__int_realloc_01_bad |
void CWE690_NULL_Deref_From_Return__int_realloc_01_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ad0(0,4);
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,366 | void CWE690_NULL_Deref_From_Return__int_realloc_01_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111410/CWE690_NULL_Deref_From_Return__int_realloc_01.c | CWE690_NULL_Deref_From_Return__int_realloc_01_good |
void CWE690_NULL_Deref_From_Return__int_realloc_01_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,367 | void CWE690_NULL_Deref_From_Return__int_realloc_04_bad()
{
int * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)realloc(data, 1*sizeof(int));
if(STATIC_CONST_TRUE)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5;
printIntLine(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/111413/CWE690_NULL_Deref_From_Return__int_realloc_04.c | CWE690_NULL_Deref_From_Return__int_realloc_04_bad |
void CWE690_NULL_Deref_From_Return__int_realloc_04_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ad0(0,4);
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,368 | void CWE690_NULL_Deref_From_Return__int_realloc_04_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111413/CWE690_NULL_Deref_From_Return__int_realloc_04.c | CWE690_NULL_Deref_From_Return__int_realloc_04_good |
void CWE690_NULL_Deref_From_Return__int_realloc_04_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,369 | void CWE690_NULL_Deref_From_Return__int_realloc_06_bad()
{
int * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)realloc(data, 1*sizeof(int));
if(STATIC_CONST_FIVE==5)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5;
printIntLine(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/111415/CWE690_NULL_Deref_From_Return__int_realloc_06.c | CWE690_NULL_Deref_From_Return__int_realloc_06_bad |
void CWE690_NULL_Deref_From_Return__int_realloc_06_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ad0(0,4);
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,370 | void CWE690_NULL_Deref_From_Return__int_realloc_06_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111415/CWE690_NULL_Deref_From_Return__int_realloc_06.c | CWE690_NULL_Deref_From_Return__int_realloc_06_good |
void CWE690_NULL_Deref_From_Return__int_realloc_06_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,371 | void CWE690_NULL_Deref_From_Return__int_realloc_08_bad()
{
int * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)realloc(data, 1*sizeof(int));
if(staticReturnsTrue())
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5;
printIntLine(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/111417/CWE690_NULL_Deref_From_Return__int_realloc_08.c | CWE690_NULL_Deref_From_Return__int_realloc_08_bad |
void CWE690_NULL_Deref_From_Return__int_realloc_08_bad(void)
{
int iVar1;
undefined4 *puVar2;
puVar2 = (undefined4 *)func_0x00400ad0(0,4);
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
*puVar2 = 5;
printIntLine(*puVar2);
func_0x00400a20(puVar2);
}
return;
}
| ['gcc'] |
8,372 | void CWE690_NULL_Deref_From_Return__int_realloc_08_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111417/CWE690_NULL_Deref_From_Return__int_realloc_08.c | CWE690_NULL_Deref_From_Return__int_realloc_08_good |
void CWE690_NULL_Deref_From_Return__int_realloc_08_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,373 | void CWE690_NULL_Deref_From_Return__int_realloc_11_bad()
{
int * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)realloc(data, 1*sizeof(int));
if(globalReturnsTrue())
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5;
printIntLine(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/111420/CWE690_NULL_Deref_From_Return__int_realloc_11.c | CWE690_NULL_Deref_From_Return__int_realloc_11_bad |
void CWE690_NULL_Deref_From_Return__int_realloc_11_bad(void)
{
int iVar1;
undefined4 *puVar2;
puVar2 = (undefined4 *)func_0x00400ad0(0,4);
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
*puVar2 = 5;
printIntLine(*puVar2);
func_0x00400a20(puVar2);
}
return;
}
| ['gcc'] |
8,374 | void CWE690_NULL_Deref_From_Return__int_realloc_11_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111420/CWE690_NULL_Deref_From_Return__int_realloc_11.c | CWE690_NULL_Deref_From_Return__int_realloc_11_good |
void CWE690_NULL_Deref_From_Return__int_realloc_11_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,375 | void CWE690_NULL_Deref_From_Return__int_realloc_12_bad()
{
int * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)realloc(data, 1*sizeof(int));
if(globalReturnsTrueOrFalse())
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5;
printIntLine(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] = 5;
printIntLine(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/111421/CWE690_NULL_Deref_From_Return__int_realloc_12.c | CWE690_NULL_Deref_From_Return__int_realloc_12_bad |
void CWE690_NULL_Deref_From_Return__int_realloc_12_bad(void)
{
int iVar1;
undefined4 *puVar2;
puVar2 = (undefined4 *)func_0x00400ad0(0,4);
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
if (puVar2 != (undefined4 *)0x0) {
*puVar2 = 5;
printIntLine(*puVar2);
func_0x00400a20(puVar2);
}
}
else {
*puVar2 = 5;
printIntLine(*puVar2);
func_0x00400a20(puVar2);
}
return;
}
| ['gcc'] |
8,376 | void CWE690_NULL_Deref_From_Return__int_realloc_12_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111421/CWE690_NULL_Deref_From_Return__int_realloc_12.c | CWE690_NULL_Deref_From_Return__int_realloc_12_good |
void CWE690_NULL_Deref_From_Return__int_realloc_12_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,377 | void CWE690_NULL_Deref_From_Return__int_realloc_15_bad()
{
int * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)realloc(data, 1*sizeof(int));
switch(6)
{
case 6:
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5;
printIntLine(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/111424/CWE690_NULL_Deref_From_Return__int_realloc_15.c | CWE690_NULL_Deref_From_Return__int_realloc_15_bad |
void CWE690_NULL_Deref_From_Return__int_realloc_15_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ad0(0,4);
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,378 | void CWE690_NULL_Deref_From_Return__int_realloc_15_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111424/CWE690_NULL_Deref_From_Return__int_realloc_15.c | CWE690_NULL_Deref_From_Return__int_realloc_15_good |
void CWE690_NULL_Deref_From_Return__int_realloc_15_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,379 | void CWE690_NULL_Deref_From_Return__int_realloc_16_bad()
{
int * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)realloc(data, 1*sizeof(int));
while(1)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5;
printIntLine(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/111425/CWE690_NULL_Deref_From_Return__int_realloc_16.c | CWE690_NULL_Deref_From_Return__int_realloc_16_bad |
void CWE690_NULL_Deref_From_Return__int_realloc_16_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ad0(0,4);
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,380 | void CWE690_NULL_Deref_From_Return__int_realloc_16_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111425/CWE690_NULL_Deref_From_Return__int_realloc_16.c | CWE690_NULL_Deref_From_Return__int_realloc_16_good |
void CWE690_NULL_Deref_From_Return__int_realloc_16_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,381 | void CWE690_NULL_Deref_From_Return__int_realloc_17_bad()
{
int j;
int * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)realloc(data, 1*sizeof(int));
for(j = 0; j < 1; j++)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5;
printIntLine(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/111426/CWE690_NULL_Deref_From_Return__int_realloc_17.c | CWE690_NULL_Deref_From_Return__int_realloc_17_bad |
void CWE690_NULL_Deref_From_Return__int_realloc_17_bad(void)
{
undefined4 *puVar1;
int iStack_c;
puVar1 = (undefined4 *)func_0x00400ad0(0,4);
for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) {
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
}
return;
}
| ['gcc'] |
8,382 | void CWE690_NULL_Deref_From_Return__int_realloc_17_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111426/CWE690_NULL_Deref_From_Return__int_realloc_17.c | CWE690_NULL_Deref_From_Return__int_realloc_17_good |
void CWE690_NULL_Deref_From_Return__int_realloc_17_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,383 | void CWE690_NULL_Deref_From_Return__int_realloc_18_bad()
{
int * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)realloc(data, 1*sizeof(int));
goto sink;
sink:
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5;
printIntLine(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/111427/CWE690_NULL_Deref_From_Return__int_realloc_18.c | CWE690_NULL_Deref_From_Return__int_realloc_18_bad |
void CWE690_NULL_Deref_From_Return__int_realloc_18_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ad0(0,4);
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,384 | void CWE690_NULL_Deref_From_Return__int_realloc_18_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111427/CWE690_NULL_Deref_From_Return__int_realloc_18.c | CWE690_NULL_Deref_From_Return__int_realloc_18_good |
void CWE690_NULL_Deref_From_Return__int_realloc_18_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,385 | void CWE690_NULL_Deref_From_Return__int_realloc_21_bad()
{
int * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)realloc(data, 1*sizeof(int));
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/111428/CWE690_NULL_Deref_From_Return__int_realloc_21.c | CWE690_NULL_Deref_From_Return__int_realloc_21_bad |
void CWE690_NULL_Deref_From_Return__int_realloc_21_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ad0(0,4);
badStatic = 1;
badSink(uVar1);
return;
}
| ['gcc'] |
8,386 | void CWE690_NULL_Deref_From_Return__int_realloc_21_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111428/CWE690_NULL_Deref_From_Return__int_realloc_21.c | CWE690_NULL_Deref_From_Return__int_realloc_21_good |
void CWE690_NULL_Deref_From_Return__int_realloc_21_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,387 | void CWE690_NULL_Deref_From_Return__int_realloc_22_bad()
{
int * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)realloc(data, 1*sizeof(int));
CWE690_NULL_Deref_From_Return__int_realloc_22_badGlobal = 1; /* true */
CWE690_NULL_Deref_From_Return__int_realloc_22_badSink(data);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */', '/* true */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111429/CWE690_NULL_Deref_From_Return__int_realloc_22a.c | CWE690_NULL_Deref_From_Return__int_realloc_22_bad |
void CWE690_NULL_Deref_From_Return__int_realloc_22_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ad0(0,4);
CWE690_NULL_Deref_From_Return__int_realloc_22_badGlobal = 1;
CWE690_NULL_Deref_From_Return__int_realloc_22_badSink(uVar1);
return;
}
| ['gcc'] |
8,388 | void CWE690_NULL_Deref_From_Return__int_realloc_22_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111429/CWE690_NULL_Deref_From_Return__int_realloc_22a.c | CWE690_NULL_Deref_From_Return__int_realloc_22_good |
void CWE690_NULL_Deref_From_Return__int_realloc_22_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
8,389 | void CWE690_NULL_Deref_From_Return__int_realloc_22_badSink(int * data)
{
if(CWE690_NULL_Deref_From_Return__int_realloc_22_badGlobal)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5;
printIntLine(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/111429/CWE690_NULL_Deref_From_Return__int_realloc_22b.c | CWE690_NULL_Deref_From_Return__int_realloc_22_badSink |
void CWE690_NULL_Deref_From_Return__int_realloc_22_badSink(undefined4 *param_1)
{
if (CWE690_NULL_Deref_From_Return__int_realloc_22_badGlobal != 0) {
*param_1 = 5;
printIntLine(*param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,390 | void CWE690_NULL_Deref_From_Return__int_realloc_22_goodB2G1Sink(int * data)
{
if(CWE690_NULL_Deref_From_Return__int_realloc_22_goodB2G1Global)
{
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
}
else
{
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
data[0] = 5;
printIntLine(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/111429/CWE690_NULL_Deref_From_Return__int_realloc_22b.c | CWE690_NULL_Deref_From_Return__int_realloc_22_goodB2G1Sink |
void CWE690_NULL_Deref_From_Return__int_realloc_22_goodB2G1Sink(undefined4 *param_1)
{
if (CWE690_NULL_Deref_From_Return__int_realloc_22_goodB2G1Global == 0) {
if (param_1 != (undefined4 *)0x0) {
*param_1 = 5;
printIntLine(*param_1);
func_0x00400a20(param_1);
}
}
else {
printLine(&UNK_00401274);
}
return;
}
| ['gcc'] |
8,391 | void CWE690_NULL_Deref_From_Return__int_realloc_22_goodB2G2Sink(int * data)
{
if(CWE690_NULL_Deref_From_Return__int_realloc_22_goodB2G2Global)
{
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
data[0] = 5;
printIntLine(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/111429/CWE690_NULL_Deref_From_Return__int_realloc_22b.c | CWE690_NULL_Deref_From_Return__int_realloc_22_goodB2G2Sink |
void CWE690_NULL_Deref_From_Return__int_realloc_22_goodB2G2Sink(undefined4 *param_1)
{
if ((CWE690_NULL_Deref_From_Return__int_realloc_22_goodB2G2Global != 0) &&
(param_1 != (undefined4 *)0x0)) {
*param_1 = 5;
printIntLine(*param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
8,392 | void CWE690_NULL_Deref_From_Return__int_realloc_31_bad()
{
int * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)realloc(data, 1*sizeof(int));
{
int * dataCopy = data;
int * data = dataCopy;
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5;
printIntLine(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/111430/CWE690_NULL_Deref_From_Return__int_realloc_31.c | CWE690_NULL_Deref_From_Return__int_realloc_31_bad |
void CWE690_NULL_Deref_From_Return__int_realloc_31_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ad0(0,4);
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,393 | void CWE690_NULL_Deref_From_Return__int_realloc_31_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111430/CWE690_NULL_Deref_From_Return__int_realloc_31.c | CWE690_NULL_Deref_From_Return__int_realloc_31_good |
void CWE690_NULL_Deref_From_Return__int_realloc_31_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,394 | void CWE690_NULL_Deref_From_Return__int_realloc_32_bad()
{
int * data;
int * *dataPtr1 = &data;
int * *dataPtr2 = &data;
data = NULL; /* Initialize data */
{
int * data = *dataPtr1;
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)realloc(data, 1*sizeof(int));
*dataPtr1 = data;
}
{
int * data = *dataPtr2;
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5;
printIntLine(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/111431/CWE690_NULL_Deref_From_Return__int_realloc_32.c | CWE690_NULL_Deref_From_Return__int_realloc_32_bad |
/* WARNING: Restarted to delay deadcode elimination for space: stack */
void CWE690_NULL_Deref_From_Return__int_realloc_32_bad(void)
{
undefined8 uStack_30;
undefined4 *puStack_28;
undefined8 uStack_20;
undefined8 *puStack_18;
undefined8 *puStack_10;
puStack_10 = &uStack_30;
puStack_18 = &uStack_30;
uStack_30 = 0;
uStack_20 = 0;
uStack_20 = func_0x00400ad0(0,4);
*puStack_10 = uStack_20;
puStack_28 = (undefined4 *)*puStack_18;
*puStack_28 = 5;
printIntLine(*puStack_28);
func_0x00400a20(puStack_28);
return;
}
| ['gcc'] |
8,395 | void CWE690_NULL_Deref_From_Return__int_realloc_32_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111431/CWE690_NULL_Deref_From_Return__int_realloc_32.c | CWE690_NULL_Deref_From_Return__int_realloc_32_good |
void CWE690_NULL_Deref_From_Return__int_realloc_32_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,396 | void CWE690_NULL_Deref_From_Return__int_realloc_34_bad()
{
int * data;
CWE690_NULL_Deref_From_Return__int_realloc_34_unionType myUnion;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)realloc(data, 1*sizeof(int));
myUnion.unionFirst = data;
{
int * data = myUnion.unionSecond;
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
data[0] = 5;
printIntLine(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/111433/CWE690_NULL_Deref_From_Return__int_realloc_34.c | CWE690_NULL_Deref_From_Return__int_realloc_34_bad |
void CWE690_NULL_Deref_From_Return__int_realloc_34_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ad0(0,4);
*puVar1 = 5;
printIntLine(*puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
8,397 | void CWE690_NULL_Deref_From_Return__int_realloc_34_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111433/CWE690_NULL_Deref_From_Return__int_realloc_34.c | CWE690_NULL_Deref_From_Return__int_realloc_34_good |
void CWE690_NULL_Deref_From_Return__int_realloc_34_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
8,398 | void CWE690_NULL_Deref_From_Return__int_realloc_41_bad()
{
int * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (int *)realloc(data, 1*sizeof(int));
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/111434/CWE690_NULL_Deref_From_Return__int_realloc_41.c | CWE690_NULL_Deref_From_Return__int_realloc_41_bad |
void CWE690_NULL_Deref_From_Return__int_realloc_41_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ad0(0,4);
badSink(uVar1);
return;
}
| ['gcc'] |
8,399 | void CWE690_NULL_Deref_From_Return__int_realloc_41_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111434/CWE690_NULL_Deref_From_Return__int_realloc_41.c | CWE690_NULL_Deref_From_Return__int_realloc_41_good |
void CWE690_NULL_Deref_From_Return__int_realloc_41_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.