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 |
|---|---|---|---|---|---|---|---|---|
15,500 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62883/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53a.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,501 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53b_badSink(int * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53c_badSink(data);
} | [] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62883/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53b.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53b_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53c_badSink(param_1);
return;
}
| ['gcc'] |
15,502 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53b_goodG2BSink(int * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62883/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53b.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53b_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
15,503 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53c_badSink(int * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53d_badSink(data);
} | [] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62883/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53c.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53c_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53d_badSink(param_1);
return;
}
| ['gcc'] |
15,504 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53c_goodG2BSink(int * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62883/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53c.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53c_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
15,505 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53d_badSink(int * data)
{
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memcpy(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62883/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53d.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53d_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53d_badSink(undefined4 *param_1)
{
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400a70(param_1,&uStack_38,0x28);
printIntLine(*param_1);
return;
}
| ['gcc'] |
15,506 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53d_goodG2BSink(int * data)
{
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memcpy(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62883/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53d.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53d_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53d_goodG2BSink(undefined4 *param_1)
{
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400a70(param_1,&uStack_38,0x28);
printIntLine(*param_1);
return;
}
| ['gcc'] |
15,507 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54_bad()
{
int * data;
data = NULL;
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54b_badSink(data);
} | ['/* FLAW: Allocate memory without using sizeof(int) */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62884/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54a.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54_bad(undefined8 param_1,undefined8 param_2)
{
undefined auStack_30 [32];
undefined *puStack_10;
puStack_10 = auStack_30;
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54b_badSink(puStack_10,param_2,1);
return;
}
| ['gcc'] |
15,508 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62884/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54a.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,509 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54b_badSink(int * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54c_badSink(data);
} | [] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62884/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54b.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54b_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54c_badSink(param_1);
return;
}
| ['gcc'] |
15,510 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54b_goodG2BSink(int * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62884/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54b.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54b_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
15,511 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54c_badSink(int * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54d_badSink(data);
} | [] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62884/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54c.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54c_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54d_badSink(param_1);
return;
}
| ['gcc'] |
15,512 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54c_goodG2BSink(int * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62884/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54c.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54c_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
15,513 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54d_badSink(int * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54e_badSink(data);
} | [] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62884/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54d.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54d_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54d_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54e_badSink(param_1);
return;
}
| ['gcc'] |
15,514 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54d_goodG2BSink(int * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54e_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62884/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54d.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54d_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54d_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54e_goodG2BSink(param_1);
return;
}
| ['gcc'] |
15,515 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54e_badSink(int * data)
{
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memcpy(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62884/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54e.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54e_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54e_badSink(undefined4 *param_1)
{
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400a70(param_1,&uStack_38,0x28);
printIntLine(*param_1);
return;
}
| ['gcc'] |
15,516 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54e_goodG2BSink(int * data)
{
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memcpy(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62884/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54e.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54e_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_54e_goodG2BSink(undefined4 *param_1)
{
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400a70(param_1,&uStack_38,0x28);
printIntLine(*param_1);
return;
}
| ['gcc'] |
15,517 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_61_bad()
{
int * data;
data = NULL;
data = CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_61b_badSource(data);
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memcpy(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62885/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_61a.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_61_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_61_bad(void)
{
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 *puStack_10;
puStack_10 = (undefined4 *)0x0;
puStack_10 = (undefined4 *)CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_61b_badSource(0);
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400a70(puStack_10,&uStack_38,0x28);
printIntLine(*puStack_10);
return;
}
| ['gcc'] |
15,518 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_61_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62885/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_61a.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_61_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_61_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,519 | int * CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_61b_badSource(int * data)
{
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
return data;
} | ['/* FLAW: Allocate memory without using sizeof(int) */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62885/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_61b.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_61b_badSource |
undefined * CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_61b_badSource(void)
{
undefined auStack_30 [40];
return auStack_30;
}
| ['gcc'] |
15,520 | int * CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_61b_goodG2BSource(int * data)
{
/* FIX: Allocate memory using sizeof(int) */
data = (int *)ALLOCA(10*sizeof(int));
return data;
} | ['/* FIX: Allocate memory using sizeof(int) */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62885/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_61b.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_61b_goodG2BSource |
undefined * CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_61b_goodG2BSource(void)
{
undefined auStack_40 [56];
return auStack_40;
}
| ['gcc'] |
15,521 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_63_bad()
{
int * data;
data = NULL;
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_63b_badSink(&data);
} | ['/* FLAW: Allocate memory without using sizeof(int) */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62887/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_63a.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_63_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_63_bad(undefined8 param_1,undefined8 param_2)
{
undefined auStack_30 [32];
undefined *puStack_10;
puStack_10 = auStack_30;
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_63b_badSink(&puStack_10,param_2,1);
return;
}
| ['gcc'] |
15,522 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_63_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62887/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_63a.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_63_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_63_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,523 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_63b_badSink(int * * dataPtr)
{
int * data = *dataPtr;
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memcpy(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62887/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_63b.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_63b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_63b_badSink(undefined8 *param_1)
{
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 *puStack_10;
puStack_10 = (undefined4 *)*param_1;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400a70(puStack_10,&uStack_38,0x28);
printIntLine(*puStack_10);
return;
}
| ['gcc'] |
15,524 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_63b_goodG2BSink(int * * dataPtr)
{
int * data = *dataPtr;
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memcpy(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62887/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_63b.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_63b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_63b_goodG2BSink(undefined8 *param_1)
{
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 *puStack_10;
puStack_10 = (undefined4 *)*param_1;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400a70(puStack_10,&uStack_38,0x28);
printIntLine(*puStack_10);
return;
}
| ['gcc'] |
15,525 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_64_bad()
{
int * data;
data = NULL;
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_64b_badSink(&data);
} | ['/* FLAW: Allocate memory without using sizeof(int) */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62888/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_64a.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_64_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_64_bad(undefined8 param_1,undefined8 param_2)
{
undefined auStack_30 [32];
undefined *puStack_10;
puStack_10 = auStack_30;
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_64b_badSink(&puStack_10,param_2,1);
return;
}
| ['gcc'] |
15,526 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_64_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62888/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_64a.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_64_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_64_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,527 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_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);
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memcpy(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62888/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_64b.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_64b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_64b_badSink(undefined8 *param_1)
{
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined4 *puStack_18;
undefined8 *puStack_10;
puStack_18 = (undefined4 *)*param_1;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
puStack_10 = param_1;
func_0x00400a70(puStack_18,&uStack_48,0x28);
printIntLine(*puStack_18);
return;
}
| ['gcc'] |
15,528 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_64b_goodG2BSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
int * * dataPtr = (int * *)dataVoidPtr;
/* dereference dataPtr into data */
int * data = (*dataPtr);
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memcpy(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62888/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_64b.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_64b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_64b_goodG2BSink(undefined8 *param_1)
{
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined4 *puStack_18;
undefined8 *puStack_10;
puStack_18 = (undefined4 *)*param_1;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
puStack_10 = param_1;
func_0x00400a70(puStack_18,&uStack_48,0x28);
printIntLine(*puStack_18);
return;
}
| ['gcc'] |
15,529 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_66_bad()
{
int * data;
int * dataArray[5];
data = NULL;
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
/* put data in array */
dataArray[2] = data;
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_66b_badSink(dataArray);
} | ['/* FLAW: Allocate memory without using sizeof(int) */', '/* put data in array */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62890/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_66a.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_66_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_66_bad(undefined8 param_1,undefined8 param_2)
{
undefined auStack_50 [24];
undefined auStack_38 [16];
undefined *puStack_28;
undefined *puStack_10;
puStack_28 = auStack_50;
puStack_10 = puStack_28;
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_66b_badSink(auStack_38,param_2,1);
return;
}
| ['gcc'] |
15,530 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_66_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62890/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_66a.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_66_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_66_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,531 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_66b_badSink(int * dataArray[])
{
/* copy data out of dataArray */
int * data = dataArray[2];
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memcpy(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* copy data out of dataArray */', '/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62890/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_66b.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_66b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_66b_badSink(long param_1)
{
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 *puStack_10;
puStack_10 = *(undefined4 **)(param_1 + 0x10);
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400a70(puStack_10,&uStack_38,0x28);
printIntLine(*puStack_10);
return;
}
| ['gcc'] |
15,532 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_66b_goodG2BSink(int * dataArray[])
{
int * data = dataArray[2];
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memcpy(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62890/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_66b.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_66b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_66b_goodG2BSink(long param_1)
{
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 *puStack_10;
puStack_10 = *(undefined4 **)(param_1 + 0x10);
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400a70(puStack_10,&uStack_38,0x28);
printIntLine(*puStack_10);
return;
}
| ['gcc'] |
15,533 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_67_bad()
{
int * data;
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_67_structType myStruct;
data = NULL;
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
myStruct.structFirst = data;
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_67b_badSink(myStruct);
} | ['/* FLAW: Allocate memory without using sizeof(int) */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62891/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_67a.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_67_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_67_bad(undefined8 param_1,undefined8 param_2)
{
undefined auStack_30 [24];
undefined *puStack_18;
undefined *puStack_10;
puStack_18 = auStack_30;
puStack_10 = puStack_18;
CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_67b_badSink(puStack_18,param_2,1);
return;
}
| ['gcc'] |
15,534 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_67_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62891/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_67a.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_67_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_67_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,535 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_67b_badSink(CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_67_structType myStruct)
{
int * data = myStruct.structFirst;
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memcpy(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62891/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_67b.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_67b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_67b_badSink(undefined4 *param_1)
{
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 *puStack_10;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
puStack_10 = param_1;
func_0x00400a70(param_1,&uStack_38,0x28);
printIntLine(*puStack_10);
return;
}
| ['gcc'] |
15,536 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_67b_goodG2BSink(CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_67_structType myStruct)
{
int * data = myStruct.structFirst;
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memcpy(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62891/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_67b.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_67b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_67b_goodG2BSink(undefined4 *param_1)
{
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 *puStack_10;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
puStack_10 = param_1;
func_0x00400a70(param_1,&uStack_38,0x28);
printIntLine(*puStack_10);
return;
}
| ['gcc'] |
15,537 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_02_bad()
{
int * data;
data = NULL;
if(1)
{
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
}
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memmove(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* FLAW: Allocate memory without using sizeof(int) */', '/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62901/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_02.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_02_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_02_bad(void)
{
undefined4 auStack_50 [6];
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 *puStack_10;
puStack_10 = auStack_50;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400a80(puStack_10,&uStack_38,0x28);
printIntLine(*puStack_10);
return;
}
| ['gcc'] |
15,538 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_02_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62901/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_02.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_02_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_02_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
15,539 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_03_bad()
{
int * data;
data = NULL;
if(5==5)
{
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
}
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memmove(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* FLAW: Allocate memory without using sizeof(int) */', '/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62902/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_03.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_03_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_03_bad(void)
{
undefined4 auStack_50 [6];
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 *puStack_10;
puStack_10 = auStack_50;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400a80(puStack_10,&uStack_38,0x28);
printIntLine(*puStack_10);
return;
}
| ['gcc'] |
15,540 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_03_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62902/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_03.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_03_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_03_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
15,541 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_04_bad()
{
int * data;
data = NULL;
if(STATIC_CONST_TRUE)
{
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
}
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memmove(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* FLAW: Allocate memory without using sizeof(int) */', '/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62903/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_04.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_04_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_04_bad(void)
{
undefined4 auStack_50 [6];
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 *puStack_10;
puStack_10 = auStack_50;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400a80(puStack_10,&uStack_38,0x28);
printIntLine(*puStack_10);
return;
}
| ['gcc'] |
15,542 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_04_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62903/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_04.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_04_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_04_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
15,543 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_05_bad()
{
int * data;
data = NULL;
if(staticTrue)
{
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
}
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memmove(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* FLAW: Allocate memory without using sizeof(int) */', '/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62904/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_05.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_05_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_05_bad(void)
{
undefined4 uVar1;
undefined8 *puVar2;
undefined auStack_58 [8];
undefined4 auStack_50 [6];
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 *puStack_10;
puVar2 = &uStack_38;
puStack_10 = (undefined4 *)0x0;
if (staticTrue != 0) {
puVar2 = (undefined8 *)auStack_58;
puStack_10 = auStack_50;
}
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
*(undefined **)((long)puVar2 + -8) = &UNK_00400c10;
func_0x00400a80(puStack_10,&uStack_38,0x28);
uVar1 = *puStack_10;
*(undefined **)((long)puVar2 + -8) = &UNK_00400c1d;
printIntLine(uVar1);
return;
}
| ['gcc'] |
15,544 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_05_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62904/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_05.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_05_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_05_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
15,545 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_06_bad()
{
int * data;
data = NULL;
if(STATIC_CONST_FIVE==5)
{
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
}
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memmove(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* FLAW: Allocate memory without using sizeof(int) */', '/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62905/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_06.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_06_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_06_bad(void)
{
undefined4 auStack_50 [6];
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 *puStack_10;
puStack_10 = auStack_50;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400a80(puStack_10,&uStack_38,0x28);
printIntLine(*puStack_10);
return;
}
| ['gcc'] |
15,546 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_06_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62905/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_06.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_06_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_06_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
15,547 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_07_bad()
{
int * data;
data = NULL;
if(staticFive==5)
{
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
}
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memmove(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* FLAW: Allocate memory without using sizeof(int) */', '/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62906/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_07.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_07_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_07_bad(void)
{
undefined4 uVar1;
undefined8 *puVar2;
undefined auStack_58 [8];
undefined4 auStack_50 [6];
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 *puStack_10;
puVar2 = &uStack_38;
puStack_10 = (undefined4 *)0x0;
if (staticFive == 5) {
puVar2 = (undefined8 *)auStack_58;
puStack_10 = auStack_50;
}
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
*(undefined **)((long)puVar2 + -8) = &UNK_00400c11;
func_0x00400a80(puStack_10,&uStack_38,0x28);
uVar1 = *puStack_10;
*(undefined **)((long)puVar2 + -8) = &UNK_00400c1e;
printIntLine(uVar1);
return;
}
| ['gcc'] |
15,548 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_07_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62906/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_07.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_07_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_07_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
15,549 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_08_bad()
{
int * data;
data = NULL;
if(staticReturnsTrue())
{
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
}
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memmove(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* FLAW: Allocate memory without using sizeof(int) */', '/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62907/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_08.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_08_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_08_bad(void)
{
undefined4 uVar1;
int iVar2;
undefined8 *puVar3;
undefined auStack_58 [8];
undefined4 auStack_50 [4];
undefined *puStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 *puStack_10;
puVar3 = &uStack_38;
puStack_10 = (undefined4 *)0x0;
puStack_40 = &UNK_00400bb2;
iVar2 = staticReturnsTrue();
if (iVar2 != 0) {
puVar3 = (undefined8 *)auStack_58;
puStack_10 = auStack_50;
}
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
*(undefined **)((long)puVar3 + -8) = &UNK_00400c2a;
func_0x00400a80(puStack_10,&uStack_38,0x28);
uVar1 = *puStack_10;
*(undefined **)((long)puVar3 + -8) = &UNK_00400c37;
printIntLine(uVar1);
return;
}
| ['gcc'] |
15,550 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_08_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62907/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_08.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_08_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_08_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
15,551 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_09_bad()
{
int * data;
data = NULL;
if(GLOBAL_CONST_TRUE)
{
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
}
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memmove(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* FLAW: Allocate memory without using sizeof(int) */', '/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62908/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_09.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_09_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_09_bad(void)
{
undefined4 uVar1;
undefined8 *puVar2;
undefined auStack_58 [8];
undefined4 auStack_50 [6];
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 *puStack_10;
puVar2 = &uStack_38;
puStack_10 = (undefined4 *)0x0;
if (GLOBAL_CONST_TRUE != 0) {
puVar2 = (undefined8 *)auStack_58;
puStack_10 = auStack_50;
}
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
*(undefined **)((long)puVar2 + -8) = &UNK_00400c10;
func_0x00400a80(puStack_10,&uStack_38,0x28);
uVar1 = *puStack_10;
*(undefined **)((long)puVar2 + -8) = &UNK_00400c1d;
printIntLine(uVar1);
return;
}
| ['gcc'] |
15,552 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_09_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62908/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_09.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_09_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_09_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
15,553 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_10_bad()
{
int * data;
data = NULL;
if(globalTrue)
{
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
}
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memmove(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* FLAW: Allocate memory without using sizeof(int) */', '/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62909/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_10.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_10_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_10_bad(void)
{
undefined4 uVar1;
undefined8 *puVar2;
undefined auStack_58 [8];
undefined4 auStack_50 [6];
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 *puStack_10;
puVar2 = &uStack_38;
puStack_10 = (undefined4 *)0x0;
if (globalTrue != 0) {
puVar2 = (undefined8 *)auStack_58;
puStack_10 = auStack_50;
}
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
*(undefined **)((long)puVar2 + -8) = &UNK_00400c10;
func_0x00400a80(puStack_10,&uStack_38,0x28);
uVar1 = *puStack_10;
*(undefined **)((long)puVar2 + -8) = &UNK_00400c1d;
printIntLine(uVar1);
return;
}
| ['gcc'] |
15,554 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_10_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62909/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_10.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_10_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_10_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
15,555 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_11_bad()
{
int * data;
data = NULL;
if(globalReturnsTrue())
{
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
}
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memmove(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* FLAW: Allocate memory without using sizeof(int) */', '/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62910/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_11.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_11_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_11_bad(void)
{
undefined4 uVar1;
int iVar2;
undefined8 *puVar3;
undefined auStack_58 [8];
undefined4 auStack_50 [4];
undefined *puStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 *puStack_10;
puVar3 = &uStack_38;
puStack_10 = (undefined4 *)0x0;
puStack_40 = &UNK_00400b9c;
iVar2 = globalReturnsTrue();
if (iVar2 != 0) {
puVar3 = (undefined8 *)auStack_58;
puStack_10 = auStack_50;
}
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
*(undefined **)((long)puVar3 + -8) = &UNK_00400c14;
func_0x00400a80(puStack_10,&uStack_38,0x28);
uVar1 = *puStack_10;
*(undefined **)((long)puVar3 + -8) = &UNK_00400c21;
printIntLine(uVar1);
return;
}
| ['gcc'] |
15,556 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_11_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62910/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_11.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_11_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_11_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
15,557 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_12_bad()
{
int * data;
data = NULL;
if(globalReturnsTrueOrFalse())
{
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
}
else
{
/* FIX: Allocate memory using sizeof(int) */
data = (int *)ALLOCA(10*sizeof(int));
}
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memmove(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* FLAW: Allocate memory without using sizeof(int) */', '/* FIX: Allocate memory using sizeof(int) */', '/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62911/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_12.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_12_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_12_bad(void)
{
undefined4 uVar1;
int iVar2;
undefined *puVar3;
undefined auStack_68 [8];
undefined4 auStack_60 [2];
undefined auStack_58 [8];
undefined4 auStack_50 [4];
undefined *puStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 *puStack_10;
puStack_10 = (undefined4 *)0x0;
puStack_40 = &UNK_00400b9c;
iVar2 = globalReturnsTrueOrFalse();
if (iVar2 == 0) {
puVar3 = auStack_68;
puStack_10 = auStack_60;
}
else {
puVar3 = auStack_58;
puStack_10 = auStack_50;
}
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
*(undefined **)(puVar3 + -8) = &UNK_00400c4a;
func_0x00400a80(puStack_10,&uStack_38,0x28);
uVar1 = *puStack_10;
*(undefined **)(puVar3 + -8) = &UNK_00400c57;
printIntLine(uVar1);
return;
}
| ['gcc'] |
15,558 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_12_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62911/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_12.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_12_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_12_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,559 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_13_bad()
{
int * data;
data = NULL;
if(GLOBAL_CONST_FIVE==5)
{
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
}
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memmove(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* FLAW: Allocate memory without using sizeof(int) */', '/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62912/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_13.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_13_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_13_bad(void)
{
undefined4 uVar1;
undefined8 *puVar2;
undefined auStack_58 [8];
undefined4 auStack_50 [6];
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 *puStack_10;
puVar2 = &uStack_38;
puStack_10 = (undefined4 *)0x0;
if (GLOBAL_CONST_FIVE == 5) {
puVar2 = (undefined8 *)auStack_58;
puStack_10 = auStack_50;
}
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
*(undefined **)((long)puVar2 + -8) = &UNK_00400c11;
func_0x00400a80(puStack_10,&uStack_38,0x28);
uVar1 = *puStack_10;
*(undefined **)((long)puVar2 + -8) = &UNK_00400c1e;
printIntLine(uVar1);
return;
}
| ['gcc'] |
15,560 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_13_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62912/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_13.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_13_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_13_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
15,561 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_14_bad()
{
int * data;
data = NULL;
if(globalFive==5)
{
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
}
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memmove(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* FLAW: Allocate memory without using sizeof(int) */', '/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62913/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_14.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_14_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_14_bad(void)
{
undefined4 uVar1;
undefined8 *puVar2;
undefined auStack_58 [8];
undefined4 auStack_50 [6];
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 *puStack_10;
puVar2 = &uStack_38;
puStack_10 = (undefined4 *)0x0;
if (globalFive == 5) {
puVar2 = (undefined8 *)auStack_58;
puStack_10 = auStack_50;
}
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
*(undefined **)((long)puVar2 + -8) = &UNK_00400c11;
func_0x00400a80(puStack_10,&uStack_38,0x28);
uVar1 = *puStack_10;
*(undefined **)((long)puVar2 + -8) = &UNK_00400c1e;
printIntLine(uVar1);
return;
}
| ['gcc'] |
15,562 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_14_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62913/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_14.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_14_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_14_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
15,563 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_15_bad()
{
int * data;
data = NULL;
switch(6)
{
case 6:
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
break;
default:
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
break;
}
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memmove(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* FLAW: Allocate memory without using sizeof(int) */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62914/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_15.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_15_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_15_bad(void)
{
undefined4 auStack_50 [6];
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 *puStack_10;
puStack_10 = auStack_50;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400a80(puStack_10,&uStack_38,0x28);
printIntLine(*puStack_10);
return;
}
| ['gcc'] |
15,564 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_15_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62914/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_15.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_15_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_15_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
15,565 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_16_bad()
{
int * data;
data = NULL;
while(1)
{
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
break;
}
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memmove(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* FLAW: Allocate memory without using sizeof(int) */', '/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62915/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_16.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_16_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_16_bad(void)
{
undefined4 auStack_50 [6];
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 *puStack_10;
puStack_10 = auStack_50;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400a80(puStack_10,&uStack_38,0x28);
printIntLine(*puStack_10);
return;
}
| ['gcc'] |
15,566 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_16_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62915/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_16.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_16_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_16_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,567 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_17_bad()
{
int i;
int * data;
data = NULL;
for(i = 0; i < 1; i++)
{
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
}
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memmove(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* FLAW: Allocate memory without using sizeof(int) */', '/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62916/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_17.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_17_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_17_bad(void)
{
undefined4 uVar1;
undefined8 *puVar2;
undefined8 auStack_50 [4];
undefined8 uStack_30;
undefined8 uStack_28;
undefined4 *puStack_18;
int iStack_c;
puStack_18 = (undefined4 *)0x0;
puVar2 = auStack_50 + 1;
for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) {
puStack_18 = (undefined4 *)((ulong)((long)puVar2 + -0x11) & 0xfffffffffffffff0);
puVar2 = (undefined8 *)((long)puVar2 + -0x20);
}
auStack_50[1] = 0;
auStack_50[2] = 0;
auStack_50[3] = 0;
uStack_30 = 0;
uStack_28 = 0;
*(undefined **)((long)puVar2 + -8) = &UNK_00400c19;
func_0x00400a80(puStack_18,auStack_50 + 1,0x28);
uVar1 = *puStack_18;
*(undefined **)((long)puVar2 + -8) = &UNK_00400c26;
printIntLine(uVar1);
return;
}
| ['gcc'] |
15,568 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_17_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62916/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_17.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_17_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_17_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,569 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_21_bad()
{
int * data;
data = NULL;
badStatic = 1; /* true */
data = badSource(data);
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memmove(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* true */', '/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62918/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_21.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_21_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_21_bad(void)
{
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 *puStack_10;
puStack_10 = (undefined4 *)0x0;
badStatic = 1;
puStack_10 = (undefined4 *)badSource(0);
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400a80(puStack_10,&uStack_38,0x28);
printIntLine(*puStack_10);
return;
}
| ['gcc'] |
15,570 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_21_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62918/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_21.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_21_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_21_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
15,571 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22_bad()
{
int * data;
data = NULL;
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22_badGlobal = 1; /* true */
data = CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22_badSource(data);
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memmove(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* true */', '/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62919/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22a.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22_bad(void)
{
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 *puStack_10;
puStack_10 = (undefined4 *)0x0;
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22_badGlobal = 1;
puStack_10 = (undefined4 *)CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22_badSource(0);
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400a80(puStack_10,&uStack_38,0x28);
printIntLine(*puStack_10);
return;
}
| ['gcc'] |
15,572 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62919/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22a.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
15,573 | int * CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22_badSource(int * data)
{
if(CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22_badGlobal)
{
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
}
return data;
} | ['/* FLAW: Allocate memory without using sizeof(int) */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62919/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22b.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22_badSource |
undefined * CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22_badSource(undefined *param_1)
{
undefined auStack_30 [32];
undefined *puStack_10;
puStack_10 = param_1;
if (CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22_badGlobal != 0) {
puStack_10 = auStack_30;
}
return puStack_10;
}
| ['gcc'] |
15,574 | int * CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22_goodG2B1Source(int * data)
{
if(CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22_goodG2B1Global)
{
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
}
else
{
/* FIX: Allocate memory using sizeof(int) */
data = (int *)ALLOCA(10*sizeof(int));
}
return data;
} | ['/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* FIX: Allocate memory using sizeof(int) */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62919/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22b.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22_goodG2B1Source |
undefined * CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22_goodG2B1Source(undefined *param_1)
{
undefined auStack_40 [32];
undefined *puStack_20;
undefined *puStack_10;
if (CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22_goodG2B1Global == 0) {
puStack_10 = auStack_40;
}
else {
puStack_20 = &UNK_00400ba2;
puStack_10 = param_1;
printLine(&UNK_004012b4);
}
return puStack_10;
}
| ['gcc'] |
15,575 | int * CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22_goodG2B2Source(int * data)
{
if(CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22_goodG2B2Global)
{
/* FIX: Allocate memory using sizeof(int) */
data = (int *)ALLOCA(10*sizeof(int));
}
return data;
} | ['/* FIX: Allocate memory using sizeof(int) */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62919/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22b.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22_goodG2B2Source |
undefined * CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22_goodG2B2Source(undefined *param_1)
{
undefined auStack_40 [48];
undefined *puStack_10;
puStack_10 = param_1;
if (CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_22_goodG2B2Global != 0) {
puStack_10 = auStack_40;
}
return puStack_10;
}
| ['gcc'] |
15,576 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_31_bad()
{
int * data;
data = NULL;
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
{
int * dataCopy = data;
int * data = dataCopy;
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memmove(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
}
} | ['/* FLAW: Allocate memory without using sizeof(int) */', '/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62920/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_31.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_31_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_31_bad(void)
{
undefined4 auStack_60 [6];
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined4 *puStack_20;
undefined4 *puStack_18;
undefined4 *puStack_10;
puStack_20 = auStack_60;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
puStack_18 = puStack_20;
puStack_10 = puStack_20;
func_0x00400a80(puStack_20,&uStack_48,0x28);
printIntLine(*puStack_20);
return;
}
| ['gcc'] |
15,577 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_31_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62920/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_31.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_31_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_31_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,578 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_32_bad()
{
int * data;
int * *dataPtr1 = &data;
int * *dataPtr2 = &data;
data = NULL;
{
int * data = *dataPtr1;
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
*dataPtr1 = data;
}
{
int * data = *dataPtr2;
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memmove(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
}
} | ['/* FLAW: Allocate memory without using sizeof(int) */', '/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62921/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_32.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_32_bad |
/* WARNING: Heritage AFTER dead removal. Example location: s0xffffffffffffffd0 : 0x00400bf0 */
/* WARNING: Restarted to delay deadcode elimination for space: stack */
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_32_bad(void)
{
undefined4 auStack_70 [6];
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined4 *puStack_30;
undefined4 *puStack_28;
undefined4 *puStack_20;
undefined4 **ppuStack_18;
undefined4 **ppuStack_10;
ppuStack_10 = &puStack_30;
ppuStack_18 = &puStack_30;
puStack_30 = auStack_70;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
puStack_28 = puStack_30;
puStack_20 = puStack_30;
func_0x00400a80(puStack_30,&uStack_58,0x28);
printIntLine(*puStack_28);
return;
}
| ['gcc'] |
15,579 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_32_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62921/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_32.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_32_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_32_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,580 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_34_bad()
{
int * data;
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_34_unionType myUnion;
data = NULL;
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
myUnion.unionFirst = data;
{
int * data = myUnion.unionSecond;
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memmove(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
}
} | ['/* FLAW: Allocate memory without using sizeof(int) */', '/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62923/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_34.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_34_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_34_bad(void)
{
undefined4 auStack_60 [6];
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined4 *puStack_20;
undefined4 *puStack_18;
undefined4 *puStack_10;
puStack_20 = auStack_60;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
puStack_18 = puStack_20;
puStack_10 = puStack_20;
func_0x00400a80(puStack_20,&uStack_48,0x28);
printIntLine(*puStack_18);
return;
}
| ['gcc'] |
15,581 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_34_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62923/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_34.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_34_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_34_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,582 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_41_badSink(int * data)
{
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memmove(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62924/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_41_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_41_badSink(undefined4 *param_1)
{
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400a80(param_1,&uStack_38,0x28);
printIntLine(*param_1);
return;
}
| ['gcc'] |
15,583 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_41_bad()
{
int * data;
data = NULL;
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_41_badSink(data);
} | ['/* FLAW: Allocate memory without using sizeof(int) */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62924/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_41_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_41_bad
(undefined8 param_1,undefined8 param_2)
{
undefined auStack_30 [32];
undefined *puStack_10;
puStack_10 = auStack_30;
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_41_badSink(puStack_10,param_2,1);
return;
}
| ['gcc'] |
15,584 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_41_goodG2BSink(int * data)
{
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memmove(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62924/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_41_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_41_goodG2BSink(undefined4 *param_1)
{
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400a80(param_1,&uStack_38,0x28);
printIntLine(*param_1);
return;
}
| ['gcc'] |
15,585 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_41_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62924/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_41_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_41_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,586 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_42_bad()
{
int * data;
data = NULL;
data = badSource(data);
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memmove(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62925/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_42.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_42_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_42_bad(void)
{
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 *puStack_10;
puStack_10 = (undefined4 *)0x0;
puStack_10 = (undefined4 *)badSource(0);
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400a80(puStack_10,&uStack_38,0x28);
printIntLine(*puStack_10);
return;
}
| ['gcc'] |
15,587 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_42_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62925/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_42.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_42_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_42_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,588 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_51_bad()
{
int * data;
data = NULL;
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_51b_badSink(data);
} | ['/* FLAW: Allocate memory without using sizeof(int) */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62929/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_51a.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_51_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_51_bad
(undefined8 param_1,undefined8 param_2)
{
undefined auStack_30 [32];
undefined *puStack_10;
puStack_10 = auStack_30;
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_51b_badSink(puStack_10,param_2,1);
return;
}
| ['gcc'] |
15,589 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_51_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62929/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_51a.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_51_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_51_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,590 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_51b_badSink(int * data)
{
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memmove(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62929/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_51b.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_51b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_51b_badSink(undefined4 *param_1)
{
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400a80(param_1,&uStack_38,0x28);
printIntLine(*param_1);
return;
}
| ['gcc'] |
15,591 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_51b_goodG2BSink(int * data)
{
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memmove(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62929/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_51b.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_51b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_51b_goodG2BSink(undefined4 *param_1)
{
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400a80(param_1,&uStack_38,0x28);
printIntLine(*param_1);
return;
}
| ['gcc'] |
15,592 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52_bad()
{
int * data;
data = NULL;
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52b_badSink(data);
} | ['/* FLAW: Allocate memory without using sizeof(int) */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62930/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52a.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52_bad
(undefined8 param_1,undefined8 param_2)
{
undefined auStack_30 [32];
undefined *puStack_10;
puStack_10 = auStack_30;
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52b_badSink(puStack_10,param_2,1);
return;
}
| ['gcc'] |
15,593 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62930/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52a.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,594 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52b_badSink(int * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52c_badSink(data);
} | [] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62930/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52b.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52b_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52c_badSink(param_1);
return;
}
| ['gcc'] |
15,595 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52b_goodG2BSink(int * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62930/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52b.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52b_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
15,596 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52c_badSink(int * data)
{
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memmove(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62930/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52c.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52c_badSink(undefined4 *param_1)
{
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400a80(param_1,&uStack_38,0x28);
printIntLine(*param_1);
return;
}
| ['gcc'] |
15,597 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52c_goodG2BSink(int * data)
{
{
int source[10] = {0};
/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */
memmove(data, source, 10*sizeof(int));
printIntLine(data[0]);
}
} | ['/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62930/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52c.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_52c_goodG2BSink(undefined4 *param_1)
{
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400a80(param_1,&uStack_38,0x28);
printIntLine(*param_1);
return;
}
| ['gcc'] |
15,598 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53_bad()
{
int * data;
data = NULL;
/* FLAW: Allocate memory without using sizeof(int) */
data = (int *)ALLOCA(10);
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53b_badSink(data);
} | ['/* FLAW: Allocate memory without using sizeof(int) */'] | ['CWE121', 'CWE131'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62931/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53a.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53_bad
(undefined8 param_1,undefined8 param_2)
{
undefined auStack_30 [32];
undefined *puStack_10;
puStack_10 = auStack_30;
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53b_badSink(puStack_10,param_2,1);
return;
}
| ['gcc'] |
15,599 | void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62931/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53a.c | CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.