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,700 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_15_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64006/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_15.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_15_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_15_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,701 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_16_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA(50*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA(100*sizeof(char));
while(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 */
break;
}
{
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 */
strncpy(data, source, 100-1);
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/64007/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_16.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_16_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_16_bad(void)
{
undefined auStack_130 [112];
undefined auStack_c0 [56];
undefined auStack_88 [99];
undefined uStack_25;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_c0;
puStack_18 = auStack_130;
auStack_c0[0] = 0;
puStack_10 = puStack_20;
func_0x00400a60(auStack_88,0x43,99);
uStack_25 = 0;
func_0x00400a20(puStack_20,auStack_88,99);
puStack_20[99] = 0;
printLine(puStack_20);
return;
}
| ['gcc'] |
17,702 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_16_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64007/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_16.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_16_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_16_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,703 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_17_bad()
{
int i;
char * data;
char * dataBadBuffer = (char *)ALLOCA(50*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA(100*sizeof(char));
for(i = 0; i < 1; i++)
{
/* 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 */
}
{
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 */
strncpy(data, source, 100-1);
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/64008/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_17.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_17_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_17_bad(void)
{
undefined auStack_140 [112];
undefined auStack_d0 [56];
undefined auStack_98 [99];
undefined uStack_35;
undefined *puStack_28;
undefined *puStack_20;
undefined *puStack_18;
int iStack_c;
puStack_20 = auStack_d0;
puStack_28 = auStack_140;
for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) {
puStack_18 = puStack_20;
*puStack_20 = 0;
}
func_0x00400a60(auStack_98,0x43,99);
uStack_35 = 0;
func_0x00400a20(puStack_18,auStack_98,99);
puStack_18[99] = 0;
printLine(puStack_18);
return;
}
| ['gcc'] |
17,704 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_17_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64008/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_17.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_17_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_17_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,705 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_18_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA(50*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA(100*sizeof(char));
goto source;
source:
/* 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 */
{
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 */
strncpy(data, source, 100-1);
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/64009/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_18.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_18_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_18_bad(void)
{
undefined auStack_130 [112];
undefined auStack_c0 [56];
undefined auStack_88 [99];
undefined uStack_25;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_c0;
puStack_18 = auStack_130;
auStack_c0[0] = 0;
puStack_10 = puStack_20;
func_0x00400a60(auStack_88,0x43,99);
uStack_25 = 0;
func_0x00400a20(puStack_20,auStack_88,99);
puStack_20[99] = 0;
printLine(puStack_20);
return;
}
| ['gcc'] |
17,706 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_18_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64009/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_18.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_18_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_18_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,707 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_31_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 */
{
char * dataCopy = data;
char * data = dataCopy;
{
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 */
strncpy(data, source, 100-1);
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/64010/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_31.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_31_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_31_bad(void)
{
undefined auStack_140 [112];
undefined auStack_d0 [56];
undefined auStack_98 [99];
undefined uStack_35;
undefined *puStack_30;
undefined *puStack_28;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_30 = auStack_d0;
puStack_18 = auStack_140;
auStack_d0[0] = 0;
puStack_28 = puStack_30;
puStack_20 = puStack_30;
puStack_10 = puStack_30;
func_0x00400a60(auStack_98,0x43,99);
uStack_35 = 0;
func_0x00400a20(puStack_30,auStack_98,99);
puStack_30[99] = 0;
printLine(puStack_30);
return;
}
| ['gcc'] |
17,708 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_31_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64010/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_31.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_31_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_31_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,709 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_32_bad()
{
char * data;
char * *dataPtr1 = &data;
char * *dataPtr2 = &data;
char * dataBadBuffer = (char *)ALLOCA(50*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA(100*sizeof(char));
{
char * data = *dataPtr1;
/* 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 */
*dataPtr1 = data;
}
{
char * data = *dataPtr2;
{
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 */
strncpy(data, source, 100-1);
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/64011/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_32.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_32_bad |
/* WARNING: Heritage AFTER dead removal. Example location: s0xffffffffffffffc0 : 0x00400c7e */
/* WARNING: Restarted to delay deadcode elimination for space: stack */
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_32_bad(void)
{
undefined auStack_150 [112];
undefined auStack_e0 [56];
undefined auStack_a8 [99];
undefined uStack_45;
long lStack_40;
long lStack_38;
undefined *puStack_30;
undefined *puStack_28;
undefined *puStack_20;
long *plStack_18;
long *plStack_10;
plStack_10 = &lStack_40;
plStack_18 = &lStack_40;
puStack_30 = auStack_e0;
puStack_28 = auStack_150;
auStack_e0[0] = 0;
lStack_38 = lStack_40;
puStack_20 = puStack_30;
func_0x00400a60(auStack_a8,0x43,99);
uStack_45 = 0;
func_0x00400a20(lStack_38,auStack_a8,99);
*(undefined *)(lStack_38 + 99) = 0;
printLine(lStack_38);
return;
}
| ['gcc'] |
17,710 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_32_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64011/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_32.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_32_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_32_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,711 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_34_bad()
{
char * data;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_34_unionType myUnion;
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 */
myUnion.unionFirst = data;
{
char * data = myUnion.unionSecond;
{
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 */
strncpy(data, source, 100-1);
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/64013/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_34.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_34_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_34_bad(void)
{
undefined auStack_140 [112];
undefined auStack_d0 [56];
undefined auStack_98 [99];
undefined uStack_35;
undefined *puStack_30;
undefined *puStack_28;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_30 = auStack_d0;
puStack_18 = auStack_140;
auStack_d0[0] = 0;
puStack_28 = puStack_30;
puStack_20 = puStack_30;
puStack_10 = puStack_30;
func_0x00400a60(auStack_98,0x43,99);
uStack_35 = 0;
func_0x00400a20(puStack_28,auStack_98,99);
puStack_28[99] = 0;
printLine(puStack_28);
return;
}
| ['gcc'] |
17,712 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_34_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64013/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_34.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_34_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_34_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,713 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_41_badSink(char * data)
{
{
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 */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ["/* 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/64014/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_41_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_41_badSink(long param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
func_0x00400a60(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a20(param_1,auStack_78,99);
*(undefined *)(param_1 + 99) = 0;
printLine(param_1);
return;
}
| ['gcc'] |
17,714 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_41_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 */
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_41_badSink(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 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64014/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_41_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_41_bad(void)
{
undefined auStack_d0 [112];
undefined auStack_60 [64];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_60;
puStack_18 = auStack_d0;
auStack_60[0] = 0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_41_badSink(puStack_20,0x10,0xb);
return;
}
| ['gcc'] |
17,715 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_41_goodG2BSink(char * data)
{
{
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 */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ["/* 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 */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64014/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_41_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_41_goodG2BSink(long param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
func_0x00400a60(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a20(param_1,auStack_78,99);
*(undefined *)(param_1 + 99) = 0;
printLine(param_1);
return;
}
| ['gcc'] |
17,716 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_41_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64014/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_41_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_41_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,717 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_45_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 */
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_45_badData = data;
badSink();
} | ['/* 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 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64016/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_45.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_45_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_45_bad(undefined8 param_1)
{
undefined auStack_d0 [112];
undefined auStack_60 [64];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_45_badData = auStack_60;
puStack_18 = auStack_d0;
auStack_60[0] = 0;
puStack_20 = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_45_badData;
puStack_10 = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_45_badData;
badSink(param_1,0x10,0xb);
return;
}
| ['gcc'] |
17,718 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_45_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64016/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_45.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_45_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_45_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,719 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_51_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 */
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_51b_badSink(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 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64017/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_51a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_51_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_51_bad(void)
{
undefined auStack_d0 [112];
undefined auStack_60 [64];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_60;
puStack_18 = auStack_d0;
auStack_60[0] = 0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_51b_badSink(puStack_20,0x10,0xb);
return;
}
| ['gcc'] |
17,720 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_51_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64017/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_51a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_51_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_51_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,721 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_51b_badSink(char * data)
{
{
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 */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ["/* 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/64017/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_51b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_51b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_51b_badSink(long param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
func_0x00400a60(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a20(param_1,auStack_78,99);
*(undefined *)(param_1 + 99) = 0;
printLine(param_1);
return;
}
| ['gcc'] |
17,722 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_51b_goodG2BSink(char * data)
{
{
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 */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ["/* 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 */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64017/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_51b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_51b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_51b_goodG2BSink(long param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
func_0x00400a60(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a20(param_1,auStack_78,99);
*(undefined *)(param_1 + 99) = 0;
printLine(param_1);
return;
}
| ['gcc'] |
17,723 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52_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 */
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52b_badSink(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 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64018/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52_bad(void)
{
undefined auStack_d0 [112];
undefined auStack_60 [64];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_60;
puStack_18 = auStack_d0;
auStack_60[0] = 0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52b_badSink(puStack_20,0x10,0xb);
return;
}
| ['gcc'] |
17,724 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64018/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,725 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52b_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52c_badSink(data);
} | [] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64018/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52b_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52c_badSink(param_1);
return;
}
| ['gcc'] |
17,726 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52b_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64018/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52b_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
17,727 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52c_badSink(char * data)
{
{
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 */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ["/* 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/64018/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52c.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52c_badSink(long param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
func_0x00400a60(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a20(param_1,auStack_78,99);
*(undefined *)(param_1 + 99) = 0;
printLine(param_1);
return;
}
| ['gcc'] |
17,728 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52c_goodG2BSink(char * data)
{
{
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 */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ["/* 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 */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64018/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52c.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_52c_goodG2BSink(long param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
func_0x00400a60(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a20(param_1,auStack_78,99);
*(undefined *)(param_1 + 99) = 0;
printLine(param_1);
return;
}
| ['gcc'] |
17,729 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53_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 */
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53b_badSink(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 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64019/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53_bad(void)
{
undefined auStack_d0 [112];
undefined auStack_60 [64];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_60;
puStack_18 = auStack_d0;
auStack_60[0] = 0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53b_badSink(puStack_20,0x10,0xb);
return;
}
| ['gcc'] |
17,730 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64019/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,731 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53b_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53c_badSink(data);
} | [] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64019/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53b_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53c_badSink(param_1);
return;
}
| ['gcc'] |
17,732 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53b_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64019/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53b_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
17,733 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53c_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53d_badSink(data);
} | [] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64019/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53c.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53c_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53d_badSink(param_1);
return;
}
| ['gcc'] |
17,734 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53c_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64019/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53c.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53c_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
17,735 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53d_badSink(char * data)
{
{
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 */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ["/* 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/64019/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53d.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53d_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53d_badSink(long param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
func_0x00400a60(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a20(param_1,auStack_78,99);
*(undefined *)(param_1 + 99) = 0;
printLine(param_1);
return;
}
| ['gcc'] |
17,736 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53d_goodG2BSink(char * data)
{
{
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 */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ["/* 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 */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64019/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53d.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53d_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_53d_goodG2BSink(long param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
func_0x00400a60(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a20(param_1,auStack_78,99);
*(undefined *)(param_1 + 99) = 0;
printLine(param_1);
return;
}
| ['gcc'] |
17,737 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54_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 */
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54b_badSink(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 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64020/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54_bad(void)
{
undefined auStack_d0 [112];
undefined auStack_60 [64];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_60;
puStack_18 = auStack_d0;
auStack_60[0] = 0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54b_badSink(puStack_20,0x10,0xb);
return;
}
| ['gcc'] |
17,738 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64020/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,739 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54b_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54c_badSink(data);
} | [] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64020/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54b_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54c_badSink(param_1);
return;
}
| ['gcc'] |
17,740 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54b_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64020/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54b_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
17,741 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54c_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54d_badSink(data);
} | [] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64020/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54c.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54c_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54d_badSink(param_1);
return;
}
| ['gcc'] |
17,742 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54c_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64020/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54c.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54c_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
17,743 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54d_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54e_badSink(data);
} | [] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64020/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54d.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54d_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54d_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54e_badSink(param_1);
return;
}
| ['gcc'] |
17,744 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54d_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54e_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64020/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54d.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54d_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54d_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54e_goodG2BSink(param_1);
return;
}
| ['gcc'] |
17,745 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54e_badSink(char * data)
{
{
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 */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ["/* 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/64020/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54e.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54e_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54e_badSink(long param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
func_0x00400a60(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a20(param_1,auStack_78,99);
*(undefined *)(param_1 + 99) = 0;
printLine(param_1);
return;
}
| ['gcc'] |
17,746 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54e_goodG2BSink(char * data)
{
{
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 */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ["/* 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 */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64020/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54e.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54e_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_54e_goodG2BSink(long param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
func_0x00400a60(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a20(param_1,auStack_78,99);
*(undefined *)(param_1 + 99) = 0;
printLine(param_1);
return;
}
| ['gcc'] |
17,747 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_63_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 */
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_63b_badSink(&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 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64021/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_63a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_63_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_63_bad(void)
{
undefined auStack_d0 [112];
undefined auStack_60 [64];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_60;
puStack_18 = auStack_d0;
auStack_60[0] = 0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_63b_badSink(&puStack_20,0x10,0xb);
return;
}
| ['gcc'] |
17,748 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_63_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64021/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_63a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_63_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_63_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,749 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_63b_badSink(char * * dataPtr)
{
char * data = *dataPtr;
{
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 */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ["/* 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/64021/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_63b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_63b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_63b_badSink(long *param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
long lStack_10;
lStack_10 = *param_1;
func_0x00400a60(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a20(lStack_10,auStack_78,99);
*(undefined *)(lStack_10 + 99) = 0;
printLine(lStack_10);
return;
}
| ['gcc'] |
17,750 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_63b_goodG2BSink(char * * dataPtr)
{
char * data = *dataPtr;
{
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 */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ["/* 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 */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64021/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_63b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_63b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_63b_goodG2BSink(long *param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
long lStack_10;
lStack_10 = *param_1;
func_0x00400a60(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a20(lStack_10,auStack_78,99);
*(undefined *)(lStack_10 + 99) = 0;
printLine(lStack_10);
return;
}
| ['gcc'] |
17,751 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_64_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 */
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_64b_badSink(&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 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64022/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_64a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_64_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_64_bad(void)
{
undefined auStack_d0 [112];
undefined auStack_60 [64];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_60;
puStack_18 = auStack_d0;
auStack_60[0] = 0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_64b_badSink(&puStack_20,0x10,0xb);
return;
}
| ['gcc'] |
17,752 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_64_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64022/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_64a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_64_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_64_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,753 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_64b_badSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
char * * dataPtr = (char * *)dataVoidPtr;
/* dereference dataPtr into data */
char * data = (*dataPtr);
{
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 */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', "/* 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/64022/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_64b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_64b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_64b_badSink(long *param_1)
{
undefined auStack_88 [99];
undefined uStack_25;
long lStack_18;
long *plStack_10;
lStack_18 = *param_1;
plStack_10 = param_1;
func_0x00400a60(auStack_88,0x43,99);
uStack_25 = 0;
func_0x00400a20(lStack_18,auStack_88,99);
*(undefined *)(lStack_18 + 99) = 0;
printLine(lStack_18);
return;
}
| ['gcc'] |
17,754 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_64b_goodG2BSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
char * * dataPtr = (char * *)dataVoidPtr;
/* dereference dataPtr into data */
char * data = (*dataPtr);
{
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 */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', "/* 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 */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64022/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_64b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_64b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_64b_goodG2BSink(long *param_1)
{
undefined auStack_88 [99];
undefined uStack_25;
long lStack_18;
long *plStack_10;
lStack_18 = *param_1;
plStack_10 = param_1;
func_0x00400a60(auStack_88,0x43,99);
uStack_25 = 0;
func_0x00400a20(lStack_18,auStack_88,99);
*(undefined *)(lStack_18 + 99) = 0;
printLine(lStack_18);
return;
}
| ['gcc'] |
17,755 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_65_bad()
{
char * data;
/* define a function pointer */
void (*funcPtr) (char *) = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_65b_badSink;
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 */
/* use the function pointer */
funcPtr(data);
} | ['/* define a function pointer */', '/* 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 */', '/* use the function pointer */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64023/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_65a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_65_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_65_bad(void)
{
undefined auStack_d0 [112];
undefined auStack_60 [56];
undefined *puStack_28;
undefined *puStack_20;
undefined *puStack_18;
code *pcStack_10;
pcStack_10 = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_65b_badSink;
puStack_28 = auStack_60;
puStack_20 = auStack_d0;
auStack_60[0] = 0;
puStack_18 = puStack_28;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_65b_badSink(puStack_28);
return;
}
| ['gcc'] |
17,756 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_65_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64023/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_65a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_65_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_65_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,757 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_65b_badSink(char * data)
{
{
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 */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ["/* 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/64023/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_65b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_65b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_65b_badSink(long param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
func_0x00400a60(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a20(param_1,auStack_78,99);
*(undefined *)(param_1 + 99) = 0;
printLine(param_1);
return;
}
| ['gcc'] |
17,758 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_65b_goodG2BSink(char * data)
{
{
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 */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ["/* 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 */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64023/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_65b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_65b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_65b_goodG2BSink(long param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
func_0x00400a60(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a20(param_1,auStack_78,99);
*(undefined *)(param_1 + 99) = 0;
printLine(param_1);
return;
}
| ['gcc'] |
17,759 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_66_bad()
{
char * data;
char * dataArray[5];
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 */
/* put data in array */
dataArray[2] = data;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_66b_badSink(dataArray);
} | ['/* 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 */', '/* put data in array */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64024/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_66a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_66_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_66_bad(void)
{
undefined auStack_f0 [112];
undefined auStack_80 [56];
undefined auStack_48 [16];
undefined *puStack_38;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_38 = auStack_80;
puStack_18 = auStack_f0;
auStack_80[0] = 0;
puStack_20 = puStack_38;
puStack_10 = puStack_38;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_66b_badSink(auStack_48,0x10,0xb);
return;
}
| ['gcc'] |
17,760 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_66_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64024/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_66a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_66_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_66_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,761 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_66b_badSink(char * dataArray[])
{
/* copy data out of dataArray */
char * data = dataArray[2];
{
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 */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* copy data out of dataArray */', "/* 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/64024/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_66b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_66b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_66b_badSink(long param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
long lStack_10;
lStack_10 = *(long *)(param_1 + 0x10);
func_0x00400a60(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a20(lStack_10,auStack_78,99);
*(undefined *)(lStack_10 + 99) = 0;
printLine(lStack_10);
return;
}
| ['gcc'] |
17,762 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_66b_goodG2BSink(char * dataArray[])
{
char * data = dataArray[2];
{
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 */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ["/* 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 */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64024/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_66b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_66b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_66b_goodG2BSink(long param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
long lStack_10;
lStack_10 = *(long *)(param_1 + 0x10);
func_0x00400a60(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a20(lStack_10,auStack_78,99);
*(undefined *)(lStack_10 + 99) = 0;
printLine(lStack_10);
return;
}
| ['gcc'] |
17,763 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_67_bad()
{
char * data;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_67_structType myStruct;
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 */
myStruct.structFirst = data;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_67b_badSink(myStruct);
} | ['/* 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 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64025/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_67a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_67_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_67_bad(void)
{
undefined auStack_d0 [112];
undefined auStack_60 [56];
undefined *puStack_28;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_28 = auStack_60;
puStack_18 = auStack_d0;
auStack_60[0] = 0;
puStack_20 = puStack_28;
puStack_10 = puStack_28;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_67b_badSink(puStack_28,0x10,0xb);
return;
}
| ['gcc'] |
17,764 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_67_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64025/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_67a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_67_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_67_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,765 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_67b_badSink(CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_67_structType myStruct)
{
char * data = myStruct.structFirst;
{
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 */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ["/* 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/64025/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_67b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_67b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_67b_badSink(long param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
long lStack_10;
lStack_10 = param_1;
func_0x00400a60(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a20(lStack_10,auStack_78,99);
*(undefined *)(lStack_10 + 99) = 0;
printLine(lStack_10);
return;
}
| ['gcc'] |
17,766 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_67b_goodG2BSink(CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_67_structType myStruct)
{
char * data = myStruct.structFirst;
{
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 */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ["/* 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 */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64025/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_67b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_67b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_67b_goodG2BSink(long param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
long lStack_10;
lStack_10 = param_1;
func_0x00400a60(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a20(lStack_10,auStack_78,99);
*(undefined *)(lStack_10 + 99) = 0;
printLine(lStack_10);
return;
}
| ['gcc'] |
17,767 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_68_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 */
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_68_badData = data;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_68b_badSink();
} | ['/* 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 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64026/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_68a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_68_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_68_bad(undefined8 param_1)
{
undefined auStack_d0 [112];
undefined auStack_60 [64];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_68_badData = auStack_60;
puStack_18 = auStack_d0;
auStack_60[0] = 0;
puStack_20 = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_68_badData;
puStack_10 = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_68_badData;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_68b_badSink(param_1,0x10,0xb);
return;
}
| ['gcc'] |
17,768 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_68_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64026/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_68a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_68_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_68_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,769 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_68b_badSink()
{
char * data = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_68_badData;
{
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 */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ["/* 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/64026/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_68b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_68b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_68b_badSink(void)
{
undefined auStack_78 [99];
undefined uStack_15;
long lStack_10;
lStack_10 = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_68_badData;
func_0x00400a60(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a20(lStack_10,auStack_78,99);
*(undefined *)(lStack_10 + 99) = 0;
printLine(lStack_10);
return;
}
| ['gcc'] |
17,770 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_68b_goodG2BSink()
{
char * data = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_68_goodG2BData;
{
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 */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ["/* 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 */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64026/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_68b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_68b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_68b_goodG2BSink(void)
{
undefined auStack_78 [99];
undefined uStack_15;
long lStack_10;
lStack_10 = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncpy_68_goodG2BData;
func_0x00400a60(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a20(lStack_10,auStack_78,99);
*(undefined *)(lStack_10 + 99) = 0;
printLine(lStack_10);
return;
}
| ['gcc'] |
17,771 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_01_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
/* 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/64072/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_01.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_01_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_01_bad(void)
{
undefined auStack_138 [224];
undefined auStack_58 [64];
undefined *puStack_18;
ulong uStack_10;
puStack_18 = auStack_58;
auStack_58[0] = 0;
func_0x00400a10(auStack_138,0x43,99);
auStack_138[99] = 0;
for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) {
puStack_18[uStack_10] = auStack_138[uStack_10];
}
puStack_18[99] = 0;
printLine(puStack_18);
return;
}
| ['gcc'] |
17,772 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_01_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64072/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_01.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_01_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_01_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,773 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_02_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
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/64073/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_02.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_02_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_02_bad(void)
{
undefined auStack_138 [224];
undefined auStack_58 [64];
undefined *puStack_18;
ulong uStack_10;
puStack_18 = auStack_58;
auStack_58[0] = 0;
func_0x00400a10(auStack_138,0x43,99);
auStack_138[99] = 0;
for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) {
puStack_18[uStack_10] = auStack_138[uStack_10];
}
puStack_18[99] = 0;
printLine(puStack_18);
return;
}
| ['gcc'] |
17,774 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_02_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64073/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_02.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_02_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_02_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,775 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_03_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
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/64074/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_03.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_03_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_03_bad(void)
{
undefined auStack_138 [224];
undefined auStack_58 [64];
undefined *puStack_18;
ulong uStack_10;
puStack_18 = auStack_58;
auStack_58[0] = 0;
func_0x00400a10(auStack_138,0x43,99);
auStack_138[99] = 0;
for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) {
puStack_18[uStack_10] = auStack_138[uStack_10];
}
puStack_18[99] = 0;
printLine(puStack_18);
return;
}
| ['gcc'] |
17,776 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_03_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64074/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_03.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_03_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_03_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,777 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_04_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
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/64075/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_04.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_04_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_04_bad(void)
{
undefined auStack_138 [224];
undefined auStack_58 [64];
ulong uStack_18;
undefined *puStack_10;
puStack_10 = auStack_58;
auStack_58[0] = 0;
func_0x00400a10(auStack_138,0x43,99);
auStack_138[99] = 0;
for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) {
puStack_10[uStack_18] = auStack_138[uStack_18];
}
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,778 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_04_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64075/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_04.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_04_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_04_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,779 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_05_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
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/64076/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_05.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_05_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_05_bad(void)
{
undefined auStack_138 [224];
undefined auStack_58 [64];
ulong uStack_18;
undefined *puStack_10;
if (staticTrue != 0) {
puStack_10 = auStack_58;
auStack_58[0] = 0;
}
func_0x00400a10(auStack_138,0x43,99);
auStack_138[99] = 0;
for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) {
puStack_10[uStack_18] = auStack_138[uStack_18];
}
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,780 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_05_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64076/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_05.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_05_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_05_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,781 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_06_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
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/64077/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_06.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_06_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_06_bad(void)
{
undefined auStack_138 [224];
undefined auStack_58 [64];
ulong uStack_18;
undefined *puStack_10;
puStack_10 = auStack_58;
auStack_58[0] = 0;
func_0x00400a10(auStack_138,0x43,99);
auStack_138[99] = 0;
for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) {
puStack_10[uStack_18] = auStack_138[uStack_18];
}
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,782 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_06_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64077/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_06.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_06_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_06_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,783 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_07_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
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/64078/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_07.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_07_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_07_bad(void)
{
undefined auStack_138 [224];
undefined auStack_58 [64];
ulong uStack_18;
undefined *puStack_10;
if (staticFive == 5) {
puStack_10 = auStack_58;
auStack_58[0] = 0;
}
func_0x00400a10(auStack_138,0x43,99);
auStack_138[99] = 0;
for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) {
puStack_10[uStack_18] = auStack_138[uStack_18];
}
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,784 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_07_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64078/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_07.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_07_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_07_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,785 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_08_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
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/64079/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_08.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_08_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_08_bad(void)
{
int iVar1;
undefined auStack_138 [224];
undefined auStack_58 [64];
ulong uStack_18;
undefined *puStack_10;
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
puStack_10 = auStack_58;
auStack_58[0] = 0;
}
func_0x00400a10(auStack_138,0x43,99);
auStack_138[99] = 0;
for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) {
puStack_10[uStack_18] = auStack_138[uStack_18];
}
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,786 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_08_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64079/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_08.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_08_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_08_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,787 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_09_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
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/64080/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_09.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_09_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_09_bad(void)
{
undefined auStack_138 [224];
undefined auStack_58 [64];
ulong uStack_18;
undefined *puStack_10;
if (GLOBAL_CONST_TRUE != 0) {
puStack_10 = auStack_58;
auStack_58[0] = 0;
}
func_0x00400a10(auStack_138,0x43,99);
auStack_138[99] = 0;
for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) {
puStack_10[uStack_18] = auStack_138[uStack_18];
}
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,788 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_09_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64080/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_09.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_09_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_09_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,789 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_10_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
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/64081/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_10.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_10_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_10_bad(void)
{
undefined auStack_138 [224];
undefined auStack_58 [64];
ulong uStack_18;
undefined *puStack_10;
if (globalTrue != 0) {
puStack_10 = auStack_58;
auStack_58[0] = 0;
}
func_0x00400a10(auStack_138,0x43,99);
auStack_138[99] = 0;
for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) {
puStack_10[uStack_18] = auStack_138[uStack_18];
}
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,790 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_10_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64081/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_10.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_10_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_10_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,791 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_11_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
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/64082/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_11.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_11_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_11_bad(void)
{
int iVar1;
undefined auStack_138 [224];
undefined auStack_58 [64];
ulong uStack_18;
undefined *puStack_10;
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
puStack_10 = auStack_58;
auStack_58[0] = 0;
}
func_0x00400a10(auStack_138,0x43,99);
auStack_138[99] = 0;
for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) {
puStack_10[uStack_18] = auStack_138[uStack_18];
}
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,792 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_11_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64082/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_11.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_11_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_11_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,793 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_12_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
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/64083/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_12.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_12_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_12_bad(void)
{
int iVar1;
undefined auStack_138 [112];
undefined auStack_c8 [112];
undefined auStack_58 [64];
ulong uStack_18;
undefined *puStack_10;
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
puStack_10 = auStack_c8;
auStack_c8[0] = 0;
}
else {
puStack_10 = auStack_58;
auStack_58[0] = 0;
}
func_0x00400a10(auStack_138,0x43,99);
auStack_138[99] = 0;
for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) {
puStack_10[uStack_18] = auStack_138[uStack_18];
}
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,794 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_12_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64083/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_12.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_12_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_12_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,795 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_13_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
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/64084/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_13.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_13_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_13_bad(void)
{
undefined auStack_138 [224];
undefined auStack_58 [64];
ulong uStack_18;
undefined *puStack_10;
if (GLOBAL_CONST_FIVE == 5) {
puStack_10 = auStack_58;
auStack_58[0] = 0;
}
func_0x00400a10(auStack_138,0x43,99);
auStack_138[99] = 0;
for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) {
puStack_10[uStack_18] = auStack_138[uStack_18];
}
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,796 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_13_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64084/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_13.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_13_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_13_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,797 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_14_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
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/64085/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_14.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_14_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_14_bad(void)
{
undefined auStack_138 [224];
undefined auStack_58 [64];
ulong uStack_18;
undefined *puStack_10;
if (globalFive == 5) {
puStack_10 = auStack_58;
auStack_58[0] = 0;
}
func_0x00400a10(auStack_138,0x43,99);
auStack_138[99] = 0;
for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) {
puStack_10[uStack_18] = auStack_138[uStack_18];
}
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,798 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_14_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64085/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_14.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_14_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_14_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,799 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_15_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
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/64086/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_15.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_15_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_15_bad(void)
{
undefined auStack_138 [224];
undefined auStack_58 [64];
undefined *puStack_18;
ulong uStack_10;
puStack_18 = auStack_58;
auStack_58[0] = 0;
func_0x00400a10(auStack_138,0x43,99);
auStack_138[99] = 0;
for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) {
puStack_18[uStack_10] = auStack_138[uStack_10];
}
puStack_18[99] = 0;
printLine(puStack_18);
return;
}
| ['gcc'] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.