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
18,600
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_64_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64542/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_64a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_64_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_64_good(void) { goodG2B(); return; }
['gcc']
18,601
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_64b_badSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ int64_t * * dataPtr = (int64_t * *)dataVoidPtr; /* dereference dataPtr into data */ int64_t * data = (*dataPtr); { int64_t source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(int64_t)); printLongLongLine(data[0]); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64542/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_64b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_64b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_64b_badSink (undefined8 *param_1) { long lVar1; undefined8 *puVar2; undefined8 auStack_338 [100]; undefined8 *puStack_18; undefined8 *puStack_10; puStack_18 = (undefined8 *)*param_1; puVar2 = auStack_338; puStack_10 = param_1; for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a80(puStack_18,auStack_338,800); printLongLongLine(*puStack_18); return; }
['gcc']
18,602
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_64b_goodG2BSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ int64_t * * dataPtr = (int64_t * *)dataVoidPtr; /* dereference dataPtr into data */ int64_t * data = (*dataPtr); { int64_t source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(int64_t)); printLongLongLine(data[0]); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64542/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_64b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_64b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_64b_goodG2BSink (undefined8 *param_1) { long lVar1; undefined8 *puVar2; undefined8 auStack_338 [100]; undefined8 *puStack_18; undefined8 *puStack_10; puStack_18 = (undefined8 *)*param_1; puVar2 = auStack_338; puStack_10 = param_1; for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a80(puStack_18,auStack_338,800); printLongLongLine(*puStack_18); return; }
['gcc']
18,603
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_66_bad() { int64_t * data; int64_t * dataArray[5]; int64_t dataBadBuffer[50]; int64_t dataGoodBuffer[100]; /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; /* put data in array */ dataArray[2] = data; CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_66b_badSink(dataArray); }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* put data in array */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64544/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_66a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_66_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_66_bad(void) { undefined auStack_1c8 [400]; undefined auStack_38 [16]; undefined *puStack_28; undefined *puStack_10; puStack_28 = auStack_1c8; puStack_10 = puStack_28; CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_66b_badSink(auStack_38); return; }
['gcc']
18,604
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_66_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64544/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_66a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_66_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_66_good(void) { goodG2B(); return; }
['gcc']
18,605
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_66b_badSink(int64_t * dataArray[]) { /* copy data out of dataArray */ int64_t * data = dataArray[2]; { int64_t source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(int64_t)); printLongLongLine(data[0]); } }
['/* copy data out of dataArray */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64544/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_66b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_66b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_66b_badSink(long param_1) { long lVar1; undefined8 *puVar2; undefined8 auStack_338 [101]; undefined8 *puStack_10; puStack_10 = *(undefined8 **)(param_1 + 0x10); puVar2 = auStack_338; for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a80(puStack_10,auStack_338,800); printLongLongLine(*puStack_10); return; }
['gcc']
18,606
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_66b_goodG2BSink(int64_t * dataArray[]) { int64_t * data = dataArray[2]; { int64_t source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(int64_t)); printLongLongLine(data[0]); } }
["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64544/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_66b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_66b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_66b_goodG2BSink (long param_1) { long lVar1; undefined8 *puVar2; undefined8 auStack_338 [101]; undefined8 *puStack_10; puStack_10 = *(undefined8 **)(param_1 + 0x10); puVar2 = auStack_338; for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a80(puStack_10,auStack_338,800); printLongLongLine(*puStack_10); return; }
['gcc']
18,607
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_67_bad() { int64_t * data; CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_67_structType myStruct; int64_t dataBadBuffer[50]; int64_t dataGoodBuffer[100]; /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; myStruct.structFirst = data; CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_67b_badSink(myStruct); }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64545/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_67a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_67_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_67_bad(void) { undefined auStack_1a8 [400]; undefined *puStack_18; undefined *puStack_10; puStack_18 = auStack_1a8; puStack_10 = puStack_18; CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_67b_badSink(puStack_18); return; }
['gcc']
18,608
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_67_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64545/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_67a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_67_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_67_good(void) { goodG2B(); return; }
['gcc']
18,609
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_67b_badSink(CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_67_structType myStruct) { int64_t * data = myStruct.structFirst; { int64_t source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(int64_t)); printLongLongLine(data[0]); } }
["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64545/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_67b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_67b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_67b_badSink (undefined8 *param_1) { long lVar1; undefined8 *puVar2; undefined8 auStack_338 [101]; undefined8 *puStack_10; puVar2 = auStack_338; puStack_10 = param_1; for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a80(puStack_10,auStack_338,800); printLongLongLine(*puStack_10); return; }
['gcc']
18,610
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_67b_goodG2BSink(CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_67_structType myStruct) { int64_t * data = myStruct.structFirst; { int64_t source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(int64_t)); printLongLongLine(data[0]); } }
["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64545/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_67b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_67b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memmove_67b_goodG2BSink (undefined8 *param_1) { long lVar1; undefined8 *puVar2; undefined8 auStack_338 [101]; undefined8 *puStack_10; puVar2 = auStack_338; puStack_10 = param_1; for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a80(puStack_10,auStack_338,800); printLongLongLine(*puStack_10); return; }
['gcc']
18,611
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_02_bad() { int * data; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); if(1) { /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; } { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64593/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_02.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_02_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_02_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_420 [416]; undefined4 auStack_280 [50]; undefined8 auStack_1b8 [51]; undefined4 *puStack_20; undefined *puStack_18; undefined4 *puStack_10; puStack_20 = auStack_280; puStack_18 = auStack_420; puVar2 = auStack_1b8; puStack_10 = puStack_20; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_20,auStack_1b8,400); printIntLine(*puStack_20); return; }
['gcc']
18,612
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_02_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64593/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_02.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_02_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_02_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
18,613
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_03_bad() { int * data; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); if(5==5) { /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; } { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64594/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_03.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_03_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_03_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_420 [416]; undefined4 auStack_280 [50]; undefined8 auStack_1b8 [51]; undefined4 *puStack_20; undefined *puStack_18; undefined4 *puStack_10; puStack_20 = auStack_280; puStack_18 = auStack_420; puVar2 = auStack_1b8; puStack_10 = puStack_20; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_20,auStack_1b8,400); printIntLine(*puStack_20); return; }
['gcc']
18,614
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_03_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64594/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_03.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_03_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_03_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
18,615
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_04_bad() { int * data; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); if(STATIC_CONST_TRUE) { /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; } { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64595/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_04.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_04_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_04_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_420 [416]; undefined4 auStack_280 [50]; undefined8 auStack_1b8 [51]; undefined *puStack_20; undefined4 *puStack_18; undefined4 *puStack_10; puStack_18 = auStack_280; puStack_20 = auStack_420; puVar2 = auStack_1b8; puStack_10 = puStack_18; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_10,auStack_1b8,400); printIntLine(*puStack_10); return; }
['gcc']
18,616
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_04_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64595/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_04.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_04_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_04_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
18,617
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_05_bad() { int * data; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); if(staticTrue) { /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; } { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64596/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_05.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_05_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_05_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_420 [416]; undefined4 auStack_280 [50]; undefined8 auStack_1b8 [51]; undefined *puStack_20; undefined4 *puStack_18; undefined4 *puStack_10; puStack_18 = auStack_280; puStack_20 = auStack_420; if (staticTrue != 0) { puStack_10 = puStack_18; } puVar2 = auStack_1b8; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_10,auStack_1b8,400); printIntLine(*puStack_10); return; }
['gcc']
18,618
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_05_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64596/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_05.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_05_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_05_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
18,619
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_06_bad() { int * data; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); if(STATIC_CONST_FIVE==5) { /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; } { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64597/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_06.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_06_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_06_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_420 [416]; undefined4 auStack_280 [50]; undefined8 auStack_1b8 [51]; undefined *puStack_20; undefined4 *puStack_18; undefined4 *puStack_10; puStack_18 = auStack_280; puStack_20 = auStack_420; puVar2 = auStack_1b8; puStack_10 = puStack_18; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_10,auStack_1b8,400); printIntLine(*puStack_10); return; }
['gcc']
18,620
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_06_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64597/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_06.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_06_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_06_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
18,621
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_07_bad() { int * data; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); if(staticFive==5) { /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; } { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64598/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_07.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_07_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_07_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_420 [416]; undefined4 auStack_280 [50]; undefined8 auStack_1b8 [51]; undefined *puStack_20; undefined4 *puStack_18; undefined4 *puStack_10; puStack_18 = auStack_280; puStack_20 = auStack_420; if (staticFive == 5) { puStack_10 = puStack_18; } puVar2 = auStack_1b8; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_10,auStack_1b8,400); printIntLine(*puStack_10); return; }
['gcc']
18,622
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_07_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64598/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_07.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_07_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_07_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
18,623
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_08_bad() { int * data; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); if(staticReturnsTrue()) { /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; } { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64599/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_08.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_08_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_08_bad(undefined8 param_1) { int iVar1; long lVar2; undefined8 *puVar3; byte bVar4; undefined auStack_420 [416]; undefined4 auStack_280 [50]; undefined8 auStack_1b8 [51]; undefined *puStack_20; undefined4 *puStack_18; undefined4 *puStack_10; bVar4 = 0; puStack_18 = auStack_280; puStack_20 = auStack_420; iVar1 = staticReturnsTrue(param_1,0x10,7); if (iVar1 != 0) { puStack_10 = puStack_18; } puVar3 = auStack_1b8; for (lVar2 = 0x32; lVar2 != 0; lVar2 = lVar2 + -1) { *puVar3 = 0; puVar3 = puVar3 + (ulong)bVar4 * -2 + 1; } func_0x00400a70(puStack_10,auStack_1b8,400); printIntLine(*puStack_10); return; }
['gcc']
18,624
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_08_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64599/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_08.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_08_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_08_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
18,625
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_09_bad() { int * data; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); if(GLOBAL_CONST_TRUE) { /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; } { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64600/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_09.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_09_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_09_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_420 [416]; undefined4 auStack_280 [50]; undefined8 auStack_1b8 [51]; undefined *puStack_20; undefined4 *puStack_18; undefined4 *puStack_10; puStack_18 = auStack_280; puStack_20 = auStack_420; if (GLOBAL_CONST_TRUE != 0) { puStack_10 = puStack_18; } puVar2 = auStack_1b8; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_10,auStack_1b8,400); printIntLine(*puStack_10); return; }
['gcc']
18,626
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_09_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64600/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_09.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_09_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_09_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
18,627
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_10_bad() { int * data; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); if(globalTrue) { /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; } { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64601/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_10.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_10_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_10_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_420 [416]; undefined4 auStack_280 [50]; undefined8 auStack_1b8 [51]; undefined *puStack_20; undefined4 *puStack_18; undefined4 *puStack_10; puStack_18 = auStack_280; puStack_20 = auStack_420; if (globalTrue != 0) { puStack_10 = puStack_18; } puVar2 = auStack_1b8; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_10,auStack_1b8,400); printIntLine(*puStack_10); return; }
['gcc']
18,628
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_10_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64601/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_10.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_10_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_10_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
18,629
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_11_bad() { int * data; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); if(globalReturnsTrue()) { /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; } { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64602/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_11.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_11_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_11_bad(undefined8 param_1) { int iVar1; long lVar2; undefined8 *puVar3; byte bVar4; undefined auStack_420 [416]; undefined4 auStack_280 [50]; undefined8 auStack_1b8 [51]; undefined *puStack_20; undefined4 *puStack_18; undefined4 *puStack_10; bVar4 = 0; puStack_18 = auStack_280; puStack_20 = auStack_420; iVar1 = globalReturnsTrue(param_1,0x10,7); if (iVar1 != 0) { puStack_10 = puStack_18; } puVar3 = auStack_1b8; for (lVar2 = 0x32; lVar2 != 0; lVar2 = lVar2 + -1) { *puVar3 = 0; puVar3 = puVar3 + (ulong)bVar4 * -2 + 1; } func_0x00400a70(puStack_10,auStack_1b8,400); printIntLine(*puStack_10); return; }
['gcc']
18,630
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_11_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64602/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_11.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_11_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_11_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
18,631
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_12_bad() { int * data; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); if(globalReturnsTrueOrFalse()) { /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; } else { /* FIX: Set a pointer to a "large" buffer, thus avoiding buffer overflows in the sinks. */ data = dataGoodBuffer; } { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* FIX: Set a pointer to a "large" buffer, thus avoiding buffer overflows in the sinks. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64603/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_12.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_12_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_12_bad(undefined8 param_1) { int iVar1; long lVar2; undefined8 *puVar3; byte bVar4; undefined4 auStack_420 [104]; undefined4 auStack_280 [50]; undefined8 auStack_1b8 [51]; undefined4 *puStack_20; undefined4 *puStack_18; undefined4 *puStack_10; bVar4 = 0; puStack_18 = auStack_280; puStack_20 = auStack_420; iVar1 = globalReturnsTrueOrFalse(param_1,0x10,7); if (iVar1 == 0) { puStack_10 = puStack_20; } else { puStack_10 = puStack_18; } puVar3 = auStack_1b8; for (lVar2 = 0x32; lVar2 != 0; lVar2 = lVar2 + -1) { *puVar3 = 0; puVar3 = puVar3 + (ulong)bVar4 * -2 + 1; } func_0x00400a70(puStack_10,auStack_1b8,400); printIntLine(*puStack_10); return; }
['gcc']
18,632
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_12_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64603/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_12.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_12_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_12_good(void) { goodG2B(); return; }
['gcc']
18,633
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_13_bad() { int * data; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); if(GLOBAL_CONST_FIVE==5) { /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; } { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64604/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_13.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_13_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_13_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_420 [416]; undefined4 auStack_280 [50]; undefined8 auStack_1b8 [51]; undefined *puStack_20; undefined4 *puStack_18; undefined4 *puStack_10; puStack_18 = auStack_280; puStack_20 = auStack_420; if (GLOBAL_CONST_FIVE == 5) { puStack_10 = puStack_18; } puVar2 = auStack_1b8; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_10,auStack_1b8,400); printIntLine(*puStack_10); return; }
['gcc']
18,634
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_13_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64604/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_13.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_13_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_13_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
18,635
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_14_bad() { int * data; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); if(globalFive==5) { /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; } { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64605/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_14.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_14_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_14_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_420 [416]; undefined4 auStack_280 [50]; undefined8 auStack_1b8 [51]; undefined *puStack_20; undefined4 *puStack_18; undefined4 *puStack_10; puStack_18 = auStack_280; puStack_20 = auStack_420; if (globalFive == 5) { puStack_10 = puStack_18; } puVar2 = auStack_1b8; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_10,auStack_1b8,400); printIntLine(*puStack_10); return; }
['gcc']
18,636
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_14_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64605/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_14.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_14_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_14_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
18,637
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_15_bad() { int * data; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); switch(6) { case 6: /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64606/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_15.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_15_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_15_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_420 [416]; undefined4 auStack_280 [50]; undefined8 auStack_1b8 [51]; undefined4 *puStack_20; undefined *puStack_18; undefined4 *puStack_10; puStack_20 = auStack_280; puStack_18 = auStack_420; puVar2 = auStack_1b8; puStack_10 = puStack_20; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_20,auStack_1b8,400); printIntLine(*puStack_20); return; }
['gcc']
18,638
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_15_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64606/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_15.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_15_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_15_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
18,639
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_16_bad() { int * data; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); while(1) { /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; break; } { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64607/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_16.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_16_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_16_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_420 [416]; undefined4 auStack_280 [50]; undefined8 auStack_1b8 [51]; undefined4 *puStack_20; undefined *puStack_18; undefined4 *puStack_10; puStack_20 = auStack_280; puStack_18 = auStack_420; puVar2 = auStack_1b8; puStack_10 = puStack_20; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_20,auStack_1b8,400); printIntLine(*puStack_20); return; }
['gcc']
18,640
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_16_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64607/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_16.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_16_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_16_good(void) { goodG2B(); return; }
['gcc']
18,641
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_17_bad() { int i; int * data; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); for(i = 0; i < 1; i++) { /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; } { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64608/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_17.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_17_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_17_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_420 [416]; undefined4 auStack_280 [50]; undefined8 auStack_1b8 [50]; undefined *puStack_28; undefined4 *puStack_20; undefined4 *puStack_18; int iStack_c; puStack_20 = auStack_280; puStack_28 = auStack_420; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { puStack_18 = puStack_20; } puVar2 = auStack_1b8; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_18,auStack_1b8,400); printIntLine(*puStack_18); return; }
['gcc']
18,642
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_17_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64608/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_17.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_17_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_17_good(void) { goodG2B(); return; }
['gcc']
18,643
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_31_bad() { int * data; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; { int * dataCopy = data; int * data = dataCopy; { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64610/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_31.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_31_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_31_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_430 [416]; undefined4 auStack_290 [50]; undefined8 auStack_1c8 [51]; undefined4 *puStack_30; undefined4 *puStack_28; undefined4 *puStack_20; undefined *puStack_18; undefined4 *puStack_10; puStack_30 = auStack_290; puStack_18 = auStack_430; puVar2 = auStack_1c8; puStack_28 = puStack_30; puStack_20 = puStack_30; puStack_10 = puStack_30; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_30,auStack_1c8,400); printIntLine(*puStack_30); return; }
['gcc']
18,644
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_31_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64610/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_31.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_31_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_31_good(void) { goodG2B(); return; }
['gcc']
18,645
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_32_bad() { int * data; int * *dataPtr1 = &data; int * *dataPtr2 = &data; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); { int * data = *dataPtr1; /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; *dataPtr1 = data; } { int * data = *dataPtr2; { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64611/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_32.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_32_bad
/* WARNING: Heritage AFTER dead removal. Example location: s0xffffffffffffffc0 : 0x00400c4b */ /* WARNING: Restarted to delay deadcode elimination for space: stack */ void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_32_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_440 [416]; undefined4 auStack_2a0 [50]; undefined8 auStack_1d8 [51]; undefined4 *puStack_40; undefined4 *puStack_38; undefined4 *puStack_30; undefined *puStack_28; undefined4 *puStack_20; undefined4 **ppuStack_18; undefined4 **ppuStack_10; ppuStack_10 = &puStack_40; ppuStack_18 = &puStack_40; puStack_30 = auStack_2a0; puStack_28 = auStack_440; puStack_38 = puStack_40; puVar2 = auStack_1d8; puStack_20 = puStack_30; puStack_40 = puStack_30; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_38,auStack_1d8,400); printIntLine(*puStack_38); return; }
['gcc']
18,646
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_32_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64611/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_32.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_32_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_32_good(void) { goodG2B(); return; }
['gcc']
18,647
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_34_bad() { int * data; CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_34_unionType myUnion; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; myUnion.unionFirst = data; { int * data = myUnion.unionSecond; { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64613/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_34.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_34_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_34_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_430 [416]; undefined4 auStack_290 [50]; undefined8 auStack_1c8 [51]; undefined4 *puStack_30; undefined4 *puStack_28; undefined4 *puStack_20; undefined *puStack_18; undefined4 *puStack_10; puStack_30 = auStack_290; puStack_18 = auStack_430; puVar2 = auStack_1c8; puStack_28 = puStack_30; puStack_20 = puStack_30; puStack_10 = puStack_30; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_28,auStack_1c8,400); printIntLine(*puStack_28); return; }
['gcc']
18,648
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_34_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64613/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_34.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_34_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_34_good(void) { goodG2B(); return; }
['gcc']
18,649
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_41_badSink(int * data) { { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64614/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_41_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_41_badSink(undefined4 *param_1) { long lVar1; undefined8 *puVar2; undefined8 auStack_198 [50]; puVar2 = auStack_198; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(param_1,auStack_198,400); printIntLine(*param_1); return; }
['gcc']
18,650
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_41_bad() { int * data; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_41_badSink(data); }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64614/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_41_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_41_bad(void) { undefined auStack_290 [416]; undefined auStack_f0 [208]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_f0; puStack_18 = auStack_290; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_41_badSink(puStack_20,0x10,7); return; }
['gcc']
18,651
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_41_goodG2BSink(int * data) { { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64614/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_41_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_41_goodG2BSink (undefined4 *param_1) { long lVar1; undefined8 *puVar2; undefined8 auStack_198 [50]; puVar2 = auStack_198; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(param_1,auStack_198,400); printIntLine(*param_1); return; }
['gcc']
18,652
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_41_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64614/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_41_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_41_good(void) { goodG2B(); return; }
['gcc']
18,653
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_51_bad() { int * data; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_51b_badSink(data); }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64617/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_51a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_51_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_51_bad(void) { undefined auStack_290 [416]; undefined auStack_f0 [208]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_f0; puStack_18 = auStack_290; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_51b_badSink(puStack_20,0x10,7); return; }
['gcc']
18,654
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_51_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64617/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_51a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_51_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_51_good(void) { goodG2B(); return; }
['gcc']
18,655
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_51b_badSink(int * data) { { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64617/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_51b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_51b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_51b_badSink(undefined4 *param_1) { long lVar1; undefined8 *puVar2; undefined8 auStack_198 [50]; puVar2 = auStack_198; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(param_1,auStack_198,400); printIntLine(*param_1); return; }
['gcc']
18,656
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_51b_goodG2BSink(int * data) { { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64617/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_51b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_51b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_51b_goodG2BSink (undefined4 *param_1) { long lVar1; undefined8 *puVar2; undefined8 auStack_198 [50]; puVar2 = auStack_198; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(param_1,auStack_198,400); printIntLine(*param_1); return; }
['gcc']
18,657
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52_bad() { int * data; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52b_badSink(data); }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64618/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52_bad(void) { undefined auStack_290 [416]; undefined auStack_f0 [208]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_f0; puStack_18 = auStack_290; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52b_badSink(puStack_20,0x10,7); return; }
['gcc']
18,658
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64618/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52_good(void) { goodG2B(); return; }
['gcc']
18,659
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52b_badSink(int * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52c_badSink(data); }
[]
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64618/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52c_badSink(param_1); return; }
['gcc']
18,660
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52b_goodG2BSink(int * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64618/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52b_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52c_goodG2BSink(param_1); return; }
['gcc']
18,661
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52c_badSink(int * data) { { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64618/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52c.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52c_badSink(undefined4 *param_1) { long lVar1; undefined8 *puVar2; undefined8 auStack_198 [50]; puVar2 = auStack_198; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(param_1,auStack_198,400); printIntLine(*param_1); return; }
['gcc']
18,662
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52c_goodG2BSink(int * data) { { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64618/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52c.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_52c_goodG2BSink (undefined4 *param_1) { long lVar1; undefined8 *puVar2; undefined8 auStack_198 [50]; puVar2 = auStack_198; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(param_1,auStack_198,400); printIntLine(*param_1); return; }
['gcc']
18,663
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53_bad() { int * data; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53b_badSink(data); }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64619/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53_bad(void) { undefined auStack_290 [416]; undefined auStack_f0 [208]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_f0; puStack_18 = auStack_290; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53b_badSink(puStack_20,0x10,7); return; }
['gcc']
18,664
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64619/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53_good(void) { goodG2B(); return; }
['gcc']
18,665
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53b_badSink(int * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53c_badSink(data); }
[]
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64619/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53c_badSink(param_1); return; }
['gcc']
18,666
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53b_goodG2BSink(int * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64619/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53b_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53c_goodG2BSink(param_1); return; }
['gcc']
18,667
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53c_badSink(int * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53d_badSink(data); }
[]
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64619/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53c.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53c_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53d_badSink(param_1); return; }
['gcc']
18,668
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53c_goodG2BSink(int * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64619/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53c.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53c_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53d_goodG2BSink(param_1); return; }
['gcc']
18,669
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53d_badSink(int * data) { { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64619/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53d.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53d_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53d_badSink(undefined4 *param_1) { long lVar1; undefined8 *puVar2; undefined8 auStack_198 [50]; puVar2 = auStack_198; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(param_1,auStack_198,400); printIntLine(*param_1); return; }
['gcc']
18,670
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53d_goodG2BSink(int * data) { { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64619/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53d.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53d_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_53d_goodG2BSink (undefined4 *param_1) { long lVar1; undefined8 *puVar2; undefined8 auStack_198 [50]; puVar2 = auStack_198; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(param_1,auStack_198,400); printIntLine(*param_1); return; }
['gcc']
18,671
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54_bad() { int * data; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54b_badSink(data); }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64620/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54_bad(void) { undefined auStack_290 [416]; undefined auStack_f0 [208]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_f0; puStack_18 = auStack_290; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54b_badSink(puStack_20,0x10,7); return; }
['gcc']
18,672
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64620/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54_good(void) { goodG2B(); return; }
['gcc']
18,673
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54b_badSink(int * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54c_badSink(data); }
[]
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64620/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54c_badSink(param_1); return; }
['gcc']
18,674
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54b_goodG2BSink(int * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64620/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54b_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54c_goodG2BSink(param_1); return; }
['gcc']
18,675
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54c_badSink(int * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54d_badSink(data); }
[]
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64620/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54c.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54c_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54d_badSink(param_1); return; }
['gcc']
18,676
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54c_goodG2BSink(int * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64620/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54c.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54c_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54d_goodG2BSink(param_1); return; }
['gcc']
18,677
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54d_badSink(int * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54e_badSink(data); }
[]
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64620/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54d.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54d_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54d_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54e_badSink(param_1); return; }
['gcc']
18,678
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54d_goodG2BSink(int * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54e_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64620/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54d.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54d_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54d_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54e_goodG2BSink(param_1); return; }
['gcc']
18,679
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54e_badSink(int * data) { { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64620/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54e.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54e_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54e_badSink(undefined4 *param_1) { long lVar1; undefined8 *puVar2; undefined8 auStack_198 [50]; puVar2 = auStack_198; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(param_1,auStack_198,400); printIntLine(*param_1); return; }
['gcc']
18,680
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54e_goodG2BSink(int * data) { { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64620/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54e.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54e_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_54e_goodG2BSink (undefined4 *param_1) { long lVar1; undefined8 *puVar2; undefined8 auStack_198 [50]; puVar2 = auStack_198; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(param_1,auStack_198,400); printIntLine(*param_1); return; }
['gcc']
18,681
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_63_bad() { int * data; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_63b_badSink(&data); }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64621/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_63a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_63_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_63_bad(void) { undefined auStack_290 [416]; undefined auStack_f0 [208]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_f0; puStack_18 = auStack_290; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_63b_badSink(&puStack_20,0x10,7); return; }
['gcc']
18,682
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_63_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64621/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_63a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_63_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_63_good(void) { goodG2B(); return; }
['gcc']
18,683
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_63b_badSink(int * * dataPtr) { int * data = *dataPtr; { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64621/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_63b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_63b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_63b_badSink(undefined8 *param_1) { long lVar1; undefined8 *puVar2; undefined8 auStack_1a8 [51]; undefined4 *puStack_10; puStack_10 = (undefined4 *)*param_1; puVar2 = auStack_1a8; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_10,auStack_1a8,400); printIntLine(*puStack_10); return; }
['gcc']
18,684
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_63b_goodG2BSink(int * * dataPtr) { int * data = *dataPtr; { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64621/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_63b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_63b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_63b_goodG2BSink (undefined8 *param_1) { long lVar1; undefined8 *puVar2; undefined8 auStack_1a8 [51]; undefined4 *puStack_10; puStack_10 = (undefined4 *)*param_1; puVar2 = auStack_1a8; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_10,auStack_1a8,400); printIntLine(*puStack_10); return; }
['gcc']
18,685
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_64_bad() { int * data; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_64b_badSink(&data); }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64622/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_64a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_64_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_64_bad(void) { undefined auStack_290 [416]; undefined auStack_f0 [208]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_f0; puStack_18 = auStack_290; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_64b_badSink(&puStack_20,0x10,7); return; }
['gcc']
18,686
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_64_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64622/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_64a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_64_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_64_good(void) { goodG2B(); return; }
['gcc']
18,687
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_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[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64622/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_64b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_64b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_64b_badSink(undefined8 *param_1) { long lVar1; undefined8 *puVar2; undefined8 auStack_1a8 [50]; undefined4 *puStack_18; undefined8 *puStack_10; puStack_18 = (undefined4 *)*param_1; puVar2 = auStack_1a8; puStack_10 = param_1; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_18,auStack_1a8,400); printIntLine(*puStack_18); return; }
['gcc']
18,688
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_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[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64622/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_64b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_64b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_64b_goodG2BSink (undefined8 *param_1) { long lVar1; undefined8 *puVar2; undefined8 auStack_1a8 [50]; undefined4 *puStack_18; undefined8 *puStack_10; puStack_18 = (undefined4 *)*param_1; puVar2 = auStack_1a8; puStack_10 = param_1; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_18,auStack_1a8,400); printIntLine(*puStack_18); return; }
['gcc']
18,689
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_66_bad() { int * data; int * dataArray[5]; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; /* put data in array */ dataArray[2] = data; CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_66b_badSink(dataArray); }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* put data in array */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64624/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_66a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_66_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_66_bad(void) { undefined auStack_2b0 [416]; undefined auStack_110 [200]; undefined auStack_48 [16]; undefined *puStack_38; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_38 = auStack_110; puStack_18 = auStack_2b0; puStack_20 = puStack_38; puStack_10 = puStack_38; CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_66b_badSink(auStack_48,0x10,7); return; }
['gcc']
18,690
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_66_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64624/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_66a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_66_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_66_good(void) { goodG2B(); return; }
['gcc']
18,691
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_66b_badSink(int * dataArray[]) { /* copy data out of dataArray */ int * data = dataArray[2]; { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
['/* copy data out of dataArray */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64624/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_66b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_66b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_66b_badSink(long param_1) { long lVar1; undefined8 *puVar2; undefined8 auStack_1a8 [51]; undefined4 *puStack_10; puStack_10 = *(undefined4 **)(param_1 + 0x10); puVar2 = auStack_1a8; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_10,auStack_1a8,400); printIntLine(*puStack_10); return; }
['gcc']
18,692
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_66b_goodG2BSink(int * dataArray[]) { int * data = dataArray[2]; { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64624/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_66b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_66b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_66b_goodG2BSink(long param_1) { long lVar1; undefined8 *puVar2; undefined8 auStack_1a8 [51]; undefined4 *puStack_10; puStack_10 = *(undefined4 **)(param_1 + 0x10); puVar2 = auStack_1a8; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_10,auStack_1a8,400); printIntLine(*puStack_10); return; }
['gcc']
18,693
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_67_bad() { int * data; CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_67_structType myStruct; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; myStruct.structFirst = data; CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_67b_badSink(myStruct); }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64625/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_67a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_67_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_67_bad(void) { undefined auStack_290 [416]; undefined auStack_f0 [200]; undefined *puStack_28; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_28 = auStack_f0; puStack_18 = auStack_290; puStack_20 = puStack_28; puStack_10 = puStack_28; CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_67b_badSink(puStack_28,0x10,7); return; }
['gcc']
18,694
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_67_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64625/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_67a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_67_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_67_good(void) { goodG2B(); return; }
['gcc']
18,695
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_67b_badSink(CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_67_structType myStruct) { int * data = myStruct.structFirst; { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64625/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_67b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_67b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_67b_badSink(undefined4 *param_1) { long lVar1; undefined8 *puVar2; undefined8 auStack_1a8 [51]; undefined4 *puStack_10; puVar2 = auStack_1a8; puStack_10 = param_1; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_10,auStack_1a8,400); printIntLine(*puStack_10); return; }
['gcc']
18,696
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_67b_goodG2BSink(CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_67_structType myStruct) { int * data = myStruct.structFirst; { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64625/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_67b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_67b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memcpy_67b_goodG2BSink (undefined4 *param_1) { long lVar1; undefined8 *puVar2; undefined8 auStack_1a8 [51]; undefined4 *puStack_10; puVar2 = auStack_1a8; puStack_10 = param_1; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_10,auStack_1a8,400); printIntLine(*puStack_10); return; }
['gcc']
18,697
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memmove_02_bad() { int * data; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); if(1) { /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; } { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64633/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memmove_02.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memmove_02_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memmove_02_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_420 [416]; undefined4 auStack_280 [50]; undefined8 auStack_1b8 [51]; undefined4 *puStack_20; undefined *puStack_18; undefined4 *puStack_10; puStack_20 = auStack_280; puStack_18 = auStack_420; puVar2 = auStack_1b8; puStack_10 = puStack_20; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a80(puStack_20,auStack_1b8,400); printIntLine(*puStack_20); return; }
['gcc']
18,698
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memmove_02_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64633/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memmove_02.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memmove_02_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memmove_02_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
18,699
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memmove_03_bad() { int * data; int * dataBadBuffer = (int *)ALLOCA(50*sizeof(int)); int * dataGoodBuffer = (int *)ALLOCA(100*sizeof(int)); if(5==5) { /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; } { int source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(int)); printIntLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64634/CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memmove_03.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memmove_03_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int_alloca_memmove_03_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_420 [416]; undefined4 auStack_280 [50]; undefined8 auStack_1b8 [51]; undefined4 *puStack_20; undefined *puStack_18; undefined4 *puStack_10; puStack_20 = auStack_280; puStack_18 = auStack_420; puVar2 = auStack_1b8; puStack_10 = puStack_20; for (lVar1 = 0x32; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a80(puStack_20,auStack_1b8,400); printIntLine(*puStack_20); return; }
['gcc']