Unnamed: 0
int64
0
56k
source_code
stringlengths
55
5.98k
comments
stringlengths
2
1.76k
label
stringclasses
68 values
dataset_name
stringclasses
1 value
file_name
stringlengths
208
265
function
stringlengths
27
87
decompiled_code
stringlengths
68
3.97k
compiler_options
stringclasses
1 value
18,200
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_18_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64249/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_18.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_18_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_18_good(void) { goodG2B(); return; }
['gcc']
18,201
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_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; { 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 */ strncpy(data, source, 100-1); 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/64250/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_31.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_31_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_31_bad(void) { undefined auStack_138 [99]; undefined uStack_d5; undefined auStack_58 [56]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_58; auStack_58[0] = 0; puStack_18 = puStack_20; puStack_10 = puStack_20; func_0x00400a60(auStack_138,0x43,99); uStack_d5 = 0; func_0x00400a20(puStack_20,auStack_138,99); puStack_20[99] = 0; printLine(puStack_20); return; }
['gcc']
18,202
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_31_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64250/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_31.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_31_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_31_good(void) { goodG2B(); return; }
['gcc']
18,203
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_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; { 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 */ strncpy(data, source, 100-1); 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/64251/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_32.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_32_bad
/* WARNING: Heritage AFTER dead removal. Example location: s0xffffffffffffffd0 : 0x00400c16 */ /* WARNING: Restarted to delay deadcode elimination for space: stack */ void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_32_bad(void) { undefined auStack_148 [99]; undefined uStack_e5; undefined auStack_68 [56]; long lStack_30; long lStack_28; undefined *puStack_20; long *plStack_18; long *plStack_10; plStack_10 = &lStack_30; plStack_18 = &lStack_30; puStack_20 = auStack_68; auStack_68[0] = 0; lStack_28 = lStack_30; func_0x00400a60(auStack_148,0x43,99); uStack_e5 = 0; func_0x00400a20(lStack_28,auStack_148,99); *(undefined *)(lStack_28 + 99) = 0; printLine(lStack_28); return; }
['gcc']
18,204
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_32_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64251/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_32.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_32_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_32_good(void) { goodG2B(); return; }
['gcc']
18,205
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_34_bad() { char * data; CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_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; { 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 */ strncpy(data, source, 100-1); 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/64253/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_34.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_34_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_34_bad(void) { undefined auStack_138 [99]; undefined uStack_d5; undefined auStack_58 [56]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_58; auStack_58[0] = 0; puStack_18 = puStack_20; puStack_10 = puStack_20; func_0x00400a60(auStack_138,0x43,99); uStack_d5 = 0; func_0x00400a20(puStack_18,auStack_138,99); puStack_18[99] = 0; printLine(puStack_18); return; }
['gcc']
18,206
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_34_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64253/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_34.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_34_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_34_good(void) { goodG2B(); return; }
['gcc']
18,207
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_41_badSink(char * data) { { 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 */ strncpy(data, source, 100-1); 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/64254/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_41_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_41_badSink(long param_1) { undefined auStack_78 [99]; undefined uStack_15; func_0x00400a60(auStack_78,0x43,99); uStack_15 = 0; func_0x00400a20(param_1,auStack_78,99); *(undefined *)(param_1 + 99) = 0; printLine(param_1); return; }
['gcc']
18,208
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_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_ncpy_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/64254/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_41_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_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_ncpy_41_badSink(puStack_10); return; }
['gcc']
18,209
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_41_goodG2BSink(char * data) { { 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 */ strncpy(data, source, 100-1); 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/64254/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_41_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_41_goodG2BSink(long param_1) { undefined auStack_78 [99]; undefined uStack_15; func_0x00400a60(auStack_78,0x43,99); uStack_15 = 0; func_0x00400a20(param_1,auStack_78,99); *(undefined *)(param_1 + 99) = 0; printLine(param_1); return; }
['gcc']
18,210
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_41_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64254/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_41_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_41_good(void) { goodG2B(); return; }
['gcc']
18,211
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_44_bad() { char * data; /* define a function pointer */ void (*funcPtr) (char *) = 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/64255/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_44.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_44_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_44_bad(void) { undefined auStack_58 [64]; undefined *puStack_18; code *pcStack_10; pcStack_10 = badSink; puStack_18 = auStack_58; auStack_58[0] = 0; badSink(puStack_18); return; }
['gcc']
18,212
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_44_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64255/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_44.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_44_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_44_good(void) { goodG2B(); return; }
['gcc']
18,213
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_45_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_ncpy_45_badData = data; badSink(); }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64256/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_45.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_45_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_45_bad(void) { undefined auStack_48 [56]; undefined *puStack_10; CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_45_badData = auStack_48; auStack_48[0] = 0; puStack_10 = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_45_badData; badSink(); return; }
['gcc']
18,214
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_45_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64256/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_45.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_45_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_45_good(void) { goodG2B(); return; }
['gcc']
18,215
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_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_ncpy_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/64257/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_51a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_51_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_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_ncpy_51b_badSink(puStack_10); return; }
['gcc']
18,216
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_51_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64257/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_51a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_51_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_51_good(void) { goodG2B(); return; }
['gcc']
18,217
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_51b_badSink(char * data) { { 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 */ strncpy(data, source, 100-1); 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/64257/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_51b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_51b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_51b_badSink(long param_1) { undefined auStack_78 [99]; undefined uStack_15; func_0x00400a60(auStack_78,0x43,99); uStack_15 = 0; func_0x00400a20(param_1,auStack_78,99); *(undefined *)(param_1 + 99) = 0; printLine(param_1); return; }
['gcc']
18,218
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_51b_goodG2BSink(char * data) { { 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 */ strncpy(data, source, 100-1); 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/64257/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_51b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_51b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_51b_goodG2BSink(long param_1) { undefined auStack_78 [99]; undefined uStack_15; func_0x00400a60(auStack_78,0x43,99); uStack_15 = 0; func_0x00400a20(param_1,auStack_78,99); *(undefined *)(param_1 + 99) = 0; printLine(param_1); return; }
['gcc']
18,219
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_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_ncpy_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/64258/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_52a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_52_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_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_ncpy_52b_badSink(puStack_10); return; }
['gcc']
18,220
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_52_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64258/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_52a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_52_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_52_good(void) { goodG2B(); return; }
['gcc']
18,221
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_52b_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_52c_badSink(data); }
[]
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64258/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_52b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_52b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_52b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_52c_badSink(param_1); return; }
['gcc']
18,222
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_52b_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_52c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64258/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_52b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_52b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_52b_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_52c_goodG2BSink(param_1); return; }
['gcc']
18,223
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_52c_badSink(char * data) { { 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 */ strncpy(data, source, 100-1); 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/64258/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_52c.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_52c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_52c_badSink(long param_1) { undefined auStack_78 [99]; undefined uStack_15; func_0x00400a60(auStack_78,0x43,99); uStack_15 = 0; func_0x00400a20(param_1,auStack_78,99); *(undefined *)(param_1 + 99) = 0; printLine(param_1); return; }
['gcc']
18,224
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_52c_goodG2BSink(char * data) { { 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 */ strncpy(data, source, 100-1); 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/64258/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_52c.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_52c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_52c_goodG2BSink(long param_1) { undefined auStack_78 [99]; undefined uStack_15; func_0x00400a60(auStack_78,0x43,99); uStack_15 = 0; func_0x00400a20(param_1,auStack_78,99); *(undefined *)(param_1 + 99) = 0; printLine(param_1); return; }
['gcc']
18,225
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_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_ncpy_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/64259/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_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_ncpy_53b_badSink(puStack_10); return; }
['gcc']
18,226
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64259/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53_good(void) { goodG2B(); return; }
['gcc']
18,227
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53b_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53c_badSink(data); }
[]
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64259/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53c_badSink(param_1); return; }
['gcc']
18,228
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53b_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64259/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53b_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53c_goodG2BSink(param_1); return; }
['gcc']
18,229
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53c_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53d_badSink(data); }
[]
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64259/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53c.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53c_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53d_badSink(param_1); return; }
['gcc']
18,230
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53c_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64259/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53c.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53c_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53d_goodG2BSink(param_1); return; }
['gcc']
18,231
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53d_badSink(char * data) { { 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 */ strncpy(data, source, 100-1); 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/64259/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53d.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53d_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53d_badSink(long param_1) { undefined auStack_78 [99]; undefined uStack_15; func_0x00400a60(auStack_78,0x43,99); uStack_15 = 0; func_0x00400a20(param_1,auStack_78,99); *(undefined *)(param_1 + 99) = 0; printLine(param_1); return; }
['gcc']
18,232
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53d_goodG2BSink(char * data) { { 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 */ strncpy(data, source, 100-1); 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/64259/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53d.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53d_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_53d_goodG2BSink(long param_1) { undefined auStack_78 [99]; undefined uStack_15; func_0x00400a60(auStack_78,0x43,99); uStack_15 = 0; func_0x00400a20(param_1,auStack_78,99); *(undefined *)(param_1 + 99) = 0; printLine(param_1); return; }
['gcc']
18,233
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_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_ncpy_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/64260/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_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_ncpy_54b_badSink(puStack_10); return; }
['gcc']
18,234
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64260/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54_good(void) { goodG2B(); return; }
['gcc']
18,235
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54b_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54c_badSink(data); }
[]
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64260/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54c_badSink(param_1); return; }
['gcc']
18,236
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54b_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64260/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54b_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54c_goodG2BSink(param_1); return; }
['gcc']
18,237
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54c_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54d_badSink(data); }
[]
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64260/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54c.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54c_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54d_badSink(param_1); return; }
['gcc']
18,238
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54c_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64260/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54c.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54c_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54d_goodG2BSink(param_1); return; }
['gcc']
18,239
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54d_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54e_badSink(data); }
[]
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64260/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54d.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54d_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54d_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54e_badSink(param_1); return; }
['gcc']
18,240
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54d_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54e_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64260/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54d.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54d_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54d_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54e_goodG2BSink(param_1); return; }
['gcc']
18,241
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54e_badSink(char * data) { { 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 */ strncpy(data, source, 100-1); 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/64260/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54e.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54e_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54e_badSink(long param_1) { undefined auStack_78 [99]; undefined uStack_15; func_0x00400a60(auStack_78,0x43,99); uStack_15 = 0; func_0x00400a20(param_1,auStack_78,99); *(undefined *)(param_1 + 99) = 0; printLine(param_1); return; }
['gcc']
18,242
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54e_goodG2BSink(char * data) { { 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 */ strncpy(data, source, 100-1); 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/64260/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54e.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54e_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_54e_goodG2BSink(long param_1) { undefined auStack_78 [99]; undefined uStack_15; func_0x00400a60(auStack_78,0x43,99); uStack_15 = 0; func_0x00400a20(param_1,auStack_78,99); *(undefined *)(param_1 + 99) = 0; printLine(param_1); return; }
['gcc']
18,243
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_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_ncpy_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/64261/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_63a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_63_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_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_ncpy_63b_badSink(&puStack_10); return; }
['gcc']
18,244
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_63_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64261/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_63a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_63_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_63_good(void) { goodG2B(); return; }
['gcc']
18,245
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_63b_badSink(char * * dataPtr) { char * data = *dataPtr; { 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 */ strncpy(data, source, 100-1); 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/64261/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_63b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_63b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_63b_badSink(long *param_1) { undefined auStack_78 [99]; undefined uStack_15; long lStack_10; lStack_10 = *param_1; func_0x00400a60(auStack_78,0x43,99); uStack_15 = 0; func_0x00400a20(lStack_10,auStack_78,99); *(undefined *)(lStack_10 + 99) = 0; printLine(lStack_10); return; }
['gcc']
18,246
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_63b_goodG2BSink(char * * dataPtr) { char * data = *dataPtr; { 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 */ strncpy(data, source, 100-1); 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/64261/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_63b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_63b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_63b_goodG2BSink(long *param_1) { undefined auStack_78 [99]; undefined uStack_15; long lStack_10; lStack_10 = *param_1; func_0x00400a60(auStack_78,0x43,99); uStack_15 = 0; func_0x00400a20(lStack_10,auStack_78,99); *(undefined *)(lStack_10 + 99) = 0; printLine(lStack_10); return; }
['gcc']
18,247
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_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_ncpy_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/64262/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_64a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_64_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_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_ncpy_64b_badSink(&puStack_10); return; }
['gcc']
18,248
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_64_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64262/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_64a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_64_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_64_good(void) { goodG2B(); return; }
['gcc']
18,249
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_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); { 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 */ strncpy(data, source, 100-1); 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/64262/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_64b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_64b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_64b_badSink(long *param_1) { undefined auStack_88 [99]; undefined uStack_25; long lStack_18; long *plStack_10; lStack_18 = *param_1; plStack_10 = param_1; func_0x00400a60(auStack_88,0x43,99); uStack_25 = 0; func_0x00400a20(lStack_18,auStack_88,99); *(undefined *)(lStack_18 + 99) = 0; printLine(lStack_18); return; }
['gcc']
18,250
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_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); { 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 */ strncpy(data, source, 100-1); 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/64262/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_64b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_64b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_64b_goodG2BSink(long *param_1) { undefined auStack_88 [99]; undefined uStack_25; long lStack_18; long *plStack_10; lStack_18 = *param_1; plStack_10 = param_1; func_0x00400a60(auStack_88,0x43,99); uStack_25 = 0; func_0x00400a20(lStack_18,auStack_88,99); *(undefined *)(lStack_18 + 99) = 0; printLine(lStack_18); return; }
['gcc']
18,251
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_65_bad() { char * data; /* define a function pointer */ void (*funcPtr) (char *) = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_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/64263/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_65a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_65_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_65_bad(void) { undefined auStack_58 [64]; undefined *puStack_18; code *pcStack_10; pcStack_10 = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_65b_badSink; puStack_18 = auStack_58; auStack_58[0] = 0; CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_65b_badSink(puStack_18); return; }
['gcc']
18,252
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_65_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64263/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_65a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_65_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_65_good(void) { goodG2B(); return; }
['gcc']
18,253
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_65b_badSink(char * data) { { 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 */ strncpy(data, source, 100-1); 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/64263/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_65b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_65b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_65b_badSink(long param_1) { undefined auStack_78 [99]; undefined uStack_15; func_0x00400a60(auStack_78,0x43,99); uStack_15 = 0; func_0x00400a20(param_1,auStack_78,99); *(undefined *)(param_1 + 99) = 0; printLine(param_1); return; }
['gcc']
18,254
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_65b_goodG2BSink(char * data) { { 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 */ strncpy(data, source, 100-1); 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/64263/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_65b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_65b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_65b_goodG2BSink(long param_1) { undefined auStack_78 [99]; undefined uStack_15; func_0x00400a60(auStack_78,0x43,99); uStack_15 = 0; func_0x00400a20(param_1,auStack_78,99); *(undefined *)(param_1 + 99) = 0; printLine(param_1); return; }
['gcc']
18,255
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_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_ncpy_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/64264/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_66a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_66_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_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_ncpy_66b_badSink(auStack_38); return; }
['gcc']
18,256
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_66_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64264/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_66a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_66_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_66_good(void) { goodG2B(); return; }
['gcc']
18,257
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_66b_badSink(char * dataArray[]) { /* copy data out of dataArray */ char * data = dataArray[2]; { 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 */ strncpy(data, source, 100-1); 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/64264/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_66b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_66b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_66b_badSink(long param_1) { undefined auStack_78 [99]; undefined uStack_15; long lStack_10; lStack_10 = *(long *)(param_1 + 0x10); func_0x00400a60(auStack_78,0x43,99); uStack_15 = 0; func_0x00400a20(lStack_10,auStack_78,99); *(undefined *)(lStack_10 + 99) = 0; printLine(lStack_10); return; }
['gcc']
18,258
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_66b_goodG2BSink(char * dataArray[]) { char * data = dataArray[2]; { 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 */ strncpy(data, source, 100-1); 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/64264/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_66b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_66b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_66b_goodG2BSink(long param_1) { undefined auStack_78 [99]; undefined uStack_15; long lStack_10; lStack_10 = *(long *)(param_1 + 0x10); func_0x00400a60(auStack_78,0x43,99); uStack_15 = 0; func_0x00400a20(lStack_10,auStack_78,99); *(undefined *)(lStack_10 + 99) = 0; printLine(lStack_10); return; }
['gcc']
18,259
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_67_bad() { char * data; CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_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_ncpy_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/64265/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_67a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_67_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_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_ncpy_67b_badSink(puStack_18); return; }
['gcc']
18,260
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_67_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64265/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_67a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_67_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_67_good(void) { goodG2B(); return; }
['gcc']
18,261
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_67b_badSink(CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_67_structType myStruct) { char * data = myStruct.structFirst; { 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 */ strncpy(data, source, 100-1); 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/64265/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_67b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_67b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_67b_badSink(long param_1) { undefined auStack_78 [99]; undefined uStack_15; long lStack_10; lStack_10 = param_1; func_0x00400a60(auStack_78,0x43,99); uStack_15 = 0; func_0x00400a20(lStack_10,auStack_78,99); *(undefined *)(lStack_10 + 99) = 0; printLine(lStack_10); return; }
['gcc']
18,262
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_67b_goodG2BSink(CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_67_structType myStruct) { char * data = myStruct.structFirst; { 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 */ strncpy(data, source, 100-1); 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/64265/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_67b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_67b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_67b_goodG2BSink(long param_1) { undefined auStack_78 [99]; undefined uStack_15; long lStack_10; lStack_10 = param_1; func_0x00400a60(auStack_78,0x43,99); uStack_15 = 0; func_0x00400a20(lStack_10,auStack_78,99); *(undefined *)(lStack_10 + 99) = 0; printLine(lStack_10); return; }
['gcc']
18,263
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_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_ncpy_68_badData = data; CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_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/64266/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_68a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_68_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_68_bad(void) { undefined auStack_48 [56]; undefined *puStack_10; CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_68_badData = auStack_48; auStack_48[0] = 0; puStack_10 = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_68_badData; CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_68b_badSink(); return; }
['gcc']
18,264
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_68_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64266/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_68a.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_68_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_68_good(void) { goodG2B(); return; }
['gcc']
18,265
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_68b_badSink() { char * data = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_68_badData; { 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 */ strncpy(data, source, 100-1); 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/64266/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_68b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_68b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_68b_badSink(void) { undefined auStack_78 [99]; undefined uStack_15; long lStack_10; lStack_10 = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_68_badData; func_0x00400a60(auStack_78,0x43,99); uStack_15 = 0; func_0x00400a20(lStack_10,auStack_78,99); *(undefined *)(lStack_10 + 99) = 0; printLine(lStack_10); return; }
['gcc']
18,266
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_68b_goodG2BSink() { char * data = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_68_goodG2BData; { 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 */ strncpy(data, source, 100-1); 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/64266/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_68b.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_68b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_68b_goodG2BSink(void) { undefined auStack_78 [99]; undefined uStack_15; long lStack_10; lStack_10 = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_68_goodG2BData; func_0x00400a60(auStack_78,0x43,99); uStack_15 = 0; func_0x00400a20(lStack_10,auStack_78,99); *(undefined *)(lStack_10 + 99) = 0; printLine(lStack_10); return; }
['gcc']
18,267
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_02_bad() { int64_t * data; int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t)); int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t)); 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; } { int64_t source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int64_t)); printLongLongLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64353/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_02.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_02_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_02_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_810 [816]; undefined8 auStack_4e0 [51]; undefined8 auStack_348 [101]; undefined8 *puStack_20; undefined *puStack_18; undefined8 *puStack_10; puStack_20 = auStack_4e0; puStack_18 = auStack_810; puVar2 = auStack_348; puStack_10 = puStack_20; for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_20,auStack_348,800); printLongLongLine(*puStack_20); return; }
['gcc']
18,268
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_02_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64353/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_02.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_02_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_02_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
18,269
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_03_bad() { int64_t * data; int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t)); int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t)); 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; } { int64_t source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int64_t)); printLongLongLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64354/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_03.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_03_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_03_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_810 [816]; undefined8 auStack_4e0 [51]; undefined8 auStack_348 [101]; undefined8 *puStack_20; undefined *puStack_18; undefined8 *puStack_10; puStack_20 = auStack_4e0; puStack_18 = auStack_810; puVar2 = auStack_348; puStack_10 = puStack_20; for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_20,auStack_348,800); printLongLongLine(*puStack_20); return; }
['gcc']
18,270
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_03_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64354/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_03.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_03_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_03_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
18,271
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_04_bad() { int64_t * data; int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t)); int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t)); 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; } { int64_t source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int64_t)); printLongLongLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64355/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_04.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_04_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_04_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_810 [816]; undefined8 auStack_4e0 [51]; undefined8 auStack_348 [101]; undefined *puStack_20; undefined8 *puStack_18; undefined8 *puStack_10; puStack_18 = auStack_4e0; puStack_20 = auStack_810; puVar2 = auStack_348; puStack_10 = puStack_18; for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_10,auStack_348,800); printLongLongLine(*puStack_10); return; }
['gcc']
18,272
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_04_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64355/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_04.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_04_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_04_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
18,273
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_05_bad() { int64_t * data; int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t)); int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t)); 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; } { int64_t source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int64_t)); printLongLongLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64356/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_05.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_05_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_05_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_810 [816]; undefined8 auStack_4e0 [51]; undefined8 auStack_348 [101]; undefined *puStack_20; undefined8 *puStack_18; undefined8 *puStack_10; puStack_18 = auStack_4e0; puStack_20 = auStack_810; if (staticTrue != 0) { puStack_10 = puStack_18; } puVar2 = auStack_348; for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_10,auStack_348,800); printLongLongLine(*puStack_10); return; }
['gcc']
18,274
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_05_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64356/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_05.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_05_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_05_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
18,275
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_06_bad() { int64_t * data; int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t)); int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t)); 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; } { int64_t source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int64_t)); printLongLongLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64357/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_06.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_06_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_06_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_810 [816]; undefined8 auStack_4e0 [51]; undefined8 auStack_348 [101]; undefined *puStack_20; undefined8 *puStack_18; undefined8 *puStack_10; puStack_18 = auStack_4e0; puStack_20 = auStack_810; puVar2 = auStack_348; puStack_10 = puStack_18; for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_10,auStack_348,800); printLongLongLine(*puStack_10); return; }
['gcc']
18,276
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_06_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64357/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_06.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_06_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_06_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
18,277
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_07_bad() { int64_t * data; int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t)); int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t)); 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; } { int64_t source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int64_t)); printLongLongLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64358/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_07.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_07_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_07_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_810 [816]; undefined8 auStack_4e0 [51]; undefined8 auStack_348 [101]; undefined *puStack_20; undefined8 *puStack_18; undefined8 *puStack_10; puStack_18 = auStack_4e0; puStack_20 = auStack_810; if (staticFive == 5) { puStack_10 = puStack_18; } puVar2 = auStack_348; for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_10,auStack_348,800); printLongLongLine(*puStack_10); return; }
['gcc']
18,278
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_07_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64358/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_07.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_07_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_07_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
18,279
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_08_bad() { int64_t * data; int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t)); int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t)); 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; } { int64_t source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int64_t)); printLongLongLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64359/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_08.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_08_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_08_bad(undefined8 param_1) { int iVar1; long lVar2; undefined8 *puVar3; byte bVar4; undefined auStack_810 [816]; undefined8 auStack_4e0 [51]; undefined8 auStack_348 [101]; undefined *puStack_20; undefined8 *puStack_18; undefined8 *puStack_10; bVar4 = 0; puStack_18 = auStack_4e0; puStack_20 = auStack_810; iVar1 = staticReturnsTrue(param_1,0x10,7); if (iVar1 != 0) { puStack_10 = puStack_18; } puVar3 = auStack_348; for (lVar2 = 100; lVar2 != 0; lVar2 = lVar2 + -1) { *puVar3 = 0; puVar3 = puVar3 + (ulong)bVar4 * -2 + 1; } func_0x00400a70(puStack_10,auStack_348,800); printLongLongLine(*puStack_10); return; }
['gcc']
18,280
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_08_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64359/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_08.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_08_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_08_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
18,281
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_09_bad() { int64_t * data; int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t)); int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t)); 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; } { int64_t source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int64_t)); printLongLongLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64360/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_09.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_09_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_09_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_810 [816]; undefined8 auStack_4e0 [51]; undefined8 auStack_348 [101]; undefined *puStack_20; undefined8 *puStack_18; undefined8 *puStack_10; puStack_18 = auStack_4e0; puStack_20 = auStack_810; if (GLOBAL_CONST_TRUE != 0) { puStack_10 = puStack_18; } puVar2 = auStack_348; for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_10,auStack_348,800); printLongLongLine(*puStack_10); return; }
['gcc']
18,282
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_09_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64360/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_09.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_09_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_09_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
18,283
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_10_bad() { int64_t * data; int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t)); int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t)); 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; } { int64_t source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int64_t)); printLongLongLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64361/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_10.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_10_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_10_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_810 [816]; undefined8 auStack_4e0 [51]; undefined8 auStack_348 [101]; undefined *puStack_20; undefined8 *puStack_18; undefined8 *puStack_10; puStack_18 = auStack_4e0; puStack_20 = auStack_810; if (globalTrue != 0) { puStack_10 = puStack_18; } puVar2 = auStack_348; for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_10,auStack_348,800); printLongLongLine(*puStack_10); return; }
['gcc']
18,284
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_10_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64361/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_10.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_10_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_10_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
18,285
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_11_bad() { int64_t * data; int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t)); int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t)); 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; } { int64_t source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int64_t)); printLongLongLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64362/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_11.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_11_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_11_bad(undefined8 param_1) { int iVar1; long lVar2; undefined8 *puVar3; byte bVar4; undefined auStack_810 [816]; undefined8 auStack_4e0 [51]; undefined8 auStack_348 [101]; undefined *puStack_20; undefined8 *puStack_18; undefined8 *puStack_10; bVar4 = 0; puStack_18 = auStack_4e0; puStack_20 = auStack_810; iVar1 = globalReturnsTrue(param_1,0x10,7); if (iVar1 != 0) { puStack_10 = puStack_18; } puVar3 = auStack_348; for (lVar2 = 100; lVar2 != 0; lVar2 = lVar2 + -1) { *puVar3 = 0; puVar3 = puVar3 + (ulong)bVar4 * -2 + 1; } func_0x00400a70(puStack_10,auStack_348,800); printLongLongLine(*puStack_10); return; }
['gcc']
18,286
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_11_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64362/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_11.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_11_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_11_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
18,287
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_12_bad() { int64_t * data; int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t)); int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t)); if(globalReturnsTrueOrFalse()) { /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; } else { /* FIX: Set a pointer to a "large" buffer, thus avoiding buffer overflows in the sinks. */ data = dataGoodBuffer; } { int64_t source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int64_t)); printLongLongLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* FIX: Set a pointer to a "large" buffer, thus avoiding buffer overflows in the sinks. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64363/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_12.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_12_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_12_bad(undefined8 param_1) { int iVar1; long lVar2; undefined8 *puVar3; byte bVar4; undefined8 auStack_810 [102]; undefined8 auStack_4e0 [51]; undefined8 auStack_348 [101]; undefined8 *puStack_20; undefined8 *puStack_18; undefined8 *puStack_10; bVar4 = 0; puStack_18 = auStack_4e0; puStack_20 = auStack_810; iVar1 = globalReturnsTrueOrFalse(param_1,0x10,7); if (iVar1 == 0) { puStack_10 = puStack_20; } else { puStack_10 = puStack_18; } puVar3 = auStack_348; for (lVar2 = 100; lVar2 != 0; lVar2 = lVar2 + -1) { *puVar3 = 0; puVar3 = puVar3 + (ulong)bVar4 * -2 + 1; } func_0x00400a70(puStack_10,auStack_348,800); printLongLongLine(*puStack_10); return; }
['gcc']
18,288
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_12_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64363/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_12.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_12_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_12_good(void) { goodG2B(); return; }
['gcc']
18,289
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_13_bad() { int64_t * data; int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t)); int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t)); 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; } { int64_t source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int64_t)); printLongLongLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64364/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_13.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_13_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_13_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_810 [816]; undefined8 auStack_4e0 [51]; undefined8 auStack_348 [101]; undefined *puStack_20; undefined8 *puStack_18; undefined8 *puStack_10; puStack_18 = auStack_4e0; puStack_20 = auStack_810; if (GLOBAL_CONST_FIVE == 5) { puStack_10 = puStack_18; } puVar2 = auStack_348; for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_10,auStack_348,800); printLongLongLine(*puStack_10); return; }
['gcc']
18,290
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_13_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64364/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_13.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_13_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_13_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
18,291
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_14_bad() { int64_t * data; int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t)); int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t)); 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; } { int64_t source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int64_t)); printLongLongLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64365/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_14.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_14_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_14_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_810 [816]; undefined8 auStack_4e0 [51]; undefined8 auStack_348 [101]; undefined *puStack_20; undefined8 *puStack_18; undefined8 *puStack_10; puStack_18 = auStack_4e0; puStack_20 = auStack_810; if (globalFive == 5) { puStack_10 = puStack_18; } puVar2 = auStack_348; for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_10,auStack_348,800); printLongLongLine(*puStack_10); return; }
['gcc']
18,292
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_14_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64365/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_14.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_14_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_14_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
18,293
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_15_bad() { int64_t * data; int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t)); int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t)); switch(6) { case 6: /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } { int64_t source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int64_t)); printLongLongLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64366/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_15.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_15_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_15_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_810 [816]; undefined8 auStack_4e0 [51]; undefined8 auStack_348 [101]; undefined8 *puStack_20; undefined *puStack_18; undefined8 *puStack_10; puStack_20 = auStack_4e0; puStack_18 = auStack_810; puVar2 = auStack_348; puStack_10 = puStack_20; for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_20,auStack_348,800); printLongLongLine(*puStack_20); return; }
['gcc']
18,294
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_15_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64366/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_15.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_15_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_15_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
18,295
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_16_bad() { int64_t * data; int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t)); int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t)); while(1) { /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = dataBadBuffer; break; } { int64_t source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int64_t)); printLongLongLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64367/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_16.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_16_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_16_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_810 [816]; undefined8 auStack_4e0 [51]; undefined8 auStack_348 [101]; undefined8 *puStack_20; undefined *puStack_18; undefined8 *puStack_10; puStack_20 = auStack_4e0; puStack_18 = auStack_810; puVar2 = auStack_348; puStack_10 = puStack_20; for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_20,auStack_348,800); printLongLongLine(*puStack_20); return; }
['gcc']
18,296
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_16_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64367/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_16.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_16_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_16_good(void) { goodG2B(); return; }
['gcc']
18,297
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_17_bad() { int i; int64_t * data; int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t)); int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t)); 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; } { int64_t source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int64_t)); printLongLongLine(data[0]); } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64368/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_17.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_17_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_17_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_810 [816]; undefined8 auStack_4e0 [51]; undefined8 auStack_348 [100]; undefined *puStack_28; undefined8 *puStack_20; undefined8 *puStack_18; int iStack_c; puStack_20 = auStack_4e0; puStack_28 = auStack_810; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { puStack_18 = puStack_20; } puVar2 = auStack_348; for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_18,auStack_348,800); printLongLongLine(*puStack_18); return; }
['gcc']
18,298
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_17_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64368/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_17.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_17_good
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_17_good(void) { goodG2B(); return; }
['gcc']
18,299
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_31_bad() { int64_t * data; int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t)); int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t)); /* 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; { int64_t * dataCopy = data; int64_t * data = dataCopy; { int64_t source[100] = {0}; /* fill with 0's */ /* POTENTIAL FLAW: Possible buffer overflow if data < 100 */ memcpy(data, source, 100*sizeof(int64_t)); printLongLongLine(data[0]); } } }
['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */']
['CWE121', 'CWE805']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64370/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_31.c
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_31_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_31_bad(void) { long lVar1; undefined8 *puVar2; undefined auStack_820 [816]; undefined8 auStack_4f0 [51]; undefined8 auStack_358 [101]; undefined8 *puStack_30; undefined8 *puStack_28; undefined8 *puStack_20; undefined *puStack_18; undefined8 *puStack_10; puStack_30 = auStack_4f0; puStack_18 = auStack_820; puVar2 = auStack_358; puStack_28 = puStack_30; puStack_20 = puStack_30; puStack_10 = puStack_30; for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } func_0x00400a70(puStack_30,auStack_358,800); printLongLongLine(*puStack_30); return; }
['gcc']