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 |
|---|---|---|---|---|---|---|---|---|
16,700 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53b_goodG2BSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63539/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53b_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
16,701 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53c_badSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53d_badSink(data);
} | [] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63539/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53c.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53c_badSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53d_badSink(param_1);
return;
}
| ['gcc'] |
16,702 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53c_goodG2BSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63539/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53c.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53c_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
16,703 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53d_badSink(wchar_t * data)
{
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63539/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53d.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53d_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53d_badSink
(undefined8 param_1)
{
long lVar1;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 uStack_10;
uStack_38 = 0x4100000041;
uStack_30 = 0x4100000041;
uStack_28 = 0x4100000041;
uStack_20 = 0x4100000041;
uStack_18 = 0x4100000041;
uStack_10 = 0;
lVar1 = func_0x00400a60(&uStack_38);
func_0x00400ab0(param_1,&uStack_38,(lVar1 + 1) * 4);
printWLine(param_1);
return;
}
| ['gcc'] |
16,704 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53d_goodG2BSink(wchar_t * data)
{
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63539/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53d.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53d_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53d_goodG2BSink
(undefined8 param_1)
{
long lVar1;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 uStack_10;
uStack_38 = 0x4100000041;
uStack_30 = 0x4100000041;
uStack_28 = 0x4100000041;
uStack_20 = 0x4100000041;
uStack_18 = 0x4100000041;
uStack_10 = 0;
lVar1 = func_0x00400a60(&uStack_38);
func_0x00400ab0(param_1,&uStack_38,(lVar1 + 1) * 4);
printWLine(param_1);
return;
}
| ['gcc'] |
16,705 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54_bad()
{
wchar_t * data;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54b_badSink(data);
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63540/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54_bad(void)
{
undefined auStack_90 [64];
undefined4 auStack_50 [12];
undefined4 *puStack_20;
undefined *puStack_18;
undefined4 *puStack_10;
puStack_20 = auStack_50;
puStack_18 = auStack_90;
auStack_50[0] = 0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54b_badSink(puStack_20,0x10,3);
return;
}
| ['gcc'] |
16,706 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63540/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,707 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54b_badSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54c_badSink(data);
} | [] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63540/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54b_badSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54c_badSink(param_1);
return;
}
| ['gcc'] |
16,708 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54b_goodG2BSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63540/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54b_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
16,709 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54c_badSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54d_badSink(data);
} | [] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63540/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54c.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54c_badSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54d_badSink(param_1);
return;
}
| ['gcc'] |
16,710 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54c_goodG2BSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63540/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54c.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54c_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
16,711 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54d_badSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54e_badSink(data);
} | [] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63540/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54d.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54d_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54d_badSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54e_badSink(param_1);
return;
}
| ['gcc'] |
16,712 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54d_goodG2BSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54e_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63540/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54d.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54d_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54d_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54e_goodG2BSink(param_1);
return;
}
| ['gcc'] |
16,713 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54e_badSink(wchar_t * data)
{
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63540/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54e.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54e_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54e_badSink
(undefined8 param_1)
{
long lVar1;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 uStack_10;
uStack_38 = 0x4100000041;
uStack_30 = 0x4100000041;
uStack_28 = 0x4100000041;
uStack_20 = 0x4100000041;
uStack_18 = 0x4100000041;
uStack_10 = 0;
lVar1 = func_0x00400a60(&uStack_38);
func_0x00400ab0(param_1,&uStack_38,(lVar1 + 1) * 4);
printWLine(param_1);
return;
}
| ['gcc'] |
16,714 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54e_goodG2BSink(wchar_t * data)
{
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63540/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54e.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54e_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_54e_goodG2BSink
(undefined8 param_1)
{
long lVar1;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 uStack_10;
uStack_38 = 0x4100000041;
uStack_30 = 0x4100000041;
uStack_28 = 0x4100000041;
uStack_20 = 0x4100000041;
uStack_18 = 0x4100000041;
uStack_10 = 0;
lVar1 = func_0x00400a60(&uStack_38);
func_0x00400ab0(param_1,&uStack_38,(lVar1 + 1) * 4);
printWLine(param_1);
return;
}
| ['gcc'] |
16,715 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_63_bad()
{
wchar_t * data;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_63b_badSink(&data);
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63541/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_63a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_63_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_63_bad(void)
{
undefined auStack_90 [64];
undefined4 auStack_50 [12];
undefined4 *puStack_20;
undefined *puStack_18;
undefined4 *puStack_10;
puStack_20 = auStack_50;
puStack_18 = auStack_90;
auStack_50[0] = 0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_63b_badSink(&puStack_20,0x10,3);
return;
}
| ['gcc'] |
16,716 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_63_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63541/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_63a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_63_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_63_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,717 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_63b_badSink(wchar_t * * dataPtr)
{
wchar_t * data = *dataPtr;
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63541/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_63b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_63b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_63b_badSink
(undefined8 *param_1)
{
long lVar1;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined4 uStack_20;
undefined8 uStack_10;
uStack_10 = *param_1;
uStack_48 = 0x4100000041;
uStack_40 = 0x4100000041;
uStack_38 = 0x4100000041;
uStack_30 = 0x4100000041;
uStack_28 = 0x4100000041;
uStack_20 = 0;
lVar1 = func_0x00400a60(&uStack_48);
func_0x00400ab0(uStack_10,&uStack_48,(lVar1 + 1) * 4);
printWLine(uStack_10);
return;
}
| ['gcc'] |
16,718 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_63b_goodG2BSink(wchar_t * * dataPtr)
{
wchar_t * data = *dataPtr;
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63541/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_63b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_63b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_63b_goodG2BSink
(undefined8 *param_1)
{
long lVar1;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined4 uStack_20;
undefined8 uStack_10;
uStack_10 = *param_1;
uStack_48 = 0x4100000041;
uStack_40 = 0x4100000041;
uStack_38 = 0x4100000041;
uStack_30 = 0x4100000041;
uStack_28 = 0x4100000041;
uStack_20 = 0;
lVar1 = func_0x00400a60(&uStack_48);
func_0x00400ab0(uStack_10,&uStack_48,(lVar1 + 1) * 4);
printWLine(uStack_10);
return;
}
| ['gcc'] |
16,719 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_64_bad()
{
wchar_t * data;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_64b_badSink(&data);
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63542/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_64a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_64_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_64_bad(void)
{
undefined auStack_90 [64];
undefined4 auStack_50 [12];
undefined4 *puStack_20;
undefined *puStack_18;
undefined4 *puStack_10;
puStack_20 = auStack_50;
puStack_18 = auStack_90;
auStack_50[0] = 0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_64b_badSink(&puStack_20,0x10,3);
return;
}
| ['gcc'] |
16,720 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_64_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63542/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_64a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_64_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_64_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,721 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_64b_badSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
wchar_t * * dataPtr = (wchar_t * *)dataVoidPtr;
/* dereference dataPtr into data */
wchar_t * data = (*dataPtr);
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63542/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_64b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_64b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_64b_badSink
(undefined8 *param_1)
{
long lVar1;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined4 uStack_20;
undefined8 uStack_18;
undefined8 *puStack_10;
uStack_18 = *param_1;
uStack_48 = 0x4100000041;
uStack_40 = 0x4100000041;
uStack_38 = 0x4100000041;
uStack_30 = 0x4100000041;
uStack_28 = 0x4100000041;
uStack_20 = 0;
puStack_10 = param_1;
lVar1 = func_0x00400a60(&uStack_48);
func_0x00400ab0(uStack_18,&uStack_48,(lVar1 + 1) * 4);
printWLine(uStack_18);
return;
}
| ['gcc'] |
16,722 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_64b_goodG2BSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
wchar_t * * dataPtr = (wchar_t * *)dataVoidPtr;
/* dereference dataPtr into data */
wchar_t * data = (*dataPtr);
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63542/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_64b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_64b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_64b_goodG2BSink
(undefined8 *param_1)
{
long lVar1;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined4 uStack_20;
undefined8 uStack_18;
undefined8 *puStack_10;
uStack_18 = *param_1;
uStack_48 = 0x4100000041;
uStack_40 = 0x4100000041;
uStack_38 = 0x4100000041;
uStack_30 = 0x4100000041;
uStack_28 = 0x4100000041;
uStack_20 = 0;
puStack_10 = param_1;
lVar1 = func_0x00400a60(&uStack_48);
func_0x00400ab0(uStack_18,&uStack_48,(lVar1 + 1) * 4);
printWLine(uStack_18);
return;
}
| ['gcc'] |
16,723 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_66_bad()
{
wchar_t * data;
wchar_t * dataArray[5];
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
/* put data in array */
dataArray[2] = data;
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_66b_badSink(dataArray);
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* put data in array */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63544/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_66a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_66_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_66_bad(void)
{
undefined auStack_b0 [64];
undefined4 auStack_70 [10];
undefined auStack_48 [16];
undefined4 *puStack_38;
undefined4 *puStack_20;
undefined *puStack_18;
undefined4 *puStack_10;
puStack_38 = auStack_70;
puStack_18 = auStack_b0;
auStack_70[0] = 0;
puStack_20 = puStack_38;
puStack_10 = puStack_38;
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_66b_badSink(auStack_48,0x10,3);
return;
}
| ['gcc'] |
16,724 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_66_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63544/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_66a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_66_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_66_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,725 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_66b_badSink(wchar_t * dataArray[])
{
/* copy data out of dataArray */
wchar_t * data = dataArray[2];
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* copy data out of dataArray */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63544/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_66b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_66b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_66b_badSink(long param_1)
{
long lVar1;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined4 uStack_20;
undefined8 uStack_10;
uStack_10 = *(undefined8 *)(param_1 + 0x10);
uStack_48 = 0x4100000041;
uStack_40 = 0x4100000041;
uStack_38 = 0x4100000041;
uStack_30 = 0x4100000041;
uStack_28 = 0x4100000041;
uStack_20 = 0;
lVar1 = func_0x00400a60(&uStack_48);
func_0x00400ab0(uStack_10,&uStack_48,(lVar1 + 1) * 4);
printWLine(uStack_10);
return;
}
| ['gcc'] |
16,726 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_66b_goodG2BSink(wchar_t * dataArray[])
{
wchar_t * data = dataArray[2];
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63544/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_66b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_66b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_66b_goodG2BSink(long param_1)
{
long lVar1;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined4 uStack_20;
undefined8 uStack_10;
uStack_10 = *(undefined8 *)(param_1 + 0x10);
uStack_48 = 0x4100000041;
uStack_40 = 0x4100000041;
uStack_38 = 0x4100000041;
uStack_30 = 0x4100000041;
uStack_28 = 0x4100000041;
uStack_20 = 0;
lVar1 = func_0x00400a60(&uStack_48);
func_0x00400ab0(uStack_10,&uStack_48,(lVar1 + 1) * 4);
printWLine(uStack_10);
return;
}
| ['gcc'] |
16,727 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_67_bad()
{
wchar_t * data;
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_67_structType myStruct;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
myStruct.structFirst = data;
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_67b_badSink(myStruct);
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63545/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_67a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_67_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_67_bad(void)
{
undefined auStack_90 [64];
undefined4 auStack_50 [10];
undefined4 *puStack_28;
undefined4 *puStack_20;
undefined *puStack_18;
undefined4 *puStack_10;
puStack_28 = auStack_50;
puStack_18 = auStack_90;
auStack_50[0] = 0;
puStack_20 = puStack_28;
puStack_10 = puStack_28;
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_67b_badSink(puStack_28,0x10,3);
return;
}
| ['gcc'] |
16,728 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_67_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63545/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_67a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_67_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_67_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,729 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_67b_badSink(CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_67_structType myStruct)
{
wchar_t * data = myStruct.structFirst;
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63545/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_67b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_67b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_67b_badSink
(undefined8 param_1)
{
long lVar1;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined4 uStack_20;
undefined8 uStack_10;
uStack_48 = 0x4100000041;
uStack_40 = 0x4100000041;
uStack_38 = 0x4100000041;
uStack_30 = 0x4100000041;
uStack_28 = 0x4100000041;
uStack_20 = 0;
uStack_10 = param_1;
lVar1 = func_0x00400a60(&uStack_48);
func_0x00400ab0(uStack_10,&uStack_48,(lVar1 + 1) * 4);
printWLine(uStack_10);
return;
}
| ['gcc'] |
16,730 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_67b_goodG2BSink(CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_67_structType myStruct)
{
wchar_t * data = myStruct.structFirst;
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63545/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_67b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_67b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_67b_goodG2BSink
(undefined8 param_1)
{
long lVar1;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined4 uStack_20;
undefined8 uStack_10;
uStack_48 = 0x4100000041;
uStack_40 = 0x4100000041;
uStack_38 = 0x4100000041;
uStack_30 = 0x4100000041;
uStack_28 = 0x4100000041;
uStack_20 = 0;
uStack_10 = param_1;
lVar1 = func_0x00400a60(&uStack_48);
func_0x00400ab0(uStack_10,&uStack_48,(lVar1 + 1) * 4);
printWLine(uStack_10);
return;
}
| ['gcc'] |
16,731 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_01_bad()
{
wchar_t * data;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63552/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_01.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_01_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_01_bad(void)
{
long lVar1;
undefined auStack_c0 [64];
undefined4 auStack_80 [10];
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined4 uStack_30;
undefined4 *puStack_20;
undefined *puStack_18;
undefined4 *puStack_10;
puStack_20 = auStack_80;
puStack_18 = auStack_c0;
auStack_80[0] = 0;
uStack_58 = 0x4100000041;
uStack_50 = 0x4100000041;
uStack_48 = 0x4100000041;
uStack_40 = 0x4100000041;
uStack_38 = 0x4100000041;
uStack_30 = 0;
puStack_10 = puStack_20;
lVar1 = func_0x00400a50(&uStack_58);
func_0x00400ad0(puStack_20,&uStack_58,(lVar1 + 1) * 4);
printWLine(puStack_20);
return;
}
| ['gcc'] |
16,732 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_01_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63552/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_01.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_01_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_01_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,733 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_02_bad()
{
wchar_t * data;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
if(1)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
}
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63553/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_02.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_02_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_02_bad(void)
{
long lVar1;
undefined auStack_c0 [64];
undefined4 auStack_80 [10];
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined4 uStack_30;
undefined4 *puStack_20;
undefined *puStack_18;
undefined4 *puStack_10;
puStack_20 = auStack_80;
puStack_18 = auStack_c0;
auStack_80[0] = 0;
uStack_58 = 0x4100000041;
uStack_50 = 0x4100000041;
uStack_48 = 0x4100000041;
uStack_40 = 0x4100000041;
uStack_38 = 0x4100000041;
uStack_30 = 0;
puStack_10 = puStack_20;
lVar1 = func_0x00400a50(&uStack_58);
func_0x00400ad0(puStack_20,&uStack_58,(lVar1 + 1) * 4);
printWLine(puStack_20);
return;
}
| ['gcc'] |
16,734 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_02_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63553/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_02.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_02_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_02_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
16,735 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_03_bad()
{
wchar_t * data;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
if(5==5)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
}
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63554/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_03.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_03_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_03_bad(void)
{
long lVar1;
undefined auStack_c0 [64];
undefined4 auStack_80 [10];
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined4 uStack_30;
undefined4 *puStack_20;
undefined *puStack_18;
undefined4 *puStack_10;
puStack_20 = auStack_80;
puStack_18 = auStack_c0;
auStack_80[0] = 0;
uStack_58 = 0x4100000041;
uStack_50 = 0x4100000041;
uStack_48 = 0x4100000041;
uStack_40 = 0x4100000041;
uStack_38 = 0x4100000041;
uStack_30 = 0;
puStack_10 = puStack_20;
lVar1 = func_0x00400a50(&uStack_58);
func_0x00400ad0(puStack_20,&uStack_58,(lVar1 + 1) * 4);
printWLine(puStack_20);
return;
}
| ['gcc'] |
16,736 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_03_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63554/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_03.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_03_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_03_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
16,737 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_04_bad()
{
wchar_t * data;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
if(STATIC_CONST_TRUE)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
}
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63555/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_04.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_04_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_04_bad(void)
{
long lVar1;
undefined auStack_c0 [64];
undefined4 auStack_80 [10];
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined4 uStack_30;
undefined *puStack_20;
undefined4 *puStack_18;
undefined4 *puStack_10;
puStack_18 = auStack_80;
puStack_20 = auStack_c0;
auStack_80[0] = 0;
uStack_58 = 0x4100000041;
uStack_50 = 0x4100000041;
uStack_48 = 0x4100000041;
uStack_40 = 0x4100000041;
uStack_38 = 0x4100000041;
uStack_30 = 0;
puStack_10 = puStack_18;
lVar1 = func_0x00400a50(&uStack_58);
func_0x00400ad0(puStack_10,&uStack_58,(lVar1 + 1) * 4);
printWLine(puStack_10);
return;
}
| ['gcc'] |
16,738 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_04_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63555/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_04.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_04_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_04_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
16,739 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_05_bad()
{
wchar_t * data;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
if(staticTrue)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
}
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63556/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_05.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_05_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_05_bad(void)
{
long lVar1;
undefined auStack_c0 [64];
undefined4 auStack_80 [10];
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined4 uStack_30;
undefined *puStack_20;
undefined4 *puStack_18;
undefined4 *puStack_10;
puStack_18 = auStack_80;
puStack_20 = auStack_c0;
if (staticTrue != 0) {
auStack_80[0] = 0;
puStack_10 = puStack_18;
}
uStack_58 = 0x4100000041;
uStack_50 = 0x4100000041;
uStack_48 = 0x4100000041;
uStack_40 = 0x4100000041;
uStack_38 = 0x4100000041;
uStack_30 = 0;
lVar1 = func_0x00400a50(&uStack_58);
func_0x00400ad0(puStack_10,&uStack_58,(lVar1 + 1) * 4);
printWLine(puStack_10);
return;
}
| ['gcc'] |
16,740 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_05_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63556/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_05.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_05_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_05_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
16,741 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_06_bad()
{
wchar_t * data;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
if(STATIC_CONST_FIVE==5)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
}
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63557/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_06.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_06_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_06_bad(void)
{
long lVar1;
undefined auStack_c0 [64];
undefined4 auStack_80 [10];
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined4 uStack_30;
undefined *puStack_20;
undefined4 *puStack_18;
undefined4 *puStack_10;
puStack_18 = auStack_80;
puStack_20 = auStack_c0;
auStack_80[0] = 0;
uStack_58 = 0x4100000041;
uStack_50 = 0x4100000041;
uStack_48 = 0x4100000041;
uStack_40 = 0x4100000041;
uStack_38 = 0x4100000041;
uStack_30 = 0;
puStack_10 = puStack_18;
lVar1 = func_0x00400a50(&uStack_58);
func_0x00400ad0(puStack_10,&uStack_58,(lVar1 + 1) * 4);
printWLine(puStack_10);
return;
}
| ['gcc'] |
16,742 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_06_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63557/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_06.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_06_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_06_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
16,743 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_07_bad()
{
wchar_t * data;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
if(staticFive==5)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
}
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63558/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_07.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_07_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_07_bad(void)
{
long lVar1;
undefined auStack_c0 [64];
undefined4 auStack_80 [10];
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined4 uStack_30;
undefined *puStack_20;
undefined4 *puStack_18;
undefined4 *puStack_10;
puStack_18 = auStack_80;
puStack_20 = auStack_c0;
if (staticFive == 5) {
auStack_80[0] = 0;
puStack_10 = puStack_18;
}
uStack_58 = 0x4100000041;
uStack_50 = 0x4100000041;
uStack_48 = 0x4100000041;
uStack_40 = 0x4100000041;
uStack_38 = 0x4100000041;
uStack_30 = 0;
lVar1 = func_0x00400a50(&uStack_58);
func_0x00400ad0(puStack_10,&uStack_58,(lVar1 + 1) * 4);
printWLine(puStack_10);
return;
}
| ['gcc'] |
16,744 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_07_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63558/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_07.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_07_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_07_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
16,745 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_08_bad()
{
wchar_t * data;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
if(staticReturnsTrue())
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
}
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63559/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_08.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_08_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_08_bad(undefined8 param_1)
{
int iVar1;
long lVar2;
undefined auStack_c0 [64];
undefined4 auStack_80 [10];
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined4 uStack_30;
undefined *puStack_20;
undefined4 *puStack_18;
undefined4 *puStack_10;
puStack_18 = auStack_80;
puStack_20 = auStack_c0;
iVar1 = staticReturnsTrue(param_1,0x10,3);
if (iVar1 != 0) {
puStack_10 = puStack_18;
*puStack_18 = 0;
}
uStack_58 = 0x4100000041;
uStack_50 = 0x4100000041;
uStack_48 = 0x4100000041;
uStack_40 = 0x4100000041;
uStack_38 = 0x4100000041;
uStack_30 = 0;
lVar2 = func_0x00400a50(&uStack_58);
func_0x00400ad0(puStack_10,&uStack_58,(lVar2 + 1) * 4);
printWLine(puStack_10);
return;
}
| ['gcc'] |
16,746 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_08_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63559/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_08.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_08_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_08_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
16,747 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_09_bad()
{
wchar_t * data;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
if(GLOBAL_CONST_TRUE)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
}
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63560/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_09.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_09_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_09_bad(void)
{
long lVar1;
undefined auStack_c0 [64];
undefined4 auStack_80 [10];
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined4 uStack_30;
undefined *puStack_20;
undefined4 *puStack_18;
undefined4 *puStack_10;
puStack_18 = auStack_80;
puStack_20 = auStack_c0;
if (GLOBAL_CONST_TRUE != 0) {
auStack_80[0] = 0;
puStack_10 = puStack_18;
}
uStack_58 = 0x4100000041;
uStack_50 = 0x4100000041;
uStack_48 = 0x4100000041;
uStack_40 = 0x4100000041;
uStack_38 = 0x4100000041;
uStack_30 = 0;
lVar1 = func_0x00400a50(&uStack_58);
func_0x00400ad0(puStack_10,&uStack_58,(lVar1 + 1) * 4);
printWLine(puStack_10);
return;
}
| ['gcc'] |
16,748 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_09_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63560/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_09.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_09_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_09_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
16,749 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_10_bad()
{
wchar_t * data;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
if(globalTrue)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
}
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63561/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_10.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_10_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_10_bad(void)
{
long lVar1;
undefined auStack_c0 [64];
undefined4 auStack_80 [10];
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined4 uStack_30;
undefined *puStack_20;
undefined4 *puStack_18;
undefined4 *puStack_10;
puStack_18 = auStack_80;
puStack_20 = auStack_c0;
if (globalTrue != 0) {
auStack_80[0] = 0;
puStack_10 = puStack_18;
}
uStack_58 = 0x4100000041;
uStack_50 = 0x4100000041;
uStack_48 = 0x4100000041;
uStack_40 = 0x4100000041;
uStack_38 = 0x4100000041;
uStack_30 = 0;
lVar1 = func_0x00400a50(&uStack_58);
func_0x00400ad0(puStack_10,&uStack_58,(lVar1 + 1) * 4);
printWLine(puStack_10);
return;
}
| ['gcc'] |
16,750 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_10_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63561/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_10.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_10_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_10_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
16,751 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_11_bad()
{
wchar_t * data;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
if(globalReturnsTrue())
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
}
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63562/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_11.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_11_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_11_bad(undefined8 param_1)
{
int iVar1;
long lVar2;
undefined auStack_c0 [64];
undefined4 auStack_80 [10];
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined4 uStack_30;
undefined *puStack_20;
undefined4 *puStack_18;
undefined4 *puStack_10;
puStack_18 = auStack_80;
puStack_20 = auStack_c0;
iVar1 = globalReturnsTrue(param_1,0x10,3);
if (iVar1 != 0) {
puStack_10 = puStack_18;
*puStack_18 = 0;
}
uStack_58 = 0x4100000041;
uStack_50 = 0x4100000041;
uStack_48 = 0x4100000041;
uStack_40 = 0x4100000041;
uStack_38 = 0x4100000041;
uStack_30 = 0;
lVar2 = func_0x00400a50(&uStack_58);
func_0x00400ad0(puStack_10,&uStack_58,(lVar2 + 1) * 4);
printWLine(puStack_10);
return;
}
| ['gcc'] |
16,752 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_11_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63562/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_11.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_11_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_11_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
16,753 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_12_bad()
{
wchar_t * data;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
if(globalReturnsTrueOrFalse())
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
}
else
{
/* FIX: Set a pointer to a buffer that leaves room for a NULL terminator when performing
* string copies in the sinks */
data = dataGoodBuffer;
data[0] = L'\0'; /* null terminate */
}
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* FIX: Set a pointer to a buffer that leaves room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63563/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_12.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_12_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_12_bad(undefined8 param_1)
{
int iVar1;
long lVar2;
undefined4 auStack_c0 [16];
undefined4 auStack_80 [10];
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined4 uStack_30;
undefined4 *puStack_20;
undefined4 *puStack_18;
undefined4 *puStack_10;
puStack_18 = auStack_80;
puStack_20 = auStack_c0;
iVar1 = globalReturnsTrueOrFalse(param_1,0x10,3);
if (iVar1 == 0) {
puStack_10 = puStack_20;
*puStack_20 = 0;
}
else {
puStack_10 = puStack_18;
*puStack_18 = 0;
}
uStack_58 = 0x4100000041;
uStack_50 = 0x4100000041;
uStack_48 = 0x4100000041;
uStack_40 = 0x4100000041;
uStack_38 = 0x4100000041;
uStack_30 = 0;
lVar2 = func_0x00400a50(&uStack_58);
func_0x00400ad0(puStack_10,&uStack_58,(lVar2 + 1) * 4);
printWLine(puStack_10);
return;
}
| ['gcc'] |
16,754 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_12_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63563/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_12.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_12_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_12_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,755 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_13_bad()
{
wchar_t * data;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
if(GLOBAL_CONST_FIVE==5)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
}
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63564/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_13.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_13_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_13_bad(void)
{
long lVar1;
undefined auStack_c0 [64];
undefined4 auStack_80 [10];
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined4 uStack_30;
undefined *puStack_20;
undefined4 *puStack_18;
undefined4 *puStack_10;
puStack_18 = auStack_80;
puStack_20 = auStack_c0;
if (GLOBAL_CONST_FIVE == 5) {
auStack_80[0] = 0;
puStack_10 = puStack_18;
}
uStack_58 = 0x4100000041;
uStack_50 = 0x4100000041;
uStack_48 = 0x4100000041;
uStack_40 = 0x4100000041;
uStack_38 = 0x4100000041;
uStack_30 = 0;
lVar1 = func_0x00400a50(&uStack_58);
func_0x00400ad0(puStack_10,&uStack_58,(lVar1 + 1) * 4);
printWLine(puStack_10);
return;
}
| ['gcc'] |
16,756 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_13_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63564/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_13.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_13_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_13_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
16,757 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_14_bad()
{
wchar_t * data;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
if(globalFive==5)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
}
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63565/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_14.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_14_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_14_bad(void)
{
long lVar1;
undefined auStack_c0 [64];
undefined4 auStack_80 [10];
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined4 uStack_30;
undefined *puStack_20;
undefined4 *puStack_18;
undefined4 *puStack_10;
puStack_18 = auStack_80;
puStack_20 = auStack_c0;
if (globalFive == 5) {
auStack_80[0] = 0;
puStack_10 = puStack_18;
}
uStack_58 = 0x4100000041;
uStack_50 = 0x4100000041;
uStack_48 = 0x4100000041;
uStack_40 = 0x4100000041;
uStack_38 = 0x4100000041;
uStack_30 = 0;
lVar1 = func_0x00400a50(&uStack_58);
func_0x00400ad0(puStack_10,&uStack_58,(lVar1 + 1) * 4);
printWLine(puStack_10);
return;
}
| ['gcc'] |
16,758 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_14_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63565/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_14.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_14_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_14_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
16,759 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_15_bad()
{
wchar_t * data;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
switch(6)
{
case 6:
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
break;
default:
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
break;
}
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63566/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_15.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_15_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_15_bad(void)
{
long lVar1;
undefined auStack_c0 [64];
undefined4 auStack_80 [10];
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined4 uStack_30;
undefined4 *puStack_20;
undefined *puStack_18;
undefined4 *puStack_10;
puStack_20 = auStack_80;
puStack_18 = auStack_c0;
auStack_80[0] = 0;
uStack_58 = 0x4100000041;
uStack_50 = 0x4100000041;
uStack_48 = 0x4100000041;
uStack_40 = 0x4100000041;
uStack_38 = 0x4100000041;
uStack_30 = 0;
puStack_10 = puStack_20;
lVar1 = func_0x00400a50(&uStack_58);
func_0x00400ad0(puStack_20,&uStack_58,(lVar1 + 1) * 4);
printWLine(puStack_20);
return;
}
| ['gcc'] |
16,760 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_15_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63566/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_15.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_15_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_15_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
16,761 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_16_bad()
{
wchar_t * data;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
while(1)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
break;
}
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63567/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_16.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_16_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_16_bad(void)
{
long lVar1;
undefined auStack_c0 [64];
undefined4 auStack_80 [10];
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined4 uStack_30;
undefined4 *puStack_20;
undefined *puStack_18;
undefined4 *puStack_10;
puStack_20 = auStack_80;
puStack_18 = auStack_c0;
auStack_80[0] = 0;
uStack_58 = 0x4100000041;
uStack_50 = 0x4100000041;
uStack_48 = 0x4100000041;
uStack_40 = 0x4100000041;
uStack_38 = 0x4100000041;
uStack_30 = 0;
puStack_10 = puStack_20;
lVar1 = func_0x00400a50(&uStack_58);
func_0x00400ad0(puStack_20,&uStack_58,(lVar1 + 1) * 4);
printWLine(puStack_20);
return;
}
| ['gcc'] |
16,762 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_16_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63567/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_16.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_16_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_16_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,763 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_17_bad()
{
int i;
wchar_t * data;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
for(i = 0; i < 1; i++)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
}
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63568/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_17.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_17_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_17_bad(void)
{
long lVar1;
undefined auStack_c0 [64];
undefined4 auStack_80 [10];
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined4 uStack_30;
undefined *puStack_28;
undefined4 *puStack_20;
undefined4 *puStack_18;
int iStack_c;
puStack_20 = auStack_80;
puStack_28 = auStack_c0;
for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) {
puStack_18 = puStack_20;
*puStack_20 = 0;
}
uStack_58 = 0x4100000041;
uStack_50 = 0x4100000041;
uStack_48 = 0x4100000041;
uStack_40 = 0x4100000041;
uStack_38 = 0x4100000041;
uStack_30 = 0;
lVar1 = func_0x00400a50(&uStack_58);
func_0x00400ad0(puStack_18,&uStack_58,(lVar1 + 1) * 4);
printWLine(puStack_18);
return;
}
| ['gcc'] |
16,764 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_17_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63568/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_17.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_17_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_17_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,765 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_18_bad()
{
wchar_t * data;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
goto source;
source:
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63569/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_18.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_18_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_18_bad(void)
{
long lVar1;
undefined auStack_c0 [64];
undefined4 auStack_80 [10];
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined4 uStack_30;
undefined4 *puStack_20;
undefined *puStack_18;
undefined4 *puStack_10;
puStack_20 = auStack_80;
puStack_18 = auStack_c0;
auStack_80[0] = 0;
uStack_58 = 0x4100000041;
uStack_50 = 0x4100000041;
uStack_48 = 0x4100000041;
uStack_40 = 0x4100000041;
uStack_38 = 0x4100000041;
uStack_30 = 0;
puStack_10 = puStack_20;
lVar1 = func_0x00400a50(&uStack_58);
func_0x00400ad0(puStack_20,&uStack_58,(lVar1 + 1) * 4);
printWLine(puStack_20);
return;
}
| ['gcc'] |
16,766 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_18_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63569/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_18.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_18_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_18_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,767 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_31_bad()
{
wchar_t * data;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
{
wchar_t * dataCopy = data;
wchar_t * data = dataCopy;
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63570/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_31.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_31_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_31_bad(void)
{
long lVar1;
undefined auStack_d0 [64];
undefined4 auStack_90 [10];
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined4 uStack_40;
undefined4 *puStack_30;
undefined4 *puStack_28;
undefined4 *puStack_20;
undefined *puStack_18;
undefined4 *puStack_10;
puStack_30 = auStack_90;
puStack_18 = auStack_d0;
auStack_90[0] = 0;
uStack_68 = 0x4100000041;
uStack_60 = 0x4100000041;
uStack_58 = 0x4100000041;
uStack_50 = 0x4100000041;
uStack_48 = 0x4100000041;
uStack_40 = 0;
puStack_28 = puStack_30;
puStack_20 = puStack_30;
puStack_10 = puStack_30;
lVar1 = func_0x00400a50(&uStack_68);
func_0x00400ad0(puStack_30,&uStack_68,(lVar1 + 1) * 4);
printWLine(puStack_30);
return;
}
| ['gcc'] |
16,768 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_31_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63570/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_31.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_31_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_31_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,769 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_32_bad()
{
wchar_t * data;
wchar_t * *dataPtr1 = &data;
wchar_t * *dataPtr2 = &data;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
{
wchar_t * data = *dataPtr1;
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
*dataPtr1 = data;
}
{
wchar_t * data = *dataPtr2;
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63571/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_32.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_32_bad |
/* WARNING: Heritage AFTER dead removal. Example location: s0xffffffffffffffc0 : 0x00400c7e */
/* WARNING: Restarted to delay deadcode elimination for space: stack */
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_32_bad(void)
{
long lVar1;
undefined auStack_e0 [64];
undefined4 auStack_a0 [10];
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined4 uStack_50;
undefined8 uStack_40;
undefined8 uStack_38;
undefined4 *puStack_30;
undefined *puStack_28;
undefined4 *puStack_20;
undefined8 *puStack_18;
undefined8 *puStack_10;
puStack_10 = &uStack_40;
puStack_18 = &uStack_40;
puStack_30 = auStack_a0;
puStack_28 = auStack_e0;
auStack_a0[0] = 0;
uStack_38 = uStack_40;
uStack_78 = 0x4100000041;
uStack_70 = 0x4100000041;
uStack_68 = 0x4100000041;
uStack_60 = 0x4100000041;
uStack_58 = 0x4100000041;
uStack_50 = 0;
puStack_20 = puStack_30;
lVar1 = func_0x00400a50(&uStack_78);
func_0x00400ad0(uStack_38,&uStack_78,(lVar1 + 1) * 4);
printWLine(uStack_38);
return;
}
| ['gcc'] |
16,770 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_32_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63571/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_32.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_32_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_32_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,771 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_34_bad()
{
wchar_t * data;
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_34_unionType myUnion;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
myUnion.unionFirst = data;
{
wchar_t * data = myUnion.unionSecond;
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63573/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_34.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_34_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_34_bad(void)
{
long lVar1;
undefined auStack_d0 [64];
undefined4 auStack_90 [10];
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined4 uStack_40;
undefined4 *puStack_30;
undefined4 *puStack_28;
undefined4 *puStack_20;
undefined *puStack_18;
undefined4 *puStack_10;
puStack_30 = auStack_90;
puStack_18 = auStack_d0;
auStack_90[0] = 0;
uStack_68 = 0x4100000041;
uStack_60 = 0x4100000041;
uStack_58 = 0x4100000041;
uStack_50 = 0x4100000041;
uStack_48 = 0x4100000041;
uStack_40 = 0;
puStack_28 = puStack_30;
puStack_20 = puStack_30;
puStack_10 = puStack_30;
lVar1 = func_0x00400a50(&uStack_68);
func_0x00400ad0(puStack_28,&uStack_68,(lVar1 + 1) * 4);
printWLine(puStack_28);
return;
}
| ['gcc'] |
16,772 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_34_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63573/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_34.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_34_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_34_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,773 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_41_badSink(wchar_t * data)
{
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63574/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_41_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_41_badSink
(undefined8 param_1)
{
long lVar1;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 uStack_10;
uStack_38 = 0x4100000041;
uStack_30 = 0x4100000041;
uStack_28 = 0x4100000041;
uStack_20 = 0x4100000041;
uStack_18 = 0x4100000041;
uStack_10 = 0;
lVar1 = func_0x00400a50(&uStack_38);
func_0x00400ad0(param_1,&uStack_38,(lVar1 + 1) * 4);
printWLine(param_1);
return;
}
| ['gcc'] |
16,774 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_41_bad()
{
wchar_t * data;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_41_badSink(data);
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63574/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_41_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_41_bad(void)
{
undefined auStack_90 [64];
undefined4 auStack_50 [12];
undefined4 *puStack_20;
undefined *puStack_18;
undefined4 *puStack_10;
puStack_20 = auStack_50;
puStack_18 = auStack_90;
auStack_50[0] = 0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_41_badSink(puStack_20,0x10,3);
return;
}
| ['gcc'] |
16,775 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_41_goodG2BSink(wchar_t * data)
{
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63574/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_41_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_41_goodG2BSink
(undefined8 param_1)
{
long lVar1;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 uStack_10;
uStack_38 = 0x4100000041;
uStack_30 = 0x4100000041;
uStack_28 = 0x4100000041;
uStack_20 = 0x4100000041;
uStack_18 = 0x4100000041;
uStack_10 = 0;
lVar1 = func_0x00400a50(&uStack_38);
func_0x00400ad0(param_1,&uStack_38,(lVar1 + 1) * 4);
printWLine(param_1);
return;
}
| ['gcc'] |
16,776 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_41_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63574/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_41_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_41_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,777 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_51_bad()
{
wchar_t * data;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_51b_badSink(data);
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63577/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_51a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_51_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_51_bad(void)
{
undefined auStack_90 [64];
undefined4 auStack_50 [12];
undefined4 *puStack_20;
undefined *puStack_18;
undefined4 *puStack_10;
puStack_20 = auStack_50;
puStack_18 = auStack_90;
auStack_50[0] = 0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_51b_badSink(puStack_20,0x10,3);
return;
}
| ['gcc'] |
16,778 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_51_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63577/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_51a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_51_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_51_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,779 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_51b_badSink(wchar_t * data)
{
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63577/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_51b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_51b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_51b_badSink
(undefined8 param_1)
{
long lVar1;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 uStack_10;
uStack_38 = 0x4100000041;
uStack_30 = 0x4100000041;
uStack_28 = 0x4100000041;
uStack_20 = 0x4100000041;
uStack_18 = 0x4100000041;
uStack_10 = 0;
lVar1 = func_0x00400a50(&uStack_38);
func_0x00400ad0(param_1,&uStack_38,(lVar1 + 1) * 4);
printWLine(param_1);
return;
}
| ['gcc'] |
16,780 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_51b_goodG2BSink(wchar_t * data)
{
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63577/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_51b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_51b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_51b_goodG2BSink
(undefined8 param_1)
{
long lVar1;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 uStack_10;
uStack_38 = 0x4100000041;
uStack_30 = 0x4100000041;
uStack_28 = 0x4100000041;
uStack_20 = 0x4100000041;
uStack_18 = 0x4100000041;
uStack_10 = 0;
lVar1 = func_0x00400a50(&uStack_38);
func_0x00400ad0(param_1,&uStack_38,(lVar1 + 1) * 4);
printWLine(param_1);
return;
}
| ['gcc'] |
16,781 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52_bad()
{
wchar_t * data;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52b_badSink(data);
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63578/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52_bad(void)
{
undefined auStack_90 [64];
undefined4 auStack_50 [12];
undefined4 *puStack_20;
undefined *puStack_18;
undefined4 *puStack_10;
puStack_20 = auStack_50;
puStack_18 = auStack_90;
auStack_50[0] = 0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52b_badSink(puStack_20,0x10,3);
return;
}
| ['gcc'] |
16,782 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63578/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,783 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52b_badSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52c_badSink(data);
} | [] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63578/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52b_badSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52c_badSink(param_1);
return;
}
| ['gcc'] |
16,784 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52b_goodG2BSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63578/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52b_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
16,785 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52c_badSink(wchar_t * data)
{
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63578/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52c.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52c_badSink
(undefined8 param_1)
{
long lVar1;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 uStack_10;
uStack_38 = 0x4100000041;
uStack_30 = 0x4100000041;
uStack_28 = 0x4100000041;
uStack_20 = 0x4100000041;
uStack_18 = 0x4100000041;
uStack_10 = 0;
lVar1 = func_0x00400a50(&uStack_38);
func_0x00400ad0(param_1,&uStack_38,(lVar1 + 1) * 4);
printWLine(param_1);
return;
}
| ['gcc'] |
16,786 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52c_goodG2BSink(wchar_t * data)
{
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63578/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52c.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_52c_goodG2BSink
(undefined8 param_1)
{
long lVar1;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 uStack_10;
uStack_38 = 0x4100000041;
uStack_30 = 0x4100000041;
uStack_28 = 0x4100000041;
uStack_20 = 0x4100000041;
uStack_18 = 0x4100000041;
uStack_10 = 0;
lVar1 = func_0x00400a50(&uStack_38);
func_0x00400ad0(param_1,&uStack_38,(lVar1 + 1) * 4);
printWLine(param_1);
return;
}
| ['gcc'] |
16,787 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53_bad()
{
wchar_t * data;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53b_badSink(data);
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63579/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53_bad(void)
{
undefined auStack_90 [64];
undefined4 auStack_50 [12];
undefined4 *puStack_20;
undefined *puStack_18;
undefined4 *puStack_10;
puStack_20 = auStack_50;
puStack_18 = auStack_90;
auStack_50[0] = 0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53b_badSink(puStack_20,0x10,3);
return;
}
| ['gcc'] |
16,788 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63579/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,789 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53b_badSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53c_badSink(data);
} | [] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63579/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53b_badSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53c_badSink(param_1);
return;
}
| ['gcc'] |
16,790 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53b_goodG2BSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63579/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53b_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
16,791 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53c_badSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53d_badSink(data);
} | [] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63579/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53c.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53c_badSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53d_badSink(param_1);
return;
}
| ['gcc'] |
16,792 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53c_goodG2BSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63579/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53c.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53c_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
16,793 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53d_badSink(wchar_t * data)
{
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63579/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53d.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53d_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53d_badSink
(undefined8 param_1)
{
long lVar1;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 uStack_10;
uStack_38 = 0x4100000041;
uStack_30 = 0x4100000041;
uStack_28 = 0x4100000041;
uStack_20 = 0x4100000041;
uStack_18 = 0x4100000041;
uStack_10 = 0;
lVar1 = func_0x00400a50(&uStack_38);
func_0x00400ad0(param_1,&uStack_38,(lVar1 + 1) * 4);
printWLine(param_1);
return;
}
| ['gcc'] |
16,794 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53d_goodG2BSink(wchar_t * data)
{
{
wchar_t source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t));
printWLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63579/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53d.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53d_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_53d_goodG2BSink
(undefined8 param_1)
{
long lVar1;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined8 uStack_18;
undefined4 uStack_10;
uStack_38 = 0x4100000041;
uStack_30 = 0x4100000041;
uStack_28 = 0x4100000041;
uStack_20 = 0x4100000041;
uStack_18 = 0x4100000041;
uStack_10 = 0;
lVar1 = func_0x00400a50(&uStack_38);
func_0x00400ad0(param_1,&uStack_38,(lVar1 + 1) * 4);
printWLine(param_1);
return;
}
| ['gcc'] |
16,795 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54_bad()
{
wchar_t * data;
wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t));
wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = L'\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54b_badSink(data);
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63580/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54_bad(void)
{
undefined auStack_90 [64];
undefined4 auStack_50 [12];
undefined4 *puStack_20;
undefined *puStack_18;
undefined4 *puStack_10;
puStack_20 = auStack_50;
puStack_18 = auStack_90;
auStack_50[0] = 0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54b_badSink(puStack_20,0x10,3);
return;
}
| ['gcc'] |
16,796 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63580/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,797 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54b_badSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54c_badSink(data);
} | [] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63580/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54b_badSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54c_badSink(param_1);
return;
}
| ['gcc'] |
16,798 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54b_goodG2BSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63580/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54b_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
16,799 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54c_badSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54d_badSink(data);
} | [] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63580/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54c.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54c_badSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54d_badSink(param_1);
return;
}
| ['gcc'] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.