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
17,800
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_15_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64086/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_15.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_15_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_15_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
17,801
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_16_bad() { char * data; char dataBadBuffer[50]; char dataGoodBuffer[100]; 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; data[0] = '\0'; /* null terminate */ break; } { size_t i; char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ for (i = 0; i < 100; i++) { data[i] = source[i]; } data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(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. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64087/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_16.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_16_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_16_bad(void) { undefined auStack_138 [224]; undefined auStack_58 [64]; undefined *puStack_18; ulong uStack_10; puStack_18 = auStack_58; auStack_58[0] = 0; func_0x00400a10(auStack_138,0x43,99); auStack_138[99] = 0; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { puStack_18[uStack_10] = auStack_138[uStack_10]; } puStack_18[99] = 0; printLine(puStack_18); return; }
['gcc']
17,802
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_16_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64087/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_16.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_16_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_16_good(void) { goodG2B(); return; }
['gcc']
17,803
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_17_bad() { int i; char * data; char dataBadBuffer[50]; char dataGoodBuffer[100]; 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; data[0] = '\0'; /* null terminate */ } { size_t i; char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ for (i = 0; i < 100; i++) { data[i] = source[i]; } data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(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. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64088/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_17.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_17_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_17_bad(void) { undefined auStack_138 [224]; undefined auStack_58 [56]; ulong uStack_20; undefined *puStack_18; int iStack_c; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { puStack_18 = auStack_58; auStack_58[0] = 0; } func_0x00400a10(auStack_138,0x43,99); auStack_138[99] = 0; for (uStack_20 = 0; uStack_20 < 100; uStack_20 = uStack_20 + 1) { puStack_18[uStack_20] = auStack_138[uStack_20]; } puStack_18[99] = 0; printLine(puStack_18); return; }
['gcc']
17,804
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_17_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64088/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_17.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_17_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_17_good(void) { goodG2B(); return; }
['gcc']
17,805
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_18_bad() { char * data; char dataBadBuffer[50]; char dataGoodBuffer[100]; 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; data[0] = '\0'; /* null terminate */ { size_t i; char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ for (i = 0; i < 100; i++) { data[i] = source[i]; } data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(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. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64089/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_18.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_18_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_18_bad(void) { undefined auStack_138 [224]; undefined auStack_58 [64]; undefined *puStack_18; ulong uStack_10; puStack_18 = auStack_58; auStack_58[0] = 0; func_0x00400a10(auStack_138,0x43,99); auStack_138[99] = 0; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { puStack_18[uStack_10] = auStack_138[uStack_10]; } puStack_18[99] = 0; printLine(puStack_18); return; }
['gcc']
17,806
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_18_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64089/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_18.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_18_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_18_good(void) { goodG2B(); return; }
['gcc']
17,807
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_31_bad() { char * data; char dataBadBuffer[50]; char dataGoodBuffer[100]; /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ { char * dataCopy = data; char * data = dataCopy; { size_t i; char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ for (i = 0; i < 100; i++) { data[i] = source[i]; } data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(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. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64090/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_31.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_31_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_31_bad(void) { undefined auStack_148 [224]; undefined auStack_68 [64]; undefined *puStack_28; undefined *puStack_20; undefined *puStack_18; ulong uStack_10; puStack_28 = auStack_68; auStack_68[0] = 0; puStack_20 = puStack_28; puStack_18 = puStack_28; func_0x00400a10(auStack_148,0x43,99); auStack_148[99] = 0; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { puStack_28[uStack_10] = auStack_148[uStack_10]; } puStack_28[99] = 0; printLine(puStack_28); return; }
['gcc']
17,808
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_31_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64090/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_31.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_31_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_31_good(void) { goodG2B(); return; }
['gcc']
17,809
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_32_bad() { char * data; char * *dataPtr1 = &data; char * *dataPtr2 = &data; char dataBadBuffer[50]; char dataGoodBuffer[100]; { char * 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; data[0] = '\0'; /* null terminate */ *dataPtr1 = data; } { char * data = *dataPtr2; { size_t i; char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ for (i = 0; i < 100; i++) { data[i] = source[i]; } data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(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. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64091/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_32.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_32_bad
/* WARNING: Heritage AFTER dead removal. Example location: s0xffffffffffffffc8 : 0x00400bc6 */ /* WARNING: Restarted to delay deadcode elimination for space: stack */ void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_32_bad(void) { undefined auStack_158 [224]; undefined auStack_78 [64]; long lStack_38; long lStack_30; undefined *puStack_28; long *plStack_20; long *plStack_18; ulong uStack_10; plStack_18 = &lStack_38; plStack_20 = &lStack_38; puStack_28 = auStack_78; auStack_78[0] = 0; lStack_30 = lStack_38; func_0x00400a10(auStack_158,0x43,99); auStack_158[99] = 0; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined *)(lStack_30 + uStack_10) = auStack_158[uStack_10]; } *(undefined *)(lStack_30 + 99) = 0; printLine(lStack_30); return; }
['gcc']
17,810
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_32_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64091/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_32.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_32_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_32_good(void) { goodG2B(); return; }
['gcc']
17,811
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_34_bad() { char * data; CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_34_unionType myUnion; char dataBadBuffer[50]; char dataGoodBuffer[100]; /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ myUnion.unionFirst = data; { char * data = myUnion.unionSecond; { size_t i; char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ for (i = 0; i < 100; i++) { data[i] = source[i]; } data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(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. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64093/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_34.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_34_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_34_bad(void) { undefined auStack_148 [224]; undefined auStack_68 [64]; undefined *puStack_28; undefined *puStack_20; undefined *puStack_18; ulong uStack_10; puStack_28 = auStack_68; auStack_68[0] = 0; puStack_20 = puStack_28; puStack_18 = puStack_28; func_0x00400a10(auStack_148,0x43,99); auStack_148[99] = 0; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { puStack_20[uStack_10] = auStack_148[uStack_10]; } puStack_20[99] = 0; printLine(puStack_20); return; }
['gcc']
17,812
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_34_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64093/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_34.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_34_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_34_good(void) { goodG2B(); return; }
['gcc']
17,813
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_41_badSink(char * data) { { size_t i; char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ for (i = 0; i < 100; i++) { data[i] = source[i]; } data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(data); } }
["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64094/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_41_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_41_badSink(long param_1) { undefined auStack_78 [104]; ulong uStack_10; func_0x00400a10(auStack_78,0x43,99); auStack_78[99] = 0; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined *)(param_1 + uStack_10) = auStack_78[uStack_10]; } *(undefined *)(param_1 + 99) = 0; printLine(param_1); return; }
['gcc']
17,814
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_41_bad() { char * data; char dataBadBuffer[50]; char dataGoodBuffer[100]; /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_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. */', '/* null terminate */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64094/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_41_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_41_bad(void) { undefined auStack_48 [56]; undefined *puStack_10; puStack_10 = auStack_48; auStack_48[0] = 0; CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_41_badSink(puStack_10); return; }
['gcc']
17,815
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_41_goodG2BSink(char * data) { { size_t i; char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ for (i = 0; i < 100; i++) { data[i] = source[i]; } data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(data); } }
["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64094/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_41_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_41_goodG2BSink(long param_1) { undefined auStack_78 [104]; ulong uStack_10; func_0x00400a10(auStack_78,0x43,99); auStack_78[99] = 0; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined *)(param_1 + uStack_10) = auStack_78[uStack_10]; } *(undefined *)(param_1 + 99) = 0; printLine(param_1); return; }
['gcc']
17,816
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_41_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64094/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_41_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_41_good(void) { goodG2B(); return; }
['gcc']
17,817
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_51_bad() { char * data; char dataBadBuffer[50]; char dataGoodBuffer[100]; /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_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. */', '/* null terminate */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64097/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_51a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_51_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_51_bad(void) { undefined auStack_48 [56]; undefined *puStack_10; puStack_10 = auStack_48; auStack_48[0] = 0; CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_51b_badSink(puStack_10); return; }
['gcc']
17,818
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_51_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64097/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_51a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_51_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_51_good(void) { goodG2B(); return; }
['gcc']
17,819
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_51b_badSink(char * data) { { size_t i; char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ for (i = 0; i < 100; i++) { data[i] = source[i]; } data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(data); } }
["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64097/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_51b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_51b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_51b_badSink(long param_1) { undefined auStack_78 [104]; ulong uStack_10; func_0x00400a10(auStack_78,0x43,99); auStack_78[99] = 0; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined *)(param_1 + uStack_10) = auStack_78[uStack_10]; } *(undefined *)(param_1 + 99) = 0; printLine(param_1); return; }
['gcc']
17,820
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_51b_goodG2BSink(char * data) { { size_t i; char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ for (i = 0; i < 100; i++) { data[i] = source[i]; } data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(data); } }
["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64097/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_51b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_51b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_51b_goodG2BSink(long param_1) { undefined auStack_78 [104]; ulong uStack_10; func_0x00400a10(auStack_78,0x43,99); auStack_78[99] = 0; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined *)(param_1 + uStack_10) = auStack_78[uStack_10]; } *(undefined *)(param_1 + 99) = 0; printLine(param_1); return; }
['gcc']
17,821
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_52_bad() { char * data; char dataBadBuffer[50]; char dataGoodBuffer[100]; /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_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. */', '/* null terminate */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64098/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_52a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_52_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_52_bad(void) { undefined auStack_48 [56]; undefined *puStack_10; puStack_10 = auStack_48; auStack_48[0] = 0; CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_52b_badSink(puStack_10); return; }
['gcc']
17,822
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_52_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64098/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_52a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_52_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_52_good(void) { goodG2B(); return; }
['gcc']
17,823
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_52b_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_52c_badSink(data); }
[]
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64098/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_52b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_52b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_52b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_52c_badSink(param_1); return; }
['gcc']
17,824
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_52b_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_52c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64098/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_52b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_52b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_52b_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_52c_goodG2BSink(param_1); return; }
['gcc']
17,825
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_52c_badSink(char * data) { { size_t i; char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ for (i = 0; i < 100; i++) { data[i] = source[i]; } data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(data); } }
["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64098/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_52c.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_52c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_52c_badSink(long param_1) { undefined auStack_78 [104]; ulong uStack_10; func_0x00400a10(auStack_78,0x43,99); auStack_78[99] = 0; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined *)(param_1 + uStack_10) = auStack_78[uStack_10]; } *(undefined *)(param_1 + 99) = 0; printLine(param_1); return; }
['gcc']
17,826
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_52c_goodG2BSink(char * data) { { size_t i; char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ for (i = 0; i < 100; i++) { data[i] = source[i]; } data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(data); } }
["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64098/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_52c.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_52c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_52c_goodG2BSink(long param_1) { undefined auStack_78 [104]; ulong uStack_10; func_0x00400a10(auStack_78,0x43,99); auStack_78[99] = 0; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined *)(param_1 + uStack_10) = auStack_78[uStack_10]; } *(undefined *)(param_1 + 99) = 0; printLine(param_1); return; }
['gcc']
17,827
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53_bad() { char * data; char dataBadBuffer[50]; char dataGoodBuffer[100]; /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_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. */', '/* null terminate */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64099/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53_bad(void) { undefined auStack_48 [56]; undefined *puStack_10; puStack_10 = auStack_48; auStack_48[0] = 0; CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53b_badSink(puStack_10); return; }
['gcc']
17,828
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64099/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53_good(void) { goodG2B(); return; }
['gcc']
17,829
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53b_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53c_badSink(data); }
[]
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64099/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53c_badSink(param_1); return; }
['gcc']
17,830
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53b_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64099/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53b_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53c_goodG2BSink(param_1); return; }
['gcc']
17,831
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53c_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53d_badSink(data); }
[]
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64099/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53c.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53c_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53d_badSink(param_1); return; }
['gcc']
17,832
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53c_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64099/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53c.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53c_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53d_goodG2BSink(param_1); return; }
['gcc']
17,833
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53d_badSink(char * data) { { size_t i; char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ for (i = 0; i < 100; i++) { data[i] = source[i]; } data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(data); } }
["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64099/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53d.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53d_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53d_badSink(long param_1) { undefined auStack_78 [104]; ulong uStack_10; func_0x00400a10(auStack_78,0x43,99); auStack_78[99] = 0; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined *)(param_1 + uStack_10) = auStack_78[uStack_10]; } *(undefined *)(param_1 + 99) = 0; printLine(param_1); return; }
['gcc']
17,834
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53d_goodG2BSink(char * data) { { size_t i; char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ for (i = 0; i < 100; i++) { data[i] = source[i]; } data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(data); } }
["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64099/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53d.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53d_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_53d_goodG2BSink(long param_1) { undefined auStack_78 [104]; ulong uStack_10; func_0x00400a10(auStack_78,0x43,99); auStack_78[99] = 0; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined *)(param_1 + uStack_10) = auStack_78[uStack_10]; } *(undefined *)(param_1 + 99) = 0; printLine(param_1); return; }
['gcc']
17,835
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54_bad() { char * data; char dataBadBuffer[50]; char dataGoodBuffer[100]; /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_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. */', '/* null terminate */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64100/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54_bad(void) { undefined auStack_48 [56]; undefined *puStack_10; puStack_10 = auStack_48; auStack_48[0] = 0; CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54b_badSink(puStack_10); return; }
['gcc']
17,836
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64100/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54_good(void) { goodG2B(); return; }
['gcc']
17,837
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54b_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54c_badSink(data); }
[]
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64100/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54c_badSink(param_1); return; }
['gcc']
17,838
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54b_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64100/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54b_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54c_goodG2BSink(param_1); return; }
['gcc']
17,839
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54c_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54d_badSink(data); }
[]
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64100/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54c.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54c_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54d_badSink(param_1); return; }
['gcc']
17,840
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54c_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64100/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54c.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54c_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54d_goodG2BSink(param_1); return; }
['gcc']
17,841
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54d_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54e_badSink(data); }
[]
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64100/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54d.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54d_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54d_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54e_badSink(param_1); return; }
['gcc']
17,842
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54d_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54e_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64100/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54d.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54d_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54d_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54e_goodG2BSink(param_1); return; }
['gcc']
17,843
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54e_badSink(char * data) { { size_t i; char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ for (i = 0; i < 100; i++) { data[i] = source[i]; } data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(data); } }
["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64100/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54e.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54e_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54e_badSink(long param_1) { undefined auStack_78 [104]; ulong uStack_10; func_0x00400a10(auStack_78,0x43,99); auStack_78[99] = 0; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined *)(param_1 + uStack_10) = auStack_78[uStack_10]; } *(undefined *)(param_1 + 99) = 0; printLine(param_1); return; }
['gcc']
17,844
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54e_goodG2BSink(char * data) { { size_t i; char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ for (i = 0; i < 100; i++) { data[i] = source[i]; } data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(data); } }
["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64100/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54e.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54e_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_54e_goodG2BSink(long param_1) { undefined auStack_78 [104]; ulong uStack_10; func_0x00400a10(auStack_78,0x43,99); auStack_78[99] = 0; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined *)(param_1 + uStack_10) = auStack_78[uStack_10]; } *(undefined *)(param_1 + 99) = 0; printLine(param_1); return; }
['gcc']
17,845
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_63_bad() { char * data; char dataBadBuffer[50]; char dataGoodBuffer[100]; /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_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. */', '/* null terminate */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64101/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_63a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_63_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_63_bad(void) { undefined auStack_48 [56]; undefined *puStack_10; puStack_10 = auStack_48; auStack_48[0] = 0; CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_63b_badSink(&puStack_10); return; }
['gcc']
17,846
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_63_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64101/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_63a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_63_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_63_good(void) { goodG2B(); return; }
['gcc']
17,847
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_63b_badSink(char * * dataPtr) { char * data = *dataPtr; { size_t i; char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ for (i = 0; i < 100; i++) { data[i] = source[i]; } data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(data); } }
["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64101/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_63b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_63b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_63b_badSink(long *param_1) { undefined auStack_88 [112]; long lStack_18; ulong uStack_10; lStack_18 = *param_1; func_0x00400a10(auStack_88,0x43,99); auStack_88[99] = 0; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined *)(lStack_18 + uStack_10) = auStack_88[uStack_10]; } *(undefined *)(lStack_18 + 99) = 0; printLine(lStack_18); return; }
['gcc']
17,848
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_63b_goodG2BSink(char * * dataPtr) { char * data = *dataPtr; { size_t i; char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ for (i = 0; i < 100; i++) { data[i] = source[i]; } data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(data); } }
["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64101/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_63b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_63b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_63b_goodG2BSink(long *param_1) { undefined auStack_88 [112]; long lStack_18; ulong uStack_10; lStack_18 = *param_1; func_0x00400a10(auStack_88,0x43,99); auStack_88[99] = 0; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined *)(lStack_18 + uStack_10) = auStack_88[uStack_10]; } *(undefined *)(lStack_18 + 99) = 0; printLine(lStack_18); return; }
['gcc']
17,849
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_64_bad() { char * data; char dataBadBuffer[50]; char dataGoodBuffer[100]; /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_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. */', '/* null terminate */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64102/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_64a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_64_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_64_bad(void) { undefined auStack_48 [56]; undefined *puStack_10; puStack_10 = auStack_48; auStack_48[0] = 0; CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_64b_badSink(&puStack_10); return; }
['gcc']
17,850
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_64_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64102/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_64a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_64_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_64_good(void) { goodG2B(); return; }
['gcc']
17,851
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_64b_badSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ char * * dataPtr = (char * *)dataVoidPtr; /* dereference dataPtr into data */ char * data = (*dataPtr); { size_t i; char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ for (i = 0; i < 100; i++) { data[i] = source[i]; } data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(data); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64102/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_64b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_64b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_64b_badSink(long *param_1) { undefined auStack_88 [104]; long lStack_20; long *plStack_18; ulong uStack_10; lStack_20 = *param_1; plStack_18 = param_1; func_0x00400a10(auStack_88,0x43,99); auStack_88[99] = 0; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined *)(lStack_20 + uStack_10) = auStack_88[uStack_10]; } *(undefined *)(lStack_20 + 99) = 0; printLine(lStack_20); return; }
['gcc']
17,852
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_64b_goodG2BSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ char * * dataPtr = (char * *)dataVoidPtr; /* dereference dataPtr into data */ char * data = (*dataPtr); { size_t i; char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ for (i = 0; i < 100; i++) { data[i] = source[i]; } data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(data); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64102/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_64b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_64b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_64b_goodG2BSink(long *param_1) { undefined auStack_88 [104]; long lStack_20; long *plStack_18; ulong uStack_10; lStack_20 = *param_1; plStack_18 = param_1; func_0x00400a10(auStack_88,0x43,99); auStack_88[99] = 0; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined *)(lStack_20 + uStack_10) = auStack_88[uStack_10]; } *(undefined *)(lStack_20 + 99) = 0; printLine(lStack_20); return; }
['gcc']
17,853
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_65_bad() { char * data; /* define a function pointer */ void (*funcPtr) (char *) = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_65b_badSink; char dataBadBuffer[50]; char dataGoodBuffer[100]; /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ /* 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. */', '/* null terminate */', '/* use the function pointer */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64103/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_65a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_65_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_65_bad(void) { undefined auStack_58 [64]; undefined *puStack_18; code *pcStack_10; pcStack_10 = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_65b_badSink; puStack_18 = auStack_58; auStack_58[0] = 0; CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_65b_badSink(puStack_18); return; }
['gcc']
17,854
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_65_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64103/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_65a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_65_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_65_good(void) { goodG2B(); return; }
['gcc']
17,855
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_65b_badSink(char * data) { { size_t i; char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ for (i = 0; i < 100; i++) { data[i] = source[i]; } data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(data); } }
["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64103/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_65b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_65b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_65b_badSink(long param_1) { undefined auStack_78 [104]; ulong uStack_10; func_0x00400a10(auStack_78,0x43,99); auStack_78[99] = 0; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined *)(param_1 + uStack_10) = auStack_78[uStack_10]; } *(undefined *)(param_1 + 99) = 0; printLine(param_1); return; }
['gcc']
17,856
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_65b_goodG2BSink(char * data) { { size_t i; char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ for (i = 0; i < 100; i++) { data[i] = source[i]; } data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(data); } }
["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64103/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_65b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_65b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_65b_goodG2BSink(long param_1) { undefined auStack_78 [104]; ulong uStack_10; func_0x00400a10(auStack_78,0x43,99); auStack_78[99] = 0; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined *)(param_1 + uStack_10) = auStack_78[uStack_10]; } *(undefined *)(param_1 + 99) = 0; printLine(param_1); return; }
['gcc']
17,857
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_66_bad() { char * data; char * dataArray[5]; char dataBadBuffer[50]; char dataGoodBuffer[100]; /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ /* put data in array */ dataArray[2] = data; CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_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. */', '/* null terminate */', '/* put data in array */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64104/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_66a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_66_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_66_bad(void) { undefined auStack_78 [64]; undefined auStack_38 [16]; undefined *puStack_28; undefined *puStack_10; puStack_28 = auStack_78; auStack_78[0] = 0; puStack_10 = puStack_28; CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_66b_badSink(auStack_38); return; }
['gcc']
17,858
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_66_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64104/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_66a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_66_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_66_good(void) { goodG2B(); return; }
['gcc']
17,859
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_66b_badSink(char * dataArray[]) { /* copy data out of dataArray */ char * data = dataArray[2]; { size_t i; char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ for (i = 0; i < 100; i++) { data[i] = source[i]; } data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(data); } }
['/* copy data out of dataArray */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64104/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_66b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_66b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_66b_badSink(long param_1) { undefined auStack_88 [112]; long lStack_18; ulong uStack_10; lStack_18 = *(long *)(param_1 + 0x10); func_0x00400a10(auStack_88,0x43,99); auStack_88[99] = 0; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined *)(lStack_18 + uStack_10) = auStack_88[uStack_10]; } *(undefined *)(lStack_18 + 99) = 0; printLine(lStack_18); return; }
['gcc']
17,860
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_66b_goodG2BSink(char * dataArray[]) { char * data = dataArray[2]; { size_t i; char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ for (i = 0; i < 100; i++) { data[i] = source[i]; } data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(data); } }
["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64104/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_66b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_66b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_66b_goodG2BSink(long param_1) { undefined auStack_88 [112]; long lStack_18; ulong uStack_10; lStack_18 = *(long *)(param_1 + 0x10); func_0x00400a10(auStack_88,0x43,99); auStack_88[99] = 0; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined *)(lStack_18 + uStack_10) = auStack_88[uStack_10]; } *(undefined *)(lStack_18 + 99) = 0; printLine(lStack_18); return; }
['gcc']
17,861
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_67_bad() { char * data; CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_67_structType myStruct; char dataBadBuffer[50]; char dataGoodBuffer[100]; /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ myStruct.structFirst = data; CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_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. */', '/* null terminate */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64105/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_67a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_67_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_67_bad(void) { undefined auStack_58 [64]; undefined *puStack_18; undefined *puStack_10; puStack_18 = auStack_58; auStack_58[0] = 0; puStack_10 = puStack_18; CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_67b_badSink(puStack_18); return; }
['gcc']
17,862
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_67_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64105/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_67a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_67_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_67_good(void) { goodG2B(); return; }
['gcc']
17,863
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_67b_badSink(CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_67_structType myStruct) { char * data = myStruct.structFirst; { size_t i; char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ for (i = 0; i < 100; i++) { data[i] = source[i]; } data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(data); } }
["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64105/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_67b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_67b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_67b_badSink(long param_1) { undefined auStack_88 [112]; long lStack_18; ulong uStack_10; lStack_18 = param_1; func_0x00400a10(auStack_88,0x43,99); auStack_88[99] = 0; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined *)(lStack_18 + uStack_10) = auStack_88[uStack_10]; } *(undefined *)(lStack_18 + 99) = 0; printLine(lStack_18); return; }
['gcc']
17,864
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_67b_goodG2BSink(CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_67_structType myStruct) { char * data = myStruct.structFirst; { size_t i; char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ for (i = 0; i < 100; i++) { data[i] = source[i]; } data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(data); } }
["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64105/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_67b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_67b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_67b_goodG2BSink(long param_1) { undefined auStack_88 [112]; long lStack_18; ulong uStack_10; lStack_18 = param_1; func_0x00400a10(auStack_88,0x43,99); auStack_88[99] = 0; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined *)(lStack_18 + uStack_10) = auStack_88[uStack_10]; } *(undefined *)(lStack_18 + 99) = 0; printLine(lStack_18); return; }
['gcc']
17,865
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_68_bad() { char * data; char dataBadBuffer[50]; char dataGoodBuffer[100]; /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_68_badData = data; CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_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. */', '/* null terminate */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64106/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_68a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_68_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_68_bad(void) { undefined auStack_48 [56]; undefined *puStack_10; CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_68_badData = auStack_48; auStack_48[0] = 0; puStack_10 = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_68_badData; CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_68b_badSink(); return; }
['gcc']
17,866
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_68_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64106/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_68a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_68_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_68_good(void) { goodG2B(); return; }
['gcc']
17,867
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_68b_badSink() { char * data = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_68_badData; { size_t i; char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ for (i = 0; i < 100; i++) { data[i] = source[i]; } data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(data); } }
["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64106/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_68b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_68b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_68b_badSink(void) { undefined auStack_88 [112]; long lStack_18; ulong uStack_10; lStack_18 = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_68_badData; func_0x00400a10(auStack_88,0x43,99); auStack_88[99] = 0; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined *)(lStack_18 + uStack_10) = auStack_88[uStack_10]; } *(undefined *)(lStack_18 + 99) = 0; printLine(lStack_18); return; }
['gcc']
17,868
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_68b_goodG2BSink() { char * data = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_68_goodG2BData; { size_t i; char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ for (i = 0; i < 100; i++) { data[i] = source[i]; } data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(data); } }
["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64106/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_68b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_68b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_68b_goodG2BSink(void) { undefined auStack_88 [112]; long lStack_18; ulong uStack_10; lStack_18 = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_loop_68_goodG2BData; func_0x00400a10(auStack_88,0x43,99); auStack_88[99] = 0; for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined *)(lStack_18 + uStack_10) = auStack_88[uStack_10]; } *(undefined *)(lStack_18 + 99) = 0; printLine(lStack_18); return; }
['gcc']
17,869
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_01_bad() { char * data; char dataBadBuffer[50]; char dataGoodBuffer[100]; /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ { char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ memcpy(data, source, 100*sizeof(char)); data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(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. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64112/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_01.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_01_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_01_bad(void) { undefined8 *puVar1; undefined8 uStack_138; undefined8 uStack_130; undefined8 uStack_128; undefined8 uStack_120; undefined8 uStack_118; undefined8 uStack_110; undefined8 uStack_108; undefined8 uStack_100; undefined8 uStack_f8; undefined8 uStack_f0; undefined8 uStack_e8; undefined8 uStack_e0; uint uStack_d8; undefined uStack_58; undefined8 *puStack_20; puStack_20 = (undefined8 *)&uStack_58; uStack_58 = 0; func_0x00400a10(&uStack_138,0x43,99); puVar1 = puStack_20; uStack_d8 = uStack_d8 & 0xffffff; *puStack_20 = uStack_138; puVar1[1] = uStack_130; puVar1[2] = uStack_128; puVar1[3] = uStack_120; puVar1[4] = uStack_118; puVar1[5] = uStack_110; puVar1[6] = uStack_108; puVar1[7] = uStack_100; puVar1[8] = uStack_f8; puVar1[9] = uStack_f0; puVar1[10] = uStack_e8; puVar1[0xb] = uStack_e0; *(uint *)(puVar1 + 0xc) = uStack_d8; *(undefined *)((long)puStack_20 + 99) = 0; printLine(puStack_20); return; }
['gcc']
17,870
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_01_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64112/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_01.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_01_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_01_good(void) { goodG2B(); return; }
['gcc']
17,871
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_02_bad() { char * data; char dataBadBuffer[50]; char dataGoodBuffer[100]; 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; data[0] = '\0'; /* null terminate */ } { char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ memcpy(data, source, 100*sizeof(char)); data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(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. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64113/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_02.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_02_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_02_bad(void) { undefined8 *puVar1; undefined8 uStack_138; undefined8 uStack_130; undefined8 uStack_128; undefined8 uStack_120; undefined8 uStack_118; undefined8 uStack_110; undefined8 uStack_108; undefined8 uStack_100; undefined8 uStack_f8; undefined8 uStack_f0; undefined8 uStack_e8; undefined8 uStack_e0; uint uStack_d8; undefined uStack_58; undefined8 *puStack_20; puStack_20 = (undefined8 *)&uStack_58; uStack_58 = 0; func_0x00400a10(&uStack_138,0x43,99); puVar1 = puStack_20; uStack_d8 = uStack_d8 & 0xffffff; *puStack_20 = uStack_138; puVar1[1] = uStack_130; puVar1[2] = uStack_128; puVar1[3] = uStack_120; puVar1[4] = uStack_118; puVar1[5] = uStack_110; puVar1[6] = uStack_108; puVar1[7] = uStack_100; puVar1[8] = uStack_f8; puVar1[9] = uStack_f0; puVar1[10] = uStack_e8; puVar1[0xb] = uStack_e0; *(uint *)(puVar1 + 0xc) = uStack_d8; *(undefined *)((long)puStack_20 + 99) = 0; printLine(puStack_20); return; }
['gcc']
17,872
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_02_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64113/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_02.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_02_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_02_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
17,873
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_03_bad() { char * data; char dataBadBuffer[50]; char dataGoodBuffer[100]; 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; data[0] = '\0'; /* null terminate */ } { char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ memcpy(data, source, 100*sizeof(char)); data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(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. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64114/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_03.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_03_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_03_bad(void) { undefined8 *puVar1; undefined8 uStack_138; undefined8 uStack_130; undefined8 uStack_128; undefined8 uStack_120; undefined8 uStack_118; undefined8 uStack_110; undefined8 uStack_108; undefined8 uStack_100; undefined8 uStack_f8; undefined8 uStack_f0; undefined8 uStack_e8; undefined8 uStack_e0; uint uStack_d8; undefined uStack_58; undefined8 *puStack_20; puStack_20 = (undefined8 *)&uStack_58; uStack_58 = 0; func_0x00400a10(&uStack_138,0x43,99); puVar1 = puStack_20; uStack_d8 = uStack_d8 & 0xffffff; *puStack_20 = uStack_138; puVar1[1] = uStack_130; puVar1[2] = uStack_128; puVar1[3] = uStack_120; puVar1[4] = uStack_118; puVar1[5] = uStack_110; puVar1[6] = uStack_108; puVar1[7] = uStack_100; puVar1[8] = uStack_f8; puVar1[9] = uStack_f0; puVar1[10] = uStack_e8; puVar1[0xb] = uStack_e0; *(uint *)(puVar1 + 0xc) = uStack_d8; *(undefined *)((long)puStack_20 + 99) = 0; printLine(puStack_20); return; }
['gcc']
17,874
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_03_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64114/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_03.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_03_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_03_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
17,875
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_04_bad() { char * data; char dataBadBuffer[50]; char dataGoodBuffer[100]; 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; data[0] = '\0'; /* null terminate */ } { char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ memcpy(data, source, 100*sizeof(char)); data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(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. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64115/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_04.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_04_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_04_bad(void) { undefined8 *puVar1; undefined8 uStack_138; undefined8 uStack_130; undefined8 uStack_128; undefined8 uStack_120; undefined8 uStack_118; undefined8 uStack_110; undefined8 uStack_108; undefined8 uStack_100; undefined8 uStack_f8; undefined8 uStack_f0; undefined8 uStack_e8; undefined8 uStack_e0; uint uStack_d8; undefined uStack_58; undefined8 *puStack_20; puStack_20 = (undefined8 *)&uStack_58; uStack_58 = 0; func_0x00400a10(&uStack_138,0x43,99); puVar1 = puStack_20; uStack_d8 = uStack_d8 & 0xffffff; *puStack_20 = uStack_138; puVar1[1] = uStack_130; puVar1[2] = uStack_128; puVar1[3] = uStack_120; puVar1[4] = uStack_118; puVar1[5] = uStack_110; puVar1[6] = uStack_108; puVar1[7] = uStack_100; puVar1[8] = uStack_f8; puVar1[9] = uStack_f0; puVar1[10] = uStack_e8; puVar1[0xb] = uStack_e0; *(uint *)(puVar1 + 0xc) = uStack_d8; *(undefined *)((long)puStack_20 + 99) = 0; printLine(puStack_20); return; }
['gcc']
17,876
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_04_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64115/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_04.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_04_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_04_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
17,877
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_05_bad() { char * data; char dataBadBuffer[50]; char dataGoodBuffer[100]; 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; data[0] = '\0'; /* null terminate */ } { char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ memcpy(data, source, 100*sizeof(char)); data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(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. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64116/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_05.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_05_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_05_bad(void) { undefined8 *puVar1; undefined8 uStack_138; undefined8 uStack_130; undefined8 uStack_128; undefined8 uStack_120; undefined8 uStack_118; undefined8 uStack_110; undefined8 uStack_108; undefined8 uStack_100; undefined8 uStack_f8; undefined8 uStack_f0; undefined8 uStack_e8; undefined8 uStack_e0; uint uStack_d8; undefined uStack_58; undefined8 *puStack_20; if (staticTrue != 0) { puStack_20 = (undefined8 *)&uStack_58; uStack_58 = 0; } func_0x00400a10(&uStack_138,0x43,99); puVar1 = puStack_20; uStack_d8 = uStack_d8 & 0xffffff; *puStack_20 = uStack_138; puVar1[1] = uStack_130; puVar1[2] = uStack_128; puVar1[3] = uStack_120; puVar1[4] = uStack_118; puVar1[5] = uStack_110; puVar1[6] = uStack_108; puVar1[7] = uStack_100; puVar1[8] = uStack_f8; puVar1[9] = uStack_f0; puVar1[10] = uStack_e8; puVar1[0xb] = uStack_e0; *(uint *)(puVar1 + 0xc) = uStack_d8; *(undefined *)((long)puStack_20 + 99) = 0; printLine(puStack_20); return; }
['gcc']
17,878
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_05_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64116/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_05.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_05_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_05_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
17,879
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_06_bad() { char * data; char dataBadBuffer[50]; char dataGoodBuffer[100]; 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; data[0] = '\0'; /* null terminate */ } { char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ memcpy(data, source, 100*sizeof(char)); data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(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. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64117/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_06.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_06_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_06_bad(void) { undefined8 *puVar1; undefined8 uStack_138; undefined8 uStack_130; undefined8 uStack_128; undefined8 uStack_120; undefined8 uStack_118; undefined8 uStack_110; undefined8 uStack_108; undefined8 uStack_100; undefined8 uStack_f8; undefined8 uStack_f0; undefined8 uStack_e8; undefined8 uStack_e0; uint uStack_d8; undefined uStack_58; undefined8 *puStack_20; puStack_20 = (undefined8 *)&uStack_58; uStack_58 = 0; func_0x00400a10(&uStack_138,0x43,99); puVar1 = puStack_20; uStack_d8 = uStack_d8 & 0xffffff; *puStack_20 = uStack_138; puVar1[1] = uStack_130; puVar1[2] = uStack_128; puVar1[3] = uStack_120; puVar1[4] = uStack_118; puVar1[5] = uStack_110; puVar1[6] = uStack_108; puVar1[7] = uStack_100; puVar1[8] = uStack_f8; puVar1[9] = uStack_f0; puVar1[10] = uStack_e8; puVar1[0xb] = uStack_e0; *(uint *)(puVar1 + 0xc) = uStack_d8; *(undefined *)((long)puStack_20 + 99) = 0; printLine(puStack_20); return; }
['gcc']
17,880
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_06_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64117/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_06.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_06_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_06_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
17,881
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_07_bad() { char * data; char dataBadBuffer[50]; char dataGoodBuffer[100]; 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; data[0] = '\0'; /* null terminate */ } { char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ memcpy(data, source, 100*sizeof(char)); data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(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. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64118/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_07.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_07_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_07_bad(void) { undefined8 *puVar1; undefined8 uStack_138; undefined8 uStack_130; undefined8 uStack_128; undefined8 uStack_120; undefined8 uStack_118; undefined8 uStack_110; undefined8 uStack_108; undefined8 uStack_100; undefined8 uStack_f8; undefined8 uStack_f0; undefined8 uStack_e8; undefined8 uStack_e0; uint uStack_d8; undefined uStack_58; undefined8 *puStack_20; if (staticFive == 5) { puStack_20 = (undefined8 *)&uStack_58; uStack_58 = 0; } func_0x00400a10(&uStack_138,0x43,99); puVar1 = puStack_20; uStack_d8 = uStack_d8 & 0xffffff; *puStack_20 = uStack_138; puVar1[1] = uStack_130; puVar1[2] = uStack_128; puVar1[3] = uStack_120; puVar1[4] = uStack_118; puVar1[5] = uStack_110; puVar1[6] = uStack_108; puVar1[7] = uStack_100; puVar1[8] = uStack_f8; puVar1[9] = uStack_f0; puVar1[10] = uStack_e8; puVar1[0xb] = uStack_e0; *(uint *)(puVar1 + 0xc) = uStack_d8; *(undefined *)((long)puStack_20 + 99) = 0; printLine(puStack_20); return; }
['gcc']
17,882
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_07_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64118/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_07.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_07_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_07_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
17,883
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_08_bad() { char * data; char dataBadBuffer[50]; char dataGoodBuffer[100]; 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; data[0] = '\0'; /* null terminate */ } { char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ memcpy(data, source, 100*sizeof(char)); data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(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. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64119/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_08.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_08_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_08_bad(void) { undefined8 *puVar1; int iVar2; undefined8 uStack_138; undefined8 uStack_130; undefined8 uStack_128; undefined8 uStack_120; undefined8 uStack_118; undefined8 uStack_110; undefined8 uStack_108; undefined8 uStack_100; undefined8 uStack_f8; undefined8 uStack_f0; undefined8 uStack_e8; undefined8 uStack_e0; uint uStack_d8; undefined uStack_58; undefined8 *puStack_20; iVar2 = staticReturnsTrue(); if (iVar2 != 0) { puStack_20 = (undefined8 *)&uStack_58; uStack_58 = 0; } func_0x00400a10(&uStack_138,0x43,99); puVar1 = puStack_20; uStack_d8 = uStack_d8 & 0xffffff; *puStack_20 = uStack_138; puVar1[1] = uStack_130; puVar1[2] = uStack_128; puVar1[3] = uStack_120; puVar1[4] = uStack_118; puVar1[5] = uStack_110; puVar1[6] = uStack_108; puVar1[7] = uStack_100; puVar1[8] = uStack_f8; puVar1[9] = uStack_f0; puVar1[10] = uStack_e8; puVar1[0xb] = uStack_e0; *(uint *)(puVar1 + 0xc) = uStack_d8; *(undefined *)((long)puStack_20 + 99) = 0; printLine(puStack_20); return; }
['gcc']
17,884
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_08_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64119/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_08.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_08_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_08_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
17,885
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_09_bad() { char * data; char dataBadBuffer[50]; char dataGoodBuffer[100]; 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; data[0] = '\0'; /* null terminate */ } { char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ memcpy(data, source, 100*sizeof(char)); data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(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. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64120/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_09.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_09_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_09_bad(void) { undefined8 *puVar1; undefined8 uStack_138; undefined8 uStack_130; undefined8 uStack_128; undefined8 uStack_120; undefined8 uStack_118; undefined8 uStack_110; undefined8 uStack_108; undefined8 uStack_100; undefined8 uStack_f8; undefined8 uStack_f0; undefined8 uStack_e8; undefined8 uStack_e0; uint uStack_d8; undefined uStack_58; undefined8 *puStack_20; if (GLOBAL_CONST_TRUE != 0) { puStack_20 = (undefined8 *)&uStack_58; uStack_58 = 0; } func_0x00400a10(&uStack_138,0x43,99); puVar1 = puStack_20; uStack_d8 = uStack_d8 & 0xffffff; *puStack_20 = uStack_138; puVar1[1] = uStack_130; puVar1[2] = uStack_128; puVar1[3] = uStack_120; puVar1[4] = uStack_118; puVar1[5] = uStack_110; puVar1[6] = uStack_108; puVar1[7] = uStack_100; puVar1[8] = uStack_f8; puVar1[9] = uStack_f0; puVar1[10] = uStack_e8; puVar1[0xb] = uStack_e0; *(uint *)(puVar1 + 0xc) = uStack_d8; *(undefined *)((long)puStack_20 + 99) = 0; printLine(puStack_20); return; }
['gcc']
17,886
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_09_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64120/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_09.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_09_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_09_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
17,887
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_10_bad() { char * data; char dataBadBuffer[50]; char dataGoodBuffer[100]; 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; data[0] = '\0'; /* null terminate */ } { char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ memcpy(data, source, 100*sizeof(char)); data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(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. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64121/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_10.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_10_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_10_bad(void) { undefined8 *puVar1; undefined8 uStack_138; undefined8 uStack_130; undefined8 uStack_128; undefined8 uStack_120; undefined8 uStack_118; undefined8 uStack_110; undefined8 uStack_108; undefined8 uStack_100; undefined8 uStack_f8; undefined8 uStack_f0; undefined8 uStack_e8; undefined8 uStack_e0; uint uStack_d8; undefined uStack_58; undefined8 *puStack_20; if (globalTrue != 0) { puStack_20 = (undefined8 *)&uStack_58; uStack_58 = 0; } func_0x00400a10(&uStack_138,0x43,99); puVar1 = puStack_20; uStack_d8 = uStack_d8 & 0xffffff; *puStack_20 = uStack_138; puVar1[1] = uStack_130; puVar1[2] = uStack_128; puVar1[3] = uStack_120; puVar1[4] = uStack_118; puVar1[5] = uStack_110; puVar1[6] = uStack_108; puVar1[7] = uStack_100; puVar1[8] = uStack_f8; puVar1[9] = uStack_f0; puVar1[10] = uStack_e8; puVar1[0xb] = uStack_e0; *(uint *)(puVar1 + 0xc) = uStack_d8; *(undefined *)((long)puStack_20 + 99) = 0; printLine(puStack_20); return; }
['gcc']
17,888
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_10_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64121/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_10.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_10_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_10_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
17,889
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_11_bad() { char * data; char dataBadBuffer[50]; char dataGoodBuffer[100]; 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; data[0] = '\0'; /* null terminate */ } { char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ memcpy(data, source, 100*sizeof(char)); data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(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. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64122/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_11.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_11_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_11_bad(void) { undefined8 *puVar1; int iVar2; undefined8 uStack_138; undefined8 uStack_130; undefined8 uStack_128; undefined8 uStack_120; undefined8 uStack_118; undefined8 uStack_110; undefined8 uStack_108; undefined8 uStack_100; undefined8 uStack_f8; undefined8 uStack_f0; undefined8 uStack_e8; undefined8 uStack_e0; uint uStack_d8; undefined uStack_58; undefined8 *puStack_20; iVar2 = globalReturnsTrue(); if (iVar2 != 0) { puStack_20 = (undefined8 *)&uStack_58; uStack_58 = 0; } func_0x00400a10(&uStack_138,0x43,99); puVar1 = puStack_20; uStack_d8 = uStack_d8 & 0xffffff; *puStack_20 = uStack_138; puVar1[1] = uStack_130; puVar1[2] = uStack_128; puVar1[3] = uStack_120; puVar1[4] = uStack_118; puVar1[5] = uStack_110; puVar1[6] = uStack_108; puVar1[7] = uStack_100; puVar1[8] = uStack_f8; puVar1[9] = uStack_f0; puVar1[10] = uStack_e8; puVar1[0xb] = uStack_e0; *(uint *)(puVar1 + 0xc) = uStack_d8; *(undefined *)((long)puStack_20 + 99) = 0; printLine(puStack_20); return; }
['gcc']
17,890
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_11_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64122/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_11.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_11_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_11_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
17,891
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_12_bad() { char * data; char dataBadBuffer[50]; char dataGoodBuffer[100]; 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; data[0] = '\0'; /* null terminate */ } else { /* FIX: Set a pointer to a "large" buffer, thus avoiding buffer overflows in the sinks. */ data = dataGoodBuffer; data[0] = '\0'; /* null terminate */ } { char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ memcpy(data, source, 100*sizeof(char)); data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(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. */', '/* null terminate */', '/* FIX: Set a pointer to a "large" buffer, thus avoiding buffer overflows in the sinks. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64123/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_12.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_12_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_12_bad(void) { undefined8 *puVar1; int iVar2; undefined8 uStack_138; undefined8 uStack_130; undefined8 uStack_128; undefined8 uStack_120; undefined8 uStack_118; undefined8 uStack_110; undefined8 uStack_108; undefined8 uStack_100; undefined8 uStack_f8; undefined8 uStack_f0; undefined8 uStack_e8; undefined8 uStack_e0; uint uStack_d8; undefined uStack_c8; undefined uStack_58; undefined8 *puStack_20; iVar2 = globalReturnsTrueOrFalse(); if (iVar2 == 0) { puStack_20 = (undefined8 *)&uStack_c8; uStack_c8 = 0; } else { puStack_20 = (undefined8 *)&uStack_58; uStack_58 = 0; } func_0x00400a10(&uStack_138,0x43,99); puVar1 = puStack_20; uStack_d8 = uStack_d8 & 0xffffff; *puStack_20 = uStack_138; puVar1[1] = uStack_130; puVar1[2] = uStack_128; puVar1[3] = uStack_120; puVar1[4] = uStack_118; puVar1[5] = uStack_110; puVar1[6] = uStack_108; puVar1[7] = uStack_100; puVar1[8] = uStack_f8; puVar1[9] = uStack_f0; puVar1[10] = uStack_e8; puVar1[0xb] = uStack_e0; *(uint *)(puVar1 + 0xc) = uStack_d8; *(undefined *)((long)puStack_20 + 99) = 0; printLine(puStack_20); return; }
['gcc']
17,892
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_12_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64123/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_12.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_12_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_12_good(void) { goodG2B(); return; }
['gcc']
17,893
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_13_bad() { char * data; char dataBadBuffer[50]; char dataGoodBuffer[100]; 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; data[0] = '\0'; /* null terminate */ } { char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ memcpy(data, source, 100*sizeof(char)); data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(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. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64124/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_13.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_13_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_13_bad(void) { undefined8 *puVar1; undefined8 uStack_138; undefined8 uStack_130; undefined8 uStack_128; undefined8 uStack_120; undefined8 uStack_118; undefined8 uStack_110; undefined8 uStack_108; undefined8 uStack_100; undefined8 uStack_f8; undefined8 uStack_f0; undefined8 uStack_e8; undefined8 uStack_e0; uint uStack_d8; undefined uStack_58; undefined8 *puStack_20; if (GLOBAL_CONST_FIVE == 5) { puStack_20 = (undefined8 *)&uStack_58; uStack_58 = 0; } func_0x00400a10(&uStack_138,0x43,99); puVar1 = puStack_20; uStack_d8 = uStack_d8 & 0xffffff; *puStack_20 = uStack_138; puVar1[1] = uStack_130; puVar1[2] = uStack_128; puVar1[3] = uStack_120; puVar1[4] = uStack_118; puVar1[5] = uStack_110; puVar1[6] = uStack_108; puVar1[7] = uStack_100; puVar1[8] = uStack_f8; puVar1[9] = uStack_f0; puVar1[10] = uStack_e8; puVar1[0xb] = uStack_e0; *(uint *)(puVar1 + 0xc) = uStack_d8; *(undefined *)((long)puStack_20 + 99) = 0; printLine(puStack_20); return; }
['gcc']
17,894
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_13_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64124/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_13.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_13_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_13_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
17,895
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_14_bad() { char * data; char dataBadBuffer[50]; char dataGoodBuffer[100]; 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; data[0] = '\0'; /* null terminate */ } { char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ memcpy(data, source, 100*sizeof(char)); data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(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. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64125/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_14.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_14_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_14_bad(void) { undefined8 *puVar1; undefined8 uStack_138; undefined8 uStack_130; undefined8 uStack_128; undefined8 uStack_120; undefined8 uStack_118; undefined8 uStack_110; undefined8 uStack_108; undefined8 uStack_100; undefined8 uStack_f8; undefined8 uStack_f0; undefined8 uStack_e8; undefined8 uStack_e0; uint uStack_d8; undefined uStack_58; undefined8 *puStack_20; if (globalFive == 5) { puStack_20 = (undefined8 *)&uStack_58; uStack_58 = 0; } func_0x00400a10(&uStack_138,0x43,99); puVar1 = puStack_20; uStack_d8 = uStack_d8 & 0xffffff; *puStack_20 = uStack_138; puVar1[1] = uStack_130; puVar1[2] = uStack_128; puVar1[3] = uStack_120; puVar1[4] = uStack_118; puVar1[5] = uStack_110; puVar1[6] = uStack_108; puVar1[7] = uStack_100; puVar1[8] = uStack_f8; puVar1[9] = uStack_f0; puVar1[10] = uStack_e8; puVar1[0xb] = uStack_e0; *(uint *)(puVar1 + 0xc) = uStack_d8; *(undefined *)((long)puStack_20 + 99) = 0; printLine(puStack_20); return; }
['gcc']
17,896
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_14_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64125/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_14.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_14_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_14_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
17,897
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_15_bad() { char * data; char dataBadBuffer[50]; char dataGoodBuffer[100]; 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; data[0] = '\0'; /* null terminate */ break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } { char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ memcpy(data, source, 100*sizeof(char)); data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(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. */', '/* null terminate */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64126/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_15.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_15_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_15_bad(void) { undefined8 *puVar1; undefined8 uStack_138; undefined8 uStack_130; undefined8 uStack_128; undefined8 uStack_120; undefined8 uStack_118; undefined8 uStack_110; undefined8 uStack_108; undefined8 uStack_100; undefined8 uStack_f8; undefined8 uStack_f0; undefined8 uStack_e8; undefined8 uStack_e0; uint uStack_d8; undefined uStack_58; undefined8 *puStack_20; puStack_20 = (undefined8 *)&uStack_58; uStack_58 = 0; func_0x00400a10(&uStack_138,0x43,99); puVar1 = puStack_20; uStack_d8 = uStack_d8 & 0xffffff; *puStack_20 = uStack_138; puVar1[1] = uStack_130; puVar1[2] = uStack_128; puVar1[3] = uStack_120; puVar1[4] = uStack_118; puVar1[5] = uStack_110; puVar1[6] = uStack_108; puVar1[7] = uStack_100; puVar1[8] = uStack_f8; puVar1[9] = uStack_f0; puVar1[10] = uStack_e8; puVar1[0xb] = uStack_e0; *(uint *)(puVar1 + 0xc) = uStack_d8; *(undefined *)((long)puStack_20 + 99) = 0; printLine(puStack_20); return; }
['gcc']
17,898
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_15_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64126/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_15.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_15_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_15_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
17,899
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_16_bad() { char * data; char dataBadBuffer[50]; char dataGoodBuffer[100]; 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; data[0] = '\0'; /* null terminate */ break; } { char source[100]; memset(source, 'C', 100-1); /* fill with 'C's */ source[100-1] = '\0'; /* null terminate */ /* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */ memcpy(data, source, 100*sizeof(char)); data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */ printLine(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. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64127/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_16.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_16_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_16_bad(void) { undefined8 *puVar1; undefined8 uStack_138; undefined8 uStack_130; undefined8 uStack_128; undefined8 uStack_120; undefined8 uStack_118; undefined8 uStack_110; undefined8 uStack_108; undefined8 uStack_100; undefined8 uStack_f8; undefined8 uStack_f0; undefined8 uStack_e8; undefined8 uStack_e0; uint uStack_d8; undefined uStack_58; undefined8 *puStack_20; puStack_20 = (undefined8 *)&uStack_58; uStack_58 = 0; func_0x00400a10(&uStack_138,0x43,99); puVar1 = puStack_20; uStack_d8 = uStack_d8 & 0xffffff; *puStack_20 = uStack_138; puVar1[1] = uStack_130; puVar1[2] = uStack_128; puVar1[3] = uStack_120; puVar1[4] = uStack_118; puVar1[5] = uStack_110; puVar1[6] = uStack_108; puVar1[7] = uStack_100; puVar1[8] = uStack_f8; puVar1[9] = uStack_f0; puVar1[10] = uStack_e8; puVar1[0xb] = uStack_e0; *(uint *)(puVar1 + 0xc) = uStack_d8; *(undefined *)((long)puStack_20 + 99) = 0; printLine(puStack_20); return; }
['gcc']