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 |
|---|---|---|---|---|---|---|---|---|
17,200 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_11_bad()
{
wchar_t * data;
wchar_t dataBadBuffer[10];
wchar_t dataGoodBuffer[10+1];
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 */
wcsncpy(data, source, wcslen(source) + 1);
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/63802/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_11.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_11_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_11_bad(void)
{
int iVar1;
long lVar2;
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined4 uStack_70;
undefined4 auStack_38 [10];
undefined4 *puStack_10;
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
puStack_10 = auStack_38;
auStack_38[0] = 0;
}
uStack_98 = 0x4100000041;
uStack_90 = 0x4100000041;
uStack_88 = 0x4100000041;
uStack_80 = 0x4100000041;
uStack_78 = 0x4100000041;
uStack_70 = 0;
lVar2 = func_0x00400a50(&uStack_98);
func_0x00400a80(puStack_10,&uStack_98,lVar2 + 1);
printWLine(puStack_10);
return;
}
| ['gcc'] |
17,201 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_11_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63802/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_11.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_11_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_11_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,202 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_12_bad()
{
wchar_t * data;
wchar_t dataBadBuffer[10];
wchar_t dataGoodBuffer[10+1];
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 */
wcsncpy(data, source, wcslen(source) + 1);
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/63803/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_12.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_12_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_12_bad(void)
{
int iVar1;
long lVar2;
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined4 uStack_70;
undefined4 auStack_68 [12];
undefined4 auStack_38 [10];
undefined4 *puStack_10;
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
puStack_10 = auStack_68;
auStack_68[0] = 0;
}
else {
puStack_10 = auStack_38;
auStack_38[0] = 0;
}
uStack_98 = 0x4100000041;
uStack_90 = 0x4100000041;
uStack_88 = 0x4100000041;
uStack_80 = 0x4100000041;
uStack_78 = 0x4100000041;
uStack_70 = 0;
lVar2 = func_0x00400a50(&uStack_98);
func_0x00400a80(puStack_10,&uStack_98,lVar2 + 1);
printWLine(puStack_10);
return;
}
| ['gcc'] |
17,203 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_12_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63803/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_12.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_12_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_12_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,204 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_13_bad()
{
wchar_t * data;
wchar_t dataBadBuffer[10];
wchar_t dataGoodBuffer[10+1];
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 */
wcsncpy(data, source, wcslen(source) + 1);
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/63804/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_13.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_13_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_13_bad(void)
{
long lVar1;
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined4 uStack_70;
undefined4 auStack_38 [10];
undefined4 *puStack_10;
if (GLOBAL_CONST_FIVE == 5) {
puStack_10 = auStack_38;
auStack_38[0] = 0;
}
uStack_98 = 0x4100000041;
uStack_90 = 0x4100000041;
uStack_88 = 0x4100000041;
uStack_80 = 0x4100000041;
uStack_78 = 0x4100000041;
uStack_70 = 0;
lVar1 = func_0x00400a50(&uStack_98);
func_0x00400a80(puStack_10,&uStack_98,lVar1 + 1);
printWLine(puStack_10);
return;
}
| ['gcc'] |
17,205 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_13_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63804/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_13.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_13_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_13_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,206 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_14_bad()
{
wchar_t * data;
wchar_t dataBadBuffer[10];
wchar_t dataGoodBuffer[10+1];
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 */
wcsncpy(data, source, wcslen(source) + 1);
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/63805/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_14.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_14_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_14_bad(void)
{
long lVar1;
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined4 uStack_70;
undefined4 auStack_38 [10];
undefined4 *puStack_10;
if (globalFive == 5) {
puStack_10 = auStack_38;
auStack_38[0] = 0;
}
uStack_98 = 0x4100000041;
uStack_90 = 0x4100000041;
uStack_88 = 0x4100000041;
uStack_80 = 0x4100000041;
uStack_78 = 0x4100000041;
uStack_70 = 0;
lVar1 = func_0x00400a50(&uStack_98);
func_0x00400a80(puStack_10,&uStack_98,lVar1 + 1);
printWLine(puStack_10);
return;
}
| ['gcc'] |
17,207 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_14_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63805/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_14.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_14_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_14_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,208 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_15_bad()
{
wchar_t * data;
wchar_t dataBadBuffer[10];
wchar_t dataGoodBuffer[10+1];
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 */
wcsncpy(data, source, wcslen(source) + 1);
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/63806/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_15.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_15_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_15_bad(void)
{
long lVar1;
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined4 uStack_70;
undefined4 auStack_38 [10];
undefined4 *puStack_10;
puStack_10 = auStack_38;
auStack_38[0] = 0;
uStack_98 = 0x4100000041;
uStack_90 = 0x4100000041;
uStack_88 = 0x4100000041;
uStack_80 = 0x4100000041;
uStack_78 = 0x4100000041;
uStack_70 = 0;
lVar1 = func_0x00400a50(&uStack_98);
func_0x00400a80(puStack_10,&uStack_98,lVar1 + 1);
printWLine(puStack_10);
return;
}
| ['gcc'] |
17,209 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_15_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63806/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_15.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_15_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_15_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,210 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_16_bad()
{
wchar_t * data;
wchar_t dataBadBuffer[10];
wchar_t dataGoodBuffer[10+1];
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 */
wcsncpy(data, source, wcslen(source) + 1);
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/63807/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_16.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_16_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_16_bad(void)
{
long lVar1;
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined4 uStack_70;
undefined4 auStack_38 [10];
undefined4 *puStack_10;
puStack_10 = auStack_38;
auStack_38[0] = 0;
uStack_98 = 0x4100000041;
uStack_90 = 0x4100000041;
uStack_88 = 0x4100000041;
uStack_80 = 0x4100000041;
uStack_78 = 0x4100000041;
uStack_70 = 0;
lVar1 = func_0x00400a50(&uStack_98);
func_0x00400a80(puStack_10,&uStack_98,lVar1 + 1);
printWLine(puStack_10);
return;
}
| ['gcc'] |
17,211 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_16_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63807/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_16.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_16_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_16_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,212 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_17_bad()
{
int i;
wchar_t * data;
wchar_t dataBadBuffer[10];
wchar_t dataGoodBuffer[10+1];
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 */
wcsncpy(data, source, wcslen(source) + 1);
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/63808/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_17.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_17_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_17_bad(void)
{
long lVar1;
undefined8 uStack_a8;
undefined8 uStack_a0;
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined4 uStack_80;
undefined4 auStack_48 [12];
undefined4 *puStack_18;
int iStack_c;
for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) {
puStack_18 = auStack_48;
auStack_48[0] = 0;
}
uStack_a8 = 0x4100000041;
uStack_a0 = 0x4100000041;
uStack_98 = 0x4100000041;
uStack_90 = 0x4100000041;
uStack_88 = 0x4100000041;
uStack_80 = 0;
lVar1 = func_0x00400a50(&uStack_a8);
func_0x00400a80(puStack_18,&uStack_a8,lVar1 + 1);
printWLine(puStack_18);
return;
}
| ['gcc'] |
17,213 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_17_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63808/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_17.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_17_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_17_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,214 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_18_bad()
{
wchar_t * data;
wchar_t dataBadBuffer[10];
wchar_t dataGoodBuffer[10+1];
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 */
wcsncpy(data, source, wcslen(source) + 1);
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/63809/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_18.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_18_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_18_bad(void)
{
long lVar1;
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined4 uStack_70;
undefined4 auStack_38 [10];
undefined4 *puStack_10;
puStack_10 = auStack_38;
auStack_38[0] = 0;
uStack_98 = 0x4100000041;
uStack_90 = 0x4100000041;
uStack_88 = 0x4100000041;
uStack_80 = 0x4100000041;
uStack_78 = 0x4100000041;
uStack_70 = 0;
lVar1 = func_0x00400a50(&uStack_98);
func_0x00400a80(puStack_10,&uStack_98,lVar1 + 1);
printWLine(puStack_10);
return;
}
| ['gcc'] |
17,215 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_18_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63809/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_18.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_18_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_18_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,216 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_31_bad()
{
wchar_t * data;
wchar_t dataBadBuffer[10];
wchar_t dataGoodBuffer[10+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 * 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 */
wcsncpy(data, source, wcslen(source) + 1);
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/63810/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_31.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_31_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_31_bad(void)
{
long lVar1;
undefined8 uStack_a8;
undefined8 uStack_a0;
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined4 uStack_80;
undefined4 auStack_48 [10];
undefined4 *puStack_20;
undefined4 *puStack_18;
undefined4 *puStack_10;
puStack_20 = auStack_48;
auStack_48[0] = 0;
uStack_a8 = 0x4100000041;
uStack_a0 = 0x4100000041;
uStack_98 = 0x4100000041;
uStack_90 = 0x4100000041;
uStack_88 = 0x4100000041;
uStack_80 = 0;
puStack_18 = puStack_20;
puStack_10 = puStack_20;
lVar1 = func_0x00400a50(&uStack_a8);
func_0x00400a80(puStack_20,&uStack_a8,lVar1 + 1);
printWLine(puStack_20);
return;
}
| ['gcc'] |
17,217 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_31_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63810/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_31.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_31_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_31_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,218 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_32_bad()
{
wchar_t * data;
wchar_t * *dataPtr1 = &data;
wchar_t * *dataPtr2 = &data;
wchar_t dataBadBuffer[10];
wchar_t dataGoodBuffer[10+1];
{
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 */
wcsncpy(data, source, wcslen(source) + 1);
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/63811/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_32.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_32_bad |
/* WARNING: Heritage AFTER dead removal. Example location: s0xffffffffffffffd0 : 0x00400c19 */
/* WARNING: Restarted to delay deadcode elimination for space: stack */
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_32_bad(void)
{
long lVar1;
undefined8 uStack_b8;
undefined8 uStack_b0;
undefined8 uStack_a8;
undefined8 uStack_a0;
undefined8 uStack_98;
undefined4 uStack_90;
undefined4 auStack_58 [10];
undefined8 uStack_30;
undefined8 uStack_28;
undefined4 *puStack_20;
undefined8 *puStack_18;
undefined8 *puStack_10;
puStack_10 = &uStack_30;
puStack_18 = &uStack_30;
puStack_20 = auStack_58;
auStack_58[0] = 0;
uStack_28 = uStack_30;
uStack_b8 = 0x4100000041;
uStack_b0 = 0x4100000041;
uStack_a8 = 0x4100000041;
uStack_a0 = 0x4100000041;
uStack_98 = 0x4100000041;
uStack_90 = 0;
lVar1 = func_0x00400a50(&uStack_b8);
func_0x00400a80(uStack_28,&uStack_b8,lVar1 + 1);
printWLine(uStack_28);
return;
}
| ['gcc'] |
17,219 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_32_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63811/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_32.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_32_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_32_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,220 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_34_bad()
{
wchar_t * data;
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_34_unionType myUnion;
wchar_t dataBadBuffer[10];
wchar_t dataGoodBuffer[10+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 */
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 */
wcsncpy(data, source, wcslen(source) + 1);
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/63813/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_34.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_34_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_34_bad(void)
{
long lVar1;
undefined8 uStack_a8;
undefined8 uStack_a0;
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined4 uStack_80;
undefined4 auStack_48 [10];
undefined4 *puStack_20;
undefined4 *puStack_18;
undefined4 *puStack_10;
puStack_20 = auStack_48;
auStack_48[0] = 0;
uStack_a8 = 0x4100000041;
uStack_a0 = 0x4100000041;
uStack_98 = 0x4100000041;
uStack_90 = 0x4100000041;
uStack_88 = 0x4100000041;
uStack_80 = 0;
puStack_18 = puStack_20;
puStack_10 = puStack_20;
lVar1 = func_0x00400a50(&uStack_a8);
func_0x00400a80(puStack_18,&uStack_a8,lVar1 + 1);
printWLine(puStack_18);
return;
}
| ['gcc'] |
17,221 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_34_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63813/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_34.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_34_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_34_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,222 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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 */
wcsncpy(data, source, wcslen(source) + 1);
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/63814/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_41_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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_0x00400a80(param_1,&uStack_38,lVar1 + 1);
printWLine(param_1);
return;
}
| ['gcc'] |
17,223 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_41_bad()
{
wchar_t * data;
wchar_t dataBadBuffer[10];
wchar_t dataGoodBuffer[10+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 */
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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/63814/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_41_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_41_bad(void)
{
undefined4 auStack_38 [10];
undefined4 *puStack_10;
puStack_10 = auStack_38;
auStack_38[0] = 0;
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_41_badSink(puStack_10);
return;
}
| ['gcc'] |
17,224 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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 */
wcsncpy(data, source, wcslen(source) + 1);
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/63814/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_41_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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_0x00400a80(param_1,&uStack_38,lVar1 + 1);
printWLine(param_1);
return;
}
| ['gcc'] |
17,225 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_41_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63814/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_41_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_41_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,226 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_51_bad()
{
wchar_t * data;
wchar_t dataBadBuffer[10];
wchar_t dataGoodBuffer[10+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 */
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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/63817/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_51a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_51_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_51_bad(void)
{
undefined4 auStack_38 [10];
undefined4 *puStack_10;
puStack_10 = auStack_38;
auStack_38[0] = 0;
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_51b_badSink(puStack_10);
return;
}
| ['gcc'] |
17,227 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_51_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63817/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_51a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_51_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_51_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,228 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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 */
wcsncpy(data, source, wcslen(source) + 1);
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/63817/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_51b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_51b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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_0x00400a80(param_1,&uStack_38,lVar1 + 1);
printWLine(param_1);
return;
}
| ['gcc'] |
17,229 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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 */
wcsncpy(data, source, wcslen(source) + 1);
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/63817/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_51b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_51b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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_0x00400a80(param_1,&uStack_38,lVar1 + 1);
printWLine(param_1);
return;
}
| ['gcc'] |
17,230 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_52_bad()
{
wchar_t * data;
wchar_t dataBadBuffer[10];
wchar_t dataGoodBuffer[10+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 */
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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/63818/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_52a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_52_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_52_bad(void)
{
undefined4 auStack_38 [10];
undefined4 *puStack_10;
puStack_10 = auStack_38;
auStack_38[0] = 0;
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_52b_badSink(puStack_10);
return;
}
| ['gcc'] |
17,231 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_52_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63818/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_52a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_52_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_52_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,232 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_52b_badSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_52c_badSink(data);
} | [] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63818/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_52b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_52b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_52b_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_52c_badSink(param_1);
return;
}
| ['gcc'] |
17,233 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_52b_goodG2BSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_52c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63818/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_52b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_52b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_52b_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_52c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
17,234 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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 */
wcsncpy(data, source, wcslen(source) + 1);
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/63818/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_52c.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_52c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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_0x00400a80(param_1,&uStack_38,lVar1 + 1);
printWLine(param_1);
return;
}
| ['gcc'] |
17,235 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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 */
wcsncpy(data, source, wcslen(source) + 1);
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/63818/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_52c.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_52c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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_0x00400a80(param_1,&uStack_38,lVar1 + 1);
printWLine(param_1);
return;
}
| ['gcc'] |
17,236 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53_bad()
{
wchar_t * data;
wchar_t dataBadBuffer[10];
wchar_t dataGoodBuffer[10+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 */
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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/63819/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53_bad(void)
{
undefined4 auStack_38 [10];
undefined4 *puStack_10;
puStack_10 = auStack_38;
auStack_38[0] = 0;
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53b_badSink(puStack_10);
return;
}
| ['gcc'] |
17,237 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63819/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,238 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53b_badSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53c_badSink(data);
} | [] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63819/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53b_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53c_badSink(param_1);
return;
}
| ['gcc'] |
17,239 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53b_goodG2BSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63819/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53b_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
17,240 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53c_badSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53d_badSink(data);
} | [] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63819/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53c.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53c_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53d_badSink(param_1);
return;
}
| ['gcc'] |
17,241 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53c_goodG2BSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63819/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53c.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53c_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
17,242 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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 */
wcsncpy(data, source, wcslen(source) + 1);
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/63819/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53d.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53d_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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_0x00400a80(param_1,&uStack_38,lVar1 + 1);
printWLine(param_1);
return;
}
| ['gcc'] |
17,243 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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 */
wcsncpy(data, source, wcslen(source) + 1);
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/63819/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53d.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_53d_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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_0x00400a80(param_1,&uStack_38,lVar1 + 1);
printWLine(param_1);
return;
}
| ['gcc'] |
17,244 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54_bad()
{
wchar_t * data;
wchar_t dataBadBuffer[10];
wchar_t dataGoodBuffer[10+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 */
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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/63820/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54_bad(void)
{
undefined4 auStack_38 [10];
undefined4 *puStack_10;
puStack_10 = auStack_38;
auStack_38[0] = 0;
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54b_badSink(puStack_10);
return;
}
| ['gcc'] |
17,245 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63820/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,246 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54b_badSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54c_badSink(data);
} | [] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63820/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54b_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54c_badSink(param_1);
return;
}
| ['gcc'] |
17,247 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54b_goodG2BSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63820/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54b_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
17,248 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54c_badSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54d_badSink(data);
} | [] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63820/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54c.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54c_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54d_badSink(param_1);
return;
}
| ['gcc'] |
17,249 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54c_goodG2BSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63820/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54c.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54c_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
17,250 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54d_badSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54e_badSink(data);
} | [] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63820/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54d.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54d_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54d_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54e_badSink(param_1);
return;
}
| ['gcc'] |
17,251 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54d_goodG2BSink(wchar_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54e_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63820/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54d.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54d_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54d_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54e_goodG2BSink(param_1);
return;
}
| ['gcc'] |
17,252 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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 */
wcsncpy(data, source, wcslen(source) + 1);
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/63820/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54e.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54e_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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_0x00400a50(&uStack_38);
func_0x00400a80(param_1,&uStack_38,lVar1 + 1);
printWLine(param_1);
return;
}
| ['gcc'] |
17,253 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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 */
wcsncpy(data, source, wcslen(source) + 1);
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/63820/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54e.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_54e_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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_0x00400a50(&uStack_38);
func_0x00400a80(param_1,&uStack_38,lVar1 + 1);
printWLine(param_1);
return;
}
| ['gcc'] |
17,254 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_63_bad()
{
wchar_t * data;
wchar_t dataBadBuffer[10];
wchar_t dataGoodBuffer[10+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 */
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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/63821/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_63a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_63_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_63_bad(void)
{
undefined4 auStack_38 [10];
undefined4 *puStack_10;
puStack_10 = auStack_38;
auStack_38[0] = 0;
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_63b_badSink(&puStack_10);
return;
}
| ['gcc'] |
17,255 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_63_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63821/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_63a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_63_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_63_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,256 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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 */
wcsncpy(data, source, wcslen(source) + 1);
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/63821/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_63b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_63b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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_0x00400a50(&uStack_48);
func_0x00400a80(uStack_10,&uStack_48,lVar1 + 1);
printWLine(uStack_10);
return;
}
| ['gcc'] |
17,257 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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 */
wcsncpy(data, source, wcslen(source) + 1);
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/63821/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_63b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_63b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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_0x00400a50(&uStack_48);
func_0x00400a80(uStack_10,&uStack_48,lVar1 + 1);
printWLine(uStack_10);
return;
}
| ['gcc'] |
17,258 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_64_bad()
{
wchar_t * data;
wchar_t dataBadBuffer[10];
wchar_t dataGoodBuffer[10+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 */
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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/63822/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_64a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_64_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_64_bad(void)
{
undefined4 auStack_38 [10];
undefined4 *puStack_10;
puStack_10 = auStack_38;
auStack_38[0] = 0;
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_64b_badSink(&puStack_10);
return;
}
| ['gcc'] |
17,259 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_64_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63822/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_64a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_64_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_64_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,260 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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 */
wcsncpy(data, source, wcslen(source) + 1);
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/63822/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_64b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_64b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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_0x00400a50(&uStack_48);
func_0x00400a80(uStack_18,&uStack_48,lVar1 + 1);
printWLine(uStack_18);
return;
}
| ['gcc'] |
17,261 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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 */
wcsncpy(data, source, wcslen(source) + 1);
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/63822/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_64b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_64b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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_0x00400a50(&uStack_48);
func_0x00400a80(uStack_18,&uStack_48,lVar1 + 1);
printWLine(uStack_18);
return;
}
| ['gcc'] |
17,262 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_66_bad()
{
wchar_t * data;
wchar_t * dataArray[5];
wchar_t dataBadBuffer[10];
wchar_t dataGoodBuffer[10+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 */
/* put data in array */
dataArray[2] = data;
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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/63824/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_66a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_66_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_66_bad(void)
{
undefined4 auStack_68 [12];
undefined auStack_38 [16];
undefined4 *puStack_28;
undefined4 *puStack_10;
puStack_28 = auStack_68;
auStack_68[0] = 0;
puStack_10 = puStack_28;
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_66b_badSink(auStack_38);
return;
}
| ['gcc'] |
17,263 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_66_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63824/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_66a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_66_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_66_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,264 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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 */
wcsncpy(data, source, wcslen(source) + 1);
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/63824/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_66b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_66b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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_0x00400a50(&uStack_48);
func_0x00400a80(uStack_10,&uStack_48,lVar1 + 1);
printWLine(uStack_10);
return;
}
| ['gcc'] |
17,265 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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 */
wcsncpy(data, source, wcslen(source) + 1);
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/63824/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_66b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_66b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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_0x00400a50(&uStack_48);
func_0x00400a80(uStack_10,&uStack_48,lVar1 + 1);
printWLine(uStack_10);
return;
}
| ['gcc'] |
17,266 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_67_bad()
{
wchar_t * data;
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_67_structType myStruct;
wchar_t dataBadBuffer[10];
wchar_t dataGoodBuffer[10+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 */
myStruct.structFirst = data;
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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/63825/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_67a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_67_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_67_bad(void)
{
undefined4 auStack_48 [12];
undefined4 *puStack_18;
undefined4 *puStack_10;
puStack_18 = auStack_48;
auStack_48[0] = 0;
puStack_10 = puStack_18;
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_67b_badSink(puStack_18);
return;
}
| ['gcc'] |
17,267 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_67_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63825/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_67a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_67_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_67_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,268 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_67b_badSink(CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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 */
wcsncpy(data, source, wcslen(source) + 1);
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/63825/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_67b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_67b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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_0x00400a50(&uStack_48);
func_0x00400a80(uStack_10,&uStack_48,lVar1 + 1);
printWLine(uStack_10);
return;
}
| ['gcc'] |
17,269 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_67b_goodG2BSink(CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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 */
wcsncpy(data, source, wcslen(source) + 1);
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/63825/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_67b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_67b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_ncpy_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_0x00400a50(&uStack_48);
func_0x00400a80(uStack_10,&uStack_48,lVar1 + 1);
printWLine(uStack_10);
return;
}
| ['gcc'] |
17,270 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_01_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA(50*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA(100*sizeof(char));
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
{
size_t i;
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
for (i = 0; i < 100; i++)
{
data[i] = source[i];
}
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63832/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_01.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_01_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_01_bad(void)
{
undefined auStack_140 [112];
undefined auStack_d0 [56];
undefined auStack_98 [112];
undefined *puStack_28;
undefined *puStack_20;
undefined *puStack_18;
ulong uStack_10;
puStack_28 = auStack_d0;
puStack_20 = auStack_140;
auStack_d0[0] = 0;
puStack_18 = puStack_28;
func_0x00400a10(auStack_98,0x43,99);
auStack_98[99] = 0;
for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) {
puStack_28[uStack_10] = auStack_98[uStack_10];
}
puStack_28[99] = 0;
printLine(puStack_28);
return;
}
| ['gcc'] |
17,271 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_01_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63832/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_01.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_01_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_01_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,272 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_02_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA(50*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA(100*sizeof(char));
if(1)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
size_t i;
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
for (i = 0; i < 100; i++)
{
data[i] = source[i];
}
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63833/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_02.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_02_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_02_bad(void)
{
undefined auStack_140 [112];
undefined auStack_d0 [56];
undefined auStack_98 [112];
undefined *puStack_28;
undefined *puStack_20;
undefined *puStack_18;
ulong uStack_10;
puStack_28 = auStack_d0;
puStack_20 = auStack_140;
auStack_d0[0] = 0;
puStack_18 = puStack_28;
func_0x00400a10(auStack_98,0x43,99);
auStack_98[99] = 0;
for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) {
puStack_28[uStack_10] = auStack_98[uStack_10];
}
puStack_28[99] = 0;
printLine(puStack_28);
return;
}
| ['gcc'] |
17,273 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_02_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63833/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_02.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_02_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_02_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,274 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_03_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA(50*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA(100*sizeof(char));
if(5==5)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
size_t i;
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
for (i = 0; i < 100; i++)
{
data[i] = source[i];
}
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63834/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_03.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_03_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_03_bad(void)
{
undefined auStack_140 [112];
undefined auStack_d0 [56];
undefined auStack_98 [112];
undefined *puStack_28;
undefined *puStack_20;
undefined *puStack_18;
ulong uStack_10;
puStack_28 = auStack_d0;
puStack_20 = auStack_140;
auStack_d0[0] = 0;
puStack_18 = puStack_28;
func_0x00400a10(auStack_98,0x43,99);
auStack_98[99] = 0;
for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) {
puStack_28[uStack_10] = auStack_98[uStack_10];
}
puStack_28[99] = 0;
printLine(puStack_28);
return;
}
| ['gcc'] |
17,275 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_03_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63834/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_03.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_03_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_03_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,276 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_04_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA(50*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA(100*sizeof(char));
if(STATIC_CONST_TRUE)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
size_t i;
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
for (i = 0; i < 100; i++)
{
data[i] = source[i];
}
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63835/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_04.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_04_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_04_bad(void)
{
undefined auStack_140 [112];
undefined auStack_d0 [56];
undefined auStack_98 [112];
undefined *puStack_28;
undefined *puStack_20;
ulong uStack_18;
undefined *puStack_10;
puStack_20 = auStack_d0;
puStack_28 = auStack_140;
auStack_d0[0] = 0;
puStack_10 = puStack_20;
func_0x00400a10(auStack_98,0x43,99);
auStack_98[99] = 0;
for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) {
puStack_10[uStack_18] = auStack_98[uStack_18];
}
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,277 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_04_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63835/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_04.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_04_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_04_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,278 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_05_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA(50*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA(100*sizeof(char));
if(staticTrue)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
size_t i;
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
for (i = 0; i < 100; i++)
{
data[i] = source[i];
}
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63836/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_05.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_05_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_05_bad(void)
{
undefined auStack_140 [112];
undefined auStack_d0 [56];
undefined auStack_98 [112];
undefined *puStack_28;
undefined *puStack_20;
ulong uStack_18;
undefined *puStack_10;
puStack_20 = auStack_d0;
puStack_28 = auStack_140;
if (staticTrue != 0) {
auStack_d0[0] = 0;
puStack_10 = puStack_20;
}
func_0x00400a10(auStack_98,0x43,99);
auStack_98[99] = 0;
for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) {
puStack_10[uStack_18] = auStack_98[uStack_18];
}
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,279 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_05_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63836/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_05.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_05_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_05_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,280 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_06_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA(50*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA(100*sizeof(char));
if(STATIC_CONST_FIVE==5)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
size_t i;
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
for (i = 0; i < 100; i++)
{
data[i] = source[i];
}
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63837/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_06.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_06_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_06_bad(void)
{
undefined auStack_140 [112];
undefined auStack_d0 [56];
undefined auStack_98 [112];
undefined *puStack_28;
undefined *puStack_20;
ulong uStack_18;
undefined *puStack_10;
puStack_20 = auStack_d0;
puStack_28 = auStack_140;
auStack_d0[0] = 0;
puStack_10 = puStack_20;
func_0x00400a10(auStack_98,0x43,99);
auStack_98[99] = 0;
for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) {
puStack_10[uStack_18] = auStack_98[uStack_18];
}
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,281 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_06_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63837/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_06.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_06_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_06_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,282 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_07_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA(50*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA(100*sizeof(char));
if(staticFive==5)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
size_t i;
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
for (i = 0; i < 100; i++)
{
data[i] = source[i];
}
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63838/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_07.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_07_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_07_bad(void)
{
undefined auStack_140 [112];
undefined auStack_d0 [56];
undefined auStack_98 [112];
undefined *puStack_28;
undefined *puStack_20;
ulong uStack_18;
undefined *puStack_10;
puStack_20 = auStack_d0;
puStack_28 = auStack_140;
if (staticFive == 5) {
auStack_d0[0] = 0;
puStack_10 = puStack_20;
}
func_0x00400a10(auStack_98,0x43,99);
auStack_98[99] = 0;
for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) {
puStack_10[uStack_18] = auStack_98[uStack_18];
}
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,283 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_07_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63838/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_07.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_07_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_07_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,284 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_08_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA(50*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA(100*sizeof(char));
if(staticReturnsTrue())
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
size_t i;
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
for (i = 0; i < 100; i++)
{
data[i] = source[i];
}
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63839/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_08.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_08_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_08_bad(undefined8 param_1)
{
int iVar1;
undefined auStack_140 [112];
undefined auStack_d0 [56];
undefined auStack_98 [112];
undefined *puStack_28;
undefined *puStack_20;
ulong uStack_18;
undefined *puStack_10;
puStack_20 = auStack_d0;
puStack_28 = auStack_140;
iVar1 = staticReturnsTrue(param_1,0x10,0xb);
if (iVar1 != 0) {
puStack_10 = puStack_20;
*puStack_20 = 0;
}
func_0x00400a10(auStack_98,0x43,99);
auStack_98[99] = 0;
for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) {
puStack_10[uStack_18] = auStack_98[uStack_18];
}
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,285 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_08_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63839/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_08.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_08_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_08_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,286 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_09_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA(50*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA(100*sizeof(char));
if(GLOBAL_CONST_TRUE)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
size_t i;
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
for (i = 0; i < 100; i++)
{
data[i] = source[i];
}
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63840/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_09.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_09_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_09_bad(void)
{
undefined auStack_140 [112];
undefined auStack_d0 [56];
undefined auStack_98 [112];
undefined *puStack_28;
undefined *puStack_20;
ulong uStack_18;
undefined *puStack_10;
puStack_20 = auStack_d0;
puStack_28 = auStack_140;
if (GLOBAL_CONST_TRUE != 0) {
auStack_d0[0] = 0;
puStack_10 = puStack_20;
}
func_0x00400a10(auStack_98,0x43,99);
auStack_98[99] = 0;
for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) {
puStack_10[uStack_18] = auStack_98[uStack_18];
}
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,287 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_09_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63840/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_09.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_09_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_09_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,288 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_10_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA(50*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA(100*sizeof(char));
if(globalTrue)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
size_t i;
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
for (i = 0; i < 100; i++)
{
data[i] = source[i];
}
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63841/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_10.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_10_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_10_bad(void)
{
undefined auStack_140 [112];
undefined auStack_d0 [56];
undefined auStack_98 [112];
undefined *puStack_28;
undefined *puStack_20;
ulong uStack_18;
undefined *puStack_10;
puStack_20 = auStack_d0;
puStack_28 = auStack_140;
if (globalTrue != 0) {
auStack_d0[0] = 0;
puStack_10 = puStack_20;
}
func_0x00400a10(auStack_98,0x43,99);
auStack_98[99] = 0;
for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) {
puStack_10[uStack_18] = auStack_98[uStack_18];
}
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,289 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_10_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63841/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_10.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_10_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_10_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,290 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_11_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA(50*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA(100*sizeof(char));
if(globalReturnsTrue())
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
size_t i;
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
for (i = 0; i < 100; i++)
{
data[i] = source[i];
}
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63842/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_11.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_11_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_11_bad(undefined8 param_1)
{
int iVar1;
undefined auStack_140 [112];
undefined auStack_d0 [56];
undefined auStack_98 [112];
undefined *puStack_28;
undefined *puStack_20;
ulong uStack_18;
undefined *puStack_10;
puStack_20 = auStack_d0;
puStack_28 = auStack_140;
iVar1 = globalReturnsTrue(param_1,0x10,0xb);
if (iVar1 != 0) {
puStack_10 = puStack_20;
*puStack_20 = 0;
}
func_0x00400a10(auStack_98,0x43,99);
auStack_98[99] = 0;
for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) {
puStack_10[uStack_18] = auStack_98[uStack_18];
}
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,291 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_11_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63842/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_11.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_11_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_11_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,292 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_12_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA(50*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA(100*sizeof(char));
if(globalReturnsTrueOrFalse())
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
else
{
/* FIX: Set a pointer to a "large" buffer, thus avoiding buffer overflows in the sinks. */
data = dataGoodBuffer;
data[0] = '\0'; /* null terminate */
}
{
size_t i;
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
for (i = 0; i < 100; i++)
{
data[i] = source[i];
}
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', '/* FIX: Set a pointer to a "large" buffer, thus avoiding buffer overflows in the sinks. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63843/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_12.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_12_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_12_bad(undefined8 param_1)
{
int iVar1;
undefined auStack_140 [112];
undefined auStack_d0 [56];
undefined auStack_98 [112];
undefined *puStack_28;
undefined *puStack_20;
ulong uStack_18;
undefined *puStack_10;
puStack_20 = auStack_d0;
puStack_28 = auStack_140;
iVar1 = globalReturnsTrueOrFalse(param_1,0x10,0xb);
if (iVar1 == 0) {
puStack_10 = puStack_28;
*puStack_28 = 0;
}
else {
puStack_10 = puStack_20;
*puStack_20 = 0;
}
func_0x00400a10(auStack_98,0x43,99);
auStack_98[99] = 0;
for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) {
puStack_10[uStack_18] = auStack_98[uStack_18];
}
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,293 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_12_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63843/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_12.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_12_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_12_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,294 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_13_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA(50*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA(100*sizeof(char));
if(GLOBAL_CONST_FIVE==5)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
size_t i;
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
for (i = 0; i < 100; i++)
{
data[i] = source[i];
}
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63844/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_13.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_13_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_13_bad(void)
{
undefined auStack_140 [112];
undefined auStack_d0 [56];
undefined auStack_98 [112];
undefined *puStack_28;
undefined *puStack_20;
ulong uStack_18;
undefined *puStack_10;
puStack_20 = auStack_d0;
puStack_28 = auStack_140;
if (GLOBAL_CONST_FIVE == 5) {
auStack_d0[0] = 0;
puStack_10 = puStack_20;
}
func_0x00400a10(auStack_98,0x43,99);
auStack_98[99] = 0;
for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) {
puStack_10[uStack_18] = auStack_98[uStack_18];
}
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,295 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_13_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63844/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_13.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_13_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_13_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,296 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_14_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA(50*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA(100*sizeof(char));
if(globalFive==5)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
size_t i;
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
for (i = 0; i < 100; i++)
{
data[i] = source[i];
}
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63845/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_14.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_14_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_14_bad(void)
{
undefined auStack_140 [112];
undefined auStack_d0 [56];
undefined auStack_98 [112];
undefined *puStack_28;
undefined *puStack_20;
ulong uStack_18;
undefined *puStack_10;
puStack_20 = auStack_d0;
puStack_28 = auStack_140;
if (globalFive == 5) {
auStack_d0[0] = 0;
puStack_10 = puStack_20;
}
func_0x00400a10(auStack_98,0x43,99);
auStack_98[99] = 0;
for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) {
puStack_10[uStack_18] = auStack_98[uStack_18];
}
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,297 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_14_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63845/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_14.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_14_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_14_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,298 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_15_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA(50*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA(100*sizeof(char));
switch(6)
{
case 6:
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
break;
default:
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
break;
}
{
size_t i;
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
for (i = 0; i < 100; i++)
{
data[i] = source[i];
}
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63846/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_15.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_15_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_15_bad(void)
{
undefined auStack_140 [112];
undefined auStack_d0 [56];
undefined auStack_98 [112];
undefined *puStack_28;
undefined *puStack_20;
undefined *puStack_18;
ulong uStack_10;
puStack_28 = auStack_d0;
puStack_20 = auStack_140;
auStack_d0[0] = 0;
puStack_18 = puStack_28;
func_0x00400a10(auStack_98,0x43,99);
auStack_98[99] = 0;
for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) {
puStack_28[uStack_10] = auStack_98[uStack_10];
}
puStack_28[99] = 0;
printLine(puStack_28);
return;
}
| ['gcc'] |
17,299 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_15_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63846/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_15.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_15_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_loop_15_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.