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,600
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_51b_goodG2BSink(wchar_t * data) { { wchar_t source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ wcscpy(data, source); printWLine(data); } }
['/* 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/63457/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_51b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_51b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_51b_goodG2BSink (undefined8 param_1) { 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; func_0x00400a40(param_1,&uStack_38); printWLine(param_1); return; }
['gcc']
16,601
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_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_cpy_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/63458/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_52a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_52_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_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_cpy_52b_badSink(puStack_20,0x10,3); return; }
['gcc']
16,602
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_52_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63458/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_52a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_52_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_52_good(void) { goodG2B(); return; }
['gcc']
16,603
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_52b_badSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_52c_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63458/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_52b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_52b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_52b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_52c_badSink(param_1); return; }
['gcc']
16,604
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_52b_goodG2BSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_52c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63458/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_52b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_52b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_52b_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_52c_goodG2BSink(param_1); return; }
['gcc']
16,605
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_52c_badSink(wchar_t * data) { { wchar_t source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ wcscpy(data, source); printWLine(data); } }
['/* 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/63458/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_52c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_52c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_52c_badSink(undefined8 param_1) { 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; func_0x00400a40(param_1,&uStack_38); printWLine(param_1); return; }
['gcc']
16,606
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_52c_goodG2BSink(wchar_t * data) { { wchar_t source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ wcscpy(data, source); printWLine(data); } }
['/* 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/63458/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_52c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_52c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_52c_goodG2BSink (undefined8 param_1) { 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; func_0x00400a40(param_1,&uStack_38); printWLine(param_1); return; }
['gcc']
16,607
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_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_cpy_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/63459/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_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_cpy_53b_badSink(puStack_20,0x10,3); return; }
['gcc']
16,608
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63459/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53_good(void) { goodG2B(); return; }
['gcc']
16,609
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53b_badSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53c_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63459/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53c_badSink(param_1); return; }
['gcc']
16,610
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53b_goodG2BSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63459/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53b_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53c_goodG2BSink(param_1); return; }
['gcc']
16,611
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53c_badSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53d_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63459/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53c_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53d_badSink(param_1); return; }
['gcc']
16,612
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53c_goodG2BSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63459/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53c_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53d_goodG2BSink(param_1); return; }
['gcc']
16,613
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53d_badSink(wchar_t * data) { { wchar_t source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ wcscpy(data, source); printWLine(data); } }
['/* 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/63459/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53d.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53d_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53d_badSink(undefined8 param_1) { 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; func_0x00400a40(param_1,&uStack_38); printWLine(param_1); return; }
['gcc']
16,614
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53d_goodG2BSink(wchar_t * data) { { wchar_t source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ wcscpy(data, source); printWLine(data); } }
['/* 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/63459/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53d.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53d_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_53d_goodG2BSink (undefined8 param_1) { 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; func_0x00400a40(param_1,&uStack_38); printWLine(param_1); return; }
['gcc']
16,615
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_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_cpy_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/63460/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_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_cpy_54b_badSink(puStack_20,0x10,3); return; }
['gcc']
16,616
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63460/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54_good(void) { goodG2B(); return; }
['gcc']
16,617
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54b_badSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54c_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63460/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54c_badSink(param_1); return; }
['gcc']
16,618
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54b_goodG2BSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63460/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54b_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54c_goodG2BSink(param_1); return; }
['gcc']
16,619
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54c_badSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54d_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63460/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54c_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54d_badSink(param_1); return; }
['gcc']
16,620
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54c_goodG2BSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63460/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54c_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54d_goodG2BSink(param_1); return; }
['gcc']
16,621
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54d_badSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54e_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63460/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54d.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54d_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54d_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54e_badSink(param_1); return; }
['gcc']
16,622
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54d_goodG2BSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54e_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63460/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54d.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54d_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54d_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54e_goodG2BSink(param_1); return; }
['gcc']
16,623
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54e_badSink(wchar_t * data) { { wchar_t source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ wcscpy(data, source); printWLine(data); } }
['/* 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/63460/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54e.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54e_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54e_badSink(undefined8 param_1) { 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; func_0x00400a40(param_1,&uStack_38); printWLine(param_1); return; }
['gcc']
16,624
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54e_goodG2BSink(wchar_t * data) { { wchar_t source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ wcscpy(data, source); printWLine(data); } }
['/* 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/63460/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54e.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54e_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_54e_goodG2BSink (undefined8 param_1) { 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; func_0x00400a40(param_1,&uStack_38); printWLine(param_1); return; }
['gcc']
16,625
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_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_cpy_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/63461/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_63a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_63_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_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_cpy_63b_badSink(&puStack_20,0x10,3); return; }
['gcc']
16,626
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_63_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63461/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_63a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_63_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_63_good(void) { goodG2B(); return; }
['gcc']
16,627
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_63b_badSink(wchar_t * * dataPtr) { wchar_t * data = *dataPtr; { wchar_t source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ wcscpy(data, source); printWLine(data); } }
['/* 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/63461/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_63b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_63b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_63b_badSink(undefined8 *param_1) { 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; func_0x00400a40(uStack_10,&uStack_48); printWLine(uStack_10); return; }
['gcc']
16,628
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_63b_goodG2BSink(wchar_t * * dataPtr) { wchar_t * data = *dataPtr; { wchar_t source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ wcscpy(data, source); printWLine(data); } }
['/* 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/63461/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_63b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_63b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_63b_goodG2BSink (undefined8 *param_1) { 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; func_0x00400a40(uStack_10,&uStack_48); printWLine(uStack_10); return; }
['gcc']
16,629
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_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_cpy_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/63462/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_64a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_64_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_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_cpy_64b_badSink(&puStack_20,0x10,3); return; }
['gcc']
16,630
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_64_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63462/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_64a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_64_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_64_good(void) { goodG2B(); return; }
['gcc']
16,631
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_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; /* POTENTIAL FLAW: data may not have enough space to hold source */ wcscpy(data, source); printWLine(data); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* 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/63462/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_64b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_64b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_64b_badSink(undefined8 *param_1) { 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; func_0x00400a40(uStack_18,&uStack_48); printWLine(uStack_18); return; }
['gcc']
16,632
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_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; /* POTENTIAL FLAW: data may not have enough space to hold source */ wcscpy(data, source); printWLine(data); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* 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/63462/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_64b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_64b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_64b_goodG2BSink (undefined8 *param_1) { 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; func_0x00400a40(uStack_18,&uStack_48); printWLine(uStack_18); return; }
['gcc']
16,633
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_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_cpy_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/63464/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_66a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_66_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_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_cpy_66b_badSink(auStack_48,0x10,3); return; }
['gcc']
16,634
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_66_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63464/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_66a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_66_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_66_good(void) { goodG2B(); return; }
['gcc']
16,635
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_66b_badSink(wchar_t * dataArray[]) { /* copy data out of dataArray */ wchar_t * data = dataArray[2]; { wchar_t source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ wcscpy(data, source); printWLine(data); } }
['/* copy data out of dataArray */', '/* 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/63464/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_66b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_66b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_66b_badSink(long param_1) { 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; func_0x00400a40(uStack_10,&uStack_48); printWLine(uStack_10); return; }
['gcc']
16,636
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_66b_goodG2BSink(wchar_t * dataArray[]) { wchar_t * data = dataArray[2]; { wchar_t source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ wcscpy(data, source); printWLine(data); } }
['/* 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/63464/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_66b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_66b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_66b_goodG2BSink(long param_1) { 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; func_0x00400a40(uStack_10,&uStack_48); printWLine(uStack_10); return; }
['gcc']
16,637
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_67_bad() { wchar_t * data; CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_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_cpy_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/63465/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_67a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_67_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_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_cpy_67b_badSink(puStack_28,0x10,3); return; }
['gcc']
16,638
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_67_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63465/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_67a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_67_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_67_good(void) { goodG2B(); return; }
['gcc']
16,639
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_67b_badSink(CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_67_structType myStruct) { wchar_t * data = myStruct.structFirst; { wchar_t source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ wcscpy(data, source); printWLine(data); } }
['/* 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/63465/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_67b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_67b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_67b_badSink(undefined8 param_1) { 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; func_0x00400a40(param_1,&uStack_48); printWLine(uStack_10); return; }
['gcc']
16,640
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_67b_goodG2BSink(CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_67_structType myStruct) { wchar_t * data = myStruct.structFirst; { wchar_t source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ wcscpy(data, source); printWLine(data); } }
['/* 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/63465/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_67b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_67b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_67b_goodG2BSink (undefined8 param_1) { 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; func_0x00400a40(param_1,&uStack_48); printWLine(uStack_10); return; }
['gcc']
16,641
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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 */ memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); 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/63512/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_01.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_01_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_0x00400a60(&uStack_58); func_0x00400ab0(puStack_20,&uStack_58,(lVar1 + 1) * 4); printWLine(puStack_20); return; }
['gcc']
16,642
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_01_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63512/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_01.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_01_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_01_good(void) { goodG2B(); return; }
['gcc']
16,643
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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 */ memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); 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/63513/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_02.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_02_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_0x00400a60(&uStack_58); func_0x00400ab0(puStack_20,&uStack_58,(lVar1 + 1) * 4); printWLine(puStack_20); return; }
['gcc']
16,644
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_02_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63513/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_02.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_02_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_02_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,645
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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 */ memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); 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/63514/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_03.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_03_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_0x00400a60(&uStack_58); func_0x00400ab0(puStack_20,&uStack_58,(lVar1 + 1) * 4); printWLine(puStack_20); return; }
['gcc']
16,646
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_03_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63514/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_03.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_03_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_03_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,647
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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 */ memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); 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/63515/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_04.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_04_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_0x00400a60(&uStack_58); func_0x00400ab0(puStack_10,&uStack_58,(lVar1 + 1) * 4); printWLine(puStack_10); return; }
['gcc']
16,648
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_04_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63515/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_04.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_04_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_04_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,649
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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 */ memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); 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/63516/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_05.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_05_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_0x00400a60(&uStack_58); func_0x00400ab0(puStack_10,&uStack_58,(lVar1 + 1) * 4); printWLine(puStack_10); return; }
['gcc']
16,650
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_05_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63516/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_05.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_05_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_05_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,651
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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 */ memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); 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/63517/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_06.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_06_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_0x00400a60(&uStack_58); func_0x00400ab0(puStack_10,&uStack_58,(lVar1 + 1) * 4); printWLine(puStack_10); return; }
['gcc']
16,652
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_06_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63517/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_06.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_06_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_06_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,653
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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 */ memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); 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/63518/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_07.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_07_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_0x00400a60(&uStack_58); func_0x00400ab0(puStack_10,&uStack_58,(lVar1 + 1) * 4); printWLine(puStack_10); return; }
['gcc']
16,654
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_07_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63518/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_07.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_07_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_07_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,655
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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 */ memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); 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/63519/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_08.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_08_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_0x00400a60(&uStack_58); func_0x00400ab0(puStack_10,&uStack_58,(lVar2 + 1) * 4); printWLine(puStack_10); return; }
['gcc']
16,656
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_08_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63519/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_08.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_08_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_08_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,657
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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 */ memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); 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/63520/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_09.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_09_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_0x00400a60(&uStack_58); func_0x00400ab0(puStack_10,&uStack_58,(lVar1 + 1) * 4); printWLine(puStack_10); return; }
['gcc']
16,658
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_09_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63520/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_09.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_09_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_09_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,659
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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 */ memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); 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/63521/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_10.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_10_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_0x00400a60(&uStack_58); func_0x00400ab0(puStack_10,&uStack_58,(lVar1 + 1) * 4); printWLine(puStack_10); return; }
['gcc']
16,660
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_10_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63521/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_10.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_10_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_10_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,661
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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 */ memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); 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/63522/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_11.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_11_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_0x00400a60(&uStack_58); func_0x00400ab0(puStack_10,&uStack_58,(lVar2 + 1) * 4); printWLine(puStack_10); return; }
['gcc']
16,662
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_11_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63522/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_11.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_11_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_11_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,663
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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 */ memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); 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/63523/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_12.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_12_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_0x00400a60(&uStack_58); func_0x00400ab0(puStack_10,&uStack_58,(lVar2 + 1) * 4); printWLine(puStack_10); return; }
['gcc']
16,664
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_12_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63523/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_12.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_12_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_12_good(void) { goodG2B(); return; }
['gcc']
16,665
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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 */ memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); 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/63524/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_13.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_13_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_0x00400a60(&uStack_58); func_0x00400ab0(puStack_10,&uStack_58,(lVar1 + 1) * 4); printWLine(puStack_10); return; }
['gcc']
16,666
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_13_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63524/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_13.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_13_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_13_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,667
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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 */ memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); 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/63525/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_14.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_14_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_0x00400a60(&uStack_58); func_0x00400ab0(puStack_10,&uStack_58,(lVar1 + 1) * 4); printWLine(puStack_10); return; }
['gcc']
16,668
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_14_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63525/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_14.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_14_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_14_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,669
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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 */ memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); 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/63526/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_15.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_15_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_0x00400a60(&uStack_58); func_0x00400ab0(puStack_20,&uStack_58,(lVar1 + 1) * 4); printWLine(puStack_20); return; }
['gcc']
16,670
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_15_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63526/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_15.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_15_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_15_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,671
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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 */ memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); 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/63527/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_16.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_16_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_0x00400a60(&uStack_58); func_0x00400ab0(puStack_20,&uStack_58,(lVar1 + 1) * 4); printWLine(puStack_20); return; }
['gcc']
16,672
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_16_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63527/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_16.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_16_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_16_good(void) { goodG2B(); return; }
['gcc']
16,673
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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 */ memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); 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/63528/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_17.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_17_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_0x00400a60(&uStack_58); func_0x00400ab0(puStack_18,&uStack_58,(lVar1 + 1) * 4); printWLine(puStack_18); return; }
['gcc']
16,674
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_17_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63528/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_17.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_17_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_17_good(void) { goodG2B(); return; }
['gcc']
16,675
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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 */ memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); 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/63529/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_18.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_18_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_0x00400a60(&uStack_58); func_0x00400ab0(puStack_20,&uStack_58,(lVar1 + 1) * 4); printWLine(puStack_20); return; }
['gcc']
16,676
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_18_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63529/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_18.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_18_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_18_good(void) { goodG2B(); return; }
['gcc']
16,677
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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 */ memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); 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/63530/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_31.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_31_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_0x00400a60(&uStack_68); func_0x00400ab0(puStack_30,&uStack_68,(lVar1 + 1) * 4); printWLine(puStack_30); return; }
['gcc']
16,678
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_31_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63530/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_31.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_31_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_31_good(void) { goodG2B(); return; }
['gcc']
16,679
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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 */ memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); 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/63531/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_32.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_32_bad
/* WARNING: Heritage AFTER dead removal. Example location: s0xffffffffffffffc0 : 0x00400c8e */ /* WARNING: Restarted to delay deadcode elimination for space: stack */ void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_0x00400a60(&uStack_78); func_0x00400ab0(uStack_38,&uStack_78,(lVar1 + 1) * 4); printWLine(uStack_38); return; }
['gcc']
16,680
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_32_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63531/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_32.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_32_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_32_good(void) { goodG2B(); return; }
['gcc']
16,681
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_34_bad() { wchar_t * data; CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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 */ memcpy(data, source, (wcslen(source) + 1) * sizeof(wchar_t)); 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/63533/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_34.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_34_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_0x00400a60(&uStack_68); func_0x00400ab0(puStack_28,&uStack_68,(lVar1 + 1) * 4); printWLine(puStack_28); return; }
['gcc']
16,682
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_34_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63533/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_34.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_34_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_34_good(void) { goodG2B(); return; }
['gcc']
16,683
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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 */ memcpy(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/63534/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_41_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_0x00400a60(&uStack_38); func_0x00400ab0(param_1,&uStack_38,(lVar1 + 1) * 4); printWLine(param_1); return; }
['gcc']
16,684
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_memcpy_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/63534/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_41_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_memcpy_41_badSink(puStack_20,0x10,3); return; }
['gcc']
16,685
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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 */ memcpy(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/63534/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_41_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_0x00400a60(&uStack_38); func_0x00400ab0(param_1,&uStack_38,(lVar1 + 1) * 4); printWLine(param_1); return; }
['gcc']
16,686
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_41_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63534/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_41_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_41_good(void) { goodG2B(); return; }
['gcc']
16,687
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_memcpy_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/63537/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_51a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_51_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_memcpy_51b_badSink(puStack_20,0x10,3); return; }
['gcc']
16,688
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_51_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63537/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_51a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_51_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_51_good(void) { goodG2B(); return; }
['gcc']
16,689
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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 */ memcpy(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/63537/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_51b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_51b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_0x00400a60(&uStack_38); func_0x00400ab0(param_1,&uStack_38,(lVar1 + 1) * 4); printWLine(param_1); return; }
['gcc']
16,690
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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 */ memcpy(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/63537/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_51b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_51b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_0x00400a60(&uStack_38); func_0x00400ab0(param_1,&uStack_38,(lVar1 + 1) * 4); printWLine(param_1); return; }
['gcc']
16,691
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_memcpy_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/63538/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_52a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_52_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_memcpy_52b_badSink(puStack_20,0x10,3); return; }
['gcc']
16,692
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_52_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63538/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_52a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_52_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_52_good(void) { goodG2B(); return; }
['gcc']
16,693
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_52b_badSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_52c_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63538/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_52b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_52b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_52b_badSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_52c_badSink(param_1); return; }
['gcc']
16,694
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_52b_goodG2BSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_52c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63538/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_52b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_52b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_52b_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_52c_goodG2BSink(param_1); return; }
['gcc']
16,695
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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 */ memcpy(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/63538/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_52c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_52c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_0x00400a60(&uStack_38); func_0x00400ab0(param_1,&uStack_38,(lVar1 + 1) * 4); printWLine(param_1); return; }
['gcc']
16,696
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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 */ memcpy(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/63538/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_52c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_52c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_0x00400a60(&uStack_38); func_0x00400ab0(param_1,&uStack_38,(lVar1 + 1) * 4); printWLine(param_1); return; }
['gcc']
16,697
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_memcpy_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/63539/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_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_memcpy_53b_badSink(puStack_20,0x10,3); return; }
['gcc']
16,698
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63539/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53_good(void) { goodG2B(); return; }
['gcc']
16,699
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53b_badSink(wchar_t * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53c_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63539/CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53b_badSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_memcpy_53c_badSink(param_1); return; }
['gcc']