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,900 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_16_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64127/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_16.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_16_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_16_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,901 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_17_bad()
{
int i;
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
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 */
memcpy(data, source, 100*sizeof(char));
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/64128/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_17.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_17_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_17_bad(void)
{
undefined8 *puVar1;
undefined8 uStack_148;
undefined8 uStack_140;
undefined8 uStack_138;
undefined8 uStack_130;
undefined8 uStack_128;
undefined8 uStack_120;
undefined8 uStack_118;
undefined8 uStack_110;
undefined8 uStack_108;
undefined8 uStack_100;
undefined8 uStack_f8;
undefined8 uStack_f0;
uint uStack_e8;
undefined uStack_68;
undefined8 *puStack_28;
int iStack_1c;
for (iStack_1c = 0; iStack_1c < 1; iStack_1c = iStack_1c + 1) {
puStack_28 = (undefined8 *)&uStack_68;
uStack_68 = 0;
}
func_0x00400a10(&uStack_148,0x43,99);
puVar1 = puStack_28;
uStack_e8 = uStack_e8 & 0xffffff;
*puStack_28 = uStack_148;
puVar1[1] = uStack_140;
puVar1[2] = uStack_138;
puVar1[3] = uStack_130;
puVar1[4] = uStack_128;
puVar1[5] = uStack_120;
puVar1[6] = uStack_118;
puVar1[7] = uStack_110;
puVar1[8] = uStack_108;
puVar1[9] = uStack_100;
puVar1[10] = uStack_f8;
puVar1[0xb] = uStack_f0;
*(uint *)(puVar1 + 0xc) = uStack_e8;
*(undefined *)((long)puStack_28 + 99) = 0;
printLine(puStack_28);
return;
}
| ['gcc'] |
17,902 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_17_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64128/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_17.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_17_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_17_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,903 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_18_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
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 */
memcpy(data, source, 100*sizeof(char));
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/64129/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_18.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_18_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_18_bad(void)
{
undefined8 *puVar1;
undefined8 uStack_138;
undefined8 uStack_130;
undefined8 uStack_128;
undefined8 uStack_120;
undefined8 uStack_118;
undefined8 uStack_110;
undefined8 uStack_108;
undefined8 uStack_100;
undefined8 uStack_f8;
undefined8 uStack_f0;
undefined8 uStack_e8;
undefined8 uStack_e0;
uint uStack_d8;
undefined uStack_58;
undefined8 *puStack_20;
puStack_20 = (undefined8 *)&uStack_58;
uStack_58 = 0;
func_0x00400a10(&uStack_138,0x43,99);
puVar1 = puStack_20;
uStack_d8 = uStack_d8 & 0xffffff;
*puStack_20 = uStack_138;
puVar1[1] = uStack_130;
puVar1[2] = uStack_128;
puVar1[3] = uStack_120;
puVar1[4] = uStack_118;
puVar1[5] = uStack_110;
puVar1[6] = uStack_108;
puVar1[7] = uStack_100;
puVar1[8] = uStack_f8;
puVar1[9] = uStack_f0;
puVar1[10] = uStack_e8;
puVar1[0xb] = uStack_e0;
*(uint *)(puVar1 + 0xc) = uStack_d8;
*(undefined *)((long)puStack_20 + 99) = 0;
printLine(puStack_20);
return;
}
| ['gcc'] |
17,904 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_18_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64129/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_18.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_18_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_18_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,905 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_31_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 */
{
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 */
memcpy(data, source, 100*sizeof(char));
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/64130/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_31.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_31_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_31_bad(void)
{
undefined8 *puVar1;
undefined8 uStack_148;
undefined8 uStack_140;
undefined8 uStack_138;
undefined8 uStack_130;
undefined8 uStack_128;
undefined8 uStack_120;
undefined8 uStack_118;
undefined8 uStack_110;
undefined8 uStack_108;
undefined8 uStack_100;
undefined8 uStack_f8;
undefined8 uStack_f0;
uint uStack_e8;
undefined uStack_68;
undefined8 *puStack_30;
undefined8 *puStack_28;
undefined8 *puStack_20;
puStack_30 = (undefined8 *)&uStack_68;
uStack_68 = 0;
puStack_28 = puStack_30;
puStack_20 = puStack_30;
func_0x00400a10(&uStack_148,0x43,99);
puVar1 = puStack_30;
uStack_e8 = uStack_e8 & 0xffffff;
*puStack_30 = uStack_148;
puVar1[1] = uStack_140;
puVar1[2] = uStack_138;
puVar1[3] = uStack_130;
puVar1[4] = uStack_128;
puVar1[5] = uStack_120;
puVar1[6] = uStack_118;
puVar1[7] = uStack_110;
puVar1[8] = uStack_108;
puVar1[9] = uStack_100;
puVar1[10] = uStack_f8;
puVar1[0xb] = uStack_f0;
*(uint *)(puVar1 + 0xc) = uStack_e8;
*(undefined *)((long)puStack_30 + 99) = 0;
printLine(puStack_30);
return;
}
| ['gcc'] |
17,906 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_31_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64130/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_31.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_31_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_31_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,907 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_32_bad()
{
char * data;
char * *dataPtr1 = &data;
char * *dataPtr2 = &data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
{
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 */
memcpy(data, source, 100*sizeof(char));
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/64131/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_32.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_32_bad |
/* WARNING: Heritage AFTER dead removal. Example location: s0xffffffffffffffc0 : 0x00400bc7 */
/* WARNING: Restarted to delay deadcode elimination for space: stack */
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_32_bad(void)
{
undefined8 uStack_158;
undefined8 uStack_150;
undefined8 uStack_148;
undefined8 uStack_140;
undefined8 uStack_138;
undefined8 uStack_130;
undefined8 uStack_128;
undefined8 uStack_120;
undefined8 uStack_118;
undefined8 uStack_110;
undefined8 uStack_108;
undefined8 uStack_100;
uint uStack_f8;
undefined auStack_78 [56];
undefined8 *puStack_40;
undefined8 *puStack_38;
undefined *puStack_30;
undefined8 **ppuStack_28;
undefined8 **ppuStack_20;
ppuStack_20 = &puStack_40;
ppuStack_28 = &puStack_40;
puStack_30 = auStack_78;
auStack_78[0] = 0;
puStack_38 = puStack_40;
func_0x00400a10(&uStack_158,0x43,99);
uStack_f8 = uStack_f8 & 0xffffff;
*puStack_38 = uStack_158;
puStack_38[1] = uStack_150;
puStack_38[2] = uStack_148;
puStack_38[3] = uStack_140;
puStack_38[4] = uStack_138;
puStack_38[5] = uStack_130;
puStack_38[6] = uStack_128;
puStack_38[7] = uStack_120;
puStack_38[8] = uStack_118;
puStack_38[9] = uStack_110;
puStack_38[10] = uStack_108;
puStack_38[0xb] = uStack_100;
*(uint *)(puStack_38 + 0xc) = uStack_f8;
*(undefined *)((long)puStack_38 + 99) = 0;
printLine(puStack_38);
return;
}
| ['gcc'] |
17,908 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_32_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64131/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_32.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_32_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_32_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,909 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_34_bad()
{
char * data;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_34_unionType myUnion;
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 */
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 */
memcpy(data, source, 100*sizeof(char));
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/64133/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_34.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_34_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_34_bad(void)
{
undefined8 *puVar1;
undefined8 uStack_148;
undefined8 uStack_140;
undefined8 uStack_138;
undefined8 uStack_130;
undefined8 uStack_128;
undefined8 uStack_120;
undefined8 uStack_118;
undefined8 uStack_110;
undefined8 uStack_108;
undefined8 uStack_100;
undefined8 uStack_f8;
undefined8 uStack_f0;
uint uStack_e8;
undefined uStack_68;
undefined8 *puStack_30;
undefined8 *puStack_28;
undefined8 *puStack_20;
puStack_30 = (undefined8 *)&uStack_68;
uStack_68 = 0;
puStack_28 = puStack_30;
puStack_20 = puStack_30;
func_0x00400a10(&uStack_148,0x43,99);
puVar1 = puStack_28;
uStack_e8 = uStack_e8 & 0xffffff;
*puStack_28 = uStack_148;
puVar1[1] = uStack_140;
puVar1[2] = uStack_138;
puVar1[3] = uStack_130;
puVar1[4] = uStack_128;
puVar1[5] = uStack_120;
puVar1[6] = uStack_118;
puVar1[7] = uStack_110;
puVar1[8] = uStack_108;
puVar1[9] = uStack_100;
puVar1[10] = uStack_f8;
puVar1[0xb] = uStack_f0;
*(uint *)(puVar1 + 0xc) = uStack_e8;
*(undefined *)((long)puStack_28 + 99) = 0;
printLine(puStack_28);
return;
}
| ['gcc'] |
17,910 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_34_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64133/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_34.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_34_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_34_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,911 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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 */
memcpy(data, source, 100*sizeof(char));
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/64134/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_41_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_41_badSink(undefined8 *param_1)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
uint uStack_28;
func_0x00400a10(&uStack_88,0x43,99);
uStack_28 = uStack_28 & 0xffffff;
*param_1 = uStack_88;
param_1[1] = uStack_80;
param_1[2] = uStack_78;
param_1[3] = uStack_70;
param_1[4] = uStack_68;
param_1[5] = uStack_60;
param_1[6] = uStack_58;
param_1[7] = uStack_50;
param_1[8] = uStack_48;
param_1[9] = uStack_40;
param_1[10] = uStack_38;
param_1[0xb] = uStack_30;
*(uint *)(param_1 + 0xc) = uStack_28;
*(undefined *)((long)param_1 + 99) = 0;
printLine(param_1);
return;
}
| ['gcc'] |
17,912 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_41_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 */
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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/64134/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_41_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_41_bad(void)
{
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_41_badSink(puStack_10);
return;
}
| ['gcc'] |
17,913 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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 */
memcpy(data, source, 100*sizeof(char));
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/64134/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_41_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_41_goodG2BSink
(undefined8 *param_1)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
uint uStack_28;
func_0x00400a10(&uStack_88,0x43,99);
uStack_28 = uStack_28 & 0xffffff;
*param_1 = uStack_88;
param_1[1] = uStack_80;
param_1[2] = uStack_78;
param_1[3] = uStack_70;
param_1[4] = uStack_68;
param_1[5] = uStack_60;
param_1[6] = uStack_58;
param_1[7] = uStack_50;
param_1[8] = uStack_48;
param_1[9] = uStack_40;
param_1[10] = uStack_38;
param_1[0xb] = uStack_30;
*(uint *)(param_1 + 0xc) = uStack_28;
*(undefined *)((long)param_1 + 99) = 0;
printLine(param_1);
return;
}
| ['gcc'] |
17,914 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_41_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64134/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_41_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_41_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,915 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_45_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 */
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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/64136/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_45.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_45_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_45_bad(void)
{
undefined auStack_48 [56];
undefined *puStack_10;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_45_badData = auStack_48;
auStack_48[0] = 0;
puStack_10 = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_45_badData;
badSink();
return;
}
| ['gcc'] |
17,916 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_45_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64136/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_45.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_45_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_45_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,917 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_51_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 */
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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/64137/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_51a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_51_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_51_bad(void)
{
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_51b_badSink(puStack_10);
return;
}
| ['gcc'] |
17,918 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_51_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64137/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_51a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_51_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_51_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,919 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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 */
memcpy(data, source, 100*sizeof(char));
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/64137/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_51b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_51b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_51b_badSink(undefined8 *param_1)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
uint uStack_28;
func_0x00400a10(&uStack_88,0x43,99);
uStack_28 = uStack_28 & 0xffffff;
*param_1 = uStack_88;
param_1[1] = uStack_80;
param_1[2] = uStack_78;
param_1[3] = uStack_70;
param_1[4] = uStack_68;
param_1[5] = uStack_60;
param_1[6] = uStack_58;
param_1[7] = uStack_50;
param_1[8] = uStack_48;
param_1[9] = uStack_40;
param_1[10] = uStack_38;
param_1[0xb] = uStack_30;
*(uint *)(param_1 + 0xc) = uStack_28;
*(undefined *)((long)param_1 + 99) = 0;
printLine(param_1);
return;
}
| ['gcc'] |
17,920 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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 */
memcpy(data, source, 100*sizeof(char));
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/64137/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_51b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_51b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_51b_goodG2BSink
(undefined8 *param_1)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
uint uStack_28;
func_0x00400a10(&uStack_88,0x43,99);
uStack_28 = uStack_28 & 0xffffff;
*param_1 = uStack_88;
param_1[1] = uStack_80;
param_1[2] = uStack_78;
param_1[3] = uStack_70;
param_1[4] = uStack_68;
param_1[5] = uStack_60;
param_1[6] = uStack_58;
param_1[7] = uStack_50;
param_1[8] = uStack_48;
param_1[9] = uStack_40;
param_1[10] = uStack_38;
param_1[0xb] = uStack_30;
*(uint *)(param_1 + 0xc) = uStack_28;
*(undefined *)((long)param_1 + 99) = 0;
printLine(param_1);
return;
}
| ['gcc'] |
17,921 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_52_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 */
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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/64138/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_52a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_52_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_52_bad(void)
{
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_52b_badSink(puStack_10);
return;
}
| ['gcc'] |
17,922 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_52_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64138/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_52a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_52_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_52_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,923 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_52b_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_52c_badSink(data);
} | [] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64138/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_52b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_52b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_52b_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_52c_badSink(param_1);
return;
}
| ['gcc'] |
17,924 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_52b_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_52c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64138/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_52b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_52b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_52b_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_52c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
17,925 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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 */
memcpy(data, source, 100*sizeof(char));
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/64138/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_52c.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_52c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_52c_badSink(undefined8 *param_1)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
uint uStack_28;
func_0x00400a10(&uStack_88,0x43,99);
uStack_28 = uStack_28 & 0xffffff;
*param_1 = uStack_88;
param_1[1] = uStack_80;
param_1[2] = uStack_78;
param_1[3] = uStack_70;
param_1[4] = uStack_68;
param_1[5] = uStack_60;
param_1[6] = uStack_58;
param_1[7] = uStack_50;
param_1[8] = uStack_48;
param_1[9] = uStack_40;
param_1[10] = uStack_38;
param_1[0xb] = uStack_30;
*(uint *)(param_1 + 0xc) = uStack_28;
*(undefined *)((long)param_1 + 99) = 0;
printLine(param_1);
return;
}
| ['gcc'] |
17,926 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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 */
memcpy(data, source, 100*sizeof(char));
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/64138/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_52c.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_52c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_52c_goodG2BSink
(undefined8 *param_1)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
uint uStack_28;
func_0x00400a10(&uStack_88,0x43,99);
uStack_28 = uStack_28 & 0xffffff;
*param_1 = uStack_88;
param_1[1] = uStack_80;
param_1[2] = uStack_78;
param_1[3] = uStack_70;
param_1[4] = uStack_68;
param_1[5] = uStack_60;
param_1[6] = uStack_58;
param_1[7] = uStack_50;
param_1[8] = uStack_48;
param_1[9] = uStack_40;
param_1[10] = uStack_38;
param_1[0xb] = uStack_30;
*(uint *)(param_1 + 0xc) = uStack_28;
*(undefined *)((long)param_1 + 99) = 0;
printLine(param_1);
return;
}
| ['gcc'] |
17,927 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53_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 */
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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/64139/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53_bad(void)
{
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53b_badSink(puStack_10);
return;
}
| ['gcc'] |
17,928 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64139/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,929 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53b_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53c_badSink(data);
} | [] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64139/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53b_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53c_badSink(param_1);
return;
}
| ['gcc'] |
17,930 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53b_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64139/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53b_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
17,931 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53c_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53d_badSink(data);
} | [] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64139/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53c.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53c_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53d_badSink(param_1);
return;
}
| ['gcc'] |
17,932 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53c_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64139/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53c.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53c_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
17,933 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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 */
memcpy(data, source, 100*sizeof(char));
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/64139/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53d.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53d_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53d_badSink(undefined8 *param_1)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
uint uStack_28;
func_0x00400a10(&uStack_88,0x43,99);
uStack_28 = uStack_28 & 0xffffff;
*param_1 = uStack_88;
param_1[1] = uStack_80;
param_1[2] = uStack_78;
param_1[3] = uStack_70;
param_1[4] = uStack_68;
param_1[5] = uStack_60;
param_1[6] = uStack_58;
param_1[7] = uStack_50;
param_1[8] = uStack_48;
param_1[9] = uStack_40;
param_1[10] = uStack_38;
param_1[0xb] = uStack_30;
*(uint *)(param_1 + 0xc) = uStack_28;
*(undefined *)((long)param_1 + 99) = 0;
printLine(param_1);
return;
}
| ['gcc'] |
17,934 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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 */
memcpy(data, source, 100*sizeof(char));
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/64139/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53d.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53d_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_53d_goodG2BSink
(undefined8 *param_1)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
uint uStack_28;
func_0x00400a10(&uStack_88,0x43,99);
uStack_28 = uStack_28 & 0xffffff;
*param_1 = uStack_88;
param_1[1] = uStack_80;
param_1[2] = uStack_78;
param_1[3] = uStack_70;
param_1[4] = uStack_68;
param_1[5] = uStack_60;
param_1[6] = uStack_58;
param_1[7] = uStack_50;
param_1[8] = uStack_48;
param_1[9] = uStack_40;
param_1[10] = uStack_38;
param_1[0xb] = uStack_30;
*(uint *)(param_1 + 0xc) = uStack_28;
*(undefined *)((long)param_1 + 99) = 0;
printLine(param_1);
return;
}
| ['gcc'] |
17,935 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54_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 */
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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/64140/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54_bad(void)
{
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54b_badSink(puStack_10);
return;
}
| ['gcc'] |
17,936 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64140/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,937 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54b_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54c_badSink(data);
} | [] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64140/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54b_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54c_badSink(param_1);
return;
}
| ['gcc'] |
17,938 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54b_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64140/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54b_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
17,939 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54c_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54d_badSink(data);
} | [] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64140/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54c.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54c_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54d_badSink(param_1);
return;
}
| ['gcc'] |
17,940 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54c_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64140/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54c.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54c_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
17,941 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54d_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54e_badSink(data);
} | [] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64140/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54d.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54d_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54d_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54e_badSink(param_1);
return;
}
| ['gcc'] |
17,942 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54d_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54e_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64140/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54d.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54d_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54d_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54e_goodG2BSink(param_1);
return;
}
| ['gcc'] |
17,943 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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 */
memcpy(data, source, 100*sizeof(char));
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/64140/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54e.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54e_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54e_badSink(undefined8 *param_1)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
uint uStack_28;
func_0x00400a10(&uStack_88,0x43,99);
uStack_28 = uStack_28 & 0xffffff;
*param_1 = uStack_88;
param_1[1] = uStack_80;
param_1[2] = uStack_78;
param_1[3] = uStack_70;
param_1[4] = uStack_68;
param_1[5] = uStack_60;
param_1[6] = uStack_58;
param_1[7] = uStack_50;
param_1[8] = uStack_48;
param_1[9] = uStack_40;
param_1[10] = uStack_38;
param_1[0xb] = uStack_30;
*(uint *)(param_1 + 0xc) = uStack_28;
*(undefined *)((long)param_1 + 99) = 0;
printLine(param_1);
return;
}
| ['gcc'] |
17,944 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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 */
memcpy(data, source, 100*sizeof(char));
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/64140/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54e.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54e_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_54e_goodG2BSink
(undefined8 *param_1)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
uint uStack_28;
func_0x00400a10(&uStack_88,0x43,99);
uStack_28 = uStack_28 & 0xffffff;
*param_1 = uStack_88;
param_1[1] = uStack_80;
param_1[2] = uStack_78;
param_1[3] = uStack_70;
param_1[4] = uStack_68;
param_1[5] = uStack_60;
param_1[6] = uStack_58;
param_1[7] = uStack_50;
param_1[8] = uStack_48;
param_1[9] = uStack_40;
param_1[10] = uStack_38;
param_1[0xb] = uStack_30;
*(uint *)(param_1 + 0xc) = uStack_28;
*(undefined *)((long)param_1 + 99) = 0;
printLine(param_1);
return;
}
| ['gcc'] |
17,945 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_63_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 */
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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/64141/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_63a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_63_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_63_bad(void)
{
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_63b_badSink(&puStack_10);
return;
}
| ['gcc'] |
17,946 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_63_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64141/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_63a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_63_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_63_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,947 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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 */
memcpy(data, source, 100*sizeof(char));
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/64141/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_63b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_63b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_63b_badSink(undefined8 *param_1)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
uint uStack_28;
undefined8 *puStack_20;
puStack_20 = (undefined8 *)*param_1;
func_0x00400a10(&uStack_88,0x43,99);
uStack_28 = uStack_28 & 0xffffff;
*puStack_20 = uStack_88;
puStack_20[1] = uStack_80;
puStack_20[2] = uStack_78;
puStack_20[3] = uStack_70;
puStack_20[4] = uStack_68;
puStack_20[5] = uStack_60;
puStack_20[6] = uStack_58;
puStack_20[7] = uStack_50;
puStack_20[8] = uStack_48;
puStack_20[9] = uStack_40;
puStack_20[10] = uStack_38;
puStack_20[0xb] = uStack_30;
*(uint *)(puStack_20 + 0xc) = uStack_28;
*(undefined *)((long)puStack_20 + 99) = 0;
printLine(puStack_20);
return;
}
| ['gcc'] |
17,948 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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 */
memcpy(data, source, 100*sizeof(char));
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/64141/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_63b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_63b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_63b_goodG2BSink
(undefined8 *param_1)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
uint uStack_28;
undefined8 *puStack_20;
puStack_20 = (undefined8 *)*param_1;
func_0x00400a10(&uStack_88,0x43,99);
uStack_28 = uStack_28 & 0xffffff;
*puStack_20 = uStack_88;
puStack_20[1] = uStack_80;
puStack_20[2] = uStack_78;
puStack_20[3] = uStack_70;
puStack_20[4] = uStack_68;
puStack_20[5] = uStack_60;
puStack_20[6] = uStack_58;
puStack_20[7] = uStack_50;
puStack_20[8] = uStack_48;
puStack_20[9] = uStack_40;
puStack_20[10] = uStack_38;
puStack_20[0xb] = uStack_30;
*(uint *)(puStack_20 + 0xc) = uStack_28;
*(undefined *)((long)puStack_20 + 99) = 0;
printLine(puStack_20);
return;
}
| ['gcc'] |
17,949 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_64_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 */
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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/64142/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_64a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_64_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_64_bad(void)
{
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_64b_badSink(&puStack_10);
return;
}
| ['gcc'] |
17,950 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_64_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64142/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_64a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_64_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_64_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,951 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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 */
memcpy(data, source, 100*sizeof(char));
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/64142/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_64b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_64b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_64b_badSink(undefined8 *param_1)
{
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
uint uStack_38;
undefined8 *puStack_28;
undefined8 *puStack_20;
puStack_28 = (undefined8 *)*param_1;
puStack_20 = param_1;
func_0x00400a10(&uStack_98,0x43,99);
uStack_38 = uStack_38 & 0xffffff;
*puStack_28 = uStack_98;
puStack_28[1] = uStack_90;
puStack_28[2] = uStack_88;
puStack_28[3] = uStack_80;
puStack_28[4] = uStack_78;
puStack_28[5] = uStack_70;
puStack_28[6] = uStack_68;
puStack_28[7] = uStack_60;
puStack_28[8] = uStack_58;
puStack_28[9] = uStack_50;
puStack_28[10] = uStack_48;
puStack_28[0xb] = uStack_40;
*(uint *)(puStack_28 + 0xc) = uStack_38;
*(undefined *)((long)puStack_28 + 99) = 0;
printLine(puStack_28);
return;
}
| ['gcc'] |
17,952 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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 */
memcpy(data, source, 100*sizeof(char));
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/64142/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_64b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_64b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_64b_goodG2BSink
(undefined8 *param_1)
{
undefined8 uStack_98;
undefined8 uStack_90;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
uint uStack_38;
undefined8 *puStack_28;
undefined8 *puStack_20;
puStack_28 = (undefined8 *)*param_1;
puStack_20 = param_1;
func_0x00400a10(&uStack_98,0x43,99);
uStack_38 = uStack_38 & 0xffffff;
*puStack_28 = uStack_98;
puStack_28[1] = uStack_90;
puStack_28[2] = uStack_88;
puStack_28[3] = uStack_80;
puStack_28[4] = uStack_78;
puStack_28[5] = uStack_70;
puStack_28[6] = uStack_68;
puStack_28[7] = uStack_60;
puStack_28[8] = uStack_58;
puStack_28[9] = uStack_50;
puStack_28[10] = uStack_48;
puStack_28[0xb] = uStack_40;
*(uint *)(puStack_28 + 0xc) = uStack_38;
*(undefined *)((long)puStack_28 + 99) = 0;
printLine(puStack_28);
return;
}
| ['gcc'] |
17,953 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_65_bad()
{
char * data;
/* define a function pointer */
void (*funcPtr) (char *) = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_65b_badSink;
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 */
/* 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/64143/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_65a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_65_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_65_bad(void)
{
undefined auStack_58 [64];
undefined *puStack_18;
code *pcStack_10;
pcStack_10 = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_65b_badSink;
puStack_18 = auStack_58;
auStack_58[0] = 0;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_65b_badSink(puStack_18);
return;
}
| ['gcc'] |
17,954 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_65_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64143/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_65a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_65_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_65_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,955 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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 */
memcpy(data, source, 100*sizeof(char));
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/64143/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_65b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_65b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_65b_badSink(undefined8 *param_1)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
uint uStack_28;
func_0x00400a10(&uStack_88,0x43,99);
uStack_28 = uStack_28 & 0xffffff;
*param_1 = uStack_88;
param_1[1] = uStack_80;
param_1[2] = uStack_78;
param_1[3] = uStack_70;
param_1[4] = uStack_68;
param_1[5] = uStack_60;
param_1[6] = uStack_58;
param_1[7] = uStack_50;
param_1[8] = uStack_48;
param_1[9] = uStack_40;
param_1[10] = uStack_38;
param_1[0xb] = uStack_30;
*(uint *)(param_1 + 0xc) = uStack_28;
*(undefined *)((long)param_1 + 99) = 0;
printLine(param_1);
return;
}
| ['gcc'] |
17,956 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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 */
memcpy(data, source, 100*sizeof(char));
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/64143/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_65b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_65b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_65b_goodG2BSink
(undefined8 *param_1)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
uint uStack_28;
func_0x00400a10(&uStack_88,0x43,99);
uStack_28 = uStack_28 & 0xffffff;
*param_1 = uStack_88;
param_1[1] = uStack_80;
param_1[2] = uStack_78;
param_1[3] = uStack_70;
param_1[4] = uStack_68;
param_1[5] = uStack_60;
param_1[6] = uStack_58;
param_1[7] = uStack_50;
param_1[8] = uStack_48;
param_1[9] = uStack_40;
param_1[10] = uStack_38;
param_1[0xb] = uStack_30;
*(uint *)(param_1 + 0xc) = uStack_28;
*(undefined *)((long)param_1 + 99) = 0;
printLine(param_1);
return;
}
| ['gcc'] |
17,957 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_66_bad()
{
char * data;
char * dataArray[5];
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 */
/* put data in array */
dataArray[2] = data;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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/64144/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_66a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_66_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_66_bad(void)
{
undefined auStack_78 [64];
undefined auStack_38 [16];
undefined *puStack_28;
undefined *puStack_10;
puStack_28 = auStack_78;
auStack_78[0] = 0;
puStack_10 = puStack_28;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_66b_badSink(auStack_38);
return;
}
| ['gcc'] |
17,958 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_66_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64144/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_66a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_66_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_66_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,959 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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 */
memcpy(data, source, 100*sizeof(char));
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/64144/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_66b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_66b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_66b_badSink(long param_1)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
uint uStack_28;
undefined8 *puStack_20;
puStack_20 = *(undefined8 **)(param_1 + 0x10);
func_0x00400a10(&uStack_88,0x43,99);
uStack_28 = uStack_28 & 0xffffff;
*puStack_20 = uStack_88;
puStack_20[1] = uStack_80;
puStack_20[2] = uStack_78;
puStack_20[3] = uStack_70;
puStack_20[4] = uStack_68;
puStack_20[5] = uStack_60;
puStack_20[6] = uStack_58;
puStack_20[7] = uStack_50;
puStack_20[8] = uStack_48;
puStack_20[9] = uStack_40;
puStack_20[10] = uStack_38;
puStack_20[0xb] = uStack_30;
*(uint *)(puStack_20 + 0xc) = uStack_28;
*(undefined *)((long)puStack_20 + 99) = 0;
printLine(puStack_20);
return;
}
| ['gcc'] |
17,960 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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 */
memcpy(data, source, 100*sizeof(char));
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/64144/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_66b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_66b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_66b_goodG2BSink(long param_1)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
uint uStack_28;
undefined8 *puStack_20;
puStack_20 = *(undefined8 **)(param_1 + 0x10);
func_0x00400a10(&uStack_88,0x43,99);
uStack_28 = uStack_28 & 0xffffff;
*puStack_20 = uStack_88;
puStack_20[1] = uStack_80;
puStack_20[2] = uStack_78;
puStack_20[3] = uStack_70;
puStack_20[4] = uStack_68;
puStack_20[5] = uStack_60;
puStack_20[6] = uStack_58;
puStack_20[7] = uStack_50;
puStack_20[8] = uStack_48;
puStack_20[9] = uStack_40;
puStack_20[10] = uStack_38;
puStack_20[0xb] = uStack_30;
*(uint *)(puStack_20 + 0xc) = uStack_28;
*(undefined *)((long)puStack_20 + 99) = 0;
printLine(puStack_20);
return;
}
| ['gcc'] |
17,961 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_67_bad()
{
char * data;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_67_structType myStruct;
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 */
myStruct.structFirst = data;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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/64145/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_67a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_67_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_67_bad(void)
{
undefined auStack_58 [64];
undefined *puStack_18;
undefined *puStack_10;
puStack_18 = auStack_58;
auStack_58[0] = 0;
puStack_10 = puStack_18;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_67b_badSink(puStack_18);
return;
}
| ['gcc'] |
17,962 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_67_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64145/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_67a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_67_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_67_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,963 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_67b_badSink(CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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 */
memcpy(data, source, 100*sizeof(char));
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/64145/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_67b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_67b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_67b_badSink(undefined8 *param_1)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
uint uStack_28;
undefined8 *puStack_20;
puStack_20 = param_1;
func_0x00400a10(&uStack_88,0x43,99);
uStack_28 = uStack_28 & 0xffffff;
*puStack_20 = uStack_88;
puStack_20[1] = uStack_80;
puStack_20[2] = uStack_78;
puStack_20[3] = uStack_70;
puStack_20[4] = uStack_68;
puStack_20[5] = uStack_60;
puStack_20[6] = uStack_58;
puStack_20[7] = uStack_50;
puStack_20[8] = uStack_48;
puStack_20[9] = uStack_40;
puStack_20[10] = uStack_38;
puStack_20[0xb] = uStack_30;
*(uint *)(puStack_20 + 0xc) = uStack_28;
*(undefined *)((long)puStack_20 + 99) = 0;
printLine(puStack_20);
return;
}
| ['gcc'] |
17,964 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_67b_goodG2BSink(CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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 */
memcpy(data, source, 100*sizeof(char));
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/64145/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_67b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_67b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_67b_goodG2BSink
(undefined8 *param_1)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
uint uStack_28;
undefined8 *puStack_20;
puStack_20 = param_1;
func_0x00400a10(&uStack_88,0x43,99);
uStack_28 = uStack_28 & 0xffffff;
*puStack_20 = uStack_88;
puStack_20[1] = uStack_80;
puStack_20[2] = uStack_78;
puStack_20[3] = uStack_70;
puStack_20[4] = uStack_68;
puStack_20[5] = uStack_60;
puStack_20[6] = uStack_58;
puStack_20[7] = uStack_50;
puStack_20[8] = uStack_48;
puStack_20[9] = uStack_40;
puStack_20[10] = uStack_38;
puStack_20[0xb] = uStack_30;
*(uint *)(puStack_20 + 0xc) = uStack_28;
*(undefined *)((long)puStack_20 + 99) = 0;
printLine(puStack_20);
return;
}
| ['gcc'] |
17,965 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_68_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 */
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_68_badData = data;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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/64146/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_68a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_68_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_68_bad(void)
{
undefined auStack_48 [56];
undefined *puStack_10;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_68_badData = auStack_48;
auStack_48[0] = 0;
puStack_10 = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_68_badData;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_68b_badSink();
return;
}
| ['gcc'] |
17,966 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_68_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64146/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_68a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_68_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_68_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,967 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_68b_badSink()
{
char * data = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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 */
memcpy(data, source, 100*sizeof(char));
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/64146/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_68b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_68b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_68b_badSink(void)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
uint uStack_28;
undefined8 *puStack_20;
puStack_20 = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_68_badData;
func_0x00400a10(&uStack_88,0x43,99);
uStack_28 = uStack_28 & 0xffffff;
*puStack_20 = uStack_88;
puStack_20[1] = uStack_80;
puStack_20[2] = uStack_78;
puStack_20[3] = uStack_70;
puStack_20[4] = uStack_68;
puStack_20[5] = uStack_60;
puStack_20[6] = uStack_58;
puStack_20[7] = uStack_50;
puStack_20[8] = uStack_48;
puStack_20[9] = uStack_40;
puStack_20[10] = uStack_38;
puStack_20[0xb] = uStack_30;
*(uint *)(puStack_20 + 0xc) = uStack_28;
*(undefined *)((long)puStack_20 + 99) = 0;
printLine(puStack_20);
return;
}
| ['gcc'] |
17,968 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_68b_goodG2BSink()
{
char * data = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_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 */
memcpy(data, source, 100*sizeof(char));
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/64146/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_68b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_68b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_68b_goodG2BSink(void)
{
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
uint uStack_28;
undefined8 *puStack_20;
puStack_20 = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_68_goodG2BData;
func_0x00400a10(&uStack_88,0x43,99);
uStack_28 = uStack_28 & 0xffffff;
*puStack_20 = uStack_88;
puStack_20[1] = uStack_80;
puStack_20[2] = uStack_78;
puStack_20[3] = uStack_70;
puStack_20[4] = uStack_68;
puStack_20[5] = uStack_60;
puStack_20[6] = uStack_58;
puStack_20[7] = uStack_50;
puStack_20[8] = uStack_48;
puStack_20[9] = uStack_40;
puStack_20[10] = uStack_38;
puStack_20[0xb] = uStack_30;
*(uint *)(puStack_20 + 0xc) = uStack_28;
*(undefined *)((long)puStack_20 + 99) = 0;
printLine(puStack_20);
return;
}
| ['gcc'] |
17,969 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_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 */
{
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 */
memmove(data, source, 100*sizeof(char));
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/64152/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_01.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_01_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_01_bad(void)
{
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
func_0x00400a50(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400ad0(puStack_10,auStack_128,100);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,970 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_01_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64152/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_01.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_01_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_01_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,971 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_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 */
}
{
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 */
memmove(data, source, 100*sizeof(char));
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/64153/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_02.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_02_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_02_bad(void)
{
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
func_0x00400a50(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400ad0(puStack_10,auStack_128,100);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,972 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_02_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64153/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_02.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_02_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_02_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,973 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_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 */
}
{
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 */
memmove(data, source, 100*sizeof(char));
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/64154/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_03.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_03_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_03_bad(void)
{
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
func_0x00400a50(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400ad0(puStack_10,auStack_128,100);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,974 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_03_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64154/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_03.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_03_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_03_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,975 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_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 */
}
{
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 */
memmove(data, source, 100*sizeof(char));
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/64155/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_04.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_04_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_04_bad(void)
{
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
func_0x00400a50(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400ad0(puStack_10,auStack_128,100);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,976 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_04_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64155/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_04.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_04_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_04_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,977 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_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 */
}
{
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 */
memmove(data, source, 100*sizeof(char));
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/64156/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_05.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_05_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_05_bad(void)
{
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
if (staticTrue != 0) {
puStack_10 = auStack_48;
auStack_48[0] = 0;
}
func_0x00400a50(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400ad0(puStack_10,auStack_128,100);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,978 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_05_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64156/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_05.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_05_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_05_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,979 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_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 */
}
{
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 */
memmove(data, source, 100*sizeof(char));
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/64157/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_06.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_06_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_06_bad(void)
{
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
func_0x00400a50(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400ad0(puStack_10,auStack_128,100);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,980 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_06_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64157/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_06.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_06_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_06_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,981 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_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 */
}
{
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 */
memmove(data, source, 100*sizeof(char));
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/64158/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_07.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_07_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_07_bad(void)
{
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
if (staticFive == 5) {
puStack_10 = auStack_48;
auStack_48[0] = 0;
}
func_0x00400a50(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400ad0(puStack_10,auStack_128,100);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,982 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_07_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64158/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_07.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_07_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_07_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,983 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_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 */
}
{
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 */
memmove(data, source, 100*sizeof(char));
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/64159/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_08.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_08_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_08_bad(void)
{
int iVar1;
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
puStack_10 = auStack_48;
auStack_48[0] = 0;
}
func_0x00400a50(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400ad0(puStack_10,auStack_128,100);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,984 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_08_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64159/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_08.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_08_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_08_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,985 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_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 */
}
{
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 */
memmove(data, source, 100*sizeof(char));
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/64160/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_09.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_09_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_09_bad(void)
{
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
if (GLOBAL_CONST_TRUE != 0) {
puStack_10 = auStack_48;
auStack_48[0] = 0;
}
func_0x00400a50(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400ad0(puStack_10,auStack_128,100);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,986 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_09_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64160/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_09.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_09_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_09_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,987 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_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 */
}
{
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 */
memmove(data, source, 100*sizeof(char));
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/64161/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_10.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_10_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_10_bad(void)
{
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
if (globalTrue != 0) {
puStack_10 = auStack_48;
auStack_48[0] = 0;
}
func_0x00400a50(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400ad0(puStack_10,auStack_128,100);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,988 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_10_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64161/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_10.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_10_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_10_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,989 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_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 */
}
{
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 */
memmove(data, source, 100*sizeof(char));
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/64162/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_11.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_11_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_11_bad(void)
{
int iVar1;
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
puStack_10 = auStack_48;
auStack_48[0] = 0;
}
func_0x00400a50(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400ad0(puStack_10,auStack_128,100);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,990 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_11_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64162/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_11.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_11_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_11_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,991 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_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 */
}
{
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 */
memmove(data, source, 100*sizeof(char));
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/64163/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_12.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_12_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_12_bad(void)
{
int iVar1;
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_b8 [112];
undefined auStack_48 [56];
undefined *puStack_10;
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
puStack_10 = auStack_b8;
auStack_b8[0] = 0;
}
else {
puStack_10 = auStack_48;
auStack_48[0] = 0;
}
func_0x00400a50(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400ad0(puStack_10,auStack_128,100);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,992 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_12_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64163/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_12.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_12_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_12_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
17,993 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_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 */
}
{
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 */
memmove(data, source, 100*sizeof(char));
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/64164/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_13.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_13_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_13_bad(void)
{
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
if (GLOBAL_CONST_FIVE == 5) {
puStack_10 = auStack_48;
auStack_48[0] = 0;
}
func_0x00400a50(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400ad0(puStack_10,auStack_128,100);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,994 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_13_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64164/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_13.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_13_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_13_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,995 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_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 */
}
{
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 */
memmove(data, source, 100*sizeof(char));
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/64165/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_14.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_14_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_14_bad(void)
{
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
if (globalFive == 5) {
puStack_10 = auStack_48;
auStack_48[0] = 0;
}
func_0x00400a50(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400ad0(puStack_10,auStack_128,100);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,996 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_14_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64165/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_14.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_14_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_14_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,997 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_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;
}
{
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 */
memmove(data, source, 100*sizeof(char));
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/64166/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_15.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_15_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_15_bad(void)
{
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
func_0x00400a50(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400ad0(puStack_10,auStack_128,100);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
17,998 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_15_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64166/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_15.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_15_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_15_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
17,999 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_16_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
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 */
memmove(data, source, 100*sizeof(char));
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/64167/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_16.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_16_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memmove_16_bad(void)
{
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
func_0x00400a50(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400ad0(puStack_10,auStack_128,100);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.