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
19,000
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_45_bad() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); /* 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_struct_alloca_memcpy_45_badData = data; badSink(); }
['/* 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/64856/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_45.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_45_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_45_bad(undefined8 param_1) { undefined auStack_4f0 [816]; undefined auStack_1c0 [416]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_45_badData = auStack_1c0; puStack_18 = auStack_4f0; puStack_20 = CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_45_badData; puStack_10 = CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_45_badData; badSink(param_1,0x10,7); return; }
['gcc']
19,001
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_45_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64856/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_45.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_45_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_45_good(void) { goodG2B(); return; }
['gcc']
19,002
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_51_bad() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); /* 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_struct_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/64857/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_51a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_51_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_51_bad(void) { undefined auStack_4f0 [816]; undefined auStack_1c0 [416]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_1c0; puStack_18 = auStack_4f0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_51b_badSink(puStack_20,0x10,7); return; }
['gcc']
19,003
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_51_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64857/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_51a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_51_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_51_good(void) { goodG2B(); return; }
['gcc']
19,004
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_51b_badSink(twoIntsStruct * data) { { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&data[0]); } }
['/* Initialize array */', '/* 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/64857/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_51b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_51b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_51b_badSink(undefined8 param_1) { undefined4 auStack_338 [202]; ulong uStack_10; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_338[uStack_10 * 2] = 0; auStack_338[uStack_10 * 2] = 0; } func_0x00400a70(param_1,auStack_338,800); printStructLine(param_1); return; }
['gcc']
19,005
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_51b_goodG2BSink(twoIntsStruct * data) { { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&data[0]); } }
['/* Initialize array */', '/* 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/64857/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_51b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_51b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_51b_goodG2BSink (undefined8 param_1) { undefined4 auStack_338 [202]; ulong uStack_10; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_338[uStack_10 * 2] = 0; auStack_338[uStack_10 * 2] = 0; } func_0x00400a70(param_1,auStack_338,800); printStructLine(param_1); return; }
['gcc']
19,006
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_52_bad() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); /* 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_struct_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/64858/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_52a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_52_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_52_bad(void) { undefined auStack_4f0 [816]; undefined auStack_1c0 [416]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_1c0; puStack_18 = auStack_4f0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_52b_badSink(puStack_20,0x10,7); return; }
['gcc']
19,007
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_52_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64858/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_52a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_52_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_52_good(void) { goodG2B(); return; }
['gcc']
19,008
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_52b_badSink(twoIntsStruct * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_52c_badSink(data); }
[]
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64858/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_52b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_52b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_52b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_52c_badSink(param_1); return; }
['gcc']
19,009
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_52b_goodG2BSink(twoIntsStruct * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_52c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64858/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_52b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_52b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_52b_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_52c_goodG2BSink(param_1); return; }
['gcc']
19,010
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_52c_badSink(twoIntsStruct * data) { { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&data[0]); } }
['/* Initialize array */', '/* 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/64858/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_52c.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_52c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_52c_badSink(undefined8 param_1) { undefined4 auStack_338 [202]; ulong uStack_10; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_338[uStack_10 * 2] = 0; auStack_338[uStack_10 * 2] = 0; } func_0x00400a70(param_1,auStack_338,800); printStructLine(param_1); return; }
['gcc']
19,011
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_52c_goodG2BSink(twoIntsStruct * data) { { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&data[0]); } }
['/* Initialize array */', '/* 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/64858/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_52c.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_52c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_52c_goodG2BSink (undefined8 param_1) { undefined4 auStack_338 [202]; ulong uStack_10; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_338[uStack_10 * 2] = 0; auStack_338[uStack_10 * 2] = 0; } func_0x00400a70(param_1,auStack_338,800); printStructLine(param_1); return; }
['gcc']
19,012
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53_bad() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); /* 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_struct_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/64859/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53_bad(void) { undefined auStack_4f0 [816]; undefined auStack_1c0 [416]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_1c0; puStack_18 = auStack_4f0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53b_badSink(puStack_20,0x10,7); return; }
['gcc']
19,013
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64859/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53_good(void) { goodG2B(); return; }
['gcc']
19,014
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53b_badSink(twoIntsStruct * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53c_badSink(data); }
[]
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64859/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53c_badSink(param_1); return; }
['gcc']
19,015
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53b_goodG2BSink(twoIntsStruct * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64859/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53b_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53c_goodG2BSink(param_1); return; }
['gcc']
19,016
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53c_badSink(twoIntsStruct * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53d_badSink(data); }
[]
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64859/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53c.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53c_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53d_badSink(param_1); return; }
['gcc']
19,017
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53c_goodG2BSink(twoIntsStruct * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64859/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53c.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53c_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53d_goodG2BSink(param_1); return; }
['gcc']
19,018
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53d_badSink(twoIntsStruct * data) { { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&data[0]); } }
['/* Initialize array */', '/* 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/64859/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53d.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53d_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53d_badSink(undefined8 param_1) { undefined4 auStack_338 [202]; ulong uStack_10; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_338[uStack_10 * 2] = 0; auStack_338[uStack_10 * 2] = 0; } func_0x00400a70(param_1,auStack_338,800); printStructLine(param_1); return; }
['gcc']
19,019
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53d_goodG2BSink(twoIntsStruct * data) { { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&data[0]); } }
['/* Initialize array */', '/* 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/64859/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53d.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53d_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_53d_goodG2BSink (undefined8 param_1) { undefined4 auStack_338 [202]; ulong uStack_10; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_338[uStack_10 * 2] = 0; auStack_338[uStack_10 * 2] = 0; } func_0x00400a70(param_1,auStack_338,800); printStructLine(param_1); return; }
['gcc']
19,020
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54_bad() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); /* 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_struct_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/64860/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54_bad(void) { undefined auStack_4f0 [816]; undefined auStack_1c0 [416]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_1c0; puStack_18 = auStack_4f0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54b_badSink(puStack_20,0x10,7); return; }
['gcc']
19,021
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64860/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54_good(void) { goodG2B(); return; }
['gcc']
19,022
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54b_badSink(twoIntsStruct * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54c_badSink(data); }
[]
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64860/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54c_badSink(param_1); return; }
['gcc']
19,023
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54b_goodG2BSink(twoIntsStruct * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64860/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54b_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54c_goodG2BSink(param_1); return; }
['gcc']
19,024
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54c_badSink(twoIntsStruct * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54d_badSink(data); }
[]
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64860/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54c.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54c_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54d_badSink(param_1); return; }
['gcc']
19,025
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54c_goodG2BSink(twoIntsStruct * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64860/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54c.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54c_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54d_goodG2BSink(param_1); return; }
['gcc']
19,026
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54d_badSink(twoIntsStruct * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54e_badSink(data); }
[]
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64860/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54d.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54d_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54d_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54e_badSink(param_1); return; }
['gcc']
19,027
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54d_goodG2BSink(twoIntsStruct * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54e_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64860/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54d.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54d_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54d_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54e_goodG2BSink(param_1); return; }
['gcc']
19,028
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54e_badSink(twoIntsStruct * data) { { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&data[0]); } }
['/* Initialize array */', '/* 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/64860/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54e.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54e_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54e_badSink(undefined8 param_1) { undefined4 auStack_338 [202]; ulong uStack_10; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_338[uStack_10 * 2] = 0; auStack_338[uStack_10 * 2] = 0; } func_0x00400a70(param_1,auStack_338,800); printStructLine(param_1); return; }
['gcc']
19,029
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54e_goodG2BSink(twoIntsStruct * data) { { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&data[0]); } }
['/* Initialize array */', '/* 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/64860/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54e.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54e_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_54e_goodG2BSink (undefined8 param_1) { undefined4 auStack_338 [202]; ulong uStack_10; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_338[uStack_10 * 2] = 0; auStack_338[uStack_10 * 2] = 0; } func_0x00400a70(param_1,auStack_338,800); printStructLine(param_1); return; }
['gcc']
19,030
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_63_bad() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); /* 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_struct_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/64861/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_63a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_63_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_63_bad(void) { undefined auStack_4f0 [816]; undefined auStack_1c0 [416]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_1c0; puStack_18 = auStack_4f0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_63b_badSink(&puStack_20,0x10,7); return; }
['gcc']
19,031
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_63_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64861/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_63a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_63_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_63_good(void) { goodG2B(); return; }
['gcc']
19,032
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_63b_badSink(twoIntsStruct * * dataPtr) { twoIntsStruct * data = *dataPtr; { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&data[0]); } }
['/* Initialize array */', '/* 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/64861/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_63b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_63b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_63b_badSink (undefined8 *param_1) { undefined4 auStack_338 [200]; undefined8 uStack_18; ulong uStack_10; uStack_18 = *param_1; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_338[uStack_10 * 2] = 0; auStack_338[uStack_10 * 2] = 0; } func_0x00400a70(uStack_18,auStack_338,800); printStructLine(uStack_18); return; }
['gcc']
19,033
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_63b_goodG2BSink(twoIntsStruct * * dataPtr) { twoIntsStruct * data = *dataPtr; { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&data[0]); } }
['/* Initialize array */', '/* 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/64861/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_63b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_63b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_63b_goodG2BSink (undefined8 *param_1) { undefined4 auStack_338 [200]; undefined8 uStack_18; ulong uStack_10; uStack_18 = *param_1; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_338[uStack_10 * 2] = 0; auStack_338[uStack_10 * 2] = 0; } func_0x00400a70(uStack_18,auStack_338,800); printStructLine(uStack_18); return; }
['gcc']
19,034
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_64_bad() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); /* 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_struct_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/64862/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_64a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_64_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_64_bad(void) { undefined auStack_4f0 [816]; undefined auStack_1c0 [416]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_1c0; puStack_18 = auStack_4f0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_64b_badSink(&puStack_20,0x10,7); return; }
['gcc']
19,035
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_64_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64862/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_64a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_64_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_64_good(void) { goodG2B(); return; }
['gcc']
19,036
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_64b_badSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ twoIntsStruct * * dataPtr = (twoIntsStruct * *)dataVoidPtr; /* dereference dataPtr into data */ twoIntsStruct * data = (*dataPtr); { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&data[0]); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* Initialize array */', '/* 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/64862/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_64b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_64b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_64b_badSink (undefined8 *param_1) { undefined4 auStack_348 [202]; undefined8 uStack_20; undefined8 *puStack_18; ulong uStack_10; uStack_20 = *param_1; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_348[uStack_10 * 2] = 0; auStack_348[uStack_10 * 2] = 0; } puStack_18 = param_1; func_0x00400a70(uStack_20,auStack_348,800); printStructLine(uStack_20); return; }
['gcc']
19,037
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_64b_goodG2BSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ twoIntsStruct * * dataPtr = (twoIntsStruct * *)dataVoidPtr; /* dereference dataPtr into data */ twoIntsStruct * data = (*dataPtr); { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&data[0]); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* Initialize array */', '/* 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/64862/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_64b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_64b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_64b_goodG2BSink (undefined8 *param_1) { undefined4 auStack_348 [202]; undefined8 uStack_20; undefined8 *puStack_18; ulong uStack_10; uStack_20 = *param_1; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_348[uStack_10 * 2] = 0; auStack_348[uStack_10 * 2] = 0; } puStack_18 = param_1; func_0x00400a70(uStack_20,auStack_348,800); printStructLine(uStack_20); return; }
['gcc']
19,038
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_65_bad() { twoIntsStruct * data; /* define a function pointer */ void (*funcPtr) (twoIntsStruct *) = CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_65b_badSink; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); /* 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; /* use the function pointer */ funcPtr(data); }
['/* define a function pointer */', '/* 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. */', '/* use the function pointer */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64863/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_65a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_65_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_65_bad(void) { undefined auStack_4f0 [816]; undefined auStack_1c0 [408]; undefined *puStack_28; undefined *puStack_20; undefined *puStack_18; code *pcStack_10; pcStack_10 = CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_65b_badSink; puStack_28 = auStack_1c0; puStack_20 = auStack_4f0; puStack_18 = puStack_28; CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_65b_badSink(puStack_28); return; }
['gcc']
19,039
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_65_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64863/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_65a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_65_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_65_good(void) { goodG2B(); return; }
['gcc']
19,040
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_65b_badSink(twoIntsStruct * data) { { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&data[0]); } }
['/* Initialize array */', '/* 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/64863/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_65b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_65b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_65b_badSink(undefined8 param_1) { undefined4 auStack_338 [202]; ulong uStack_10; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_338[uStack_10 * 2] = 0; auStack_338[uStack_10 * 2] = 0; } func_0x00400a70(param_1,auStack_338,800); printStructLine(param_1); return; }
['gcc']
19,041
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_65b_goodG2BSink(twoIntsStruct * data) { { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&data[0]); } }
['/* Initialize array */', '/* 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/64863/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_65b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_65b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_65b_goodG2BSink (undefined8 param_1) { undefined4 auStack_338 [202]; ulong uStack_10; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_338[uStack_10 * 2] = 0; auStack_338[uStack_10 * 2] = 0; } func_0x00400a70(param_1,auStack_338,800); printStructLine(param_1); return; }
['gcc']
19,042
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_66_bad() { twoIntsStruct * data; twoIntsStruct * dataArray[5]; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); /* 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_struct_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/64864/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_66a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_66_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_66_bad(void) { undefined auStack_510 [816]; undefined auStack_1e0 [408]; undefined auStack_48 [16]; undefined *puStack_38; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_38 = auStack_1e0; puStack_18 = auStack_510; puStack_20 = puStack_38; puStack_10 = puStack_38; CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_66b_badSink(auStack_48,0x10,7); return; }
['gcc']
19,043
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_66_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64864/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_66a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_66_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_66_good(void) { goodG2B(); return; }
['gcc']
19,044
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_66b_badSink(twoIntsStruct * dataArray[]) { /* copy data out of dataArray */ twoIntsStruct * data = dataArray[2]; { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&data[0]); } }
['/* copy data out of dataArray */', '/* Initialize array */', '/* 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/64864/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_66b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_66b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_66b_badSink(long param_1) { undefined4 auStack_338 [200]; undefined8 uStack_18; ulong uStack_10; uStack_18 = *(undefined8 *)(param_1 + 0x10); for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_338[uStack_10 * 2] = 0; auStack_338[uStack_10 * 2] = 0; } func_0x00400a70(uStack_18,auStack_338,800); printStructLine(uStack_18); return; }
['gcc']
19,045
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_66b_goodG2BSink(twoIntsStruct * dataArray[]) { twoIntsStruct * data = dataArray[2]; { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&data[0]); } }
['/* Initialize array */', '/* 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/64864/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_66b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_66b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_66b_goodG2BSink(long param_1) { undefined4 auStack_338 [200]; undefined8 uStack_18; ulong uStack_10; uStack_18 = *(undefined8 *)(param_1 + 0x10); for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_338[uStack_10 * 2] = 0; auStack_338[uStack_10 * 2] = 0; } func_0x00400a70(uStack_18,auStack_338,800); printStructLine(uStack_18); return; }
['gcc']
19,046
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_67_bad() { twoIntsStruct * data; CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_67_structType myStruct; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); /* 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_struct_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/64865/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_67a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_67_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_67_bad(void) { undefined auStack_4f0 [816]; undefined auStack_1c0 [408]; undefined *puStack_28; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_28 = auStack_1c0; puStack_18 = auStack_4f0; puStack_20 = puStack_28; puStack_10 = puStack_28; CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_67b_badSink(puStack_28,0x10,7); return; }
['gcc']
19,047
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_67_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64865/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_67a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_67_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_67_good(void) { goodG2B(); return; }
['gcc']
19,048
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_67b_badSink(CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_67_structType myStruct) { twoIntsStruct * data = myStruct.structFirst; { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&data[0]); } }
['/* Initialize array */', '/* 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/64865/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_67b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_67b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_67b_badSink(undefined8 param_1) { undefined4 auStack_338 [200]; undefined8 uStack_18; ulong uStack_10; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_338[uStack_10 * 2] = 0; auStack_338[uStack_10 * 2] = 0; } uStack_18 = param_1; func_0x00400a70(param_1,auStack_338,800); printStructLine(uStack_18); return; }
['gcc']
19,049
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_67b_goodG2BSink(CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_67_structType myStruct) { twoIntsStruct * data = myStruct.structFirst; { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&data[0]); } }
['/* Initialize array */', '/* 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/64865/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_67b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_67b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_67b_goodG2BSink (undefined8 param_1) { undefined4 auStack_338 [200]; undefined8 uStack_18; ulong uStack_10; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_338[uStack_10 * 2] = 0; auStack_338[uStack_10 * 2] = 0; } uStack_18 = param_1; func_0x00400a70(param_1,auStack_338,800); printStructLine(uStack_18); return; }
['gcc']
19,050
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_68_bad() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); /* 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_struct_alloca_memcpy_68_badData = data; CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_68b_badSink(); }
['/* 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/64866/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_68a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_68_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_68_bad(undefined8 param_1) { undefined auStack_4f0 [816]; undefined auStack_1c0 [416]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_68_badData = auStack_1c0; puStack_18 = auStack_4f0; puStack_20 = CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_68_badData; puStack_10 = CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_68_badData; CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_68b_badSink(param_1,0x10,7); return; }
['gcc']
19,051
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_68_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64866/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_68a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_68_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_68_good(void) { goodG2B(); return; }
['gcc']
19,052
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_68b_badSink() { twoIntsStruct * data = CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_68_badData; { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&data[0]); } }
['/* Initialize array */', '/* 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/64866/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_68b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_68b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_68b_badSink(void) { undefined4 auStack_338 [200]; undefined8 uStack_18; ulong uStack_10; uStack_18 = CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_68_badData; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_338[uStack_10 * 2] = 0; auStack_338[uStack_10 * 2] = 0; } func_0x00400a70(CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_68_badData, auStack_338,800); printStructLine(uStack_18); return; }
['gcc']
19,053
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_68b_goodG2BSink() { twoIntsStruct * data = CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_68_goodG2BData; { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&data[0]); } }
['/* Initialize array */', '/* 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/64866/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_68b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_68b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_68b_goodG2BSink(void) { undefined4 auStack_338 [200]; undefined8 uStack_18; ulong uStack_10; uStack_18 = CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_68_goodG2BData; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_338[uStack_10 * 2] = 0; auStack_338[uStack_10 * 2] = 0; } func_0x00400a70(CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memcpy_68_goodG2BData, auStack_338,800); printStructLine(uStack_18); return; }
['gcc']
19,054
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_01_bad() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); /* 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; { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&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. */', '/* Initialize array */', '/* 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/64872/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_01.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_01_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_01_bad(void) { undefined auStack_810 [816]; undefined auStack_4e0 [408]; undefined4 auStack_348 [200]; undefined *puStack_28; undefined *puStack_20; undefined *puStack_18; ulong uStack_10; puStack_28 = auStack_4e0; puStack_20 = auStack_810; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_348[uStack_10 * 2] = 0; auStack_348[uStack_10 * 2] = 0; } puStack_18 = puStack_28; func_0x00400a80(puStack_28,auStack_348,800); printStructLine(puStack_28); return; }
['gcc']
19,055
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_01_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64872/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_01.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_01_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_01_good(void) { goodG2B(); return; }
['gcc']
19,056
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_02_bad() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); 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; } { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&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. */', '/* Initialize array */', '/* 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/64873/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_02.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_02_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_02_bad(void) { undefined auStack_810 [816]; undefined auStack_4e0 [408]; undefined4 auStack_348 [200]; undefined *puStack_28; undefined *puStack_20; undefined *puStack_18; ulong uStack_10; puStack_28 = auStack_4e0; puStack_20 = auStack_810; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_348[uStack_10 * 2] = 0; auStack_348[uStack_10 * 2] = 0; } puStack_18 = puStack_28; func_0x00400a80(puStack_28,auStack_348,800); printStructLine(puStack_28); return; }
['gcc']
19,057
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_02_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64873/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_02.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_02_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_02_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
19,058
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_03_bad() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); 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; } { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&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. */', '/* Initialize array */', '/* 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/64874/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_03.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_03_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_03_bad(void) { undefined auStack_810 [816]; undefined auStack_4e0 [408]; undefined4 auStack_348 [200]; undefined *puStack_28; undefined *puStack_20; undefined *puStack_18; ulong uStack_10; puStack_28 = auStack_4e0; puStack_20 = auStack_810; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_348[uStack_10 * 2] = 0; auStack_348[uStack_10 * 2] = 0; } puStack_18 = puStack_28; func_0x00400a80(puStack_28,auStack_348,800); printStructLine(puStack_28); return; }
['gcc']
19,059
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_03_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64874/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_03.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_03_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_03_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
19,060
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_04_bad() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); 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; } { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&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. */', '/* Initialize array */', '/* 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/64875/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_04.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_04_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_04_bad(void) { undefined auStack_810 [816]; undefined auStack_4e0 [408]; undefined4 auStack_348 [200]; undefined *puStack_28; undefined *puStack_20; ulong uStack_18; undefined *puStack_10; puStack_20 = auStack_4e0; puStack_28 = auStack_810; for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) { auStack_348[uStack_18 * 2] = 0; auStack_348[uStack_18 * 2] = 0; } puStack_10 = puStack_20; func_0x00400a80(puStack_20,auStack_348,800); printStructLine(puStack_10); return; }
['gcc']
19,061
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_04_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64875/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_04.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_04_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_04_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
19,062
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_05_bad() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); 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; } { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&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. */', '/* Initialize array */', '/* 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/64876/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_05.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_05_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_05_bad(void) { undefined auStack_810 [816]; undefined auStack_4e0 [408]; undefined4 auStack_348 [200]; undefined *puStack_28; undefined *puStack_20; ulong uStack_18; undefined *puStack_10; puStack_20 = auStack_4e0; puStack_28 = auStack_810; if (staticTrue != 0) { puStack_10 = puStack_20; } for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) { auStack_348[uStack_18 * 2] = 0; auStack_348[uStack_18 * 2] = 0; } func_0x00400a80(puStack_10,auStack_348,800); printStructLine(puStack_10); return; }
['gcc']
19,063
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_05_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64876/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_05.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_05_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_05_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
19,064
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_06_bad() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); 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; } { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&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. */', '/* Initialize array */', '/* 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/64877/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_06.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_06_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_06_bad(void) { undefined auStack_810 [816]; undefined auStack_4e0 [408]; undefined4 auStack_348 [200]; undefined *puStack_28; undefined *puStack_20; ulong uStack_18; undefined *puStack_10; puStack_20 = auStack_4e0; puStack_28 = auStack_810; for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) { auStack_348[uStack_18 * 2] = 0; auStack_348[uStack_18 * 2] = 0; } puStack_10 = puStack_20; func_0x00400a80(puStack_20,auStack_348,800); printStructLine(puStack_10); return; }
['gcc']
19,065
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_06_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64877/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_06.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_06_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_06_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
19,066
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_07_bad() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); 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; } { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&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. */', '/* Initialize array */', '/* 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/64878/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_07.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_07_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_07_bad(void) { undefined auStack_810 [816]; undefined auStack_4e0 [408]; undefined4 auStack_348 [200]; undefined *puStack_28; undefined *puStack_20; ulong uStack_18; undefined *puStack_10; puStack_20 = auStack_4e0; puStack_28 = auStack_810; if (staticFive == 5) { puStack_10 = puStack_20; } for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) { auStack_348[uStack_18 * 2] = 0; auStack_348[uStack_18 * 2] = 0; } func_0x00400a80(puStack_10,auStack_348,800); printStructLine(puStack_10); return; }
['gcc']
19,067
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_07_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64878/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_07.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_07_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_07_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
19,068
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_08_bad() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); 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; } { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&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. */', '/* Initialize array */', '/* 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/64879/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_08.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_08_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_08_bad(undefined8 param_1) { int iVar1; undefined auStack_810 [816]; undefined auStack_4e0 [408]; undefined4 auStack_348 [200]; undefined *puStack_28; undefined *puStack_20; ulong uStack_18; undefined *puStack_10; puStack_20 = auStack_4e0; puStack_28 = auStack_810; iVar1 = staticReturnsTrue(param_1,0x10,7); if (iVar1 != 0) { puStack_10 = puStack_20; } for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) { auStack_348[uStack_18 * 2] = 0; auStack_348[uStack_18 * 2] = 0; } func_0x00400a80(puStack_10,auStack_348,800); printStructLine(puStack_10); return; }
['gcc']
19,069
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_08_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64879/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_08.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_08_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_08_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
19,070
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_09_bad() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); 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; } { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&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. */', '/* Initialize array */', '/* 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/64880/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_09.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_09_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_09_bad(void) { undefined auStack_810 [816]; undefined auStack_4e0 [408]; undefined4 auStack_348 [200]; undefined *puStack_28; undefined *puStack_20; ulong uStack_18; undefined *puStack_10; puStack_20 = auStack_4e0; puStack_28 = auStack_810; if (GLOBAL_CONST_TRUE != 0) { puStack_10 = puStack_20; } for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) { auStack_348[uStack_18 * 2] = 0; auStack_348[uStack_18 * 2] = 0; } func_0x00400a80(puStack_10,auStack_348,800); printStructLine(puStack_10); return; }
['gcc']
19,071
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_09_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64880/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_09.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_09_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_09_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
19,072
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_10_bad() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); 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; } { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&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. */', '/* Initialize array */', '/* 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/64881/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_10.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_10_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_10_bad(void) { undefined auStack_810 [816]; undefined auStack_4e0 [408]; undefined4 auStack_348 [200]; undefined *puStack_28; undefined *puStack_20; ulong uStack_18; undefined *puStack_10; puStack_20 = auStack_4e0; puStack_28 = auStack_810; if (globalTrue != 0) { puStack_10 = puStack_20; } for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) { auStack_348[uStack_18 * 2] = 0; auStack_348[uStack_18 * 2] = 0; } func_0x00400a80(puStack_10,auStack_348,800); printStructLine(puStack_10); return; }
['gcc']
19,073
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_10_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64881/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_10.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_10_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_10_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
19,074
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_11_bad() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); 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; } { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&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. */', '/* Initialize array */', '/* 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/64882/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_11.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_11_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_11_bad(undefined8 param_1) { int iVar1; undefined auStack_810 [816]; undefined auStack_4e0 [408]; undefined4 auStack_348 [200]; undefined *puStack_28; undefined *puStack_20; ulong uStack_18; undefined *puStack_10; puStack_20 = auStack_4e0; puStack_28 = auStack_810; iVar1 = globalReturnsTrue(param_1,0x10,7); if (iVar1 != 0) { puStack_10 = puStack_20; } for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) { auStack_348[uStack_18 * 2] = 0; auStack_348[uStack_18 * 2] = 0; } func_0x00400a80(puStack_10,auStack_348,800); printStructLine(puStack_10); return; }
['gcc']
19,075
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_11_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64882/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_11.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_11_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_11_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
19,076
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_12_bad() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); 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; } { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&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. */', '/* Initialize array */', '/* 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/64883/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_12.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_12_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_12_bad(undefined8 param_1) { int iVar1; undefined auStack_810 [816]; undefined auStack_4e0 [408]; undefined4 auStack_348 [200]; undefined *puStack_28; undefined *puStack_20; ulong uStack_18; undefined *puStack_10; puStack_20 = auStack_4e0; puStack_28 = auStack_810; iVar1 = globalReturnsTrueOrFalse(param_1,0x10,7); if (iVar1 == 0) { puStack_10 = puStack_28; } else { puStack_10 = puStack_20; } for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) { auStack_348[uStack_18 * 2] = 0; auStack_348[uStack_18 * 2] = 0; } func_0x00400a80(puStack_10,auStack_348,800); printStructLine(puStack_10); return; }
['gcc']
19,077
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_12_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64883/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_12.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_12_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_12_good(void) { goodG2B(); return; }
['gcc']
19,078
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_13_bad() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); 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; } { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&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. */', '/* Initialize array */', '/* 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/64884/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_13.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_13_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_13_bad(void) { undefined auStack_810 [816]; undefined auStack_4e0 [408]; undefined4 auStack_348 [200]; undefined *puStack_28; undefined *puStack_20; ulong uStack_18; undefined *puStack_10; puStack_20 = auStack_4e0; puStack_28 = auStack_810; if (GLOBAL_CONST_FIVE == 5) { puStack_10 = puStack_20; } for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) { auStack_348[uStack_18 * 2] = 0; auStack_348[uStack_18 * 2] = 0; } func_0x00400a80(puStack_10,auStack_348,800); printStructLine(puStack_10); return; }
['gcc']
19,079
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_13_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64884/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_13.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_13_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_13_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
19,080
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_14_bad() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); 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; } { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&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. */', '/* Initialize array */', '/* 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/64885/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_14.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_14_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_14_bad(void) { undefined auStack_810 [816]; undefined auStack_4e0 [408]; undefined4 auStack_348 [200]; undefined *puStack_28; undefined *puStack_20; ulong uStack_18; undefined *puStack_10; puStack_20 = auStack_4e0; puStack_28 = auStack_810; if (globalFive == 5) { puStack_10 = puStack_20; } for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) { auStack_348[uStack_18 * 2] = 0; auStack_348[uStack_18 * 2] = 0; } func_0x00400a80(puStack_10,auStack_348,800); printStructLine(puStack_10); return; }
['gcc']
19,081
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_14_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64885/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_14.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_14_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_14_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
19,082
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_15_bad() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); 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; } { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&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 */', '/* Initialize array */', '/* 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/64886/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_15.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_15_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_15_bad(void) { undefined auStack_810 [816]; undefined auStack_4e0 [408]; undefined4 auStack_348 [200]; undefined *puStack_28; undefined *puStack_20; undefined *puStack_18; ulong uStack_10; puStack_28 = auStack_4e0; puStack_20 = auStack_810; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_348[uStack_10 * 2] = 0; auStack_348[uStack_10 * 2] = 0; } puStack_18 = puStack_28; func_0x00400a80(puStack_28,auStack_348,800); printStructLine(puStack_28); return; }
['gcc']
19,083
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_15_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64886/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_15.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_15_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_15_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
19,084
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_16_bad() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); 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; } { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&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. */', '/* Initialize array */', '/* 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/64887/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_16.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_16_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_16_bad(void) { undefined auStack_810 [816]; undefined auStack_4e0 [408]; undefined4 auStack_348 [200]; undefined *puStack_28; undefined *puStack_20; undefined *puStack_18; ulong uStack_10; puStack_28 = auStack_4e0; puStack_20 = auStack_810; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_348[uStack_10 * 2] = 0; auStack_348[uStack_10 * 2] = 0; } puStack_18 = puStack_28; func_0x00400a80(puStack_28,auStack_348,800); printStructLine(puStack_28); return; }
['gcc']
19,085
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_16_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64887/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_16.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_16_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_16_good(void) { goodG2B(); return; }
['gcc']
19,086
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_17_bad() { int i; twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); 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; } { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&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. */', '/* Initialize array */', '/* 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/64888/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_17.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_17_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_17_bad(void) { undefined auStack_820 [816]; undefined auStack_4f0 [408]; undefined4 auStack_358 [202]; undefined *puStack_30; undefined *puStack_28; ulong uStack_20; undefined *puStack_18; int iStack_c; puStack_28 = auStack_4f0; puStack_30 = auStack_820; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { puStack_18 = puStack_28; } for (uStack_20 = 0; uStack_20 < 100; uStack_20 = uStack_20 + 1) { auStack_358[uStack_20 * 2] = 0; auStack_358[uStack_20 * 2] = 0; } func_0x00400a80(puStack_18,auStack_358,800); printStructLine(puStack_18); return; }
['gcc']
19,087
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_17_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64888/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_17.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_17_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_17_good(void) { goodG2B(); return; }
['gcc']
19,088
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_18_bad() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); goto source; source: /* 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; { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&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. */', '/* Initialize array */', '/* 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/64889/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_18.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_18_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_18_bad(void) { undefined auStack_810 [816]; undefined auStack_4e0 [408]; undefined4 auStack_348 [200]; undefined *puStack_28; undefined *puStack_20; undefined *puStack_18; ulong uStack_10; puStack_28 = auStack_4e0; puStack_20 = auStack_810; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_348[uStack_10 * 2] = 0; auStack_348[uStack_10 * 2] = 0; } puStack_18 = puStack_28; func_0x00400a80(puStack_28,auStack_348,800); printStructLine(puStack_28); return; }
['gcc']
19,089
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_18_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64889/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_18.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_18_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_18_good(void) { goodG2B(); return; }
['gcc']
19,090
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_31_bad() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); /* 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; { twoIntsStruct * dataCopy = data; twoIntsStruct * data = dataCopy; { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&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. */', '/* Initialize array */', '/* 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/64890/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_31.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_31_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_31_bad(void) { undefined auStack_820 [816]; undefined auStack_4f0 [408]; undefined4 auStack_358 [200]; undefined *puStack_38; undefined *puStack_30; undefined *puStack_28; undefined *puStack_20; undefined *puStack_18; ulong uStack_10; puStack_38 = auStack_4f0; puStack_20 = auStack_820; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_358[uStack_10 * 2] = 0; auStack_358[uStack_10 * 2] = 0; } puStack_30 = puStack_38; puStack_28 = puStack_38; puStack_18 = puStack_38; func_0x00400a80(puStack_38,auStack_358,800); printStructLine(puStack_38); return; }
['gcc']
19,091
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_31_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64890/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_31.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_31_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_31_good(void) { goodG2B(); return; }
['gcc']
19,092
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_32_bad() { twoIntsStruct * data; twoIntsStruct * *dataPtr1 = &data; twoIntsStruct * *dataPtr2 = &data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); { twoIntsStruct * 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; } { twoIntsStruct * data = *dataPtr2; { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&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. */', '/* Initialize array */', '/* 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/64891/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_32.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_32_bad
/* WARNING: Heritage AFTER dead removal. Example location: s0xffffffffffffffb8 : 0x00400c2b */ /* WARNING: Restarted to delay deadcode elimination for space: stack */ void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_32_bad(void) { undefined *puVar1; undefined auStack_830 [816]; undefined auStack_500 [408]; undefined4 auStack_368 [200]; undefined *puStack_48; undefined *puStack_40; undefined *puStack_38; undefined *puStack_30; undefined *puStack_28; undefined **ppuStack_20; undefined **ppuStack_18; ulong uStack_10; puVar1 = puStack_48; ppuStack_18 = &puStack_48; ppuStack_20 = &puStack_48; puStack_38 = auStack_500; puStack_30 = auStack_830; puStack_40 = puStack_48; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_368[uStack_10 * 2] = 0; auStack_368[uStack_10 * 2] = 0; } puStack_28 = puStack_38; puStack_48 = puStack_38; func_0x00400a80(puVar1,auStack_368,800); printStructLine(puStack_40); return; }
['gcc']
19,093
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_32_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64891/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_32.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_32_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_32_good(void) { goodG2B(); return; }
['gcc']
19,094
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_34_bad() { twoIntsStruct * data; CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_34_unionType myUnion; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); /* 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; { twoIntsStruct * data = myUnion.unionSecond; { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&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. */', '/* Initialize array */', '/* 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/64893/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_34.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_34_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_34_bad(void) { undefined auStack_820 [816]; undefined auStack_4f0 [408]; undefined4 auStack_358 [200]; undefined *puStack_38; undefined *puStack_30; undefined *puStack_28; undefined *puStack_20; undefined *puStack_18; ulong uStack_10; puStack_38 = auStack_4f0; puStack_20 = auStack_820; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_358[uStack_10 * 2] = 0; auStack_358[uStack_10 * 2] = 0; } puStack_30 = puStack_38; puStack_28 = puStack_38; puStack_18 = puStack_38; func_0x00400a80(puStack_38,auStack_358,800); printStructLine(puStack_30); return; }
['gcc']
19,095
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_34_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64893/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_34.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_34_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_34_good(void) { goodG2B(); return; }
['gcc']
19,096
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_41_badSink(twoIntsStruct * data) { { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&data[0]); } }
['/* Initialize array */', '/* 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/64894/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_41_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_41_badSink(undefined8 param_1) { undefined4 auStack_338 [202]; ulong uStack_10; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_338[uStack_10 * 2] = 0; auStack_338[uStack_10 * 2] = 0; } func_0x00400a80(param_1,auStack_338,800); printStructLine(param_1); return; }
['gcc']
19,097
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_41_bad() { twoIntsStruct * data; twoIntsStruct * dataBadBuffer = (twoIntsStruct *)ALLOCA(50*sizeof(twoIntsStruct)); twoIntsStruct * dataGoodBuffer = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct)); /* 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_struct_alloca_memmove_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/64894/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_41_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_41_bad(void) { undefined auStack_4f0 [816]; undefined auStack_1c0 [416]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_1c0; puStack_18 = auStack_4f0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_41_badSink(puStack_20,0x10,7); return; }
['gcc']
19,098
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_41_goodG2BSink(twoIntsStruct * data) { { twoIntsStruct source[100]; { size_t i; /* Initialize array */ for (i = 0; i < 100; i++) { source[i].intOne = 0; source[i].intOne = 0; } } /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memmove(data, source, 100*sizeof(twoIntsStruct)); printStructLine(&data[0]); } }
['/* Initialize array */', '/* 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/64894/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_41_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_41_goodG2BSink (undefined8 param_1) { undefined4 auStack_338 [202]; ulong uStack_10; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { auStack_338[uStack_10 * 2] = 0; auStack_338[uStack_10 * 2] = 0; } func_0x00400a80(param_1,auStack_338,800); printStructLine(param_1); return; }
['gcc']
19,099
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_41_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64894/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_41_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_memmove_41_good(void) { goodG2B(); return; }
['gcc']