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,800
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54c_goodG2BSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63580/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54c_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54d_goodG2BSink(param_1); return; }
['gcc']
16,801
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54d_badSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54e_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63580/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54d.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54d_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54d_badSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54e_badSink(param_1); return; }
['gcc']
16,802
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54d_goodG2BSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54e_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63580/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54d.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54d_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54d_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54e_goodG2BSink(param_1); return; }
['gcc']
16,803
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54e_badSink(wchar_t * data) { { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); printWLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63580/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54e.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54e_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54e_badSink (undefined8 param_1) { long lVar1; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined8 uStack_18; undefined4 uStack_10; uStack_38 = 0x4100000041; uStack_30 = 0x4100000041; uStack_28 = 0x4100000041; uStack_20 = 0x4100000041; uStack_18 = 0x4100000041; uStack_10 = 0; lVar1 = func_0x00400a50(&uStack_38); func_0x00400ad0(param_1,&uStack_38,(lVar1 + 1) * 4); printWLine(param_1); return; }
['gcc']
16,804
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54e_goodG2BSink(wchar_t * data) { { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); printWLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63580/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54e.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54e_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_54e_goodG2BSink (undefined8 param_1) { long lVar1; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined8 uStack_18; undefined4 uStack_10; uStack_38 = 0x4100000041; uStack_30 = 0x4100000041; uStack_28 = 0x4100000041; uStack_20 = 0x4100000041; uStack_18 = 0x4100000041; uStack_10 = 0; lVar1 = func_0x00400a50(&uStack_38); func_0x00400ad0(param_1,&uStack_38,(lVar1 + 1) * 4); printWLine(param_1); return; }
['gcc']
16,805
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_63_bad() { wchar_t * data; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_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/63581/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_63a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_63_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_63_bad(void) { undefined auStack_90 [64]; undefined4 auStack_50 [12]; undefined4 *puStack_20; undefined *puStack_18; undefined4 *puStack_10; puStack_20 = auStack_50; puStack_18 = auStack_90; auStack_50[0] = 0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_63b_badSink(&puStack_20,0x10,3); return; }
['gcc']
16,806
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_63_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63581/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_63a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_63_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_63_good(void) { goodG2B(); return; }
['gcc']
16,807
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_63b_badSink(wchar_t * * dataPtr) { wchar_t * data = *dataPtr; { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); printWLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63581/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_63b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_63b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_63b_badSink (undefined8 *param_1) { long lVar1; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined4 uStack_20; undefined8 uStack_10; uStack_10 = *param_1; uStack_48 = 0x4100000041; uStack_40 = 0x4100000041; uStack_38 = 0x4100000041; uStack_30 = 0x4100000041; uStack_28 = 0x4100000041; uStack_20 = 0; lVar1 = func_0x00400a50(&uStack_48); func_0x00400ad0(uStack_10,&uStack_48,(lVar1 + 1) * 4); printWLine(uStack_10); return; }
['gcc']
16,808
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_63b_goodG2BSink(wchar_t * * dataPtr) { wchar_t * data = *dataPtr; { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); printWLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63581/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_63b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_63b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_63b_goodG2BSink (undefined8 *param_1) { long lVar1; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined4 uStack_20; undefined8 uStack_10; uStack_10 = *param_1; uStack_48 = 0x4100000041; uStack_40 = 0x4100000041; uStack_38 = 0x4100000041; uStack_30 = 0x4100000041; uStack_28 = 0x4100000041; uStack_20 = 0; lVar1 = func_0x00400a50(&uStack_48); func_0x00400ad0(uStack_10,&uStack_48,(lVar1 + 1) * 4); printWLine(uStack_10); return; }
['gcc']
16,809
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_64_bad() { wchar_t * data; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_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/63582/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_64a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_64_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_64_bad(void) { undefined auStack_90 [64]; undefined4 auStack_50 [12]; undefined4 *puStack_20; undefined *puStack_18; undefined4 *puStack_10; puStack_20 = auStack_50; puStack_18 = auStack_90; auStack_50[0] = 0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_64b_badSink(&puStack_20,0x10,3); return; }
['gcc']
16,810
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_64_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63582/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_64a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_64_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_64_good(void) { goodG2B(); return; }
['gcc']
16,811
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_64b_badSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ wchar_t * * dataPtr = (wchar_t * *)dataVoidPtr; /* dereference dataPtr into data */ wchar_t * data = (*dataPtr); { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); printWLine(data); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63582/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_64b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_64b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_64b_badSink (undefined8 *param_1) { long lVar1; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined4 uStack_20; undefined8 uStack_18; undefined8 *puStack_10; uStack_18 = *param_1; uStack_48 = 0x4100000041; uStack_40 = 0x4100000041; uStack_38 = 0x4100000041; uStack_30 = 0x4100000041; uStack_28 = 0x4100000041; uStack_20 = 0; puStack_10 = param_1; lVar1 = func_0x00400a50(&uStack_48); func_0x00400ad0(uStack_18,&uStack_48,(lVar1 + 1) * 4); printWLine(uStack_18); return; }
['gcc']
16,812
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_64b_goodG2BSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ wchar_t * * dataPtr = (wchar_t * *)dataVoidPtr; /* dereference dataPtr into data */ wchar_t * data = (*dataPtr); { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); printWLine(data); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63582/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_64b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_64b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_64b_goodG2BSink (undefined8 *param_1) { long lVar1; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined4 uStack_20; undefined8 uStack_18; undefined8 *puStack_10; uStack_18 = *param_1; uStack_48 = 0x4100000041; uStack_40 = 0x4100000041; uStack_38 = 0x4100000041; uStack_30 = 0x4100000041; uStack_28 = 0x4100000041; uStack_20 = 0; puStack_10 = param_1; lVar1 = func_0x00400a50(&uStack_48); func_0x00400ad0(uStack_18,&uStack_48,(lVar1 + 1) * 4); printWLine(uStack_18); return; }
['gcc']
16,813
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_66_bad() { wchar_t * data; wchar_t * dataArray[5]; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ /* put data in array */ dataArray[2] = data; CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_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/63584/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_66a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_66_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_66_bad(void) { undefined auStack_b0 [64]; undefined4 auStack_70 [10]; undefined auStack_48 [16]; undefined4 *puStack_38; undefined4 *puStack_20; undefined *puStack_18; undefined4 *puStack_10; puStack_38 = auStack_70; puStack_18 = auStack_b0; auStack_70[0] = 0; puStack_20 = puStack_38; puStack_10 = puStack_38; CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_66b_badSink(auStack_48,0x10,3); return; }
['gcc']
16,814
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_66_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63584/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_66a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_66_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_66_good(void) { goodG2B(); return; }
['gcc']
16,815
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_66b_badSink(wchar_t * dataArray[]) { /* copy data out of dataArray */ wchar_t * data = dataArray[2]; { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); printWLine(data); } }
['/* copy data out of dataArray */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63584/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_66b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_66b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_66b_badSink(long param_1) { long lVar1; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined4 uStack_20; undefined8 uStack_10; uStack_10 = *(undefined8 *)(param_1 + 0x10); uStack_48 = 0x4100000041; uStack_40 = 0x4100000041; uStack_38 = 0x4100000041; uStack_30 = 0x4100000041; uStack_28 = 0x4100000041; uStack_20 = 0; lVar1 = func_0x00400a50(&uStack_48); func_0x00400ad0(uStack_10,&uStack_48,(lVar1 + 1) * 4); printWLine(uStack_10); return; }
['gcc']
16,816
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_67_bad() { wchar_t * data; CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_67_structType myStruct; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ myStruct.structFirst = data; CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_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/63585/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_67a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_67_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_67_bad(void) { undefined auStack_90 [64]; undefined4 auStack_50 [10]; undefined4 *puStack_28; undefined4 *puStack_20; undefined *puStack_18; undefined4 *puStack_10; puStack_28 = auStack_50; puStack_18 = auStack_90; auStack_50[0] = 0; puStack_20 = puStack_28; puStack_10 = puStack_28; CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_67b_badSink(puStack_28,0x10,3); return; }
['gcc']
16,817
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_67_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63585/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_67a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_67_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_67_good(void) { goodG2B(); return; }
['gcc']
16,818
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_67b_badSink(CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_67_structType myStruct) { wchar_t * data = myStruct.structFirst; { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); printWLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63585/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_67b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_67b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_67b_badSink (undefined8 param_1) { long lVar1; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined4 uStack_20; undefined8 uStack_10; uStack_48 = 0x4100000041; uStack_40 = 0x4100000041; uStack_38 = 0x4100000041; uStack_30 = 0x4100000041; uStack_28 = 0x4100000041; uStack_20 = 0; uStack_10 = param_1; lVar1 = func_0x00400a50(&uStack_48); func_0x00400ad0(uStack_10,&uStack_48,(lVar1 + 1) * 4); printWLine(uStack_10); return; }
['gcc']
16,819
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_67b_goodG2BSink(CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_67_structType myStruct) { wchar_t * data = myStruct.structFirst; { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); printWLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63585/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_67b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_67b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memmove_67b_goodG2BSink (undefined8 param_1) { long lVar1; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined4 uStack_20; undefined8 uStack_10; uStack_48 = 0x4100000041; uStack_40 = 0x4100000041; uStack_38 = 0x4100000041; uStack_30 = 0x4100000041; uStack_28 = 0x4100000041; uStack_20 = 0; uStack_10 = param_1; lVar1 = func_0x00400a50(&uStack_48); func_0x00400ad0(uStack_10,&uStack_48,(lVar1 + 1) * 4); printWLine(uStack_10); return; }
['gcc']
16,820
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_01_bad() { wchar_t * data; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63592/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_01.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_01_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_01_bad(void) { long lVar1; undefined auStack_c0 [64]; undefined4 auStack_80 [10]; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined4 uStack_30; undefined4 *puStack_20; undefined *puStack_18; undefined4 *puStack_10; puStack_20 = auStack_80; puStack_18 = auStack_c0; auStack_80[0] = 0; uStack_58 = 0x4100000041; uStack_50 = 0x4100000041; uStack_48 = 0x4100000041; uStack_40 = 0x4100000041; uStack_38 = 0x4100000041; uStack_30 = 0; puStack_10 = puStack_20; lVar1 = func_0x00400a50(&uStack_58); func_0x00400a80(puStack_20,&uStack_58,lVar1 + 1); printWLine(puStack_20); return; }
['gcc']
16,821
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_01_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63592/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_01.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_01_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_01_good(void) { goodG2B(); return; }
['gcc']
16,822
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_02_bad() { wchar_t * data; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); if(1) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ } { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63593/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_02.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_02_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_02_bad(void) { long lVar1; undefined auStack_c0 [64]; undefined4 auStack_80 [10]; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined4 uStack_30; undefined4 *puStack_20; undefined *puStack_18; undefined4 *puStack_10; puStack_20 = auStack_80; puStack_18 = auStack_c0; auStack_80[0] = 0; uStack_58 = 0x4100000041; uStack_50 = 0x4100000041; uStack_48 = 0x4100000041; uStack_40 = 0x4100000041; uStack_38 = 0x4100000041; uStack_30 = 0; puStack_10 = puStack_20; lVar1 = func_0x00400a50(&uStack_58); func_0x00400a80(puStack_20,&uStack_58,lVar1 + 1); printWLine(puStack_20); return; }
['gcc']
16,823
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_02_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63593/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_02.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_02_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_02_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,824
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_03_bad() { wchar_t * data; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); if(5==5) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ } { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63594/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_03.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_03_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_03_bad(void) { long lVar1; undefined auStack_c0 [64]; undefined4 auStack_80 [10]; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined4 uStack_30; undefined4 *puStack_20; undefined *puStack_18; undefined4 *puStack_10; puStack_20 = auStack_80; puStack_18 = auStack_c0; auStack_80[0] = 0; uStack_58 = 0x4100000041; uStack_50 = 0x4100000041; uStack_48 = 0x4100000041; uStack_40 = 0x4100000041; uStack_38 = 0x4100000041; uStack_30 = 0; puStack_10 = puStack_20; lVar1 = func_0x00400a50(&uStack_58); func_0x00400a80(puStack_20,&uStack_58,lVar1 + 1); printWLine(puStack_20); return; }
['gcc']
16,825
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_03_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63594/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_03.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_03_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_03_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,826
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_04_bad() { wchar_t * data; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); if(STATIC_CONST_TRUE) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ } { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63595/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_04.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_04_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_04_bad(void) { long lVar1; undefined auStack_c0 [64]; undefined4 auStack_80 [10]; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined4 uStack_30; undefined *puStack_20; undefined4 *puStack_18; undefined4 *puStack_10; puStack_18 = auStack_80; puStack_20 = auStack_c0; auStack_80[0] = 0; uStack_58 = 0x4100000041; uStack_50 = 0x4100000041; uStack_48 = 0x4100000041; uStack_40 = 0x4100000041; uStack_38 = 0x4100000041; uStack_30 = 0; puStack_10 = puStack_18; lVar1 = func_0x00400a50(&uStack_58); func_0x00400a80(puStack_10,&uStack_58,lVar1 + 1); printWLine(puStack_10); return; }
['gcc']
16,827
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_04_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63595/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_04.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_04_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_04_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,828
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_05_bad() { wchar_t * data; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); if(staticTrue) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ } { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63596/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_05.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_05_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_05_bad(void) { long lVar1; undefined auStack_c0 [64]; undefined4 auStack_80 [10]; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined4 uStack_30; undefined *puStack_20; undefined4 *puStack_18; undefined4 *puStack_10; puStack_18 = auStack_80; puStack_20 = auStack_c0; if (staticTrue != 0) { auStack_80[0] = 0; puStack_10 = puStack_18; } uStack_58 = 0x4100000041; uStack_50 = 0x4100000041; uStack_48 = 0x4100000041; uStack_40 = 0x4100000041; uStack_38 = 0x4100000041; uStack_30 = 0; lVar1 = func_0x00400a50(&uStack_58); func_0x00400a80(puStack_10,&uStack_58,lVar1 + 1); printWLine(puStack_10); return; }
['gcc']
16,829
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_05_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63596/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_05.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_05_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_05_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,830
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_06_bad() { wchar_t * data; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); if(STATIC_CONST_FIVE==5) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ } { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63597/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_06.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_06_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_06_bad(void) { long lVar1; undefined auStack_c0 [64]; undefined4 auStack_80 [10]; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined4 uStack_30; undefined *puStack_20; undefined4 *puStack_18; undefined4 *puStack_10; puStack_18 = auStack_80; puStack_20 = auStack_c0; auStack_80[0] = 0; uStack_58 = 0x4100000041; uStack_50 = 0x4100000041; uStack_48 = 0x4100000041; uStack_40 = 0x4100000041; uStack_38 = 0x4100000041; uStack_30 = 0; puStack_10 = puStack_18; lVar1 = func_0x00400a50(&uStack_58); func_0x00400a80(puStack_10,&uStack_58,lVar1 + 1); printWLine(puStack_10); return; }
['gcc']
16,831
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_06_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63597/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_06.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_06_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_06_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,832
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_07_bad() { wchar_t * data; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); if(staticFive==5) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ } { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63598/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_07.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_07_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_07_bad(void) { long lVar1; undefined auStack_c0 [64]; undefined4 auStack_80 [10]; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined4 uStack_30; undefined *puStack_20; undefined4 *puStack_18; undefined4 *puStack_10; puStack_18 = auStack_80; puStack_20 = auStack_c0; if (staticFive == 5) { auStack_80[0] = 0; puStack_10 = puStack_18; } uStack_58 = 0x4100000041; uStack_50 = 0x4100000041; uStack_48 = 0x4100000041; uStack_40 = 0x4100000041; uStack_38 = 0x4100000041; uStack_30 = 0; lVar1 = func_0x00400a50(&uStack_58); func_0x00400a80(puStack_10,&uStack_58,lVar1 + 1); printWLine(puStack_10); return; }
['gcc']
16,833
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_07_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63598/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_07.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_07_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_07_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,834
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_08_bad() { wchar_t * data; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); if(staticReturnsTrue()) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ } { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63599/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_08.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_08_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_08_bad(undefined8 param_1) { int iVar1; long lVar2; undefined auStack_c0 [64]; undefined4 auStack_80 [10]; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined4 uStack_30; undefined *puStack_20; undefined4 *puStack_18; undefined4 *puStack_10; puStack_18 = auStack_80; puStack_20 = auStack_c0; iVar1 = staticReturnsTrue(param_1,0x10,3); if (iVar1 != 0) { puStack_10 = puStack_18; *puStack_18 = 0; } uStack_58 = 0x4100000041; uStack_50 = 0x4100000041; uStack_48 = 0x4100000041; uStack_40 = 0x4100000041; uStack_38 = 0x4100000041; uStack_30 = 0; lVar2 = func_0x00400a50(&uStack_58); func_0x00400a80(puStack_10,&uStack_58,lVar2 + 1); printWLine(puStack_10); return; }
['gcc']
16,835
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_08_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63599/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_08.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_08_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_08_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,836
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_09_bad() { wchar_t * data; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); if(GLOBAL_CONST_TRUE) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ } { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63600/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_09.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_09_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_09_bad(void) { long lVar1; undefined auStack_c0 [64]; undefined4 auStack_80 [10]; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined4 uStack_30; undefined *puStack_20; undefined4 *puStack_18; undefined4 *puStack_10; puStack_18 = auStack_80; puStack_20 = auStack_c0; if (GLOBAL_CONST_TRUE != 0) { auStack_80[0] = 0; puStack_10 = puStack_18; } uStack_58 = 0x4100000041; uStack_50 = 0x4100000041; uStack_48 = 0x4100000041; uStack_40 = 0x4100000041; uStack_38 = 0x4100000041; uStack_30 = 0; lVar1 = func_0x00400a50(&uStack_58); func_0x00400a80(puStack_10,&uStack_58,lVar1 + 1); printWLine(puStack_10); return; }
['gcc']
16,837
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_09_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63600/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_09.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_09_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_09_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,838
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_10_bad() { wchar_t * data; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); if(globalTrue) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ } { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63601/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_10.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_10_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_10_bad(void) { long lVar1; undefined auStack_c0 [64]; undefined4 auStack_80 [10]; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined4 uStack_30; undefined *puStack_20; undefined4 *puStack_18; undefined4 *puStack_10; puStack_18 = auStack_80; puStack_20 = auStack_c0; if (globalTrue != 0) { auStack_80[0] = 0; puStack_10 = puStack_18; } uStack_58 = 0x4100000041; uStack_50 = 0x4100000041; uStack_48 = 0x4100000041; uStack_40 = 0x4100000041; uStack_38 = 0x4100000041; uStack_30 = 0; lVar1 = func_0x00400a50(&uStack_58); func_0x00400a80(puStack_10,&uStack_58,lVar1 + 1); printWLine(puStack_10); return; }
['gcc']
16,839
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_10_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63601/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_10.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_10_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_10_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,840
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_11_bad() { wchar_t * data; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); if(globalReturnsTrue()) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ } { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63602/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_11.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_11_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_11_bad(undefined8 param_1) { int iVar1; long lVar2; undefined auStack_c0 [64]; undefined4 auStack_80 [10]; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined4 uStack_30; undefined *puStack_20; undefined4 *puStack_18; undefined4 *puStack_10; puStack_18 = auStack_80; puStack_20 = auStack_c0; iVar1 = globalReturnsTrue(param_1,0x10,3); if (iVar1 != 0) { puStack_10 = puStack_18; *puStack_18 = 0; } uStack_58 = 0x4100000041; uStack_50 = 0x4100000041; uStack_48 = 0x4100000041; uStack_40 = 0x4100000041; uStack_38 = 0x4100000041; uStack_30 = 0; lVar2 = func_0x00400a50(&uStack_58); func_0x00400a80(puStack_10,&uStack_58,lVar2 + 1); printWLine(puStack_10); return; }
['gcc']
16,841
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_11_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63602/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_11.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_11_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_11_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,842
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_12_bad() { wchar_t * data; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); if(globalReturnsTrueOrFalse()) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ } else { /* FIX: Set a pointer to a buffer that leaves room for a NULL terminator when performing * string copies in the sinks */ data = dataGoodBuffer; data[0] = L'\0'; /* null terminate */ } { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* FIX: Set a pointer to a buffer that leaves room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63603/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_12.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_12_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_12_bad(undefined8 param_1) { int iVar1; long lVar2; undefined4 auStack_c0 [16]; undefined4 auStack_80 [10]; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined4 uStack_30; undefined4 *puStack_20; undefined4 *puStack_18; undefined4 *puStack_10; puStack_18 = auStack_80; puStack_20 = auStack_c0; iVar1 = globalReturnsTrueOrFalse(param_1,0x10,3); if (iVar1 == 0) { puStack_10 = puStack_20; *puStack_20 = 0; } else { puStack_10 = puStack_18; *puStack_18 = 0; } uStack_58 = 0x4100000041; uStack_50 = 0x4100000041; uStack_48 = 0x4100000041; uStack_40 = 0x4100000041; uStack_38 = 0x4100000041; uStack_30 = 0; lVar2 = func_0x00400a50(&uStack_58); func_0x00400a80(puStack_10,&uStack_58,lVar2 + 1); printWLine(puStack_10); return; }
['gcc']
16,843
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_12_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63603/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_12.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_12_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_12_good(void) { goodG2B(); return; }
['gcc']
16,844
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_13_bad() { wchar_t * data; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); if(GLOBAL_CONST_FIVE==5) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ } { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63604/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_13.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_13_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_13_bad(void) { long lVar1; undefined auStack_c0 [64]; undefined4 auStack_80 [10]; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined4 uStack_30; undefined *puStack_20; undefined4 *puStack_18; undefined4 *puStack_10; puStack_18 = auStack_80; puStack_20 = auStack_c0; if (GLOBAL_CONST_FIVE == 5) { auStack_80[0] = 0; puStack_10 = puStack_18; } uStack_58 = 0x4100000041; uStack_50 = 0x4100000041; uStack_48 = 0x4100000041; uStack_40 = 0x4100000041; uStack_38 = 0x4100000041; uStack_30 = 0; lVar1 = func_0x00400a50(&uStack_58); func_0x00400a80(puStack_10,&uStack_58,lVar1 + 1); printWLine(puStack_10); return; }
['gcc']
16,845
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_13_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63604/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_13.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_13_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_13_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,846
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_14_bad() { wchar_t * data; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); if(globalFive==5) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ } { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63605/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_14.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_14_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_14_bad(void) { long lVar1; undefined auStack_c0 [64]; undefined4 auStack_80 [10]; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined4 uStack_30; undefined *puStack_20; undefined4 *puStack_18; undefined4 *puStack_10; puStack_18 = auStack_80; puStack_20 = auStack_c0; if (globalFive == 5) { auStack_80[0] = 0; puStack_10 = puStack_18; } uStack_58 = 0x4100000041; uStack_50 = 0x4100000041; uStack_48 = 0x4100000041; uStack_40 = 0x4100000041; uStack_38 = 0x4100000041; uStack_30 = 0; lVar1 = func_0x00400a50(&uStack_58); func_0x00400a80(puStack_10,&uStack_58,lVar1 + 1); printWLine(puStack_10); return; }
['gcc']
16,847
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_14_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63605/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_14.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_14_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_14_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,848
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_15_bad() { wchar_t * data; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); switch(6) { case 6: /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63606/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_15.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_15_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_15_bad(void) { long lVar1; undefined auStack_c0 [64]; undefined4 auStack_80 [10]; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined4 uStack_30; undefined4 *puStack_20; undefined *puStack_18; undefined4 *puStack_10; puStack_20 = auStack_80; puStack_18 = auStack_c0; auStack_80[0] = 0; uStack_58 = 0x4100000041; uStack_50 = 0x4100000041; uStack_48 = 0x4100000041; uStack_40 = 0x4100000041; uStack_38 = 0x4100000041; uStack_30 = 0; puStack_10 = puStack_20; lVar1 = func_0x00400a50(&uStack_58); func_0x00400a80(puStack_20,&uStack_58,lVar1 + 1); printWLine(puStack_20); return; }
['gcc']
16,849
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_15_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63606/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_15.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_15_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_15_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,850
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_16_bad() { wchar_t * data; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); while(1) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ break; } { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63607/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_16.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_16_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_16_bad(void) { long lVar1; undefined auStack_c0 [64]; undefined4 auStack_80 [10]; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined4 uStack_30; undefined4 *puStack_20; undefined *puStack_18; undefined4 *puStack_10; puStack_20 = auStack_80; puStack_18 = auStack_c0; auStack_80[0] = 0; uStack_58 = 0x4100000041; uStack_50 = 0x4100000041; uStack_48 = 0x4100000041; uStack_40 = 0x4100000041; uStack_38 = 0x4100000041; uStack_30 = 0; puStack_10 = puStack_20; lVar1 = func_0x00400a50(&uStack_58); func_0x00400a80(puStack_20,&uStack_58,lVar1 + 1); printWLine(puStack_20); return; }
['gcc']
16,851
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_16_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63607/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_16.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_16_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_16_good(void) { goodG2B(); return; }
['gcc']
16,852
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_17_bad() { int i; wchar_t * data; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); for(i = 0; i < 1; i++) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ } { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63608/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_17.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_17_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_17_bad(void) { long lVar1; undefined auStack_c0 [64]; undefined4 auStack_80 [10]; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined4 uStack_30; undefined *puStack_28; undefined4 *puStack_20; undefined4 *puStack_18; int iStack_c; puStack_20 = auStack_80; puStack_28 = auStack_c0; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { puStack_18 = puStack_20; *puStack_20 = 0; } uStack_58 = 0x4100000041; uStack_50 = 0x4100000041; uStack_48 = 0x4100000041; uStack_40 = 0x4100000041; uStack_38 = 0x4100000041; uStack_30 = 0; lVar1 = func_0x00400a50(&uStack_58); func_0x00400a80(puStack_18,&uStack_58,lVar1 + 1); printWLine(puStack_18); return; }
['gcc']
16,853
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_17_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63608/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_17.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_17_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_17_good(void) { goodG2B(); return; }
['gcc']
16,854
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_18_bad() { wchar_t * data; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); goto source; source: /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63609/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_18.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_18_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_18_bad(void) { long lVar1; undefined auStack_c0 [64]; undefined4 auStack_80 [10]; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined4 uStack_30; undefined4 *puStack_20; undefined *puStack_18; undefined4 *puStack_10; puStack_20 = auStack_80; puStack_18 = auStack_c0; auStack_80[0] = 0; uStack_58 = 0x4100000041; uStack_50 = 0x4100000041; uStack_48 = 0x4100000041; uStack_40 = 0x4100000041; uStack_38 = 0x4100000041; uStack_30 = 0; puStack_10 = puStack_20; lVar1 = func_0x00400a50(&uStack_58); func_0x00400a80(puStack_20,&uStack_58,lVar1 + 1); printWLine(puStack_20); return; }
['gcc']
16,855
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_18_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63609/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_18.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_18_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_18_good(void) { goodG2B(); return; }
['gcc']
16,856
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_31_bad() { wchar_t * data; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ { wchar_t * dataCopy = data; wchar_t * data = dataCopy; { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63610/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_31.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_31_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_31_bad(void) { long lVar1; undefined auStack_d0 [64]; undefined4 auStack_90 [10]; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined4 uStack_40; undefined4 *puStack_30; undefined4 *puStack_28; undefined4 *puStack_20; undefined *puStack_18; undefined4 *puStack_10; puStack_30 = auStack_90; puStack_18 = auStack_d0; auStack_90[0] = 0; uStack_68 = 0x4100000041; uStack_60 = 0x4100000041; uStack_58 = 0x4100000041; uStack_50 = 0x4100000041; uStack_48 = 0x4100000041; uStack_40 = 0; puStack_28 = puStack_30; puStack_20 = puStack_30; puStack_10 = puStack_30; lVar1 = func_0x00400a50(&uStack_68); func_0x00400a80(puStack_30,&uStack_68,lVar1 + 1); printWLine(puStack_30); return; }
['gcc']
16,857
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_31_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63610/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_31.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_31_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_31_good(void) { goodG2B(); return; }
['gcc']
16,858
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_32_bad() { wchar_t * data; wchar_t * *dataPtr1 = &data; wchar_t * *dataPtr2 = &data; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); { wchar_t * data = *dataPtr1; /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ *dataPtr1 = data; } { wchar_t * data = *dataPtr2; { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63611/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_32.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_32_bad
/* WARNING: Heritage AFTER dead removal. Example location: s0xffffffffffffffc0 : 0x00400c7e */ /* WARNING: Restarted to delay deadcode elimination for space: stack */ void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_32_bad(void) { long lVar1; undefined auStack_e0 [64]; undefined4 auStack_a0 [10]; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined4 uStack_50; undefined8 uStack_40; undefined8 uStack_38; undefined4 *puStack_30; undefined *puStack_28; undefined4 *puStack_20; undefined8 *puStack_18; undefined8 *puStack_10; puStack_10 = &uStack_40; puStack_18 = &uStack_40; puStack_30 = auStack_a0; puStack_28 = auStack_e0; auStack_a0[0] = 0; uStack_38 = uStack_40; uStack_78 = 0x4100000041; uStack_70 = 0x4100000041; uStack_68 = 0x4100000041; uStack_60 = 0x4100000041; uStack_58 = 0x4100000041; uStack_50 = 0; puStack_20 = puStack_30; lVar1 = func_0x00400a50(&uStack_78); func_0x00400a80(uStack_38,&uStack_78,lVar1 + 1); printWLine(uStack_38); return; }
['gcc']
16,859
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_32_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63611/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_32.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_32_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_32_good(void) { goodG2B(); return; }
['gcc']
16,860
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_34_bad() { wchar_t * data; CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_34_unionType myUnion; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ myUnion.unionFirst = data; { wchar_t * data = myUnion.unionSecond; { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63613/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_34.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_34_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_34_bad(void) { long lVar1; undefined auStack_d0 [64]; undefined4 auStack_90 [10]; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined4 uStack_40; undefined4 *puStack_30; undefined4 *puStack_28; undefined4 *puStack_20; undefined *puStack_18; undefined4 *puStack_10; puStack_30 = auStack_90; puStack_18 = auStack_d0; auStack_90[0] = 0; uStack_68 = 0x4100000041; uStack_60 = 0x4100000041; uStack_58 = 0x4100000041; uStack_50 = 0x4100000041; uStack_48 = 0x4100000041; uStack_40 = 0; puStack_28 = puStack_30; puStack_20 = puStack_30; puStack_10 = puStack_30; lVar1 = func_0x00400a50(&uStack_68); func_0x00400a80(puStack_28,&uStack_68,lVar1 + 1); printWLine(puStack_28); return; }
['gcc']
16,861
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_34_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63613/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_34.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_34_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_34_good(void) { goodG2B(); return; }
['gcc']
16,862
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_41_badSink(wchar_t * data) { { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63614/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_41_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_41_badSink(undefined8 param_1) { long lVar1; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined8 uStack_18; undefined4 uStack_10; uStack_38 = 0x4100000041; uStack_30 = 0x4100000041; uStack_28 = 0x4100000041; uStack_20 = 0x4100000041; uStack_18 = 0x4100000041; uStack_10 = 0; lVar1 = func_0x00400a50(&uStack_38); func_0x00400a80(param_1,&uStack_38,lVar1 + 1); printWLine(param_1); return; }
['gcc']
16,863
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_41_bad() { wchar_t * data; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_41_badSink(data); }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63614/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_41_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_41_bad(void) { undefined auStack_90 [64]; undefined4 auStack_50 [12]; undefined4 *puStack_20; undefined *puStack_18; undefined4 *puStack_10; puStack_20 = auStack_50; puStack_18 = auStack_90; auStack_50[0] = 0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_41_badSink(puStack_20,0x10,3); return; }
['gcc']
16,864
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_41_goodG2BSink(wchar_t * data) { { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63614/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_41_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_41_goodG2BSink (undefined8 param_1) { long lVar1; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined8 uStack_18; undefined4 uStack_10; uStack_38 = 0x4100000041; uStack_30 = 0x4100000041; uStack_28 = 0x4100000041; uStack_20 = 0x4100000041; uStack_18 = 0x4100000041; uStack_10 = 0; lVar1 = func_0x00400a50(&uStack_38); func_0x00400a80(param_1,&uStack_38,lVar1 + 1); printWLine(param_1); return; }
['gcc']
16,865
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_41_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63614/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_41_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_41_good(void) { goodG2B(); return; }
['gcc']
16,866
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_51_bad() { wchar_t * data; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_51b_badSink(data); }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63617/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_51a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_51_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_51_bad(void) { undefined auStack_90 [64]; undefined4 auStack_50 [12]; undefined4 *puStack_20; undefined *puStack_18; undefined4 *puStack_10; puStack_20 = auStack_50; puStack_18 = auStack_90; auStack_50[0] = 0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_51b_badSink(puStack_20,0x10,3); return; }
['gcc']
16,867
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_51_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63617/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_51a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_51_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_51_good(void) { goodG2B(); return; }
['gcc']
16,868
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_51b_badSink(wchar_t * data) { { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63617/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_51b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_51b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_51b_badSink(undefined8 param_1) { long lVar1; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined8 uStack_18; undefined4 uStack_10; uStack_38 = 0x4100000041; uStack_30 = 0x4100000041; uStack_28 = 0x4100000041; uStack_20 = 0x4100000041; uStack_18 = 0x4100000041; uStack_10 = 0; lVar1 = func_0x00400a50(&uStack_38); func_0x00400a80(param_1,&uStack_38,lVar1 + 1); printWLine(param_1); return; }
['gcc']
16,869
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_51b_goodG2BSink(wchar_t * data) { { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63617/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_51b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_51b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_51b_goodG2BSink (undefined8 param_1) { long lVar1; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined8 uStack_18; undefined4 uStack_10; uStack_38 = 0x4100000041; uStack_30 = 0x4100000041; uStack_28 = 0x4100000041; uStack_20 = 0x4100000041; uStack_18 = 0x4100000041; uStack_10 = 0; lVar1 = func_0x00400a50(&uStack_38); func_0x00400a80(param_1,&uStack_38,lVar1 + 1); printWLine(param_1); return; }
['gcc']
16,870
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52_bad() { wchar_t * data; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52b_badSink(data); }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63618/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52_bad(void) { undefined auStack_90 [64]; undefined4 auStack_50 [12]; undefined4 *puStack_20; undefined *puStack_18; undefined4 *puStack_10; puStack_20 = auStack_50; puStack_18 = auStack_90; auStack_50[0] = 0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52b_badSink(puStack_20,0x10,3); return; }
['gcc']
16,871
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63618/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52_good(void) { goodG2B(); return; }
['gcc']
16,872
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52b_badSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52c_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63618/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52c_badSink(param_1); return; }
['gcc']
16,873
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52b_goodG2BSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63618/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52b_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52c_goodG2BSink(param_1); return; }
['gcc']
16,874
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52c_badSink(wchar_t * data) { { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63618/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52c_badSink(undefined8 param_1) { long lVar1; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined8 uStack_18; undefined4 uStack_10; uStack_38 = 0x4100000041; uStack_30 = 0x4100000041; uStack_28 = 0x4100000041; uStack_20 = 0x4100000041; uStack_18 = 0x4100000041; uStack_10 = 0; lVar1 = func_0x00400a50(&uStack_38); func_0x00400a80(param_1,&uStack_38,lVar1 + 1); printWLine(param_1); return; }
['gcc']
16,875
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52c_goodG2BSink(wchar_t * data) { { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63618/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_52c_goodG2BSink (undefined8 param_1) { long lVar1; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined8 uStack_18; undefined4 uStack_10; uStack_38 = 0x4100000041; uStack_30 = 0x4100000041; uStack_28 = 0x4100000041; uStack_20 = 0x4100000041; uStack_18 = 0x4100000041; uStack_10 = 0; lVar1 = func_0x00400a50(&uStack_38); func_0x00400a80(param_1,&uStack_38,lVar1 + 1); printWLine(param_1); return; }
['gcc']
16,876
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53_bad() { wchar_t * data; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53b_badSink(data); }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63619/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53_bad(void) { undefined auStack_90 [64]; undefined4 auStack_50 [12]; undefined4 *puStack_20; undefined *puStack_18; undefined4 *puStack_10; puStack_20 = auStack_50; puStack_18 = auStack_90; auStack_50[0] = 0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53b_badSink(puStack_20,0x10,3); return; }
['gcc']
16,877
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63619/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53_good(void) { goodG2B(); return; }
['gcc']
16,878
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53b_badSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53c_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63619/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53c_badSink(param_1); return; }
['gcc']
16,879
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53b_goodG2BSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63619/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53b_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53c_goodG2BSink(param_1); return; }
['gcc']
16,880
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53c_badSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53d_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63619/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53c_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53d_badSink(param_1); return; }
['gcc']
16,881
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53c_goodG2BSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63619/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53c_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53d_goodG2BSink(param_1); return; }
['gcc']
16,882
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53d_badSink(wchar_t * data) { { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63619/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53d.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53d_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53d_badSink(undefined8 param_1) { long lVar1; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined8 uStack_18; undefined4 uStack_10; uStack_38 = 0x4100000041; uStack_30 = 0x4100000041; uStack_28 = 0x4100000041; uStack_20 = 0x4100000041; uStack_18 = 0x4100000041; uStack_10 = 0; lVar1 = func_0x00400a50(&uStack_38); func_0x00400a80(param_1,&uStack_38,lVar1 + 1); printWLine(param_1); return; }
['gcc']
16,883
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53d_goodG2BSink(wchar_t * data) { { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63619/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53d.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53d_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_53d_goodG2BSink (undefined8 param_1) { long lVar1; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined8 uStack_18; undefined4 uStack_10; uStack_38 = 0x4100000041; uStack_30 = 0x4100000041; uStack_28 = 0x4100000041; uStack_20 = 0x4100000041; uStack_18 = 0x4100000041; uStack_10 = 0; lVar1 = func_0x00400a50(&uStack_38); func_0x00400a80(param_1,&uStack_38,lVar1 + 1); printWLine(param_1); return; }
['gcc']
16,884
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54_bad() { wchar_t * data; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54b_badSink(data); }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63620/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54_bad(void) { undefined auStack_90 [64]; undefined4 auStack_50 [12]; undefined4 *puStack_20; undefined *puStack_18; undefined4 *puStack_10; puStack_20 = auStack_50; puStack_18 = auStack_90; auStack_50[0] = 0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54b_badSink(puStack_20,0x10,3); return; }
['gcc']
16,885
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63620/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54_good(void) { goodG2B(); return; }
['gcc']
16,886
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54b_badSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54c_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63620/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54c_badSink(param_1); return; }
['gcc']
16,887
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54b_goodG2BSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63620/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54b_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54c_goodG2BSink(param_1); return; }
['gcc']
16,888
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54c_badSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54d_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63620/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54c_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54d_badSink(param_1); return; }
['gcc']
16,889
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54c_goodG2BSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63620/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54c_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54d_goodG2BSink(param_1); return; }
['gcc']
16,890
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54d_badSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54e_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63620/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54d.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54d_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54d_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54e_badSink(param_1); return; }
['gcc']
16,891
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54d_goodG2BSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54e_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63620/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54d.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54d_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54d_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54e_goodG2BSink(param_1); return; }
['gcc']
16,892
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54e_badSink(wchar_t * data) { { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63620/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54e.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54e_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54e_badSink(undefined8 param_1) { long lVar1; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined8 uStack_18; undefined4 uStack_10; uStack_38 = 0x4100000041; uStack_30 = 0x4100000041; uStack_28 = 0x4100000041; uStack_20 = 0x4100000041; uStack_18 = 0x4100000041; uStack_10 = 0; lVar1 = func_0x00400a50(&uStack_38); func_0x00400a80(param_1,&uStack_38,lVar1 + 1); printWLine(param_1); return; }
['gcc']
16,893
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54e_goodG2BSink(wchar_t * data) { { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63620/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54e.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54e_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_54e_goodG2BSink (undefined8 param_1) { long lVar1; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined8 uStack_18; undefined4 uStack_10; uStack_38 = 0x4100000041; uStack_30 = 0x4100000041; uStack_28 = 0x4100000041; uStack_20 = 0x4100000041; uStack_18 = 0x4100000041; uStack_10 = 0; lVar1 = func_0x00400a50(&uStack_38); func_0x00400a80(param_1,&uStack_38,lVar1 + 1); printWLine(param_1); return; }
['gcc']
16,894
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_63_bad() { wchar_t * data; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_63b_badSink(&data); }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63621/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_63a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_63_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_63_bad(void) { undefined auStack_90 [64]; undefined4 auStack_50 [12]; undefined4 *puStack_20; undefined *puStack_18; undefined4 *puStack_10; puStack_20 = auStack_50; puStack_18 = auStack_90; auStack_50[0] = 0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_63b_badSink(&puStack_20,0x10,3); return; }
['gcc']
16,895
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_63_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63621/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_63a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_63_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_63_good(void) { goodG2B(); return; }
['gcc']
16,896
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_63b_badSink(wchar_t * * dataPtr) { wchar_t * data = *dataPtr; { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63621/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_63b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_63b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_63b_badSink(undefined8 *param_1) { long lVar1; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined4 uStack_20; undefined8 uStack_10; uStack_10 = *param_1; uStack_48 = 0x4100000041; uStack_40 = 0x4100000041; uStack_38 = 0x4100000041; uStack_30 = 0x4100000041; uStack_28 = 0x4100000041; uStack_20 = 0; lVar1 = func_0x00400a50(&uStack_48); func_0x00400a80(uStack_10,&uStack_48,lVar1 + 1); printWLine(uStack_10); return; }
['gcc']
16,897
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_63b_goodG2BSink(wchar_t * * dataPtr) { wchar_t * data = *dataPtr; { wchar_t source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ wcsncpy(data, source, wcslen(source) + 1); printWLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63621/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_63b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_63b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_63b_goodG2BSink (undefined8 *param_1) { long lVar1; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined4 uStack_20; undefined8 uStack_10; uStack_10 = *param_1; uStack_48 = 0x4100000041; uStack_40 = 0x4100000041; uStack_38 = 0x4100000041; uStack_30 = 0x4100000041; uStack_28 = 0x4100000041; uStack_20 = 0; lVar1 = func_0x00400a50(&uStack_48); func_0x00400a80(uStack_10,&uStack_48,lVar1 + 1); printWLine(uStack_10); return; }
['gcc']
16,898
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_64_bad() { wchar_t * data; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_64b_badSink(&data); }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63622/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_64a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_64_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_64_bad(void) { undefined auStack_90 [64]; undefined4 auStack_50 [12]; undefined4 *puStack_20; undefined *puStack_18; undefined4 *puStack_10; puStack_20 = auStack_50; puStack_18 = auStack_90; auStack_50[0] = 0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_64b_badSink(&puStack_20,0x10,3); return; }
['gcc']
16,899
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_64_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63622/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_64a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_64_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_ncpy_64_good(void) { goodG2B(); return; }
['gcc']