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
15,600
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53b_badSink(int * data) { CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53c_badSink(data); }
[]
['CWE121', 'CWE131']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62931/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53b.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53c_badSink(param_1); return; }
['gcc']
15,601
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53b_goodG2BSink(int * data) { CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62931/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53b.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53b_goodG2BSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53c_goodG2BSink(param_1); return; }
['gcc']
15,602
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53c_badSink(int * data) { CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53d_badSink(data); }
[]
['CWE121', 'CWE131']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62931/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53c.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53c_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53d_badSink(param_1); return; }
['gcc']
15,603
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53c_goodG2BSink(int * data) { CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62931/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53c.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53c_goodG2BSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53d_goodG2BSink(param_1); return; }
['gcc']
15,604
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53d_badSink(int * data) { { int source[10] = {0}; /* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */ memmove(data, source, 10*sizeof(int)); printIntLine(data[0]); } }
['/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */']
['CWE121', 'CWE131']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62931/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53d.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53d_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53d_badSink(undefined4 *param_1) { undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined8 uStack_18; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a80(param_1,&uStack_38,0x28); printIntLine(*param_1); return; }
['gcc']
15,605
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53d_goodG2BSink(int * data) { { int source[10] = {0}; /* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */ memmove(data, source, 10*sizeof(int)); printIntLine(data[0]); } }
['/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62931/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53d.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53d_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_53d_goodG2BSink(undefined4 *param_1) { undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined8 uStack_18; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a80(param_1,&uStack_38,0x28); printIntLine(*param_1); return; }
['gcc']
15,606
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54_bad() { int * data; data = NULL; /* FLAW: Allocate memory without using sizeof(int) */ data = (int *)ALLOCA(10); CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54b_badSink(data); }
['/* FLAW: Allocate memory without using sizeof(int) */']
['CWE121', 'CWE131']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62932/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54a.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54_bad (undefined8 param_1,undefined8 param_2) { undefined auStack_30 [32]; undefined *puStack_10; puStack_10 = auStack_30; CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54b_badSink(puStack_10,param_2,1); return; }
['gcc']
15,607
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62932/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54a.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54_good
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54_good(void) { goodG2B(); return; }
['gcc']
15,608
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54b_badSink(int * data) { CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54c_badSink(data); }
[]
['CWE121', 'CWE131']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62932/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54b.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54c_badSink(param_1); return; }
['gcc']
15,609
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54b_goodG2BSink(int * data) { CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62932/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54b.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54b_goodG2BSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54c_goodG2BSink(param_1); return; }
['gcc']
15,610
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54c_badSink(int * data) { CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54d_badSink(data); }
[]
['CWE121', 'CWE131']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62932/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54c.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54c_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54d_badSink(param_1); return; }
['gcc']
15,611
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54c_goodG2BSink(int * data) { CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62932/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54c.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54c_goodG2BSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54d_goodG2BSink(param_1); return; }
['gcc']
15,612
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54d_badSink(int * data) { CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54e_badSink(data); }
[]
['CWE121', 'CWE131']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62932/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54d.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54d_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54d_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54e_badSink(param_1); return; }
['gcc']
15,613
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54d_goodG2BSink(int * data) { CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54e_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62932/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54d.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54d_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54d_goodG2BSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54e_goodG2BSink(param_1); return; }
['gcc']
15,614
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54e_badSink(int * data) { { int source[10] = {0}; /* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */ memmove(data, source, 10*sizeof(int)); printIntLine(data[0]); } }
['/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */']
['CWE121', 'CWE131']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62932/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54e.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54e_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54e_badSink(undefined4 *param_1) { undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined8 uStack_18; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a80(param_1,&uStack_38,0x28); printIntLine(*param_1); return; }
['gcc']
15,615
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54e_goodG2BSink(int * data) { { int source[10] = {0}; /* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */ memmove(data, source, 10*sizeof(int)); printIntLine(data[0]); } }
['/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62932/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54e.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54e_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_54e_goodG2BSink(undefined4 *param_1) { undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined8 uStack_18; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a80(param_1,&uStack_38,0x28); printIntLine(*param_1); return; }
['gcc']
15,616
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_61_bad() { int * data; data = NULL; data = CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_61b_badSource(data); { int source[10] = {0}; /* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */ memmove(data, source, 10*sizeof(int)); printIntLine(data[0]); } }
['/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */']
['CWE121', 'CWE131']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62933/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_61a.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_61_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_61_bad(void) { undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined8 uStack_18; undefined4 *puStack_10; puStack_10 = (undefined4 *)0x0; puStack_10 = (undefined4 *)CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_61b_badSource(0); uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a80(puStack_10,&uStack_38,0x28); printIntLine(*puStack_10); return; }
['gcc']
15,617
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_61_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62933/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_61a.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_61_good
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_61_good(void) { goodG2B(); return; }
['gcc']
15,618
int * CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_61b_badSource(int * data) { /* FLAW: Allocate memory without using sizeof(int) */ data = (int *)ALLOCA(10); return data; }
['/* FLAW: Allocate memory without using sizeof(int) */']
['CWE121', 'CWE131']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62933/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_61b.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_61b_badSource
undefined * CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_61b_badSource(void) { undefined auStack_30 [40]; return auStack_30; }
['gcc']
15,619
int * CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_61b_goodG2BSource(int * data) { /* FIX: Allocate memory using sizeof(int) */ data = (int *)ALLOCA(10*sizeof(int)); return data; }
['/* FIX: Allocate memory using sizeof(int) */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62933/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_61b.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_61b_goodG2BSource
undefined * CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_61b_goodG2BSource(void) { undefined auStack_40 [56]; return auStack_40; }
['gcc']
15,620
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_63_bad() { int * data; data = NULL; /* FLAW: Allocate memory without using sizeof(int) */ data = (int *)ALLOCA(10); CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_63b_badSink(&data); }
['/* FLAW: Allocate memory without using sizeof(int) */']
['CWE121', 'CWE131']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62935/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_63a.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_63_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_63_bad (undefined8 param_1,undefined8 param_2) { undefined auStack_30 [32]; undefined *puStack_10; puStack_10 = auStack_30; CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_63b_badSink(&puStack_10,param_2,1); return; }
['gcc']
15,621
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_63_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62935/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_63a.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_63_good
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_63_good(void) { goodG2B(); return; }
['gcc']
15,622
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_63b_badSink(int * * dataPtr) { int * data = *dataPtr; { int source[10] = {0}; /* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */ memmove(data, source, 10*sizeof(int)); printIntLine(data[0]); } }
['/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */']
['CWE121', 'CWE131']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62935/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_63b.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_63b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_63b_badSink(undefined8 *param_1) { undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined8 uStack_18; undefined4 *puStack_10; puStack_10 = (undefined4 *)*param_1; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a80(puStack_10,&uStack_38,0x28); printIntLine(*puStack_10); return; }
['gcc']
15,623
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_63b_goodG2BSink(int * * dataPtr) { int * data = *dataPtr; { int source[10] = {0}; /* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */ memmove(data, source, 10*sizeof(int)); printIntLine(data[0]); } }
['/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62935/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_63b.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_63b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_63b_goodG2BSink(undefined8 *param_1) { undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined8 uStack_18; undefined4 *puStack_10; puStack_10 = (undefined4 *)*param_1; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a80(puStack_10,&uStack_38,0x28); printIntLine(*puStack_10); return; }
['gcc']
15,624
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_64_bad() { int * data; data = NULL; /* FLAW: Allocate memory without using sizeof(int) */ data = (int *)ALLOCA(10); CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_64b_badSink(&data); }
['/* FLAW: Allocate memory without using sizeof(int) */']
['CWE121', 'CWE131']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62936/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_64a.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_64_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_64_bad (undefined8 param_1,undefined8 param_2) { undefined auStack_30 [32]; undefined *puStack_10; puStack_10 = auStack_30; CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_64b_badSink(&puStack_10,param_2,1); return; }
['gcc']
15,625
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_64_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62936/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_64a.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_64_good
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_64_good(void) { goodG2B(); return; }
['gcc']
15,626
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_64b_badSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ int * * dataPtr = (int * *)dataVoidPtr; /* dereference dataPtr into data */ int * data = (*dataPtr); { int source[10] = {0}; /* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */ memmove(data, source, 10*sizeof(int)); printIntLine(data[0]); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */']
['CWE121', 'CWE131']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62936/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_64b.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_64b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_64b_badSink(undefined8 *param_1) { undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined4 *puStack_18; undefined8 *puStack_10; puStack_18 = (undefined4 *)*param_1; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = param_1; func_0x00400a80(puStack_18,&uStack_48,0x28); printIntLine(*puStack_18); return; }
['gcc']
15,627
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_64b_goodG2BSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ int * * dataPtr = (int * *)dataVoidPtr; /* dereference dataPtr into data */ int * data = (*dataPtr); { int source[10] = {0}; /* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */ memmove(data, source, 10*sizeof(int)); printIntLine(data[0]); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62936/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_64b.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_64b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_64b_goodG2BSink(undefined8 *param_1) { undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined4 *puStack_18; undefined8 *puStack_10; puStack_18 = (undefined4 *)*param_1; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = param_1; func_0x00400a80(puStack_18,&uStack_48,0x28); printIntLine(*puStack_18); return; }
['gcc']
15,628
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_66_bad() { int * data; int * dataArray[5]; data = NULL; /* FLAW: Allocate memory without using sizeof(int) */ data = (int *)ALLOCA(10); /* put data in array */ dataArray[2] = data; CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_66b_badSink(dataArray); }
['/* FLAW: Allocate memory without using sizeof(int) */', '/* put data in array */']
['CWE121', 'CWE131']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62938/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_66a.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_66_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_66_bad (undefined8 param_1,undefined8 param_2) { undefined auStack_50 [24]; undefined auStack_38 [16]; undefined *puStack_28; undefined *puStack_10; puStack_28 = auStack_50; puStack_10 = puStack_28; CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_66b_badSink(auStack_38,param_2,1); return; }
['gcc']
15,629
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_66_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62938/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_66a.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_66_good
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_66_good(void) { goodG2B(); return; }
['gcc']
15,630
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_66b_badSink(int * dataArray[]) { /* copy data out of dataArray */ int * data = dataArray[2]; { int source[10] = {0}; /* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */ memmove(data, source, 10*sizeof(int)); printIntLine(data[0]); } }
['/* copy data out of dataArray */', '/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */']
['CWE121', 'CWE131']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62938/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_66b.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_66b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_66b_badSink(long param_1) { undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined8 uStack_18; undefined4 *puStack_10; puStack_10 = *(undefined4 **)(param_1 + 0x10); uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a80(puStack_10,&uStack_38,0x28); printIntLine(*puStack_10); return; }
['gcc']
15,631
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_66b_goodG2BSink(int * dataArray[]) { int * data = dataArray[2]; { int source[10] = {0}; /* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */ memmove(data, source, 10*sizeof(int)); printIntLine(data[0]); } }
['/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62938/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_66b.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_66b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_66b_goodG2BSink(long param_1) { undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined8 uStack_18; undefined4 *puStack_10; puStack_10 = *(undefined4 **)(param_1 + 0x10); uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; func_0x00400a80(puStack_10,&uStack_38,0x28); printIntLine(*puStack_10); return; }
['gcc']
15,632
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_67_bad() { int * data; CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_67_structType myStruct; data = NULL; /* FLAW: Allocate memory without using sizeof(int) */ data = (int *)ALLOCA(10); myStruct.structFirst = data; CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_67b_badSink(myStruct); }
['/* FLAW: Allocate memory without using sizeof(int) */']
['CWE121', 'CWE131']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62939/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_67a.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_67_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_67_bad (undefined8 param_1,undefined8 param_2) { undefined auStack_30 [24]; undefined *puStack_18; undefined *puStack_10; puStack_18 = auStack_30; puStack_10 = puStack_18; CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_67b_badSink(puStack_18,param_2,1); return; }
['gcc']
15,633
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_67_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62939/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_67a.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_67_good
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_67_good(void) { goodG2B(); return; }
['gcc']
15,634
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_67b_badSink(CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_67_structType myStruct) { int * data = myStruct.structFirst; { int source[10] = {0}; /* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */ memmove(data, source, 10*sizeof(int)); printIntLine(data[0]); } }
['/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */']
['CWE121', 'CWE131']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62939/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_67b.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_67b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_67b_badSink(undefined4 *param_1) { undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined8 uStack_18; undefined4 *puStack_10; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; puStack_10 = param_1; func_0x00400a80(param_1,&uStack_38,0x28); printIntLine(*puStack_10); return; }
['gcc']
15,635
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_67b_goodG2BSink(CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_67_structType myStruct) { int * data = myStruct.structFirst; { int source[10] = {0}; /* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */ memmove(data, source, 10*sizeof(int)); printIntLine(data[0]); } }
['/* POTENTIAL FLAW: Possible buffer overflow if data was not allocated correctly in the source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62939/CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_67b.c
CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_67b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE131_memmove_67b_goodG2BSink(undefined4 *param_1) { undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined8 uStack_18; undefined4 *puStack_10; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; puStack_10 = param_1; func_0x00400a80(param_1,&uStack_38,0x28); printIntLine(*puStack_10); return; }
['gcc']
15,636
void CWE121_Stack_Based_Buffer_Overflow__CWE135_01_bad() { void * data; data = NULL; /* POTENTIAL FLAW: Set data to point to a wide string */ data = (void *)WIDE_STRING; { /* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */ size_t dataLen = strlen((char *)data); void * dest = (void *)calloc(dataLen+1, 1); memcpy(dest, data, (dataLen+1)); printLine((char *)dest); free(dest); } }
['/* POTENTIAL FLAW: Set data to point to a wide string */', '/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62948/CWE121_Stack_Based_Buffer_Overflow__CWE135_01.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_01_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE135_01_bad(void) { long lVar1; undefined8 uVar2; lVar1 = func_0x00400ae0(&UNK_00401278); uVar2 = func_0x00400b30(lVar1 + 1,1); func_0x00400b50(uVar2,&UNK_00401278,lVar1 + 1); printLine(uVar2); func_0x00400ab0(uVar2); return; }
['gcc']
15,637
void CWE121_Stack_Based_Buffer_Overflow__CWE135_01_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62948/CWE121_Stack_Based_Buffer_Overflow__CWE135_01.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_01_good
void CWE121_Stack_Based_Buffer_Overflow__CWE135_01_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
15,638
void CWE121_Stack_Based_Buffer_Overflow__CWE135_02_bad() { void * data; data = NULL; if(1) { /* POTENTIAL FLAW: Set data to point to a wide string */ data = (void *)WIDE_STRING; } if(1) { { /* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */ size_t dataLen = strlen((char *)data); void * dest = (void *)calloc(dataLen+1, 1); memcpy(dest, data, (dataLen+1)); printLine((char *)dest); free(dest); } } }
['/* POTENTIAL FLAW: Set data to point to a wide string */', '/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62949/CWE121_Stack_Based_Buffer_Overflow__CWE135_02.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_02_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE135_02_bad(void) { long lVar1; undefined8 uVar2; lVar1 = func_0x00400ae0(&UNK_00401278); uVar2 = func_0x00400b30(lVar1 + 1,1); func_0x00400b50(uVar2,&UNK_00401278,lVar1 + 1); printLine(uVar2); func_0x00400ab0(uVar2); return; }
['gcc']
15,639
void CWE121_Stack_Based_Buffer_Overflow__CWE135_02_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62949/CWE121_Stack_Based_Buffer_Overflow__CWE135_02.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_02_good
void CWE121_Stack_Based_Buffer_Overflow__CWE135_02_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
15,640
void CWE121_Stack_Based_Buffer_Overflow__CWE135_03_bad() { void * data; data = NULL; if(5==5) { /* POTENTIAL FLAW: Set data to point to a wide string */ data = (void *)WIDE_STRING; } if(5==5) { { /* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */ size_t dataLen = strlen((char *)data); void * dest = (void *)calloc(dataLen+1, 1); memcpy(dest, data, (dataLen+1)); printLine((char *)dest); free(dest); } } }
['/* POTENTIAL FLAW: Set data to point to a wide string */', '/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62950/CWE121_Stack_Based_Buffer_Overflow__CWE135_03.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_03_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE135_03_bad(void) { long lVar1; undefined8 uVar2; lVar1 = func_0x00400ae0(&UNK_00401278); uVar2 = func_0x00400b30(lVar1 + 1,1); func_0x00400b50(uVar2,&UNK_00401278,lVar1 + 1); printLine(uVar2); func_0x00400ab0(uVar2); return; }
['gcc']
15,641
void CWE121_Stack_Based_Buffer_Overflow__CWE135_03_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62950/CWE121_Stack_Based_Buffer_Overflow__CWE135_03.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_03_good
void CWE121_Stack_Based_Buffer_Overflow__CWE135_03_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
15,642
void CWE121_Stack_Based_Buffer_Overflow__CWE135_04_bad() { void * data; data = NULL; if(STATIC_CONST_TRUE) { /* POTENTIAL FLAW: Set data to point to a wide string */ data = (void *)WIDE_STRING; } if(STATIC_CONST_TRUE) { { /* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */ size_t dataLen = strlen((char *)data); void * dest = (void *)calloc(dataLen+1, 1); memcpy(dest, data, (dataLen+1)); printLine((char *)dest); free(dest); } } }
['/* POTENTIAL FLAW: Set data to point to a wide string */', '/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62951/CWE121_Stack_Based_Buffer_Overflow__CWE135_04.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_04_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE135_04_bad(void) { long lVar1; undefined8 uVar2; lVar1 = func_0x00400ae0(&UNK_00401290); uVar2 = func_0x00400b30(lVar1 + 1,1); func_0x00400b50(uVar2,&UNK_00401290,lVar1 + 1); printLine(uVar2); func_0x00400ab0(uVar2); return; }
['gcc']
15,643
void CWE121_Stack_Based_Buffer_Overflow__CWE135_04_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62951/CWE121_Stack_Based_Buffer_Overflow__CWE135_04.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_04_good
void CWE121_Stack_Based_Buffer_Overflow__CWE135_04_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
15,644
void CWE121_Stack_Based_Buffer_Overflow__CWE135_05_bad() { void * data; data = NULL; if(staticTrue) { /* POTENTIAL FLAW: Set data to point to a wide string */ data = (void *)WIDE_STRING; } if(staticTrue) { { /* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */ size_t dataLen = strlen((char *)data); void * dest = (void *)calloc(dataLen+1, 1); memcpy(dest, data, (dataLen+1)); printLine((char *)dest); free(dest); } } }
['/* POTENTIAL FLAW: Set data to point to a wide string */', '/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62952/CWE121_Stack_Based_Buffer_Overflow__CWE135_05.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_05_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE135_05_bad(void) { long lVar1; undefined8 uVar2; if (staticTrue != 0) { lVar1 = func_0x00400ae0(&UNK_00401288); uVar2 = func_0x00400b30(lVar1 + 1,1); func_0x00400b50(uVar2,&UNK_00401288,lVar1 + 1); printLine(uVar2); func_0x00400ab0(uVar2); } return; }
['gcc']
15,645
void CWE121_Stack_Based_Buffer_Overflow__CWE135_05_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62952/CWE121_Stack_Based_Buffer_Overflow__CWE135_05.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_05_good
void CWE121_Stack_Based_Buffer_Overflow__CWE135_05_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
15,646
void CWE121_Stack_Based_Buffer_Overflow__CWE135_06_bad() { void * data; data = NULL; if(STATIC_CONST_FIVE==5) { /* POTENTIAL FLAW: Set data to point to a wide string */ data = (void *)WIDE_STRING; } if(STATIC_CONST_FIVE==5) { { /* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */ size_t dataLen = strlen((char *)data); void * dest = (void *)calloc(dataLen+1, 1); memcpy(dest, data, (dataLen+1)); printLine((char *)dest); free(dest); } } }
['/* POTENTIAL FLAW: Set data to point to a wide string */', '/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62953/CWE121_Stack_Based_Buffer_Overflow__CWE135_06.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_06_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE135_06_bad(void) { long lVar1; undefined8 uVar2; lVar1 = func_0x00400ae0(&UNK_00401290); uVar2 = func_0x00400b30(lVar1 + 1,1); func_0x00400b50(uVar2,&UNK_00401290,lVar1 + 1); printLine(uVar2); func_0x00400ab0(uVar2); return; }
['gcc']
15,647
void CWE121_Stack_Based_Buffer_Overflow__CWE135_06_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62953/CWE121_Stack_Based_Buffer_Overflow__CWE135_06.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_06_good
void CWE121_Stack_Based_Buffer_Overflow__CWE135_06_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
15,648
void CWE121_Stack_Based_Buffer_Overflow__CWE135_07_bad() { void * data; data = NULL; if(staticFive==5) { /* POTENTIAL FLAW: Set data to point to a wide string */ data = (void *)WIDE_STRING; } if(staticFive==5) { { /* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */ size_t dataLen = strlen((char *)data); void * dest = (void *)calloc(dataLen+1, 1); memcpy(dest, data, (dataLen+1)); printLine((char *)dest); free(dest); } } }
['/* POTENTIAL FLAW: Set data to point to a wide string */', '/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62954/CWE121_Stack_Based_Buffer_Overflow__CWE135_07.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_07_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE135_07_bad(void) { long lVar1; undefined8 uVar2; if (staticFive == 5) { lVar1 = func_0x00400ae0(&UNK_00401298); uVar2 = func_0x00400b30(lVar1 + 1,1); func_0x00400b50(uVar2,&UNK_00401298,lVar1 + 1); printLine(uVar2); func_0x00400ab0(uVar2); } return; }
['gcc']
15,649
void CWE121_Stack_Based_Buffer_Overflow__CWE135_07_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62954/CWE121_Stack_Based_Buffer_Overflow__CWE135_07.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_07_good
void CWE121_Stack_Based_Buffer_Overflow__CWE135_07_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
15,650
void CWE121_Stack_Based_Buffer_Overflow__CWE135_08_bad() { void * data; data = NULL; if(staticReturnsTrue()) { /* POTENTIAL FLAW: Set data to point to a wide string */ data = (void *)WIDE_STRING; } if(staticReturnsTrue()) { { /* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */ size_t dataLen = strlen((char *)data); void * dest = (void *)calloc(dataLen+1, 1); memcpy(dest, data, (dataLen+1)); printLine((char *)dest); free(dest); } } }
['/* POTENTIAL FLAW: Set data to point to a wide string */', '/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62955/CWE121_Stack_Based_Buffer_Overflow__CWE135_08.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_08_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE135_08_bad(void) { int iVar1; long lVar2; undefined8 uVar3; undefined *puStack_10; puStack_10 = (undefined *)0x0; iVar1 = staticReturnsTrue(); if (iVar1 != 0) { puStack_10 = &UNK_004012a8; } iVar1 = staticReturnsTrue(); if (iVar1 != 0) { lVar2 = func_0x00400ae0(puStack_10); uVar3 = func_0x00400b30(lVar2 + 1,1); func_0x00400b50(uVar3,puStack_10,lVar2 + 1); printLine(uVar3); func_0x00400ab0(uVar3); } return; }
['gcc']
15,651
void CWE121_Stack_Based_Buffer_Overflow__CWE135_08_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62955/CWE121_Stack_Based_Buffer_Overflow__CWE135_08.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_08_good
void CWE121_Stack_Based_Buffer_Overflow__CWE135_08_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
15,652
void CWE121_Stack_Based_Buffer_Overflow__CWE135_09_bad() { void * data; data = NULL; if(GLOBAL_CONST_TRUE) { /* POTENTIAL FLAW: Set data to point to a wide string */ data = (void *)WIDE_STRING; } if(GLOBAL_CONST_TRUE) { { /* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */ size_t dataLen = strlen((char *)data); void * dest = (void *)calloc(dataLen+1, 1); memcpy(dest, data, (dataLen+1)); printLine((char *)dest); free(dest); } } }
['/* POTENTIAL FLAW: Set data to point to a wide string */', '/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62956/CWE121_Stack_Based_Buffer_Overflow__CWE135_09.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_09_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE135_09_bad(void) { long lVar1; undefined8 uVar2; if (GLOBAL_CONST_TRUE != 0) { lVar1 = func_0x00400ae0(&UNK_00401288); uVar2 = func_0x00400b30(lVar1 + 1,1); func_0x00400b50(uVar2,&UNK_00401288,lVar1 + 1); printLine(uVar2); func_0x00400ab0(uVar2); } return; }
['gcc']
15,653
void CWE121_Stack_Based_Buffer_Overflow__CWE135_09_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62956/CWE121_Stack_Based_Buffer_Overflow__CWE135_09.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_09_good
void CWE121_Stack_Based_Buffer_Overflow__CWE135_09_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
15,654
void CWE121_Stack_Based_Buffer_Overflow__CWE135_10_bad() { void * data; data = NULL; if(globalTrue) { /* POTENTIAL FLAW: Set data to point to a wide string */ data = (void *)WIDE_STRING; } if(globalTrue) { { /* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */ size_t dataLen = strlen((char *)data); void * dest = (void *)calloc(dataLen+1, 1); memcpy(dest, data, (dataLen+1)); printLine((char *)dest); free(dest); } } }
['/* POTENTIAL FLAW: Set data to point to a wide string */', '/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62957/CWE121_Stack_Based_Buffer_Overflow__CWE135_10.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_10_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE135_10_bad(void) { long lVar1; undefined8 uVar2; if (globalTrue != 0) { lVar1 = func_0x00400ae0(&UNK_00401288); uVar2 = func_0x00400b30(lVar1 + 1,1); func_0x00400b50(uVar2,&UNK_00401288,lVar1 + 1); printLine(uVar2); func_0x00400ab0(uVar2); } return; }
['gcc']
15,655
void CWE121_Stack_Based_Buffer_Overflow__CWE135_10_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62957/CWE121_Stack_Based_Buffer_Overflow__CWE135_10.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_10_good
void CWE121_Stack_Based_Buffer_Overflow__CWE135_10_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
15,656
void CWE121_Stack_Based_Buffer_Overflow__CWE135_11_bad() { void * data; data = NULL; if(globalReturnsTrue()) { /* POTENTIAL FLAW: Set data to point to a wide string */ data = (void *)WIDE_STRING; } if(globalReturnsTrue()) { { /* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */ size_t dataLen = strlen((char *)data); void * dest = (void *)calloc(dataLen+1, 1); memcpy(dest, data, (dataLen+1)); printLine((char *)dest); free(dest); } } }
['/* POTENTIAL FLAW: Set data to point to a wide string */', '/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62958/CWE121_Stack_Based_Buffer_Overflow__CWE135_11.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_11_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE135_11_bad(void) { int iVar1; long lVar2; undefined8 uVar3; undefined *puStack_10; puStack_10 = (undefined *)0x0; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { puStack_10 = &UNK_00401298; } iVar1 = globalReturnsTrue(); if (iVar1 != 0) { lVar2 = func_0x00400ae0(puStack_10); uVar3 = func_0x00400b30(lVar2 + 1,1); func_0x00400b50(uVar3,puStack_10,lVar2 + 1); printLine(uVar3); func_0x00400ab0(uVar3); } return; }
['gcc']
15,657
void CWE121_Stack_Based_Buffer_Overflow__CWE135_11_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62958/CWE121_Stack_Based_Buffer_Overflow__CWE135_11.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_11_good
void CWE121_Stack_Based_Buffer_Overflow__CWE135_11_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
15,658
void CWE121_Stack_Based_Buffer_Overflow__CWE135_12_bad() { void * data; data = NULL; if(globalReturnsTrueOrFalse()) { /* POTENTIAL FLAW: Set data to point to a wide string */ data = (void *)WIDE_STRING; } else { /* FIX: Set data to point to a char string */ data = (void *)CHAR_STRING; } if(globalReturnsTrueOrFalse()) { { /* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */ size_t dataLen = strlen((char *)data); void * dest = (void *)calloc(dataLen+1, 1); memcpy(dest, data, (dataLen+1)); printLine((char *)dest); free(dest); } } else { { /* FIX: treating pointer like a wchar_t* */ size_t dataLen = wcslen((wchar_t *)data); void * dest = (void *)calloc(dataLen+1, sizeof(wchar_t)); memcpy(dest, data, (dataLen+1)*sizeof(wchar_t)); printWLine((wchar_t *)dest); free(dest); } } }
['/* POTENTIAL FLAW: Set data to point to a wide string */', '/* FIX: Set data to point to a char string */', '/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */', '/* FIX: treating pointer like a wchar_t* */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62959/CWE121_Stack_Based_Buffer_Overflow__CWE135_12.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_12_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE135_12_bad(void) { int iVar1; long lVar2; undefined8 uVar3; undefined *puStack_10; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { puStack_10 = &UNK_00401448; } else { puStack_10 = &UNK_00401398; } iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { lVar2 = func_0x00400b80(puStack_10); uVar3 = func_0x00400bc0(lVar2 + 1,4); func_0x00400be0(uVar3,puStack_10,(lVar2 + 1) * 4); printWLine(uVar3); func_0x00400b30(uVar3); } else { lVar2 = func_0x00400b60(puStack_10); uVar3 = func_0x00400bc0(lVar2 + 1,1); func_0x00400be0(uVar3,puStack_10,lVar2 + 1); printLine(uVar3); func_0x00400b30(uVar3); } return; }
['gcc']
15,659
void CWE121_Stack_Based_Buffer_Overflow__CWE135_12_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62959/CWE121_Stack_Based_Buffer_Overflow__CWE135_12.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_12_good
void CWE121_Stack_Based_Buffer_Overflow__CWE135_12_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
15,660
void CWE121_Stack_Based_Buffer_Overflow__CWE135_13_bad() { void * data; data = NULL; if(GLOBAL_CONST_FIVE==5) { /* POTENTIAL FLAW: Set data to point to a wide string */ data = (void *)WIDE_STRING; } if(GLOBAL_CONST_FIVE==5) { { /* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */ size_t dataLen = strlen((char *)data); void * dest = (void *)calloc(dataLen+1, 1); memcpy(dest, data, (dataLen+1)); printLine((char *)dest); free(dest); } } }
['/* POTENTIAL FLAW: Set data to point to a wide string */', '/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62960/CWE121_Stack_Based_Buffer_Overflow__CWE135_13.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_13_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE135_13_bad(void) { long lVar1; undefined8 uVar2; if (GLOBAL_CONST_FIVE == 5) { lVar1 = func_0x00400ae0(&UNK_00401298); uVar2 = func_0x00400b30(lVar1 + 1,1); func_0x00400b50(uVar2,&UNK_00401298,lVar1 + 1); printLine(uVar2); func_0x00400ab0(uVar2); } return; }
['gcc']
15,661
void CWE121_Stack_Based_Buffer_Overflow__CWE135_13_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62960/CWE121_Stack_Based_Buffer_Overflow__CWE135_13.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_13_good
void CWE121_Stack_Based_Buffer_Overflow__CWE135_13_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
15,662
void CWE121_Stack_Based_Buffer_Overflow__CWE135_14_bad() { void * data; data = NULL; if(globalFive==5) { /* POTENTIAL FLAW: Set data to point to a wide string */ data = (void *)WIDE_STRING; } if(globalFive==5) { { /* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */ size_t dataLen = strlen((char *)data); void * dest = (void *)calloc(dataLen+1, 1); memcpy(dest, data, (dataLen+1)); printLine((char *)dest); free(dest); } } }
['/* POTENTIAL FLAW: Set data to point to a wide string */', '/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62961/CWE121_Stack_Based_Buffer_Overflow__CWE135_14.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_14_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE135_14_bad(void) { long lVar1; undefined8 uVar2; if (globalFive == 5) { lVar1 = func_0x00400ae0(&UNK_00401298); uVar2 = func_0x00400b30(lVar1 + 1,1); func_0x00400b50(uVar2,&UNK_00401298,lVar1 + 1); printLine(uVar2); func_0x00400ab0(uVar2); } return; }
['gcc']
15,663
void CWE121_Stack_Based_Buffer_Overflow__CWE135_14_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62961/CWE121_Stack_Based_Buffer_Overflow__CWE135_14.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_14_good
void CWE121_Stack_Based_Buffer_Overflow__CWE135_14_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
15,664
void CWE121_Stack_Based_Buffer_Overflow__CWE135_15_bad() { void * data; data = NULL; switch(6) { case 6: /* POTENTIAL FLAW: Set data to point to a wide string */ data = (void *)WIDE_STRING; break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } switch(7) { case 7: { /* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */ size_t dataLen = strlen((char *)data); void * dest = (void *)calloc(dataLen+1, 1); memcpy(dest, data, (dataLen+1)); printLine((char *)dest); free(dest); } break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } }
['/* POTENTIAL FLAW: Set data to point to a wide string */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62962/CWE121_Stack_Based_Buffer_Overflow__CWE135_15.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_15_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE135_15_bad(void) { long lVar1; undefined8 uVar2; lVar1 = func_0x00400ae0(&UNK_00401278); uVar2 = func_0x00400b30(lVar1 + 1,1); func_0x00400b50(uVar2,&UNK_00401278,lVar1 + 1); printLine(uVar2); func_0x00400ab0(uVar2); return; }
['gcc']
15,665
void CWE121_Stack_Based_Buffer_Overflow__CWE135_15_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62962/CWE121_Stack_Based_Buffer_Overflow__CWE135_15.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_15_good
void CWE121_Stack_Based_Buffer_Overflow__CWE135_15_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
15,666
void CWE121_Stack_Based_Buffer_Overflow__CWE135_16_bad() { void * data; data = NULL; while(1) { /* POTENTIAL FLAW: Set data to point to a wide string */ data = (void *)WIDE_STRING; break; } while(1) { { /* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */ size_t dataLen = strlen((char *)data); void * dest = (void *)calloc(dataLen+1, 1); memcpy(dest, data, (dataLen+1)); printLine((char *)dest); free(dest); } break; } }
['/* POTENTIAL FLAW: Set data to point to a wide string */', '/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62963/CWE121_Stack_Based_Buffer_Overflow__CWE135_16.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_16_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE135_16_bad(void) { long lVar1; undefined8 uVar2; lVar1 = func_0x00400ae0(&UNK_00401278); uVar2 = func_0x00400b30(lVar1 + 1,1); func_0x00400b50(uVar2,&UNK_00401278,lVar1 + 1); printLine(uVar2); func_0x00400ab0(uVar2); return; }
['gcc']
15,667
void CWE121_Stack_Based_Buffer_Overflow__CWE135_16_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62963/CWE121_Stack_Based_Buffer_Overflow__CWE135_16.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_16_good
void CWE121_Stack_Based_Buffer_Overflow__CWE135_16_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
15,668
void CWE121_Stack_Based_Buffer_Overflow__CWE135_17_bad() { int i,j; void * data; data = NULL; for(i = 0; i < 1; i++) { /* POTENTIAL FLAW: Set data to point to a wide string */ data = (void *)WIDE_STRING; } for(j = 0; j < 1; j++) { { /* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */ size_t dataLen = strlen((char *)data); void * dest = (void *)calloc(dataLen+1, 1); memcpy(dest, data, (dataLen+1)); printLine((char *)dest); free(dest); } } }
['/* POTENTIAL FLAW: Set data to point to a wide string */', '/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62964/CWE121_Stack_Based_Buffer_Overflow__CWE135_17.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_17_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE135_17_bad(void) { long lVar1; undefined8 uVar2; undefined *puStack_18; int iStack_10; int iStack_c; puStack_18 = (undefined *)0x0; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { puStack_18 = &UNK_004012a8; } for (iStack_10 = 0; iStack_10 < 1; iStack_10 = iStack_10 + 1) { lVar1 = func_0x00400ae0(puStack_18); uVar2 = func_0x00400b30(lVar1 + 1,1); func_0x00400b50(uVar2,puStack_18,lVar1 + 1); printLine(uVar2); func_0x00400ab0(uVar2); } return; }
['gcc']
15,669
void CWE121_Stack_Based_Buffer_Overflow__CWE135_17_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62964/CWE121_Stack_Based_Buffer_Overflow__CWE135_17.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_17_good
void CWE121_Stack_Based_Buffer_Overflow__CWE135_17_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
15,670
void CWE121_Stack_Based_Buffer_Overflow__CWE135_18_bad() { void * data; data = NULL; goto source; source: /* POTENTIAL FLAW: Set data to point to a wide string */ data = (void *)WIDE_STRING; goto sink; sink: { /* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */ size_t dataLen = strlen((char *)data); void * dest = (void *)calloc(dataLen+1, 1); memcpy(dest, data, (dataLen+1)); printLine((char *)dest); free(dest); } }
['/* POTENTIAL FLAW: Set data to point to a wide string */', '/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62965/CWE121_Stack_Based_Buffer_Overflow__CWE135_18.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_18_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE135_18_bad(void) { long lVar1; undefined8 uVar2; lVar1 = func_0x00400ae0(&UNK_00401278); uVar2 = func_0x00400b30(lVar1 + 1,1); func_0x00400b50(uVar2,&UNK_00401278,lVar1 + 1); printLine(uVar2); func_0x00400ab0(uVar2); return; }
['gcc']
15,671
void CWE121_Stack_Based_Buffer_Overflow__CWE135_18_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62965/CWE121_Stack_Based_Buffer_Overflow__CWE135_18.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_18_good
void CWE121_Stack_Based_Buffer_Overflow__CWE135_18_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
15,672
void CWE121_Stack_Based_Buffer_Overflow__CWE135_21_bad() { void * data; data = NULL; /* POTENTIAL FLAW: Set data to point to a wide string */ data = (void *)WIDE_STRING; badStatic = 1; /* true */ badSink(data); }
['/* POTENTIAL FLAW: Set data to point to a wide string */', '/* true */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62966/CWE121_Stack_Based_Buffer_Overflow__CWE135_21.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_21_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE135_21_bad(void) { badStatic = 1; badSink(&UNK_004012a8); return; }
['gcc']
15,673
void CWE121_Stack_Based_Buffer_Overflow__CWE135_21_good() { goodB2G1(); goodB2G2(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62966/CWE121_Stack_Based_Buffer_Overflow__CWE135_21.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_21_good
void CWE121_Stack_Based_Buffer_Overflow__CWE135_21_good(void) { goodB2G1(); goodB2G2(); goodG2B(); return; }
['gcc']
15,674
void CWE121_Stack_Based_Buffer_Overflow__CWE135_22_bad() { void * data; data = NULL; /* POTENTIAL FLAW: Set data to point to a wide string */ data = (void *)WIDE_STRING; CWE121_Stack_Based_Buffer_Overflow__CWE135_22_badGlobal = 1; /* true */ CWE121_Stack_Based_Buffer_Overflow__CWE135_22_badSink(data); }
['/* POTENTIAL FLAW: Set data to point to a wide string */', '/* true */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62967/CWE121_Stack_Based_Buffer_Overflow__CWE135_22a.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_22_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE135_22_bad(void) { CWE121_Stack_Based_Buffer_Overflow__CWE135_22_badGlobal = 1; CWE121_Stack_Based_Buffer_Overflow__CWE135_22_badSink(&UNK_004012a8); return; }
['gcc']
15,675
void CWE121_Stack_Based_Buffer_Overflow__CWE135_22_good() { goodB2G1(); goodB2G2(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62967/CWE121_Stack_Based_Buffer_Overflow__CWE135_22a.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_22_good
void CWE121_Stack_Based_Buffer_Overflow__CWE135_22_good(void) { goodB2G1(); goodB2G2(); goodG2B(); return; }
['gcc']
15,676
void CWE121_Stack_Based_Buffer_Overflow__CWE135_22_badSink(void * data) { if(CWE121_Stack_Based_Buffer_Overflow__CWE135_22_badGlobal) { { /* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */ size_t dataLen = strlen((char *)data); void * dest = (void *)calloc(dataLen+1, 1); memcpy(dest, data, (dataLen+1)); printLine((char *)dest); free(dest); } } }
['/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62967/CWE121_Stack_Based_Buffer_Overflow__CWE135_22b.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_22_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE135_22_badSink(undefined8 param_1) { long lVar1; undefined8 uVar2; if (CWE121_Stack_Based_Buffer_Overflow__CWE135_22_badGlobal != 0) { lVar1 = func_0x00400ae0(param_1); uVar2 = func_0x00400b30(lVar1 + 1,1); func_0x00400b50(uVar2,param_1,lVar1 + 1); printLine(uVar2); func_0x00400ab0(uVar2); } return; }
['gcc']
15,677
void CWE121_Stack_Based_Buffer_Overflow__CWE135_22_goodB2G1Sink(void * data) { if(CWE121_Stack_Based_Buffer_Overflow__CWE135_22_goodB2G1Global) { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); } else { { /* FIX: treating pointer like a wchar_t* */ size_t dataLen = wcslen((wchar_t *)data); void * dest = (void *)calloc(dataLen+1, sizeof(wchar_t)); memcpy(dest, data, (dataLen+1)*sizeof(wchar_t)); printWLine((wchar_t *)dest); free(dest); } } }
['/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* FIX: treating pointer like a wchar_t* */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62967/CWE121_Stack_Based_Buffer_Overflow__CWE135_22b.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_22_goodB2G1Sink
void CWE121_Stack_Based_Buffer_Overflow__CWE135_22_goodB2G1Sink(undefined8 param_1) { long lVar1; undefined8 uVar2; if (CWE121_Stack_Based_Buffer_Overflow__CWE135_22_goodB2G1Global == 0) { lVar1 = func_0x00400b80(param_1); uVar2 = func_0x00400bc0(lVar1 + 1,4); func_0x00400be0(uVar2,param_1,(lVar1 + 1) * 4); printWLine(uVar2); func_0x00400b30(uVar2); } else { printLine(&UNK_004014c4); } return; }
['gcc']
15,678
void CWE121_Stack_Based_Buffer_Overflow__CWE135_22_goodB2G2Sink(void * data) { if(CWE121_Stack_Based_Buffer_Overflow__CWE135_22_goodB2G2Global) { { /* FIX: treating pointer like a wchar_t* */ size_t dataLen = wcslen((wchar_t *)data); void * dest = (void *)calloc(dataLen+1, sizeof(wchar_t)); memcpy(dest, data, (dataLen+1)*sizeof(wchar_t)); printWLine((wchar_t *)dest); free(dest); } } }
['/* FIX: treating pointer like a wchar_t* */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62967/CWE121_Stack_Based_Buffer_Overflow__CWE135_22b.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_22_goodB2G2Sink
void CWE121_Stack_Based_Buffer_Overflow__CWE135_22_goodB2G2Sink(undefined8 param_1) { long lVar1; undefined8 uVar2; if (CWE121_Stack_Based_Buffer_Overflow__CWE135_22_goodB2G2Global != 0) { lVar1 = func_0x00400b80(param_1); uVar2 = func_0x00400bc0(lVar1 + 1,4); func_0x00400be0(uVar2,param_1,(lVar1 + 1) * 4); printWLine(uVar2); func_0x00400b30(uVar2); } return; }
['gcc']
15,679
void CWE121_Stack_Based_Buffer_Overflow__CWE135_22_goodG2BSink(void * data) { if(CWE121_Stack_Based_Buffer_Overflow__CWE135_22_goodG2BGlobal) { { /* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */ size_t dataLen = strlen((char *)data); void * dest = (void *)calloc(dataLen+1, 1); memcpy(dest, data, (dataLen+1)); printLine((char *)dest); free(dest); } } }
['/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62967/CWE121_Stack_Based_Buffer_Overflow__CWE135_22b.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_22_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE135_22_goodG2BSink(undefined8 param_1) { long lVar1; undefined8 uVar2; if (CWE121_Stack_Based_Buffer_Overflow__CWE135_22_goodG2BGlobal != 0) { lVar1 = func_0x00400b60(param_1); uVar2 = func_0x00400bc0(lVar1 + 1,1); func_0x00400be0(uVar2,param_1,lVar1 + 1); printLine(uVar2); func_0x00400b30(uVar2); } return; }
['gcc']
15,680
void CWE121_Stack_Based_Buffer_Overflow__CWE135_31_bad() { void * data; data = NULL; /* POTENTIAL FLAW: Set data to point to a wide string */ data = (void *)WIDE_STRING; { void * dataCopy = data; void * data = dataCopy; { /* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */ size_t dataLen = strlen((char *)data); void * dest = (void *)calloc(dataLen+1, 1); memcpy(dest, data, (dataLen+1)); printLine((char *)dest); free(dest); } } }
['/* POTENTIAL FLAW: Set data to point to a wide string */', '/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62968/CWE121_Stack_Based_Buffer_Overflow__CWE135_31.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_31_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE135_31_bad(void) { long lVar1; undefined8 uVar2; lVar1 = func_0x00400ae0(&UNK_00401288); uVar2 = func_0x00400b30(lVar1 + 1,1); func_0x00400b50(uVar2,&UNK_00401288,lVar1 + 1); printLine(uVar2); func_0x00400ab0(uVar2); return; }
['gcc']
15,681
void CWE121_Stack_Based_Buffer_Overflow__CWE135_31_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62968/CWE121_Stack_Based_Buffer_Overflow__CWE135_31.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_31_good
void CWE121_Stack_Based_Buffer_Overflow__CWE135_31_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
15,682
void CWE121_Stack_Based_Buffer_Overflow__CWE135_32_bad() { void * data; void * *dataPtr1 = &data; void * *dataPtr2 = &data; data = NULL; { void * data = *dataPtr1; /* POTENTIAL FLAW: Set data to point to a wide string */ data = (void *)WIDE_STRING; *dataPtr1 = data; } { void * data = *dataPtr2; { /* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */ size_t dataLen = strlen((char *)data); void * dest = (void *)calloc(dataLen+1, 1); memcpy(dest, data, (dataLen+1)); printLine((char *)dest); free(dest); } } }
['/* POTENTIAL FLAW: Set data to point to a wide string */', '/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62969/CWE121_Stack_Based_Buffer_Overflow__CWE135_32.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_32_bad
/* WARNING: Heritage AFTER dead removal. Example location: s0xffffffffffffffc0 : 0x00400cc4 */ /* WARNING: Restarted to delay deadcode elimination for space: stack */ void CWE121_Stack_Based_Buffer_Overflow__CWE135_32_bad(void) { undefined *puStack_40; undefined8 uStack_38; long lStack_30; undefined *puStack_28; undefined *puStack_20; undefined **ppuStack_18; undefined **ppuStack_10; ppuStack_10 = &puStack_40; ppuStack_18 = &puStack_40; puStack_20 = &UNK_004012a8; puStack_40 = &UNK_004012a8; puStack_28 = &UNK_004012a8; lStack_30 = func_0x00400ae0(&UNK_004012a8); uStack_38 = func_0x00400b30(lStack_30 + 1,1); func_0x00400b50(uStack_38,puStack_28,lStack_30 + 1); printLine(uStack_38); func_0x00400ab0(uStack_38); return; }
['gcc']
15,683
void CWE121_Stack_Based_Buffer_Overflow__CWE135_32_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62969/CWE121_Stack_Based_Buffer_Overflow__CWE135_32.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_32_good
void CWE121_Stack_Based_Buffer_Overflow__CWE135_32_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
15,684
void CWE121_Stack_Based_Buffer_Overflow__CWE135_34_bad() { void * data; CWE121_Stack_Based_Buffer_Overflow__CWE135_34_unionType myUnion; data = NULL; /* POTENTIAL FLAW: Set data to point to a wide string */ data = (void *)WIDE_STRING; myUnion.unionFirst = data; { void * data = myUnion.unionSecond; { /* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */ size_t dataLen = strlen((char *)data); void * dest = (void *)calloc(dataLen+1, 1); memcpy(dest, data, (dataLen+1)); printLine((char *)dest); free(dest); } } }
['/* POTENTIAL FLAW: Set data to point to a wide string */', '/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62971/CWE121_Stack_Based_Buffer_Overflow__CWE135_34.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_34_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE135_34_bad(void) { long lVar1; undefined8 uVar2; lVar1 = func_0x00400ae0(&UNK_00401288); uVar2 = func_0x00400b30(lVar1 + 1,1); func_0x00400b50(uVar2,&UNK_00401288,lVar1 + 1); printLine(uVar2); func_0x00400ab0(uVar2); return; }
['gcc']
15,685
void CWE121_Stack_Based_Buffer_Overflow__CWE135_34_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62971/CWE121_Stack_Based_Buffer_Overflow__CWE135_34.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_34_good
void CWE121_Stack_Based_Buffer_Overflow__CWE135_34_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
15,686
void CWE121_Stack_Based_Buffer_Overflow__CWE135_41_bad() { void * data; data = NULL; /* POTENTIAL FLAW: Set data to point to a wide string */ data = (void *)WIDE_STRING; badSink(data); }
['/* POTENTIAL FLAW: Set data to point to a wide string */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62972/CWE121_Stack_Based_Buffer_Overflow__CWE135_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_41_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE135_41_bad(void) { badSink(&UNK_00401298); return; }
['gcc']
15,687
void CWE121_Stack_Based_Buffer_Overflow__CWE135_41_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62972/CWE121_Stack_Based_Buffer_Overflow__CWE135_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_41_good
void CWE121_Stack_Based_Buffer_Overflow__CWE135_41_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
15,688
void CWE121_Stack_Based_Buffer_Overflow__CWE135_42_bad() { void * data; data = NULL; data = badSource(data); { /* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */ size_t dataLen = strlen((char *)data); void * dest = (void *)calloc(dataLen+1, 1); memcpy(dest, data, (dataLen+1)); printLine((char *)dest); free(dest); } }
['/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62973/CWE121_Stack_Based_Buffer_Overflow__CWE135_42.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_42_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE135_42_bad(void) { undefined8 uVar1; long lVar2; undefined8 uVar3; uVar1 = badSource(0); lVar2 = func_0x00400ae0(uVar1); uVar3 = func_0x00400b30(lVar2 + 1,1); func_0x00400b50(uVar3,uVar1,lVar2 + 1); printLine(uVar3); func_0x00400ab0(uVar3); return; }
['gcc']
15,689
void CWE121_Stack_Based_Buffer_Overflow__CWE135_42_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62973/CWE121_Stack_Based_Buffer_Overflow__CWE135_42.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_42_good
void CWE121_Stack_Based_Buffer_Overflow__CWE135_42_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
15,690
void CWE121_Stack_Based_Buffer_Overflow__CWE135_45_bad() { void * data; data = NULL; /* POTENTIAL FLAW: Set data to point to a wide string */ data = (void *)WIDE_STRING; CWE121_Stack_Based_Buffer_Overflow__CWE135_45_badData = data; badSink(); }
['/* POTENTIAL FLAW: Set data to point to a wide string */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62976/CWE121_Stack_Based_Buffer_Overflow__CWE135_45.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_45_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE135_45_bad(void) { CWE121_Stack_Based_Buffer_Overflow__CWE135_45_badData = &UNK_004012a8; badSink(); return; }
['gcc']
15,691
void CWE121_Stack_Based_Buffer_Overflow__CWE135_45_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62976/CWE121_Stack_Based_Buffer_Overflow__CWE135_45.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_45_good
void CWE121_Stack_Based_Buffer_Overflow__CWE135_45_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
15,692
void CWE121_Stack_Based_Buffer_Overflow__CWE135_51_bad() { void * data; data = NULL; /* POTENTIAL FLAW: Set data to point to a wide string */ data = (void *)WIDE_STRING; CWE121_Stack_Based_Buffer_Overflow__CWE135_51b_badSink(data); }
['/* POTENTIAL FLAW: Set data to point to a wide string */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62977/CWE121_Stack_Based_Buffer_Overflow__CWE135_51a.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_51_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE135_51_bad(void) { CWE121_Stack_Based_Buffer_Overflow__CWE135_51b_badSink(&UNK_00401298); return; }
['gcc']
15,693
void CWE121_Stack_Based_Buffer_Overflow__CWE135_51_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62977/CWE121_Stack_Based_Buffer_Overflow__CWE135_51a.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_51_good
void CWE121_Stack_Based_Buffer_Overflow__CWE135_51_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
15,694
void CWE121_Stack_Based_Buffer_Overflow__CWE135_51b_badSink(void * data) { { /* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */ size_t dataLen = strlen((char *)data); void * dest = (void *)calloc(dataLen+1, 1); memcpy(dest, data, (dataLen+1)); printLine((char *)dest); free(dest); } }
['/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62977/CWE121_Stack_Based_Buffer_Overflow__CWE135_51b.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_51b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE135_51b_badSink(undefined8 param_1) { long lVar1; undefined8 uVar2; lVar1 = func_0x00400ae0(param_1); uVar2 = func_0x00400b30(lVar1 + 1,1); func_0x00400b50(uVar2,param_1,lVar1 + 1); printLine(uVar2); func_0x00400ab0(uVar2); return; }
['gcc']
15,695
void CWE121_Stack_Based_Buffer_Overflow__CWE135_51b_goodG2BSink(void * data) { { /* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */ size_t dataLen = strlen((char *)data); void * dest = (void *)calloc(dataLen+1, 1); memcpy(dest, data, (dataLen+1)); printLine((char *)dest); free(dest); } }
['/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62977/CWE121_Stack_Based_Buffer_Overflow__CWE135_51b.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_51b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE135_51b_goodG2BSink(undefined8 param_1) { long lVar1; undefined8 uVar2; lVar1 = func_0x00400b60(param_1); uVar2 = func_0x00400bc0(lVar1 + 1,1); func_0x00400be0(uVar2,param_1,lVar1 + 1); printLine(uVar2); func_0x00400b30(uVar2); return; }
['gcc']
15,696
void CWE121_Stack_Based_Buffer_Overflow__CWE135_51b_goodB2GSink(void * data) { { /* FIX: treating pointer like a wchar_t* */ size_t dataLen = wcslen((wchar_t *)data); void * dest = (void *)calloc(dataLen+1, sizeof(wchar_t)); memcpy(dest, data, (dataLen+1)*sizeof(wchar_t)); printWLine((wchar_t *)dest); free(dest); } }
['/* FIX: treating pointer like a wchar_t* */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62977/CWE121_Stack_Based_Buffer_Overflow__CWE135_51b.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_51b_goodB2GSink
void CWE121_Stack_Based_Buffer_Overflow__CWE135_51b_goodB2GSink(undefined8 param_1) { long lVar1; undefined8 uVar2; lVar1 = func_0x00400b80(param_1); uVar2 = func_0x00400bc0(lVar1 + 1,4); func_0x00400be0(uVar2,param_1,(lVar1 + 1) * 4); printWLine(uVar2); func_0x00400b30(uVar2); return; }
['gcc']
15,697
void CWE121_Stack_Based_Buffer_Overflow__CWE135_52_bad() { void * data; data = NULL; /* POTENTIAL FLAW: Set data to point to a wide string */ data = (void *)WIDE_STRING; CWE121_Stack_Based_Buffer_Overflow__CWE135_52b_badSink(data); }
['/* POTENTIAL FLAW: Set data to point to a wide string */']
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62978/CWE121_Stack_Based_Buffer_Overflow__CWE135_52a.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_52_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE135_52_bad(void) { CWE121_Stack_Based_Buffer_Overflow__CWE135_52b_badSink(&UNK_004012b8); return; }
['gcc']
15,698
void CWE121_Stack_Based_Buffer_Overflow__CWE135_52_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62978/CWE121_Stack_Based_Buffer_Overflow__CWE135_52a.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_52_good
void CWE121_Stack_Based_Buffer_Overflow__CWE135_52_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
15,699
void CWE121_Stack_Based_Buffer_Overflow__CWE135_52b_badSink(void * data) { CWE121_Stack_Based_Buffer_Overflow__CWE135_52c_badSink(data); }
[]
['CWE121', 'CWE135']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62978/CWE121_Stack_Based_Buffer_Overflow__CWE135_52b.c
CWE121_Stack_Based_Buffer_Overflow__CWE135_52b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE135_52b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE135_52c_badSink(param_1); return; }
['gcc']