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 |
|---|---|---|---|---|---|---|---|---|
7,800 | void CWE690_NULL_Deref_From_Return__char_calloc_53_bad()
{
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)calloc(20, sizeof(char));
CWE690_NULL_Deref_From_Return__char_calloc_53b_badSink(data);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111009/CWE690_NULL_Deref_From_Return__char_calloc_53a.c | CWE690_NULL_Deref_From_Return__char_calloc_53_bad |
void CWE690_NULL_Deref_From_Return__char_calloc_53_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400a90(0x14,1);
CWE690_NULL_Deref_From_Return__char_calloc_53b_badSink(uVar1);
return;
}
| ['gcc'] |
7,801 | void CWE690_NULL_Deref_From_Return__char_calloc_53_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111009/CWE690_NULL_Deref_From_Return__char_calloc_53a.c | CWE690_NULL_Deref_From_Return__char_calloc_53_good |
void CWE690_NULL_Deref_From_Return__char_calloc_53_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
7,802 | void CWE690_NULL_Deref_From_Return__char_calloc_53b_badSink(char * data)
{
CWE690_NULL_Deref_From_Return__char_calloc_53c_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111009/CWE690_NULL_Deref_From_Return__char_calloc_53b.c | CWE690_NULL_Deref_From_Return__char_calloc_53b_badSink |
void CWE690_NULL_Deref_From_Return__char_calloc_53b_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__char_calloc_53c_badSink(param_1);
return;
}
| ['gcc'] |
7,803 | void CWE690_NULL_Deref_From_Return__char_calloc_53b_goodB2GSink(char * data)
{
CWE690_NULL_Deref_From_Return__char_calloc_53c_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111009/CWE690_NULL_Deref_From_Return__char_calloc_53b.c | CWE690_NULL_Deref_From_Return__char_calloc_53b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__char_calloc_53b_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__char_calloc_53c_goodB2GSink(param_1);
return;
}
| ['gcc'] |
7,804 | void CWE690_NULL_Deref_From_Return__char_calloc_53c_badSink(char * data)
{
CWE690_NULL_Deref_From_Return__char_calloc_53d_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111009/CWE690_NULL_Deref_From_Return__char_calloc_53c.c | CWE690_NULL_Deref_From_Return__char_calloc_53c_badSink |
void CWE690_NULL_Deref_From_Return__char_calloc_53c_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__char_calloc_53d_badSink(param_1);
return;
}
| ['gcc'] |
7,805 | void CWE690_NULL_Deref_From_Return__char_calloc_53c_goodB2GSink(char * data)
{
CWE690_NULL_Deref_From_Return__char_calloc_53d_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111009/CWE690_NULL_Deref_From_Return__char_calloc_53c.c | CWE690_NULL_Deref_From_Return__char_calloc_53c_goodB2GSink |
void CWE690_NULL_Deref_From_Return__char_calloc_53c_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__char_calloc_53d_goodB2GSink(param_1);
return;
}
| ['gcc'] |
7,806 | void CWE690_NULL_Deref_From_Return__char_calloc_53d_badSink(char * data)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
free(data);
} | ['/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111009/CWE690_NULL_Deref_From_Return__char_calloc_53d.c | CWE690_NULL_Deref_From_Return__char_calloc_53d_badSink |
void CWE690_NULL_Deref_From_Return__char_calloc_53d_badSink(undefined8 *param_1)
{
*param_1 = 0x696c616974696e49;
*(undefined2 *)(param_1 + 1) = 0x657a;
*(undefined *)((long)param_1 + 10) = 0;
printLine(param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
7,807 | void CWE690_NULL_Deref_From_Return__char_calloc_53d_goodB2GSink(char * data)
{
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
strcpy(data, "Initialize");
printLine(data);
free(data);
}
} | ['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111009/CWE690_NULL_Deref_From_Return__char_calloc_53d.c | CWE690_NULL_Deref_From_Return__char_calloc_53d_goodB2GSink |
void CWE690_NULL_Deref_From_Return__char_calloc_53d_goodB2GSink(undefined8 *param_1)
{
if (param_1 != (undefined8 *)0x0) {
*param_1 = 0x696c616974696e49;
*(undefined2 *)(param_1 + 1) = 0x657a;
*(undefined *)((long)param_1 + 10) = 0;
printLine(param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
7,808 | void CWE690_NULL_Deref_From_Return__char_calloc_54_bad()
{
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)calloc(20, sizeof(char));
CWE690_NULL_Deref_From_Return__char_calloc_54b_badSink(data);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111010/CWE690_NULL_Deref_From_Return__char_calloc_54a.c | CWE690_NULL_Deref_From_Return__char_calloc_54_bad |
void CWE690_NULL_Deref_From_Return__char_calloc_54_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400a90(0x14,1);
CWE690_NULL_Deref_From_Return__char_calloc_54b_badSink(uVar1);
return;
}
| ['gcc'] |
7,809 | void CWE690_NULL_Deref_From_Return__char_calloc_54_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111010/CWE690_NULL_Deref_From_Return__char_calloc_54a.c | CWE690_NULL_Deref_From_Return__char_calloc_54_good |
void CWE690_NULL_Deref_From_Return__char_calloc_54_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
7,810 | void CWE690_NULL_Deref_From_Return__char_calloc_54b_badSink(char * data)
{
CWE690_NULL_Deref_From_Return__char_calloc_54c_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111010/CWE690_NULL_Deref_From_Return__char_calloc_54b.c | CWE690_NULL_Deref_From_Return__char_calloc_54b_badSink |
void CWE690_NULL_Deref_From_Return__char_calloc_54b_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__char_calloc_54c_badSink(param_1);
return;
}
| ['gcc'] |
7,811 | void CWE690_NULL_Deref_From_Return__char_calloc_54b_goodB2GSink(char * data)
{
CWE690_NULL_Deref_From_Return__char_calloc_54c_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111010/CWE690_NULL_Deref_From_Return__char_calloc_54b.c | CWE690_NULL_Deref_From_Return__char_calloc_54b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__char_calloc_54b_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__char_calloc_54c_goodB2GSink(param_1);
return;
}
| ['gcc'] |
7,812 | void CWE690_NULL_Deref_From_Return__char_calloc_54c_badSink(char * data)
{
CWE690_NULL_Deref_From_Return__char_calloc_54d_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111010/CWE690_NULL_Deref_From_Return__char_calloc_54c.c | CWE690_NULL_Deref_From_Return__char_calloc_54c_badSink |
void CWE690_NULL_Deref_From_Return__char_calloc_54c_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__char_calloc_54d_badSink(param_1);
return;
}
| ['gcc'] |
7,813 | void CWE690_NULL_Deref_From_Return__char_calloc_54c_goodB2GSink(char * data)
{
CWE690_NULL_Deref_From_Return__char_calloc_54d_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111010/CWE690_NULL_Deref_From_Return__char_calloc_54c.c | CWE690_NULL_Deref_From_Return__char_calloc_54c_goodB2GSink |
void CWE690_NULL_Deref_From_Return__char_calloc_54c_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__char_calloc_54d_goodB2GSink(param_1);
return;
}
| ['gcc'] |
7,814 | void CWE690_NULL_Deref_From_Return__char_calloc_54d_badSink(char * data)
{
CWE690_NULL_Deref_From_Return__char_calloc_54e_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111010/CWE690_NULL_Deref_From_Return__char_calloc_54d.c | CWE690_NULL_Deref_From_Return__char_calloc_54d_badSink |
void CWE690_NULL_Deref_From_Return__char_calloc_54d_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__char_calloc_54e_badSink(param_1);
return;
}
| ['gcc'] |
7,815 | void CWE690_NULL_Deref_From_Return__char_calloc_54d_goodB2GSink(char * data)
{
CWE690_NULL_Deref_From_Return__char_calloc_54e_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111010/CWE690_NULL_Deref_From_Return__char_calloc_54d.c | CWE690_NULL_Deref_From_Return__char_calloc_54d_goodB2GSink |
void CWE690_NULL_Deref_From_Return__char_calloc_54d_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__char_calloc_54e_goodB2GSink(param_1);
return;
}
| ['gcc'] |
7,816 | void CWE690_NULL_Deref_From_Return__char_calloc_54e_badSink(char * data)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
free(data);
} | ['/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111010/CWE690_NULL_Deref_From_Return__char_calloc_54e.c | CWE690_NULL_Deref_From_Return__char_calloc_54e_badSink |
void CWE690_NULL_Deref_From_Return__char_calloc_54e_badSink(undefined8 *param_1)
{
*param_1 = 0x696c616974696e49;
*(undefined2 *)(param_1 + 1) = 0x657a;
*(undefined *)((long)param_1 + 10) = 0;
printLine(param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
7,817 | void CWE690_NULL_Deref_From_Return__char_calloc_54e_goodB2GSink(char * data)
{
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
strcpy(data, "Initialize");
printLine(data);
free(data);
}
} | ['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111010/CWE690_NULL_Deref_From_Return__char_calloc_54e.c | CWE690_NULL_Deref_From_Return__char_calloc_54e_goodB2GSink |
void CWE690_NULL_Deref_From_Return__char_calloc_54e_goodB2GSink(undefined8 *param_1)
{
if (param_1 != (undefined8 *)0x0) {
*param_1 = 0x696c616974696e49;
*(undefined2 *)(param_1 + 1) = 0x657a;
*(undefined *)((long)param_1 + 10) = 0;
printLine(param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
7,818 | void CWE690_NULL_Deref_From_Return__char_calloc_61_bad()
{
char * data;
data = NULL; /* Initialize data */
data = CWE690_NULL_Deref_From_Return__char_calloc_61b_badSource(data);
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
free(data);
} | ['/* Initialize data */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111011/CWE690_NULL_Deref_From_Return__char_calloc_61a.c | CWE690_NULL_Deref_From_Return__char_calloc_61_bad |
void CWE690_NULL_Deref_From_Return__char_calloc_61_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)CWE690_NULL_Deref_From_Return__char_calloc_61b_badSource(0);
*puVar1 = 0x696c616974696e49;
*(undefined2 *)(puVar1 + 1) = 0x657a;
*(undefined *)((long)puVar1 + 10) = 0;
printLine(puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
7,819 | void CWE690_NULL_Deref_From_Return__char_calloc_61_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111011/CWE690_NULL_Deref_From_Return__char_calloc_61a.c | CWE690_NULL_Deref_From_Return__char_calloc_61_good |
void CWE690_NULL_Deref_From_Return__char_calloc_61_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
7,820 | char * CWE690_NULL_Deref_From_Return__char_calloc_61b_badSource(char * data)
{
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)calloc(20, sizeof(char));
return data;
} | ['/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111011/CWE690_NULL_Deref_From_Return__char_calloc_61b.c | CWE690_NULL_Deref_From_Return__char_calloc_61b_badSource |
undefined8 CWE690_NULL_Deref_From_Return__char_calloc_61b_badSource(void)
{
undefined8 uVar1;
uVar1 = func_0x00400a90(0x14,1);
return uVar1;
}
| ['gcc'] |
7,821 | char * CWE690_NULL_Deref_From_Return__char_calloc_61b_goodB2GSource(char * data)
{
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)calloc(20, sizeof(char));
return data;
} | ['/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111011/CWE690_NULL_Deref_From_Return__char_calloc_61b.c | CWE690_NULL_Deref_From_Return__char_calloc_61b_goodB2GSource |
undefined8 CWE690_NULL_Deref_From_Return__char_calloc_61b_goodB2GSource(void)
{
undefined8 uVar1;
uVar1 = func_0x00400a90(0x14,1);
return uVar1;
}
| ['gcc'] |
7,822 | void CWE690_NULL_Deref_From_Return__char_calloc_63_bad()
{
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)calloc(20, sizeof(char));
CWE690_NULL_Deref_From_Return__char_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/111013/CWE690_NULL_Deref_From_Return__char_calloc_63a.c | CWE690_NULL_Deref_From_Return__char_calloc_63_bad |
void CWE690_NULL_Deref_From_Return__char_calloc_63_bad(void)
{
undefined8 uStack_10;
uStack_10 = 0;
uStack_10 = func_0x00400a90(0x14,1);
CWE690_NULL_Deref_From_Return__char_calloc_63b_badSink(&uStack_10);
return;
}
| ['gcc'] |
7,823 | void CWE690_NULL_Deref_From_Return__char_calloc_63_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111013/CWE690_NULL_Deref_From_Return__char_calloc_63a.c | CWE690_NULL_Deref_From_Return__char_calloc_63_good |
void CWE690_NULL_Deref_From_Return__char_calloc_63_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
7,824 | void CWE690_NULL_Deref_From_Return__char_calloc_63b_badSink(char * * dataPtr)
{
char * data = *dataPtr;
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
free(data);
} | ['/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111013/CWE690_NULL_Deref_From_Return__char_calloc_63b.c | CWE690_NULL_Deref_From_Return__char_calloc_63b_badSink |
void CWE690_NULL_Deref_From_Return__char_calloc_63b_badSink(undefined8 *param_1)
{
param_1 = (undefined8 *)*param_1;
*param_1 = 0x696c616974696e49;
*(undefined2 *)(param_1 + 1) = 0x657a;
*(undefined *)((long)param_1 + 10) = 0;
printLine(param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
7,825 | void CWE690_NULL_Deref_From_Return__char_calloc_63b_goodB2GSink(char * * dataPtr)
{
char * data = *dataPtr;
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
strcpy(data, "Initialize");
printLine(data);
free(data);
}
} | ['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111013/CWE690_NULL_Deref_From_Return__char_calloc_63b.c | CWE690_NULL_Deref_From_Return__char_calloc_63b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__char_calloc_63b_goodB2GSink(undefined8 *param_1)
{
param_1 = (undefined8 *)*param_1;
if (param_1 != (undefined8 *)0x0) {
*param_1 = 0x696c616974696e49;
*(undefined2 *)(param_1 + 1) = 0x657a;
*(undefined *)((long)param_1 + 10) = 0;
printLine(param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
7,826 | void CWE690_NULL_Deref_From_Return__char_calloc_64_bad()
{
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)calloc(20, sizeof(char));
CWE690_NULL_Deref_From_Return__char_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/111014/CWE690_NULL_Deref_From_Return__char_calloc_64a.c | CWE690_NULL_Deref_From_Return__char_calloc_64_bad |
void CWE690_NULL_Deref_From_Return__char_calloc_64_bad(void)
{
undefined8 uStack_10;
uStack_10 = 0;
uStack_10 = func_0x00400a90(0x14,1);
CWE690_NULL_Deref_From_Return__char_calloc_64b_badSink(&uStack_10);
return;
}
| ['gcc'] |
7,827 | void CWE690_NULL_Deref_From_Return__char_calloc_64_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111014/CWE690_NULL_Deref_From_Return__char_calloc_64a.c | CWE690_NULL_Deref_From_Return__char_calloc_64_good |
void CWE690_NULL_Deref_From_Return__char_calloc_64_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
7,828 | void CWE690_NULL_Deref_From_Return__char_calloc_64b_badSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
char * * dataPtr = (char * *)dataVoidPtr;
/* dereference dataPtr into data */
char * data = (*dataPtr);
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
free(data);
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111014/CWE690_NULL_Deref_From_Return__char_calloc_64b.c | CWE690_NULL_Deref_From_Return__char_calloc_64b_badSink |
void CWE690_NULL_Deref_From_Return__char_calloc_64b_badSink(undefined8 *param_1)
{
param_1 = (undefined8 *)*param_1;
*param_1 = 0x696c616974696e49;
*(undefined2 *)(param_1 + 1) = 0x657a;
*(undefined *)((long)param_1 + 10) = 0;
printLine(param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
7,829 | void CWE690_NULL_Deref_From_Return__char_calloc_64b_goodB2GSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
char * * dataPtr = (char * *)dataVoidPtr;
/* dereference dataPtr into data */
char * data = (*dataPtr);
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
strcpy(data, "Initialize");
printLine(data);
free(data);
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111014/CWE690_NULL_Deref_From_Return__char_calloc_64b.c | CWE690_NULL_Deref_From_Return__char_calloc_64b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__char_calloc_64b_goodB2GSink(undefined8 *param_1)
{
param_1 = (undefined8 *)*param_1;
if (param_1 != (undefined8 *)0x0) {
*param_1 = 0x696c616974696e49;
*(undefined2 *)(param_1 + 1) = 0x657a;
*(undefined *)((long)param_1 + 10) = 0;
printLine(param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
7,830 | void CWE690_NULL_Deref_From_Return__char_calloc_66_bad()
{
char * data;
char * dataArray[5];
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)calloc(20, sizeof(char));
/* put data in array */
dataArray[2] = data;
CWE690_NULL_Deref_From_Return__char_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/111016/CWE690_NULL_Deref_From_Return__char_calloc_66a.c | CWE690_NULL_Deref_From_Return__char_calloc_66_bad |
void CWE690_NULL_Deref_From_Return__char_calloc_66_bad(void)
{
undefined auStack_38 [16];
undefined8 uStack_28;
undefined8 uStack_10;
uStack_10 = 0;
uStack_28 = func_0x00400a90(0x14,1);
uStack_10 = uStack_28;
CWE690_NULL_Deref_From_Return__char_calloc_66b_badSink(auStack_38);
return;
}
| ['gcc'] |
7,831 | void CWE690_NULL_Deref_From_Return__char_calloc_66_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111016/CWE690_NULL_Deref_From_Return__char_calloc_66a.c | CWE690_NULL_Deref_From_Return__char_calloc_66_good |
void CWE690_NULL_Deref_From_Return__char_calloc_66_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
7,832 | void CWE690_NULL_Deref_From_Return__char_calloc_66b_badSink(char * dataArray[])
{
/* copy data out of dataArray */
char * data = dataArray[2];
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
free(data);
} | ['/* copy data out of dataArray */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111016/CWE690_NULL_Deref_From_Return__char_calloc_66b.c | CWE690_NULL_Deref_From_Return__char_calloc_66b_badSink |
void CWE690_NULL_Deref_From_Return__char_calloc_66b_badSink(long param_1)
{
undefined8 *puVar1;
puVar1 = *(undefined8 **)(param_1 + 0x10);
*puVar1 = 0x696c616974696e49;
*(undefined2 *)(puVar1 + 1) = 0x657a;
*(undefined *)((long)puVar1 + 10) = 0;
printLine(puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
7,833 | void CWE690_NULL_Deref_From_Return__char_calloc_66b_goodB2GSink(char * dataArray[])
{
char * data = dataArray[2];
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
strcpy(data, "Initialize");
printLine(data);
free(data);
}
} | ['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111016/CWE690_NULL_Deref_From_Return__char_calloc_66b.c | CWE690_NULL_Deref_From_Return__char_calloc_66b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__char_calloc_66b_goodB2GSink(long param_1)
{
undefined8 *puVar1;
puVar1 = *(undefined8 **)(param_1 + 0x10);
if (puVar1 != (undefined8 *)0x0) {
*puVar1 = 0x696c616974696e49;
*(undefined2 *)(puVar1 + 1) = 0x657a;
*(undefined *)((long)puVar1 + 10) = 0;
printLine(puVar1);
func_0x00400a20(puVar1);
}
return;
}
| ['gcc'] |
7,834 | void CWE690_NULL_Deref_From_Return__char_calloc_67_bad()
{
char * data;
CWE690_NULL_Deref_From_Return__char_calloc_67_structType myStruct;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)calloc(20, sizeof(char));
myStruct.structFirst = data;
CWE690_NULL_Deref_From_Return__char_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/111017/CWE690_NULL_Deref_From_Return__char_calloc_67a.c | CWE690_NULL_Deref_From_Return__char_calloc_67_bad |
void CWE690_NULL_Deref_From_Return__char_calloc_67_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400a90(0x14,1);
CWE690_NULL_Deref_From_Return__char_calloc_67b_badSink(uVar1);
return;
}
| ['gcc'] |
7,835 | void CWE690_NULL_Deref_From_Return__char_calloc_67_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111017/CWE690_NULL_Deref_From_Return__char_calloc_67a.c | CWE690_NULL_Deref_From_Return__char_calloc_67_good |
void CWE690_NULL_Deref_From_Return__char_calloc_67_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
7,836 | void CWE690_NULL_Deref_From_Return__char_calloc_67b_badSink(CWE690_NULL_Deref_From_Return__char_calloc_67_structType myStruct)
{
char * data = myStruct.structFirst;
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
free(data);
} | ['/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111017/CWE690_NULL_Deref_From_Return__char_calloc_67b.c | CWE690_NULL_Deref_From_Return__char_calloc_67b_badSink |
void CWE690_NULL_Deref_From_Return__char_calloc_67b_badSink(undefined8 *param_1)
{
*param_1 = 0x696c616974696e49;
*(undefined2 *)(param_1 + 1) = 0x657a;
*(undefined *)((long)param_1 + 10) = 0;
printLine(param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
7,837 | void CWE690_NULL_Deref_From_Return__char_calloc_67b_goodB2GSink(CWE690_NULL_Deref_From_Return__char_calloc_67_structType myStruct)
{
char * data = myStruct.structFirst;
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
strcpy(data, "Initialize");
printLine(data);
free(data);
}
} | ['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111017/CWE690_NULL_Deref_From_Return__char_calloc_67b.c | CWE690_NULL_Deref_From_Return__char_calloc_67b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__char_calloc_67b_goodB2GSink(undefined8 *param_1)
{
if (param_1 != (undefined8 *)0x0) {
*param_1 = 0x696c616974696e49;
*(undefined2 *)(param_1 + 1) = 0x657a;
*(undefined *)((long)param_1 + 10) = 0;
printLine(param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
7,838 | void CWE690_NULL_Deref_From_Return__char_malloc_01_bad()
{
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)malloc(20*sizeof(char));
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
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/111026/CWE690_NULL_Deref_From_Return__char_malloc_01.c | CWE690_NULL_Deref_From_Return__char_malloc_01_bad |
void CWE690_NULL_Deref_From_Return__char_malloc_01_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400ab0(0x14);
*puVar1 = 0x696c616974696e49;
*(undefined2 *)(puVar1 + 1) = 0x657a;
*(undefined *)((long)puVar1 + 10) = 0;
printLine(puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
7,839 | void CWE690_NULL_Deref_From_Return__char_malloc_01_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111026/CWE690_NULL_Deref_From_Return__char_malloc_01.c | CWE690_NULL_Deref_From_Return__char_malloc_01_good |
void CWE690_NULL_Deref_From_Return__char_malloc_01_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
7,840 | void CWE690_NULL_Deref_From_Return__char_malloc_02_bad()
{
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)malloc(20*sizeof(char));
if(1)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
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/111027/CWE690_NULL_Deref_From_Return__char_malloc_02.c | CWE690_NULL_Deref_From_Return__char_malloc_02_bad |
void CWE690_NULL_Deref_From_Return__char_malloc_02_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400ab0(0x14);
*puVar1 = 0x696c616974696e49;
*(undefined2 *)(puVar1 + 1) = 0x657a;
*(undefined *)((long)puVar1 + 10) = 0;
printLine(puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
7,841 | void CWE690_NULL_Deref_From_Return__char_malloc_02_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111027/CWE690_NULL_Deref_From_Return__char_malloc_02.c | CWE690_NULL_Deref_From_Return__char_malloc_02_good |
void CWE690_NULL_Deref_From_Return__char_malloc_02_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
7,842 | void CWE690_NULL_Deref_From_Return__char_malloc_03_bad()
{
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)malloc(20*sizeof(char));
if(5==5)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
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/111028/CWE690_NULL_Deref_From_Return__char_malloc_03.c | CWE690_NULL_Deref_From_Return__char_malloc_03_bad |
void CWE690_NULL_Deref_From_Return__char_malloc_03_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400ab0(0x14);
*puVar1 = 0x696c616974696e49;
*(undefined2 *)(puVar1 + 1) = 0x657a;
*(undefined *)((long)puVar1 + 10) = 0;
printLine(puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
7,843 | void CWE690_NULL_Deref_From_Return__char_malloc_03_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111028/CWE690_NULL_Deref_From_Return__char_malloc_03.c | CWE690_NULL_Deref_From_Return__char_malloc_03_good |
void CWE690_NULL_Deref_From_Return__char_malloc_03_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
7,844 | void CWE690_NULL_Deref_From_Return__char_malloc_04_bad()
{
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)malloc(20*sizeof(char));
if(STATIC_CONST_TRUE)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
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/111029/CWE690_NULL_Deref_From_Return__char_malloc_04.c | CWE690_NULL_Deref_From_Return__char_malloc_04_bad |
void CWE690_NULL_Deref_From_Return__char_malloc_04_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400ab0(0x14);
*puVar1 = 0x696c616974696e49;
*(undefined2 *)(puVar1 + 1) = 0x657a;
*(undefined *)((long)puVar1 + 10) = 0;
printLine(puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
7,845 | void CWE690_NULL_Deref_From_Return__char_malloc_04_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111029/CWE690_NULL_Deref_From_Return__char_malloc_04.c | CWE690_NULL_Deref_From_Return__char_malloc_04_good |
void CWE690_NULL_Deref_From_Return__char_malloc_04_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
7,846 | void CWE690_NULL_Deref_From_Return__char_malloc_05_bad()
{
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)malloc(20*sizeof(char));
if(staticTrue)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
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/111030/CWE690_NULL_Deref_From_Return__char_malloc_05.c | CWE690_NULL_Deref_From_Return__char_malloc_05_bad |
void CWE690_NULL_Deref_From_Return__char_malloc_05_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400ab0(0x14);
if (staticTrue != 0) {
*puVar1 = 0x696c616974696e49;
*(undefined2 *)(puVar1 + 1) = 0x657a;
*(undefined *)((long)puVar1 + 10) = 0;
printLine(puVar1);
func_0x00400a20(puVar1);
}
return;
}
| ['gcc'] |
7,847 | void CWE690_NULL_Deref_From_Return__char_malloc_05_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111030/CWE690_NULL_Deref_From_Return__char_malloc_05.c | CWE690_NULL_Deref_From_Return__char_malloc_05_good |
void CWE690_NULL_Deref_From_Return__char_malloc_05_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
7,848 | void CWE690_NULL_Deref_From_Return__char_malloc_06_bad()
{
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)malloc(20*sizeof(char));
if(STATIC_CONST_FIVE==5)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
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/111031/CWE690_NULL_Deref_From_Return__char_malloc_06.c | CWE690_NULL_Deref_From_Return__char_malloc_06_bad |
void CWE690_NULL_Deref_From_Return__char_malloc_06_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400ab0(0x14);
*puVar1 = 0x696c616974696e49;
*(undefined2 *)(puVar1 + 1) = 0x657a;
*(undefined *)((long)puVar1 + 10) = 0;
printLine(puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
7,849 | void CWE690_NULL_Deref_From_Return__char_malloc_06_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111031/CWE690_NULL_Deref_From_Return__char_malloc_06.c | CWE690_NULL_Deref_From_Return__char_malloc_06_good |
void CWE690_NULL_Deref_From_Return__char_malloc_06_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
7,850 | void CWE690_NULL_Deref_From_Return__char_malloc_07_bad()
{
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)malloc(20*sizeof(char));
if(staticFive==5)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
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/111032/CWE690_NULL_Deref_From_Return__char_malloc_07.c | CWE690_NULL_Deref_From_Return__char_malloc_07_bad |
void CWE690_NULL_Deref_From_Return__char_malloc_07_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400ab0(0x14);
if (staticFive == 5) {
*puVar1 = 0x696c616974696e49;
*(undefined2 *)(puVar1 + 1) = 0x657a;
*(undefined *)((long)puVar1 + 10) = 0;
printLine(puVar1);
func_0x00400a20(puVar1);
}
return;
}
| ['gcc'] |
7,851 | void CWE690_NULL_Deref_From_Return__char_malloc_07_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111032/CWE690_NULL_Deref_From_Return__char_malloc_07.c | CWE690_NULL_Deref_From_Return__char_malloc_07_good |
void CWE690_NULL_Deref_From_Return__char_malloc_07_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
7,852 | void CWE690_NULL_Deref_From_Return__char_malloc_08_bad()
{
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)malloc(20*sizeof(char));
if(staticReturnsTrue())
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
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/111033/CWE690_NULL_Deref_From_Return__char_malloc_08.c | CWE690_NULL_Deref_From_Return__char_malloc_08_bad |
void CWE690_NULL_Deref_From_Return__char_malloc_08_bad(void)
{
int iVar1;
undefined8 *puVar2;
puVar2 = (undefined8 *)func_0x00400ab0(0x14);
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
*puVar2 = 0x696c616974696e49;
*(undefined2 *)(puVar2 + 1) = 0x657a;
*(undefined *)((long)puVar2 + 10) = 0;
printLine(puVar2);
func_0x00400a20(puVar2);
}
return;
}
| ['gcc'] |
7,853 | void CWE690_NULL_Deref_From_Return__char_malloc_08_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111033/CWE690_NULL_Deref_From_Return__char_malloc_08.c | CWE690_NULL_Deref_From_Return__char_malloc_08_good |
void CWE690_NULL_Deref_From_Return__char_malloc_08_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
7,854 | void CWE690_NULL_Deref_From_Return__char_malloc_09_bad()
{
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)malloc(20*sizeof(char));
if(GLOBAL_CONST_TRUE)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
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/111034/CWE690_NULL_Deref_From_Return__char_malloc_09.c | CWE690_NULL_Deref_From_Return__char_malloc_09_bad |
void CWE690_NULL_Deref_From_Return__char_malloc_09_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400ab0(0x14);
if (GLOBAL_CONST_TRUE != 0) {
*puVar1 = 0x696c616974696e49;
*(undefined2 *)(puVar1 + 1) = 0x657a;
*(undefined *)((long)puVar1 + 10) = 0;
printLine(puVar1);
func_0x00400a20(puVar1);
}
return;
}
| ['gcc'] |
7,855 | void CWE690_NULL_Deref_From_Return__char_malloc_09_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111034/CWE690_NULL_Deref_From_Return__char_malloc_09.c | CWE690_NULL_Deref_From_Return__char_malloc_09_good |
void CWE690_NULL_Deref_From_Return__char_malloc_09_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
7,856 | void CWE690_NULL_Deref_From_Return__char_malloc_10_bad()
{
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)malloc(20*sizeof(char));
if(globalTrue)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
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/111035/CWE690_NULL_Deref_From_Return__char_malloc_10.c | CWE690_NULL_Deref_From_Return__char_malloc_10_bad |
void CWE690_NULL_Deref_From_Return__char_malloc_10_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400ab0(0x14);
if (globalTrue != 0) {
*puVar1 = 0x696c616974696e49;
*(undefined2 *)(puVar1 + 1) = 0x657a;
*(undefined *)((long)puVar1 + 10) = 0;
printLine(puVar1);
func_0x00400a20(puVar1);
}
return;
}
| ['gcc'] |
7,857 | void CWE690_NULL_Deref_From_Return__char_malloc_10_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111035/CWE690_NULL_Deref_From_Return__char_malloc_10.c | CWE690_NULL_Deref_From_Return__char_malloc_10_good |
void CWE690_NULL_Deref_From_Return__char_malloc_10_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
7,858 | void CWE690_NULL_Deref_From_Return__char_malloc_11_bad()
{
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)malloc(20*sizeof(char));
if(globalReturnsTrue())
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
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/111036/CWE690_NULL_Deref_From_Return__char_malloc_11.c | CWE690_NULL_Deref_From_Return__char_malloc_11_bad |
void CWE690_NULL_Deref_From_Return__char_malloc_11_bad(void)
{
int iVar1;
undefined8 *puVar2;
puVar2 = (undefined8 *)func_0x00400ab0(0x14);
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
*puVar2 = 0x696c616974696e49;
*(undefined2 *)(puVar2 + 1) = 0x657a;
*(undefined *)((long)puVar2 + 10) = 0;
printLine(puVar2);
func_0x00400a20(puVar2);
}
return;
}
| ['gcc'] |
7,859 | void CWE690_NULL_Deref_From_Return__char_malloc_11_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111036/CWE690_NULL_Deref_From_Return__char_malloc_11.c | CWE690_NULL_Deref_From_Return__char_malloc_11_good |
void CWE690_NULL_Deref_From_Return__char_malloc_11_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
7,860 | void CWE690_NULL_Deref_From_Return__char_malloc_12_bad()
{
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)malloc(20*sizeof(char));
if(globalReturnsTrueOrFalse())
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
free(data);
}
else
{
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
strcpy(data, "Initialize");
printLine(data);
free(data);
}
}
} | ['/* 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/111037/CWE690_NULL_Deref_From_Return__char_malloc_12.c | CWE690_NULL_Deref_From_Return__char_malloc_12_bad |
void CWE690_NULL_Deref_From_Return__char_malloc_12_bad(void)
{
int iVar1;
undefined8 *puVar2;
puVar2 = (undefined8 *)func_0x00400ab0(0x14);
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
if (puVar2 != (undefined8 *)0x0) {
*puVar2 = 0x696c616974696e49;
*(undefined2 *)(puVar2 + 1) = 0x657a;
*(undefined *)((long)puVar2 + 10) = 0;
printLine(puVar2);
func_0x00400a20(puVar2);
}
}
else {
*puVar2 = 0x696c616974696e49;
*(undefined2 *)(puVar2 + 1) = 0x657a;
*(undefined *)((long)puVar2 + 10) = 0;
printLine(puVar2);
func_0x00400a20(puVar2);
}
return;
}
| ['gcc'] |
7,861 | void CWE690_NULL_Deref_From_Return__char_malloc_12_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111037/CWE690_NULL_Deref_From_Return__char_malloc_12.c | CWE690_NULL_Deref_From_Return__char_malloc_12_good |
void CWE690_NULL_Deref_From_Return__char_malloc_12_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
7,862 | void CWE690_NULL_Deref_From_Return__char_malloc_14_bad()
{
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)malloc(20*sizeof(char));
if(globalFive==5)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
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/111039/CWE690_NULL_Deref_From_Return__char_malloc_14.c | CWE690_NULL_Deref_From_Return__char_malloc_14_bad |
void CWE690_NULL_Deref_From_Return__char_malloc_14_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400ab0(0x14);
if (globalFive == 5) {
*puVar1 = 0x696c616974696e49;
*(undefined2 *)(puVar1 + 1) = 0x657a;
*(undefined *)((long)puVar1 + 10) = 0;
printLine(puVar1);
func_0x00400a20(puVar1);
}
return;
}
| ['gcc'] |
7,863 | void CWE690_NULL_Deref_From_Return__char_malloc_14_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111039/CWE690_NULL_Deref_From_Return__char_malloc_14.c | CWE690_NULL_Deref_From_Return__char_malloc_14_good |
void CWE690_NULL_Deref_From_Return__char_malloc_14_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
7,864 | void CWE690_NULL_Deref_From_Return__char_malloc_15_bad()
{
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)malloc(20*sizeof(char));
switch(6)
{
case 6:
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
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/111040/CWE690_NULL_Deref_From_Return__char_malloc_15.c | CWE690_NULL_Deref_From_Return__char_malloc_15_bad |
void CWE690_NULL_Deref_From_Return__char_malloc_15_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400ab0(0x14);
*puVar1 = 0x696c616974696e49;
*(undefined2 *)(puVar1 + 1) = 0x657a;
*(undefined *)((long)puVar1 + 10) = 0;
printLine(puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
7,865 | void CWE690_NULL_Deref_From_Return__char_malloc_15_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111040/CWE690_NULL_Deref_From_Return__char_malloc_15.c | CWE690_NULL_Deref_From_Return__char_malloc_15_good |
void CWE690_NULL_Deref_From_Return__char_malloc_15_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
7,866 | void CWE690_NULL_Deref_From_Return__char_malloc_16_bad()
{
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)malloc(20*sizeof(char));
while(1)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
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/111041/CWE690_NULL_Deref_From_Return__char_malloc_16.c | CWE690_NULL_Deref_From_Return__char_malloc_16_bad |
void CWE690_NULL_Deref_From_Return__char_malloc_16_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400ab0(0x14);
*puVar1 = 0x696c616974696e49;
*(undefined2 *)(puVar1 + 1) = 0x657a;
*(undefined *)((long)puVar1 + 10) = 0;
printLine(puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
7,867 | void CWE690_NULL_Deref_From_Return__char_malloc_16_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111041/CWE690_NULL_Deref_From_Return__char_malloc_16.c | CWE690_NULL_Deref_From_Return__char_malloc_16_good |
void CWE690_NULL_Deref_From_Return__char_malloc_16_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
7,868 | void CWE690_NULL_Deref_From_Return__char_malloc_17_bad()
{
int j;
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)malloc(20*sizeof(char));
for(j = 0; j < 1; j++)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
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/111042/CWE690_NULL_Deref_From_Return__char_malloc_17.c | CWE690_NULL_Deref_From_Return__char_malloc_17_bad |
void CWE690_NULL_Deref_From_Return__char_malloc_17_bad(void)
{
undefined8 *puVar1;
int iStack_c;
puVar1 = (undefined8 *)func_0x00400ab0(0x14);
for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) {
*puVar1 = 0x696c616974696e49;
*(undefined2 *)(puVar1 + 1) = 0x657a;
*(undefined *)((long)puVar1 + 10) = 0;
printLine(puVar1);
func_0x00400a20(puVar1);
}
return;
}
| ['gcc'] |
7,869 | void CWE690_NULL_Deref_From_Return__char_malloc_17_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111042/CWE690_NULL_Deref_From_Return__char_malloc_17.c | CWE690_NULL_Deref_From_Return__char_malloc_17_good |
void CWE690_NULL_Deref_From_Return__char_malloc_17_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
7,870 | void CWE690_NULL_Deref_From_Return__char_malloc_18_bad()
{
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)malloc(20*sizeof(char));
goto sink;
sink:
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
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/111043/CWE690_NULL_Deref_From_Return__char_malloc_18.c | CWE690_NULL_Deref_From_Return__char_malloc_18_bad |
void CWE690_NULL_Deref_From_Return__char_malloc_18_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400ab0(0x14);
*puVar1 = 0x696c616974696e49;
*(undefined2 *)(puVar1 + 1) = 0x657a;
*(undefined *)((long)puVar1 + 10) = 0;
printLine(puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
7,871 | void CWE690_NULL_Deref_From_Return__char_malloc_18_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111043/CWE690_NULL_Deref_From_Return__char_malloc_18.c | CWE690_NULL_Deref_From_Return__char_malloc_18_good |
void CWE690_NULL_Deref_From_Return__char_malloc_18_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
7,872 | void CWE690_NULL_Deref_From_Return__char_malloc_21_bad()
{
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)malloc(20*sizeof(char));
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/111044/CWE690_NULL_Deref_From_Return__char_malloc_21.c | CWE690_NULL_Deref_From_Return__char_malloc_21_bad |
void CWE690_NULL_Deref_From_Return__char_malloc_21_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(0x14);
badStatic = 1;
badSink(uVar1);
return;
}
| ['gcc'] |
7,873 | void CWE690_NULL_Deref_From_Return__char_malloc_21_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111044/CWE690_NULL_Deref_From_Return__char_malloc_21.c | CWE690_NULL_Deref_From_Return__char_malloc_21_good |
void CWE690_NULL_Deref_From_Return__char_malloc_21_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
7,874 | void CWE690_NULL_Deref_From_Return__char_malloc_22_bad()
{
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)malloc(20*sizeof(char));
CWE690_NULL_Deref_From_Return__char_malloc_22_badGlobal = 1; /* true */
CWE690_NULL_Deref_From_Return__char_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/111045/CWE690_NULL_Deref_From_Return__char_malloc_22a.c | CWE690_NULL_Deref_From_Return__char_malloc_22_bad |
void CWE690_NULL_Deref_From_Return__char_malloc_22_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(0x14);
CWE690_NULL_Deref_From_Return__char_malloc_22_badGlobal = 1;
CWE690_NULL_Deref_From_Return__char_malloc_22_badSink(uVar1);
return;
}
| ['gcc'] |
7,875 | void CWE690_NULL_Deref_From_Return__char_malloc_22_good()
{
goodB2G1();
goodB2G2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111045/CWE690_NULL_Deref_From_Return__char_malloc_22a.c | CWE690_NULL_Deref_From_Return__char_malloc_22_good |
void CWE690_NULL_Deref_From_Return__char_malloc_22_good(void)
{
goodB2G1();
goodB2G2();
return;
}
| ['gcc'] |
7,876 | void CWE690_NULL_Deref_From_Return__char_malloc_22_badSink(char * data)
{
if(CWE690_NULL_Deref_From_Return__char_malloc_22_badGlobal)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
free(data);
}
} | ['/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111045/CWE690_NULL_Deref_From_Return__char_malloc_22b.c | CWE690_NULL_Deref_From_Return__char_malloc_22_badSink |
void CWE690_NULL_Deref_From_Return__char_malloc_22_badSink(undefined8 *param_1)
{
if (CWE690_NULL_Deref_From_Return__char_malloc_22_badGlobal != 0) {
*param_1 = 0x696c616974696e49;
*(undefined2 *)(param_1 + 1) = 0x657a;
*(undefined *)((long)param_1 + 10) = 0;
printLine(param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
7,877 | void CWE690_NULL_Deref_From_Return__char_malloc_22_goodB2G1Sink(char * data)
{
if(CWE690_NULL_Deref_From_Return__char_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)
{
strcpy(data, "Initialize");
printLine(data);
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/111045/CWE690_NULL_Deref_From_Return__char_malloc_22b.c | CWE690_NULL_Deref_From_Return__char_malloc_22_goodB2G1Sink |
void CWE690_NULL_Deref_From_Return__char_malloc_22_goodB2G1Sink(undefined8 *param_1)
{
if (CWE690_NULL_Deref_From_Return__char_malloc_22_goodB2G1Global == 0) {
if (param_1 != (undefined8 *)0x0) {
*param_1 = 0x696c616974696e49;
*(undefined2 *)(param_1 + 1) = 0x657a;
*(undefined *)((long)param_1 + 10) = 0;
printLine(param_1);
func_0x00400a20(param_1);
}
}
else {
printLine(&UNK_00401284);
}
return;
}
| ['gcc'] |
7,878 | void CWE690_NULL_Deref_From_Return__char_malloc_22_goodB2G2Sink(char * data)
{
if(CWE690_NULL_Deref_From_Return__char_malloc_22_goodB2G2Global)
{
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
strcpy(data, "Initialize");
printLine(data);
free(data);
}
}
} | ['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111045/CWE690_NULL_Deref_From_Return__char_malloc_22b.c | CWE690_NULL_Deref_From_Return__char_malloc_22_goodB2G2Sink |
void CWE690_NULL_Deref_From_Return__char_malloc_22_goodB2G2Sink(undefined8 *param_1)
{
if ((CWE690_NULL_Deref_From_Return__char_malloc_22_goodB2G2Global != 0) &&
(param_1 != (undefined8 *)0x0)) {
*param_1 = 0x696c616974696e49;
*(undefined2 *)(param_1 + 1) = 0x657a;
*(undefined *)((long)param_1 + 10) = 0;
printLine(param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
7,879 | void CWE690_NULL_Deref_From_Return__char_malloc_31_bad()
{
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)malloc(20*sizeof(char));
{
char * dataCopy = data;
char * data = dataCopy;
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
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/111046/CWE690_NULL_Deref_From_Return__char_malloc_31.c | CWE690_NULL_Deref_From_Return__char_malloc_31_bad |
void CWE690_NULL_Deref_From_Return__char_malloc_31_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400ab0(0x14);
*puVar1 = 0x696c616974696e49;
*(undefined2 *)(puVar1 + 1) = 0x657a;
*(undefined *)((long)puVar1 + 10) = 0;
printLine(puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
7,880 | void CWE690_NULL_Deref_From_Return__char_malloc_31_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111046/CWE690_NULL_Deref_From_Return__char_malloc_31.c | CWE690_NULL_Deref_From_Return__char_malloc_31_good |
void CWE690_NULL_Deref_From_Return__char_malloc_31_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
7,881 | void CWE690_NULL_Deref_From_Return__char_malloc_32_bad()
{
char * data;
char * *dataPtr1 = &data;
char * *dataPtr2 = &data;
data = NULL; /* Initialize data */
{
char * data = *dataPtr1;
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)malloc(20*sizeof(char));
*dataPtr1 = data;
}
{
char * data = *dataPtr2;
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
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/111047/CWE690_NULL_Deref_From_Return__char_malloc_32.c | CWE690_NULL_Deref_From_Return__char_malloc_32_bad |
/* WARNING: Restarted to delay deadcode elimination for space: stack */
void CWE690_NULL_Deref_From_Return__char_malloc_32_bad(void)
{
undefined8 uStack_30;
undefined8 *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(0x14);
*puStack_10 = uStack_20;
puStack_28 = (undefined8 *)*puStack_18;
*puStack_28 = 0x696c616974696e49;
*(undefined2 *)(puStack_28 + 1) = 0x657a;
*(undefined *)((long)puStack_28 + 10) = 0;
printLine(puStack_28);
func_0x00400a20(puStack_28);
return;
}
| ['gcc'] |
7,882 | void CWE690_NULL_Deref_From_Return__char_malloc_32_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111047/CWE690_NULL_Deref_From_Return__char_malloc_32.c | CWE690_NULL_Deref_From_Return__char_malloc_32_good |
void CWE690_NULL_Deref_From_Return__char_malloc_32_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
7,883 | void CWE690_NULL_Deref_From_Return__char_malloc_34_bad()
{
char * data;
CWE690_NULL_Deref_From_Return__char_malloc_34_unionType myUnion;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)malloc(20*sizeof(char));
myUnion.unionFirst = data;
{
char * data = myUnion.unionSecond;
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
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/111049/CWE690_NULL_Deref_From_Return__char_malloc_34.c | CWE690_NULL_Deref_From_Return__char_malloc_34_bad |
void CWE690_NULL_Deref_From_Return__char_malloc_34_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400ab0(0x14);
*puVar1 = 0x696c616974696e49;
*(undefined2 *)(puVar1 + 1) = 0x657a;
*(undefined *)((long)puVar1 + 10) = 0;
printLine(puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
7,884 | void CWE690_NULL_Deref_From_Return__char_malloc_34_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111049/CWE690_NULL_Deref_From_Return__char_malloc_34.c | CWE690_NULL_Deref_From_Return__char_malloc_34_good |
void CWE690_NULL_Deref_From_Return__char_malloc_34_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
7,885 | void CWE690_NULL_Deref_From_Return__char_malloc_41_bad()
{
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)malloc(20*sizeof(char));
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/111050/CWE690_NULL_Deref_From_Return__char_malloc_41.c | CWE690_NULL_Deref_From_Return__char_malloc_41_bad |
void CWE690_NULL_Deref_From_Return__char_malloc_41_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(0x14);
badSink(uVar1);
return;
}
| ['gcc'] |
7,886 | void CWE690_NULL_Deref_From_Return__char_malloc_41_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111050/CWE690_NULL_Deref_From_Return__char_malloc_41.c | CWE690_NULL_Deref_From_Return__char_malloc_41_good |
void CWE690_NULL_Deref_From_Return__char_malloc_41_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
7,887 | void CWE690_NULL_Deref_From_Return__char_malloc_42_bad()
{
char * data;
data = NULL; /* Initialize data */
data = badSource(data);
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
free(data);
} | ['/* Initialize data */', '/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111051/CWE690_NULL_Deref_From_Return__char_malloc_42.c | CWE690_NULL_Deref_From_Return__char_malloc_42_bad |
void CWE690_NULL_Deref_From_Return__char_malloc_42_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)badSource(0);
*puVar1 = 0x696c616974696e49;
*(undefined2 *)(puVar1 + 1) = 0x657a;
*(undefined *)((long)puVar1 + 10) = 0;
printLine(puVar1);
func_0x00400a20(puVar1);
return;
}
| ['gcc'] |
7,888 | void CWE690_NULL_Deref_From_Return__char_malloc_42_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111051/CWE690_NULL_Deref_From_Return__char_malloc_42.c | CWE690_NULL_Deref_From_Return__char_malloc_42_good |
void CWE690_NULL_Deref_From_Return__char_malloc_42_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
7,889 | void CWE690_NULL_Deref_From_Return__char_malloc_51_bad()
{
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)malloc(20*sizeof(char));
CWE690_NULL_Deref_From_Return__char_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/111055/CWE690_NULL_Deref_From_Return__char_malloc_51a.c | CWE690_NULL_Deref_From_Return__char_malloc_51_bad |
void CWE690_NULL_Deref_From_Return__char_malloc_51_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(0x14);
CWE690_NULL_Deref_From_Return__char_malloc_51b_badSink(uVar1);
return;
}
| ['gcc'] |
7,890 | void CWE690_NULL_Deref_From_Return__char_malloc_51_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111055/CWE690_NULL_Deref_From_Return__char_malloc_51a.c | CWE690_NULL_Deref_From_Return__char_malloc_51_good |
void CWE690_NULL_Deref_From_Return__char_malloc_51_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
7,891 | void CWE690_NULL_Deref_From_Return__char_malloc_51b_badSink(char * data)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
free(data);
} | ['/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111055/CWE690_NULL_Deref_From_Return__char_malloc_51b.c | CWE690_NULL_Deref_From_Return__char_malloc_51b_badSink |
void CWE690_NULL_Deref_From_Return__char_malloc_51b_badSink(undefined8 *param_1)
{
*param_1 = 0x696c616974696e49;
*(undefined2 *)(param_1 + 1) = 0x657a;
*(undefined *)((long)param_1 + 10) = 0;
printLine(param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
7,892 | void CWE690_NULL_Deref_From_Return__char_malloc_51b_goodB2GSink(char * data)
{
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
strcpy(data, "Initialize");
printLine(data);
free(data);
}
} | ['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111055/CWE690_NULL_Deref_From_Return__char_malloc_51b.c | CWE690_NULL_Deref_From_Return__char_malloc_51b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__char_malloc_51b_goodB2GSink(undefined8 *param_1)
{
if (param_1 != (undefined8 *)0x0) {
*param_1 = 0x696c616974696e49;
*(undefined2 *)(param_1 + 1) = 0x657a;
*(undefined *)((long)param_1 + 10) = 0;
printLine(param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
7,893 | void CWE690_NULL_Deref_From_Return__char_malloc_52_bad()
{
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)malloc(20*sizeof(char));
CWE690_NULL_Deref_From_Return__char_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/111056/CWE690_NULL_Deref_From_Return__char_malloc_52a.c | CWE690_NULL_Deref_From_Return__char_malloc_52_bad |
void CWE690_NULL_Deref_From_Return__char_malloc_52_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(0x14);
CWE690_NULL_Deref_From_Return__char_malloc_52b_badSink(uVar1);
return;
}
| ['gcc'] |
7,894 | void CWE690_NULL_Deref_From_Return__char_malloc_52_good()
{
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111056/CWE690_NULL_Deref_From_Return__char_malloc_52a.c | CWE690_NULL_Deref_From_Return__char_malloc_52_good |
void CWE690_NULL_Deref_From_Return__char_malloc_52_good(void)
{
goodB2G();
return;
}
| ['gcc'] |
7,895 | void CWE690_NULL_Deref_From_Return__char_malloc_52b_badSink(char * data)
{
CWE690_NULL_Deref_From_Return__char_malloc_52c_badSink(data);
} | [] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111056/CWE690_NULL_Deref_From_Return__char_malloc_52b.c | CWE690_NULL_Deref_From_Return__char_malloc_52b_badSink |
void CWE690_NULL_Deref_From_Return__char_malloc_52b_badSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__char_malloc_52c_badSink(param_1);
return;
}
| ['gcc'] |
7,896 | void CWE690_NULL_Deref_From_Return__char_malloc_52b_goodB2GSink(char * data)
{
CWE690_NULL_Deref_From_Return__char_malloc_52c_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111056/CWE690_NULL_Deref_From_Return__char_malloc_52b.c | CWE690_NULL_Deref_From_Return__char_malloc_52b_goodB2GSink |
void CWE690_NULL_Deref_From_Return__char_malloc_52b_goodB2GSink(undefined8 param_1)
{
CWE690_NULL_Deref_From_Return__char_malloc_52c_goodB2GSink(param_1);
return;
}
| ['gcc'] |
7,897 | void CWE690_NULL_Deref_From_Return__char_malloc_52c_badSink(char * data)
{
/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */
strcpy(data, "Initialize");
printLine(data);
free(data);
} | ['/* FLAW: Initialize memory buffer without checking to see if the memory allocation function failed */'] | ['CWE690'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111056/CWE690_NULL_Deref_From_Return__char_malloc_52c.c | CWE690_NULL_Deref_From_Return__char_malloc_52c_badSink |
void CWE690_NULL_Deref_From_Return__char_malloc_52c_badSink(undefined8 *param_1)
{
*param_1 = 0x696c616974696e49;
*(undefined2 *)(param_1 + 1) = 0x657a;
*(undefined *)((long)param_1 + 10) = 0;
printLine(param_1);
func_0x00400a20(param_1);
return;
}
| ['gcc'] |
7,898 | void CWE690_NULL_Deref_From_Return__char_malloc_52c_goodB2GSink(char * data)
{
/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */
if (data != NULL)
{
strcpy(data, "Initialize");
printLine(data);
free(data);
}
} | ['/* FIX: Check to see if the memory allocation function was successful before initializing the memory buffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/111056/CWE690_NULL_Deref_From_Return__char_malloc_52c.c | CWE690_NULL_Deref_From_Return__char_malloc_52c_goodB2GSink |
void CWE690_NULL_Deref_From_Return__char_malloc_52c_goodB2GSink(undefined8 *param_1)
{
if (param_1 != (undefined8 *)0x0) {
*param_1 = 0x696c616974696e49;
*(undefined2 *)(param_1 + 1) = 0x657a;
*(undefined *)((long)param_1 + 10) = 0;
printLine(param_1);
func_0x00400a20(param_1);
}
return;
}
| ['gcc'] |
7,899 | void CWE690_NULL_Deref_From_Return__char_malloc_53_bad()
{
char * data;
data = NULL; /* Initialize data */
/* POTENTIAL FLAW: Allocate memory without checking if the memory allocation function failed */
data = (char *)malloc(20*sizeof(char));
CWE690_NULL_Deref_From_Return__char_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/111057/CWE690_NULL_Deref_From_Return__char_malloc_53a.c | CWE690_NULL_Deref_From_Return__char_malloc_53_bad |
void CWE690_NULL_Deref_From_Return__char_malloc_53_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(0x14);
CWE690_NULL_Deref_From_Return__char_malloc_53b_badSink(uVar1);
return;
}
| ['gcc'] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.