Unnamed: 0
int64
0
56k
source_code
stringlengths
55
5.98k
comments
stringlengths
2
1.76k
label
stringclasses
68 values
dataset_name
stringclasses
1 value
file_name
stringlengths
208
265
function
stringlengths
27
87
decompiled_code
stringlengths
68
3.97k
compiler_options
stringclasses
1 value
16,000
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_64_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_64b_badSink(&data); }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63142/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_64a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_64_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_64_bad(void) { undefined auStack_60 [32]; undefined auStack_40 [32]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_40; puStack_18 = auStack_60; auStack_40[0] = 0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_64b_badSink(&puStack_20,0x10,2); return; }
['gcc']
16,001
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_64_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63142/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_64a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_64_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_64_good(void) { goodG2B(); return; }
['gcc']
16,002
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_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[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63142/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_64b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_64b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_64b_badSink(undefined8 *param_1) { long lVar1; undefined8 uStack_23; undefined2 uStack_1b; undefined uStack_19; undefined8 uStack_18; undefined8 *puStack_10; uStack_18 = *param_1; uStack_23 = 0x4141414141414141; uStack_1b = 0x4141; uStack_19 = 0; puStack_10 = param_1; lVar1 = func_0x00400a50(&uStack_23); func_0x00400ab0(uStack_18,&uStack_23,lVar1 + 1); printLine(uStack_18); return; }
['gcc']
16,003
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_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[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63142/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_64b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_64b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_64b_goodG2BSink (undefined8 *param_1) { long lVar1; undefined8 uStack_23; undefined2 uStack_1b; undefined uStack_19; undefined8 uStack_18; undefined8 *puStack_10; uStack_18 = *param_1; uStack_23 = 0x4141414141414141; uStack_1b = 0x4141; uStack_19 = 0; puStack_10 = param_1; lVar1 = func_0x00400a50(&uStack_23); func_0x00400ab0(uStack_18,&uStack_23,lVar1 + 1); printLine(uStack_18); return; }
['gcc']
16,004
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_66_bad() { char * data; char * dataArray[5]; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ /* put data in array */ dataArray[2] = data; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_66b_badSink(dataArray); }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* put data in array */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63144/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_66a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_66_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_66_bad(void) { undefined auStack_80 [32]; undefined auStack_60 [24]; undefined auStack_48 [16]; undefined *puStack_38; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_38 = auStack_60; puStack_18 = auStack_80; auStack_60[0] = 0; puStack_20 = puStack_38; puStack_10 = puStack_38; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_66b_badSink(auStack_48,0x10,2); return; }
['gcc']
16,005
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_66_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63144/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_66a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_66_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_66_good(void) { goodG2B(); return; }
['gcc']
16,006
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_66b_badSink(char * dataArray[]) { /* copy data out of dataArray */ char * data = dataArray[2]; { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* copy data out of dataArray */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63144/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_66b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_66b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_66b_badSink(long param_1) { long lVar1; undefined8 uStack_1b; undefined2 uStack_13; undefined uStack_11; undefined8 uStack_10; uStack_10 = *(undefined8 *)(param_1 + 0x10); uStack_1b = 0x4141414141414141; uStack_13 = 0x4141; uStack_11 = 0; lVar1 = func_0x00400a50(&uStack_1b); func_0x00400ab0(uStack_10,&uStack_1b,lVar1 + 1); printLine(uStack_10); return; }
['gcc']
16,007
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_66b_goodG2BSink(char * dataArray[]) { char * data = dataArray[2]; { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63144/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_66b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_66b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_66b_goodG2BSink(long param_1) { long lVar1; undefined8 uStack_1b; undefined2 uStack_13; undefined uStack_11; undefined8 uStack_10; uStack_10 = *(undefined8 *)(param_1 + 0x10); uStack_1b = 0x4141414141414141; uStack_13 = 0x4141; uStack_11 = 0; lVar1 = func_0x00400a50(&uStack_1b); func_0x00400ab0(uStack_10,&uStack_1b,lVar1 + 1); printLine(uStack_10); return; }
['gcc']
16,008
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_67_bad() { char * data; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_67_structType myStruct; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ myStruct.structFirst = data; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_67b_badSink(myStruct); }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63145/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_67a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_67_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_67_bad(void) { undefined auStack_60 [32]; undefined auStack_40 [24]; undefined *puStack_28; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_28 = auStack_40; puStack_18 = auStack_60; auStack_40[0] = 0; puStack_20 = puStack_28; puStack_10 = puStack_28; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_67b_badSink(puStack_28,0x10,2); return; }
['gcc']
16,009
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_67_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63145/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_67a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_67_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_67_good(void) { goodG2B(); return; }
['gcc']
16,010
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_67b_badSink(CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_67_structType myStruct) { char * data = myStruct.structFirst; { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63145/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_67b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_67b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_67b_badSink(undefined8 param_1) { long lVar1; undefined8 uStack_1b; undefined2 uStack_13; undefined uStack_11; undefined8 uStack_10; uStack_1b = 0x4141414141414141; uStack_13 = 0x4141; uStack_11 = 0; uStack_10 = param_1; lVar1 = func_0x00400a50(&uStack_1b); func_0x00400ab0(uStack_10,&uStack_1b,lVar1 + 1); printLine(uStack_10); return; }
['gcc']
16,011
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_67b_goodG2BSink(CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_67_structType myStruct) { char * data = myStruct.structFirst; { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63145/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_67b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_67b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_67b_goodG2BSink (undefined8 param_1) { long lVar1; undefined8 uStack_1b; undefined2 uStack_13; undefined uStack_11; undefined8 uStack_10; uStack_1b = 0x4141414141414141; uStack_13 = 0x4141; uStack_11 = 0; uStack_10 = param_1; lVar1 = func_0x00400a50(&uStack_1b); func_0x00400ab0(uStack_10,&uStack_1b,lVar1 + 1); printLine(uStack_10); return; }
['gcc']
16,012
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_01_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63152/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_01.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_01_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_01_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_50; puStack_18 = auStack_70; auStack_50[0] = 0; uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; puStack_10 = puStack_20; lVar1 = func_0x00400a40(&uStack_2b,0x10,2); func_0x00400ad0(puStack_20,&uStack_2b,lVar1 + 1); printLine(puStack_20); return; }
['gcc']
16,013
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_01_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63152/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_01.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_01_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_01_good(void) { goodG2B(); return; }
['gcc']
16,014
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_02_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); if(1) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63153/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_02.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_02_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_02_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_50; puStack_18 = auStack_70; auStack_50[0] = 0; uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; puStack_10 = puStack_20; lVar1 = func_0x00400a40(&uStack_2b,0x10,2); func_0x00400ad0(puStack_20,&uStack_2b,lVar1 + 1); printLine(puStack_20); return; }
['gcc']
16,015
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_02_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63153/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_02.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_02_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_02_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,016
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_03_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); if(5==5) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63154/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_03.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_03_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_03_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_50; puStack_18 = auStack_70; auStack_50[0] = 0; uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; puStack_10 = puStack_20; lVar1 = func_0x00400a40(&uStack_2b,0x10,2); func_0x00400ad0(puStack_20,&uStack_2b,lVar1 + 1); printLine(puStack_20); return; }
['gcc']
16,017
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_03_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63154/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_03.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_03_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_03_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,018
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_04_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); if(STATIC_CONST_TRUE) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63155/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_04.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_04_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_04_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_18 = auStack_50; puStack_20 = auStack_70; auStack_50[0] = 0; uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; puStack_10 = puStack_18; lVar1 = func_0x00400a40(&uStack_2b,0x10,2); func_0x00400ad0(puStack_10,&uStack_2b,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,019
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_05_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); if(staticTrue) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63156/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_05.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_05_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_05_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_18 = auStack_50; puStack_20 = auStack_70; if (staticTrue != 0) { auStack_50[0] = 0; puStack_10 = puStack_18; } uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; lVar1 = func_0x00400a40(&uStack_2b,0x10,2); func_0x00400ad0(puStack_10,&uStack_2b,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,020
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_05_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63156/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_05.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_05_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_05_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,021
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_06_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); if(STATIC_CONST_FIVE==5) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63157/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_06.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_06_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_06_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_18 = auStack_50; puStack_20 = auStack_70; auStack_50[0] = 0; uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; puStack_10 = puStack_18; lVar1 = func_0x00400a40(&uStack_2b,0x10,2); func_0x00400ad0(puStack_10,&uStack_2b,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,022
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_06_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63157/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_06.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_06_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_06_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,023
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_07_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); if(staticFive==5) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63158/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_07.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_07_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_07_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_18 = auStack_50; puStack_20 = auStack_70; if (staticFive == 5) { auStack_50[0] = 0; puStack_10 = puStack_18; } uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; lVar1 = func_0x00400a40(&uStack_2b,0x10,2); func_0x00400ad0(puStack_10,&uStack_2b,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,024
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_07_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63158/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_07.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_07_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_07_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,025
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_08_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); if(staticReturnsTrue()) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63159/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_08.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_08_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_08_bad(undefined8 param_1) { int iVar1; long lVar2; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_18 = auStack_50; puStack_20 = auStack_70; iVar1 = staticReturnsTrue(param_1,0x10,2); if (iVar1 != 0) { puStack_10 = puStack_18; *puStack_18 = 0; } uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; lVar2 = func_0x00400a40(&uStack_2b); func_0x00400ad0(puStack_10,&uStack_2b,lVar2 + 1); printLine(puStack_10); return; }
['gcc']
16,026
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_08_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63159/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_08.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_08_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_08_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,027
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_09_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); if(GLOBAL_CONST_TRUE) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63160/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_09.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_09_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_09_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_18 = auStack_50; puStack_20 = auStack_70; if (GLOBAL_CONST_TRUE != 0) { auStack_50[0] = 0; puStack_10 = puStack_18; } uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; lVar1 = func_0x00400a40(&uStack_2b,0x10,2); func_0x00400ad0(puStack_10,&uStack_2b,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,028
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_09_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63160/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_09.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_09_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_09_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,029
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_10_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); if(globalTrue) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63161/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_10.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_10_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_10_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_18 = auStack_50; puStack_20 = auStack_70; if (globalTrue != 0) { auStack_50[0] = 0; puStack_10 = puStack_18; } uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; lVar1 = func_0x00400a40(&uStack_2b,0x10,2); func_0x00400ad0(puStack_10,&uStack_2b,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,030
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_10_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63161/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_10.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_10_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_10_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,031
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_11_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); if(globalReturnsTrue()) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63162/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_11.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_11_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_11_bad(undefined8 param_1) { int iVar1; long lVar2; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_18 = auStack_50; puStack_20 = auStack_70; iVar1 = globalReturnsTrue(param_1,0x10,2); if (iVar1 != 0) { puStack_10 = puStack_18; *puStack_18 = 0; } uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; lVar2 = func_0x00400a40(&uStack_2b); func_0x00400ad0(puStack_10,&uStack_2b,lVar2 + 1); printLine(puStack_10); return; }
['gcc']
16,032
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_11_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63162/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_11.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_11_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_11_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,033
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_12_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); if(globalReturnsTrueOrFalse()) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } else { /* FIX: Set a pointer to a buffer that leaves room for a NULL terminator when performing * string copies in the sinks */ data = dataGoodBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* FIX: Set a pointer to a buffer that leaves room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63163/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_12.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_12_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_12_bad(undefined8 param_1) { int iVar1; long lVar2; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_18 = auStack_50; puStack_20 = auStack_70; iVar1 = globalReturnsTrueOrFalse(param_1,0x10,2); if (iVar1 == 0) { puStack_10 = puStack_20; *puStack_20 = 0; } else { puStack_10 = puStack_18; *puStack_18 = 0; } uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; lVar2 = func_0x00400a40(&uStack_2b); func_0x00400ad0(puStack_10,&uStack_2b,lVar2 + 1); printLine(puStack_10); return; }
['gcc']
16,034
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_12_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63163/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_12.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_12_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_12_good(void) { goodG2B(); return; }
['gcc']
16,035
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_13_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); if(GLOBAL_CONST_FIVE==5) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63164/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_13.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_13_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_13_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_18 = auStack_50; puStack_20 = auStack_70; if (GLOBAL_CONST_FIVE == 5) { auStack_50[0] = 0; puStack_10 = puStack_18; } uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; lVar1 = func_0x00400a40(&uStack_2b,0x10,2); func_0x00400ad0(puStack_10,&uStack_2b,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,036
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_13_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63164/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_13.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_13_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_13_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,037
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_14_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); if(globalFive==5) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63165/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_14.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_14_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_14_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_18 = auStack_50; puStack_20 = auStack_70; if (globalFive == 5) { auStack_50[0] = 0; puStack_10 = puStack_18; } uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; lVar1 = func_0x00400a40(&uStack_2b,0x10,2); func_0x00400ad0(puStack_10,&uStack_2b,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,038
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_14_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63165/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_14.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_14_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_14_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,039
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_15_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); switch(6) { case 6: /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63166/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_15.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_15_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_15_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_50; puStack_18 = auStack_70; auStack_50[0] = 0; uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; puStack_10 = puStack_20; lVar1 = func_0x00400a40(&uStack_2b,0x10,2); func_0x00400ad0(puStack_20,&uStack_2b,lVar1 + 1); printLine(puStack_20); return; }
['gcc']
16,040
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_15_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63166/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_15.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_15_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_15_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,041
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_16_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); while(1) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ break; } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63167/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_16.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_16_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_16_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_50; puStack_18 = auStack_70; auStack_50[0] = 0; uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; puStack_10 = puStack_20; lVar1 = func_0x00400a40(&uStack_2b,0x10,2); func_0x00400ad0(puStack_20,&uStack_2b,lVar1 + 1); printLine(puStack_20); return; }
['gcc']
16,042
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_16_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63167/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_16.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_16_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_16_good(void) { goodG2B(); return; }
['gcc']
16,043
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_17_bad() { int i; char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); for(i = 0; i < 1; i++) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63168/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_17.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_17_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_17_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [29]; undefined8 uStack_33; undefined2 uStack_2b; undefined uStack_29; undefined *puStack_28; undefined *puStack_20; undefined *puStack_18; int iStack_c; puStack_20 = auStack_50; puStack_28 = auStack_70; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { puStack_18 = puStack_20; *puStack_20 = 0; } uStack_33 = 0x4141414141414141; uStack_2b = 0x4141; uStack_29 = 0; lVar1 = func_0x00400a40(&uStack_33,0x10,2); func_0x00400ad0(puStack_18,&uStack_33,lVar1 + 1); printLine(puStack_18); return; }
['gcc']
16,044
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_17_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63168/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_17.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_17_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_17_good(void) { goodG2B(); return; }
['gcc']
16,045
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_18_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); goto source; source: /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63169/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_18.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_18_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_18_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_50; puStack_18 = auStack_70; auStack_50[0] = 0; uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; puStack_10 = puStack_20; lVar1 = func_0x00400a40(&uStack_2b,0x10,2); func_0x00400ad0(puStack_20,&uStack_2b,lVar1 + 1); printLine(puStack_20); return; }
['gcc']
16,046
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_18_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63169/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_18.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_18_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_18_good(void) { goodG2B(); return; }
['gcc']
16,047
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_31_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ { char * dataCopy = data; char * data = dataCopy; { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63170/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_31.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_31_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_31_bad(void) { long lVar1; undefined auStack_80 [32]; undefined auStack_60 [37]; undefined8 uStack_3b; undefined2 uStack_33; undefined uStack_31; undefined *puStack_30; undefined *puStack_28; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_30 = auStack_60; puStack_18 = auStack_80; auStack_60[0] = 0; uStack_3b = 0x4141414141414141; uStack_33 = 0x4141; uStack_31 = 0; puStack_28 = puStack_30; puStack_20 = puStack_30; puStack_10 = puStack_30; lVar1 = func_0x00400a40(&uStack_3b,0x10,2); func_0x00400ad0(puStack_30,&uStack_3b,lVar1 + 1); printLine(puStack_30); return; }
['gcc']
16,048
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_31_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63170/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_31.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_31_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_31_good(void) { goodG2B(); return; }
['gcc']
16,049
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_32_bad() { char * data; char * *dataPtr1 = &data; char * *dataPtr2 = &data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); { char * data = *dataPtr1; /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ *dataPtr1 = data; } { char * data = *dataPtr2; { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63171/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_32.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_32_bad
/* WARNING: Heritage AFTER dead removal. Example location: s0xffffffffffffffc0 : 0x00400c7b */ /* WARNING: Restarted to delay deadcode elimination for space: stack */ void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_32_bad(void) { long lVar1; undefined auStack_90 [32]; undefined auStack_70 [37]; undefined8 uStack_4b; undefined2 uStack_43; undefined uStack_41; undefined8 uStack_40; undefined8 uStack_38; undefined *puStack_30; undefined *puStack_28; undefined *puStack_20; undefined8 *puStack_18; undefined8 *puStack_10; puStack_10 = &uStack_40; puStack_18 = &uStack_40; puStack_30 = auStack_70; puStack_28 = auStack_90; auStack_70[0] = 0; uStack_38 = uStack_40; uStack_4b = 0x4141414141414141; uStack_43 = 0x4141; uStack_41 = 0; puStack_20 = puStack_30; lVar1 = func_0x00400a40(&uStack_4b); func_0x00400ad0(uStack_38,&uStack_4b,lVar1 + 1); printLine(uStack_38); return; }
['gcc']
16,050
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_32_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63171/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_32.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_32_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_32_good(void) { goodG2B(); return; }
['gcc']
16,051
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_34_bad() { char * data; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_34_unionType myUnion; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ myUnion.unionFirst = data; { char * data = myUnion.unionSecond; { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63173/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_34.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_34_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_34_bad(void) { long lVar1; undefined auStack_80 [32]; undefined auStack_60 [37]; undefined8 uStack_3b; undefined2 uStack_33; undefined uStack_31; undefined *puStack_30; undefined *puStack_28; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_30 = auStack_60; puStack_18 = auStack_80; auStack_60[0] = 0; uStack_3b = 0x4141414141414141; uStack_33 = 0x4141; uStack_31 = 0; puStack_28 = puStack_30; puStack_20 = puStack_30; puStack_10 = puStack_30; lVar1 = func_0x00400a40(&uStack_3b,0x10,2); func_0x00400ad0(puStack_28,&uStack_3b,lVar1 + 1); printLine(puStack_28); return; }
['gcc']
16,052
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_34_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63173/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_34.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_34_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_34_good(void) { goodG2B(); return; }
['gcc']
16,053
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_41_badSink(char * data) { { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63174/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_41_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_41_badSink(undefined8 param_1) { long lVar1; undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; lVar1 = func_0x00400a40(&uStack_13); func_0x00400ad0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
16,054
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_41_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_41_badSink(data); }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63174/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_41_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_41_bad(void) { undefined auStack_60 [32]; undefined auStack_40 [32]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_40; puStack_18 = auStack_60; auStack_40[0] = 0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_41_badSink(puStack_20,0x10,2); return; }
['gcc']
16,055
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_41_goodG2BSink(char * data) { { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63174/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_41_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_41_goodG2BSink (undefined8 param_1) { long lVar1; undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; lVar1 = func_0x00400a40(&uStack_13); func_0x00400ad0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
16,056
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_41_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63174/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_41_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_41_good(void) { goodG2B(); return; }
['gcc']
16,057
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_51_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_51b_badSink(data); }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63177/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_51a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_51_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_51_bad(void) { undefined auStack_60 [32]; undefined auStack_40 [32]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_40; puStack_18 = auStack_60; auStack_40[0] = 0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_51b_badSink(puStack_20,0x10,2); return; }
['gcc']
16,058
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_51_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63177/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_51a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_51_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_51_good(void) { goodG2B(); return; }
['gcc']
16,059
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_51b_badSink(char * data) { { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63177/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_51b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_51b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_51b_badSink(undefined8 param_1) { long lVar1; undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; lVar1 = func_0x00400a40(&uStack_13); func_0x00400ad0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
16,060
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_51b_goodG2BSink(char * data) { { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63177/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_51b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_51b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_51b_goodG2BSink (undefined8 param_1) { long lVar1; undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; lVar1 = func_0x00400a40(&uStack_13); func_0x00400ad0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
16,061
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52b_badSink(data); }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63178/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52_bad(void) { undefined auStack_60 [32]; undefined auStack_40 [32]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_40; puStack_18 = auStack_60; auStack_40[0] = 0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52b_badSink(puStack_20,0x10,2); return; }
['gcc']
16,062
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63178/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52_good(void) { goodG2B(); return; }
['gcc']
16,063
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52b_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52c_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63178/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52c_badSink(param_1); return; }
['gcc']
16,064
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52b_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63178/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52b_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52c_goodG2BSink(param_1); return; }
['gcc']
16,065
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52c_badSink(char * data) { { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63178/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52c_badSink(undefined8 param_1) { long lVar1; undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; lVar1 = func_0x00400a40(&uStack_13); func_0x00400ad0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
16,066
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52c_goodG2BSink(char * data) { { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63178/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_52c_goodG2BSink (undefined8 param_1) { long lVar1; undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; lVar1 = func_0x00400a40(&uStack_13); func_0x00400ad0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
16,067
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53b_badSink(data); }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63179/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53_bad(void) { undefined auStack_60 [32]; undefined auStack_40 [32]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_40; puStack_18 = auStack_60; auStack_40[0] = 0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53b_badSink(puStack_20,0x10,2); return; }
['gcc']
16,068
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63179/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53_good(void) { goodG2B(); return; }
['gcc']
16,069
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53b_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53c_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63179/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53c_badSink(param_1); return; }
['gcc']
16,070
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53b_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63179/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53b_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53c_goodG2BSink(param_1); return; }
['gcc']
16,071
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53c_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53d_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63179/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53c_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53d_badSink(param_1); return; }
['gcc']
16,072
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53c_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63179/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53c_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53d_goodG2BSink(param_1); return; }
['gcc']
16,073
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53d_badSink(char * data) { { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63179/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53d.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53d_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53d_badSink(undefined8 param_1) { long lVar1; undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; lVar1 = func_0x00400a40(&uStack_13); func_0x00400ad0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
16,074
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53d_goodG2BSink(char * data) { { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63179/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53d.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53d_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_53d_goodG2BSink (undefined8 param_1) { long lVar1; undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; lVar1 = func_0x00400a40(&uStack_13); func_0x00400ad0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
16,075
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54b_badSink(data); }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63180/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54_bad(void) { undefined auStack_60 [32]; undefined auStack_40 [32]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_40; puStack_18 = auStack_60; auStack_40[0] = 0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54b_badSink(puStack_20,0x10,2); return; }
['gcc']
16,076
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63180/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54_good(void) { goodG2B(); return; }
['gcc']
16,077
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54b_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54c_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63180/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54c_badSink(param_1); return; }
['gcc']
16,078
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54b_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63180/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54b_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54c_goodG2BSink(param_1); return; }
['gcc']
16,079
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54c_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54d_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63180/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54c_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54d_badSink(param_1); return; }
['gcc']
16,080
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54c_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63180/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54c_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54d_goodG2BSink(param_1); return; }
['gcc']
16,081
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54d_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54e_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63180/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54d.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54d_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54d_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54e_badSink(param_1); return; }
['gcc']
16,082
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54d_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54e_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63180/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54d.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54d_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54d_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54e_goodG2BSink(param_1); return; }
['gcc']
16,083
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54e_badSink(char * data) { { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63180/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54e.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54e_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54e_badSink(undefined8 param_1) { long lVar1; undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; lVar1 = func_0x00400a40(&uStack_13); func_0x00400ad0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
16,084
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54e_goodG2BSink(char * data) { { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63180/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54e.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54e_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_54e_goodG2BSink (undefined8 param_1) { long lVar1; undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; lVar1 = func_0x00400a40(&uStack_13); func_0x00400ad0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
16,085
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_63_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_63b_badSink(&data); }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63181/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_63a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_63_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_63_bad(void) { undefined auStack_60 [32]; undefined auStack_40 [32]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_40; puStack_18 = auStack_60; auStack_40[0] = 0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_63b_badSink(&puStack_20,0x10,2); return; }
['gcc']
16,086
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_63_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63181/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_63a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_63_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_63_good(void) { goodG2B(); return; }
['gcc']
16,087
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_63b_badSink(char * * dataPtr) { char * data = *dataPtr; { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63181/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_63b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_63b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_63b_badSink(undefined8 *param_1) { long lVar1; undefined8 uStack_1b; undefined2 uStack_13; undefined uStack_11; undefined8 uStack_10; uStack_10 = *param_1; uStack_1b = 0x4141414141414141; uStack_13 = 0x4141; uStack_11 = 0; lVar1 = func_0x00400a40(&uStack_1b); func_0x00400ad0(uStack_10,&uStack_1b,lVar1 + 1); printLine(uStack_10); return; }
['gcc']
16,088
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_63b_goodG2BSink(char * * dataPtr) { char * data = *dataPtr; { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63181/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_63b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_63b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_63b_goodG2BSink (undefined8 *param_1) { long lVar1; undefined8 uStack_1b; undefined2 uStack_13; undefined uStack_11; undefined8 uStack_10; uStack_10 = *param_1; uStack_1b = 0x4141414141414141; uStack_13 = 0x4141; uStack_11 = 0; lVar1 = func_0x00400a40(&uStack_1b); func_0x00400ad0(uStack_10,&uStack_1b,lVar1 + 1); printLine(uStack_10); return; }
['gcc']
16,089
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_64_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_64b_badSink(&data); }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63182/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_64a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_64_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_64_bad(void) { undefined auStack_60 [32]; undefined auStack_40 [32]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_40; puStack_18 = auStack_60; auStack_40[0] = 0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_64b_badSink(&puStack_20,0x10,2); return; }
['gcc']
16,090
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_64_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63182/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_64a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_64_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_64_good(void) { goodG2B(); return; }
['gcc']
16,091
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_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[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63182/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_64b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_64b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_64b_badSink(undefined8 *param_1) { long lVar1; undefined8 uStack_23; undefined2 uStack_1b; undefined uStack_19; undefined8 uStack_18; undefined8 *puStack_10; uStack_18 = *param_1; uStack_23 = 0x4141414141414141; uStack_1b = 0x4141; uStack_19 = 0; puStack_10 = param_1; lVar1 = func_0x00400a40(&uStack_23); func_0x00400ad0(uStack_18,&uStack_23,lVar1 + 1); printLine(uStack_18); return; }
['gcc']
16,092
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_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[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63182/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_64b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_64b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_64b_goodG2BSink (undefined8 *param_1) { long lVar1; undefined8 uStack_23; undefined2 uStack_1b; undefined uStack_19; undefined8 uStack_18; undefined8 *puStack_10; uStack_18 = *param_1; uStack_23 = 0x4141414141414141; uStack_1b = 0x4141; uStack_19 = 0; puStack_10 = param_1; lVar1 = func_0x00400a40(&uStack_23); func_0x00400ad0(uStack_18,&uStack_23,lVar1 + 1); printLine(uStack_18); return; }
['gcc']
16,093
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_66_bad() { char * data; char * dataArray[5]; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ /* put data in array */ dataArray[2] = data; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_66b_badSink(dataArray); }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* put data in array */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63184/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_66a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_66_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_66_bad(void) { undefined auStack_80 [32]; undefined auStack_60 [24]; undefined auStack_48 [16]; undefined *puStack_38; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_38 = auStack_60; puStack_18 = auStack_80; auStack_60[0] = 0; puStack_20 = puStack_38; puStack_10 = puStack_38; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_66b_badSink(auStack_48,0x10,2); return; }
['gcc']
16,094
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_66_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63184/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_66a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_66_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_66_good(void) { goodG2B(); return; }
['gcc']
16,095
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_66b_badSink(char * dataArray[]) { /* copy data out of dataArray */ char * data = dataArray[2]; { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* copy data out of dataArray */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63184/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_66b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_66b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_66b_badSink(long param_1) { long lVar1; undefined8 uStack_1b; undefined2 uStack_13; undefined uStack_11; undefined8 uStack_10; uStack_10 = *(undefined8 *)(param_1 + 0x10); uStack_1b = 0x4141414141414141; uStack_13 = 0x4141; uStack_11 = 0; lVar1 = func_0x00400a40(&uStack_1b); func_0x00400ad0(uStack_10,&uStack_1b,lVar1 + 1); printLine(uStack_10); return; }
['gcc']
16,096
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_66b_goodG2BSink(char * dataArray[]) { char * data = dataArray[2]; { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63184/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_66b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_66b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_66b_goodG2BSink(long param_1) { long lVar1; undefined8 uStack_1b; undefined2 uStack_13; undefined uStack_11; undefined8 uStack_10; uStack_10 = *(undefined8 *)(param_1 + 0x10); uStack_1b = 0x4141414141414141; uStack_13 = 0x4141; uStack_11 = 0; lVar1 = func_0x00400a40(&uStack_1b); func_0x00400ad0(uStack_10,&uStack_1b,lVar1 + 1); printLine(uStack_10); return; }
['gcc']
16,097
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_67_bad() { char * data; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_67_structType myStruct; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ myStruct.structFirst = data; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_67b_badSink(myStruct); }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63185/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_67a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_67_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_67_bad(void) { undefined auStack_60 [32]; undefined auStack_40 [24]; undefined *puStack_28; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_28 = auStack_40; puStack_18 = auStack_60; auStack_40[0] = 0; puStack_20 = puStack_28; puStack_10 = puStack_28; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_67b_badSink(puStack_28,0x10,2); return; }
['gcc']
16,098
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_67_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63185/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_67a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_67_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_67_good(void) { goodG2B(); return; }
['gcc']
16,099
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_67b_badSink(CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_67_structType myStruct) { char * data = myStruct.structFirst; { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63185/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_67b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_67b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_67b_badSink(undefined8 param_1) { long lVar1; undefined8 uStack_1b; undefined2 uStack_13; undefined uStack_11; undefined8 uStack_10; uStack_1b = 0x4141414141414141; uStack_13 = 0x4141; uStack_11 = 0; uStack_10 = param_1; lVar1 = func_0x00400a40(&uStack_1b); func_0x00400ad0(uStack_10,&uStack_1b,lVar1 + 1); printLine(uStack_10); return; }
['gcc']