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
16,200
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_05_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63236/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_05.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_05_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_05_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,201
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_06_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; if(STATIC_CONST_FIVE==5) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63237/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_06.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_06_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_06_bad(void) { undefined8 uStack_30; undefined2 uStack_28; undefined uStack_26; undefined auStack_1a [10]; undefined *puStack_10; puStack_10 = auStack_1a; auStack_1a[0] = 0; uStack_30 = 0x4141414141414141; uStack_28 = 0x4141; uStack_26 = 0; func_0x004009e0(puStack_10,&uStack_30); printLine(puStack_10); return; }
['gcc']
16,202
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_06_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63237/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_06.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_06_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_06_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,203
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_07_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; if(staticFive==5) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63238/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_07.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_07_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_07_bad(void) { undefined8 uStack_30; undefined2 uStack_28; undefined uStack_26; undefined auStack_1a [10]; undefined *puStack_10; if (staticFive == 5) { puStack_10 = auStack_1a; auStack_1a[0] = 0; } uStack_30 = 0x4141414141414141; uStack_28 = 0x4141; uStack_26 = 0; func_0x004009e0(puStack_10,&uStack_30); printLine(puStack_10); return; }
['gcc']
16,204
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_07_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63238/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_07.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_07_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_07_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,205
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_08_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; if(staticReturnsTrue()) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63239/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_08.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_08_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_08_bad(void) { int iVar1; undefined8 uStack_30; undefined2 uStack_28; undefined uStack_26; undefined auStack_1a [10]; undefined *puStack_10; iVar1 = staticReturnsTrue(); if (iVar1 != 0) { puStack_10 = auStack_1a; auStack_1a[0] = 0; } uStack_30 = 0x4141414141414141; uStack_28 = 0x4141; uStack_26 = 0; func_0x004009e0(puStack_10,&uStack_30); printLine(puStack_10); return; }
['gcc']
16,206
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_08_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63239/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_08.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_08_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_08_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,207
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_09_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; if(GLOBAL_CONST_TRUE) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63240/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_09.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_09_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_09_bad(void) { undefined8 uStack_30; undefined2 uStack_28; undefined uStack_26; undefined auStack_1a [10]; undefined *puStack_10; if (GLOBAL_CONST_TRUE != 0) { puStack_10 = auStack_1a; auStack_1a[0] = 0; } uStack_30 = 0x4141414141414141; uStack_28 = 0x4141; uStack_26 = 0; func_0x004009e0(puStack_10,&uStack_30); printLine(puStack_10); return; }
['gcc']
16,208
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_09_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63240/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_09.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_09_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_09_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,209
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_10_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; if(globalTrue) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63241/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_10.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_10_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_10_bad(void) { undefined8 uStack_30; undefined2 uStack_28; undefined uStack_26; undefined auStack_1a [10]; undefined *puStack_10; if (globalTrue != 0) { puStack_10 = auStack_1a; auStack_1a[0] = 0; } uStack_30 = 0x4141414141414141; uStack_28 = 0x4141; uStack_26 = 0; func_0x004009e0(puStack_10,&uStack_30); printLine(puStack_10); return; }
['gcc']
16,210
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_10_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63241/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_10.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_10_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_10_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,211
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_11_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; if(globalReturnsTrue()) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63242/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_11.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_11_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_11_bad(void) { int iVar1; undefined8 uStack_30; undefined2 uStack_28; undefined uStack_26; undefined auStack_1a [10]; undefined *puStack_10; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { puStack_10 = auStack_1a; auStack_1a[0] = 0; } uStack_30 = 0x4141414141414141; uStack_28 = 0x4141; uStack_26 = 0; func_0x004009e0(puStack_10,&uStack_30); printLine(puStack_10); return; }
['gcc']
16,212
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_11_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63242/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_11.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_11_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_11_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,213
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_12_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; if(globalReturnsTrueOrFalse()) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } else { /* FIX: Set a pointer to a buffer that leaves room for a NULL terminator when performing * string copies in the sinks */ data = dataGoodBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* FIX: Set a pointer to a buffer that leaves room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63243/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_12.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_12_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_12_bad(void) { int iVar1; undefined8 uStack_30; undefined2 uStack_28; undefined uStack_26; undefined auStack_25 [11]; undefined auStack_1a [10]; undefined *puStack_10; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { puStack_10 = auStack_25; auStack_25[0] = 0; } else { puStack_10 = auStack_1a; auStack_1a[0] = 0; } uStack_30 = 0x4141414141414141; uStack_28 = 0x4141; uStack_26 = 0; func_0x004009e0(puStack_10,&uStack_30); printLine(puStack_10); return; }
['gcc']
16,214
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_12_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63243/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_12.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_12_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_12_good(void) { goodG2B(); return; }
['gcc']
16,215
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_13_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; if(GLOBAL_CONST_FIVE==5) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63244/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_13.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_13_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_13_bad(void) { undefined8 uStack_30; undefined2 uStack_28; undefined uStack_26; undefined auStack_1a [10]; undefined *puStack_10; if (GLOBAL_CONST_FIVE == 5) { puStack_10 = auStack_1a; auStack_1a[0] = 0; } uStack_30 = 0x4141414141414141; uStack_28 = 0x4141; uStack_26 = 0; func_0x004009e0(puStack_10,&uStack_30); printLine(puStack_10); return; }
['gcc']
16,216
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_13_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63244/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_13.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_13_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_13_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,217
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_14_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; if(globalFive==5) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63245/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_14.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_14_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_14_bad(void) { undefined8 uStack_30; undefined2 uStack_28; undefined uStack_26; undefined auStack_1a [10]; undefined *puStack_10; if (globalFive == 5) { puStack_10 = auStack_1a; auStack_1a[0] = 0; } uStack_30 = 0x4141414141414141; uStack_28 = 0x4141; uStack_26 = 0; func_0x004009e0(puStack_10,&uStack_30); printLine(puStack_10); return; }
['gcc']
16,218
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_14_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63245/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_14.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_14_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_14_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,219
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_15_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; switch(6) { case 6: /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63246/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_15.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_15_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_15_bad(void) { undefined8 uStack_30; undefined2 uStack_28; undefined uStack_26; undefined auStack_1a [10]; undefined *puStack_10; puStack_10 = auStack_1a; auStack_1a[0] = 0; uStack_30 = 0x4141414141414141; uStack_28 = 0x4141; uStack_26 = 0; func_0x004009e0(puStack_10,&uStack_30); printLine(puStack_10); return; }
['gcc']
16,220
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_15_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63246/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_15.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_15_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_15_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,221
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_16_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; while(1) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ break; } { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63247/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_16.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_16_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_16_bad(void) { undefined8 uStack_30; undefined2 uStack_28; undefined uStack_26; undefined auStack_1a [10]; undefined *puStack_10; puStack_10 = auStack_1a; auStack_1a[0] = 0; uStack_30 = 0x4141414141414141; uStack_28 = 0x4141; uStack_26 = 0; func_0x004009e0(puStack_10,&uStack_30); printLine(puStack_10); return; }
['gcc']
16,222
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_16_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63247/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_16.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_16_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_16_good(void) { goodG2B(); return; }
['gcc']
16,223
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_17_bad() { int i; char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; for(i = 0; i < 1; i++) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63248/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_17.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_17_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_17_bad(void) { undefined8 uStack_38; undefined2 uStack_30; undefined uStack_2e; undefined auStack_22 [10]; undefined *puStack_18; int iStack_c; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { puStack_18 = auStack_22; auStack_22[0] = 0; } uStack_38 = 0x4141414141414141; uStack_30 = 0x4141; uStack_2e = 0; func_0x004009e0(puStack_18,&uStack_38); printLine(puStack_18); return; }
['gcc']
16,224
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_17_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63248/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_17.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_17_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_17_good(void) { goodG2B(); return; }
['gcc']
16,225
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_18_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; goto source; source: /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63249/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_18.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_18_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_18_bad(void) { undefined8 uStack_30; undefined2 uStack_28; undefined uStack_26; undefined auStack_1a [10]; undefined *puStack_10; puStack_10 = auStack_1a; auStack_1a[0] = 0; uStack_30 = 0x4141414141414141; uStack_28 = 0x4141; uStack_26 = 0; func_0x004009e0(puStack_10,&uStack_30); printLine(puStack_10); return; }
['gcc']
16,226
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_18_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63249/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_18.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_18_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_18_good(void) { goodG2B(); return; }
['gcc']
16,227
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_31_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ { char * dataCopy = data; char * data = dataCopy; { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63250/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_31.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_31_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_31_bad(void) { undefined8 uStack_40; undefined2 uStack_38; undefined uStack_36; undefined auStack_2a [10]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_2a; auStack_2a[0] = 0; uStack_40 = 0x4141414141414141; uStack_38 = 0x4141; uStack_36 = 0; puStack_18 = puStack_20; puStack_10 = puStack_20; func_0x004009e0(puStack_20,&uStack_40); printLine(puStack_20); return; }
['gcc']
16,228
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_31_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63250/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_31.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_31_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_31_good(void) { goodG2B(); return; }
['gcc']
16,229
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_32_bad() { char * data; char * *dataPtr1 = &data; char * *dataPtr2 = &data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; { char * data = *dataPtr1; /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ *dataPtr1 = data; } { char * data = *dataPtr2; { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63251/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_32.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_32_bad
/* WARNING: Heritage AFTER dead removal. Example location: s0xffffffffffffffd0 : 0x00400bc3 */ /* WARNING: Restarted to delay deadcode elimination for space: stack */ void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_32_bad(void) { undefined8 uStack_50; undefined2 uStack_48; undefined uStack_46; undefined auStack_3a [10]; undefined8 uStack_30; undefined8 uStack_28; undefined *puStack_20; undefined8 *puStack_18; undefined8 *puStack_10; puStack_10 = &uStack_30; puStack_18 = &uStack_30; puStack_20 = auStack_3a; auStack_3a[0] = 0; uStack_28 = uStack_30; uStack_50 = 0x4141414141414141; uStack_48 = 0x4141; uStack_46 = 0; func_0x004009e0(uStack_30,&uStack_50); printLine(uStack_28); return; }
['gcc']
16,230
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_32_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63251/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_32.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_32_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_32_good(void) { goodG2B(); return; }
['gcc']
16,231
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_34_bad() { char * data; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_34_unionType myUnion; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ myUnion.unionFirst = data; { char * data = myUnion.unionSecond; { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63253/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_34.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_34_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_34_bad(void) { undefined8 uStack_40; undefined2 uStack_38; undefined uStack_36; undefined auStack_2a [10]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_2a; auStack_2a[0] = 0; uStack_40 = 0x4141414141414141; uStack_38 = 0x4141; uStack_36 = 0; puStack_18 = puStack_20; puStack_10 = puStack_20; func_0x004009e0(puStack_20,&uStack_40); printLine(puStack_18); return; }
['gcc']
16,232
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_34_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63253/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_34.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_34_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_34_good(void) { goodG2B(); return; }
['gcc']
16,233
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_41_badSink(char * data) { { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63254/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_41_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_41_badSink(undefined8 param_1) { undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; func_0x004009e0(param_1,&uStack_13); printLine(param_1); return; }
['gcc']
16,234
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_41_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_41_badSink(data); }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63254/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_41_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_41_bad(void) { undefined auStack_1a [10]; undefined *puStack_10; puStack_10 = auStack_1a; auStack_1a[0] = 0; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_41_badSink(puStack_10); return; }
['gcc']
16,235
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_41_goodG2BSink(char * data) { { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63254/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_41_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_41_goodG2BSink(undefined8 param_1) { undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; func_0x004009e0(param_1,&uStack_13); printLine(param_1); return; }
['gcc']
16,236
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_41_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63254/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_41_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_41_good(void) { goodG2B(); return; }
['gcc']
16,237
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_51_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_51b_badSink(data); }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63257/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_51a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_51_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_51_bad(void) { undefined auStack_1a [10]; undefined *puStack_10; puStack_10 = auStack_1a; auStack_1a[0] = 0; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_51b_badSink(puStack_10); return; }
['gcc']
16,238
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_51_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63257/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_51a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_51_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_51_good(void) { goodG2B(); return; }
['gcc']
16,239
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_51b_badSink(char * data) { { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63257/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_51b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_51b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_51b_badSink(undefined8 param_1) { undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; func_0x004009e0(param_1,&uStack_13); printLine(param_1); return; }
['gcc']
16,240
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_51b_goodG2BSink(char * data) { { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63257/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_51b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_51b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_51b_goodG2BSink(undefined8 param_1) { undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; func_0x004009e0(param_1,&uStack_13); printLine(param_1); return; }
['gcc']
16,241
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52b_badSink(data); }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63258/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52_bad(void) { undefined auStack_1a [10]; undefined *puStack_10; puStack_10 = auStack_1a; auStack_1a[0] = 0; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52b_badSink(puStack_10); return; }
['gcc']
16,242
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63258/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52_good(void) { goodG2B(); return; }
['gcc']
16,243
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52b_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52c_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63258/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52c_badSink(param_1); return; }
['gcc']
16,244
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52b_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63258/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52b_goodG2BSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52c_goodG2BSink(param_1); return; }
['gcc']
16,245
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52c_badSink(char * data) { { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63258/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52c_badSink(undefined8 param_1) { undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; func_0x004009e0(param_1,&uStack_13); printLine(param_1); return; }
['gcc']
16,246
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52c_goodG2BSink(char * data) { { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63258/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_52c_goodG2BSink(undefined8 param_1) { undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; func_0x004009e0(param_1,&uStack_13); printLine(param_1); return; }
['gcc']
16,247
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53b_badSink(data); }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63259/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53_bad(void) { undefined auStack_1a [10]; undefined *puStack_10; puStack_10 = auStack_1a; auStack_1a[0] = 0; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53b_badSink(puStack_10); return; }
['gcc']
16,248
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63259/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53_good(void) { goodG2B(); return; }
['gcc']
16,249
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53b_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53c_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63259/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53c_badSink(param_1); return; }
['gcc']
16,250
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53b_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63259/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53b_goodG2BSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53c_goodG2BSink(param_1); return; }
['gcc']
16,251
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53c_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53d_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63259/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53c_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53d_badSink(param_1); return; }
['gcc']
16,252
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53c_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63259/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53c_goodG2BSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53d_goodG2BSink(param_1); return; }
['gcc']
16,253
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53d_badSink(char * data) { { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63259/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53d.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53d_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53d_badSink(undefined8 param_1) { undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; func_0x004009e0(param_1,&uStack_13); printLine(param_1); return; }
['gcc']
16,254
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53d_goodG2BSink(char * data) { { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63259/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53d.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53d_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_53d_goodG2BSink(undefined8 param_1) { undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; func_0x004009e0(param_1,&uStack_13); printLine(param_1); return; }
['gcc']
16,255
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54b_badSink(data); }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63260/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54_bad(void) { undefined auStack_1a [10]; undefined *puStack_10; puStack_10 = auStack_1a; auStack_1a[0] = 0; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54b_badSink(puStack_10); return; }
['gcc']
16,256
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63260/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54_good(void) { goodG2B(); return; }
['gcc']
16,257
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54b_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54c_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63260/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54c_badSink(param_1); return; }
['gcc']
16,258
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54b_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63260/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54b_goodG2BSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54c_goodG2BSink(param_1); return; }
['gcc']
16,259
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54c_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54d_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63260/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54c_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54d_badSink(param_1); return; }
['gcc']
16,260
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54c_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63260/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54c_goodG2BSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54d_goodG2BSink(param_1); return; }
['gcc']
16,261
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54d_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54e_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63260/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54d.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54d_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54d_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54e_badSink(param_1); return; }
['gcc']
16,262
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54d_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54e_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63260/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54d.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54d_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54d_goodG2BSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54e_goodG2BSink(param_1); return; }
['gcc']
16,263
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54e_badSink(char * data) { { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63260/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54e.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54e_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54e_badSink(undefined8 param_1) { undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; func_0x004009e0(param_1,&uStack_13); printLine(param_1); return; }
['gcc']
16,264
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54e_goodG2BSink(char * data) { { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63260/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54e.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54e_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_54e_goodG2BSink(undefined8 param_1) { undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; func_0x004009e0(param_1,&uStack_13); printLine(param_1); return; }
['gcc']
16,265
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_63_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_63b_badSink(&data); }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63261/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_63a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_63_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_63_bad(void) { undefined auStack_1a [10]; undefined *puStack_10; puStack_10 = auStack_1a; auStack_1a[0] = 0; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_63b_badSink(&puStack_10); return; }
['gcc']
16,266
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_63_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63261/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_63a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_63_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_63_good(void) { goodG2B(); return; }
['gcc']
16,267
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_63b_badSink(char * * dataPtr) { char * data = *dataPtr; { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63261/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_63b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_63b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_63b_badSink(undefined8 *param_1) { undefined8 uStack_1b; undefined2 uStack_13; undefined uStack_11; undefined8 uStack_10; uStack_10 = *param_1; uStack_1b = 0x4141414141414141; uStack_13 = 0x4141; uStack_11 = 0; func_0x004009e0(uStack_10,&uStack_1b); printLine(uStack_10); return; }
['gcc']
16,268
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_63b_goodG2BSink(char * * dataPtr) { char * data = *dataPtr; { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63261/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_63b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_63b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_63b_goodG2BSink (undefined8 *param_1) { undefined8 uStack_1b; undefined2 uStack_13; undefined uStack_11; undefined8 uStack_10; uStack_10 = *param_1; uStack_1b = 0x4141414141414141; uStack_13 = 0x4141; uStack_11 = 0; func_0x004009e0(uStack_10,&uStack_1b); printLine(uStack_10); return; }
['gcc']
16,269
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_64_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_64b_badSink(&data); }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63262/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_64a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_64_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_64_bad(void) { undefined auStack_1a [10]; undefined *puStack_10; puStack_10 = auStack_1a; auStack_1a[0] = 0; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_64b_badSink(&puStack_10); return; }
['gcc']
16,270
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_64_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63262/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_64a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_64_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_64_good(void) { goodG2B(); return; }
['gcc']
16,271
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_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[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63262/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_64b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_64b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_64b_badSink(undefined8 *param_1) { undefined8 uStack_23; undefined2 uStack_1b; undefined uStack_19; undefined8 uStack_18; undefined8 *puStack_10; uStack_18 = *param_1; uStack_23 = 0x4141414141414141; uStack_1b = 0x4141; uStack_19 = 0; puStack_10 = param_1; func_0x004009e0(uStack_18,&uStack_23); printLine(uStack_18); return; }
['gcc']
16,272
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_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[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63262/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_64b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_64b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_64b_goodG2BSink (undefined8 *param_1) { undefined8 uStack_23; undefined2 uStack_1b; undefined uStack_19; undefined8 uStack_18; undefined8 *puStack_10; uStack_18 = *param_1; uStack_23 = 0x4141414141414141; uStack_1b = 0x4141; uStack_19 = 0; puStack_10 = param_1; func_0x004009e0(uStack_18,&uStack_23); printLine(uStack_18); return; }
['gcc']
16,273
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_66_bad() { char * data; char * dataArray[5]; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ /* put data in array */ dataArray[2] = data; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_66b_badSink(dataArray); }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* put data in array */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63264/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_66a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_66_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_66_bad(void) { undefined auStack_42 [10]; undefined auStack_38 [16]; undefined *puStack_28; undefined *puStack_10; puStack_28 = auStack_42; auStack_42[0] = 0; puStack_10 = puStack_28; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_66b_badSink(auStack_38); return; }
['gcc']
16,274
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_66_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63264/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_66a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_66_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_66_good(void) { goodG2B(); return; }
['gcc']
16,275
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_66b_badSink(char * dataArray[]) { /* copy data out of dataArray */ char * data = dataArray[2]; { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* copy data out of dataArray */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63264/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_66b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_66b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_66b_badSink(long param_1) { undefined8 uStack_1b; undefined2 uStack_13; undefined uStack_11; undefined8 uStack_10; uStack_10 = *(undefined8 *)(param_1 + 0x10); uStack_1b = 0x4141414141414141; uStack_13 = 0x4141; uStack_11 = 0; func_0x004009e0(uStack_10,&uStack_1b); printLine(uStack_10); return; }
['gcc']
16,276
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_66b_goodG2BSink(char * dataArray[]) { char * data = dataArray[2]; { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63264/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_66b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_66b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_66b_goodG2BSink(long param_1) { undefined8 uStack_1b; undefined2 uStack_13; undefined uStack_11; undefined8 uStack_10; uStack_10 = *(undefined8 *)(param_1 + 0x10); uStack_1b = 0x4141414141414141; uStack_13 = 0x4141; uStack_11 = 0; func_0x004009e0(uStack_10,&uStack_1b); printLine(uStack_10); return; }
['gcc']
16,277
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_67_bad() { char * data; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_67_structType myStruct; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ myStruct.structFirst = data; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_67b_badSink(myStruct); }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63265/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_67a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_67_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_67_bad(void) { undefined auStack_22 [10]; undefined *puStack_18; undefined *puStack_10; puStack_18 = auStack_22; auStack_22[0] = 0; puStack_10 = puStack_18; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_67b_badSink(puStack_18); return; }
['gcc']
16,278
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_67_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63265/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_67a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_67_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_67_good(void) { goodG2B(); return; }
['gcc']
16,279
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_67b_badSink(CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_67_structType myStruct) { char * data = myStruct.structFirst; { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63265/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_67b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_67b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_67b_badSink(undefined8 param_1) { undefined8 uStack_1b; undefined2 uStack_13; undefined uStack_11; undefined8 uStack_10; uStack_1b = 0x4141414141414141; uStack_13 = 0x4141; uStack_11 = 0; uStack_10 = param_1; func_0x004009e0(param_1,&uStack_1b); printLine(uStack_10); return; }
['gcc']
16,280
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_67b_goodG2BSink(CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_67_structType myStruct) { char * data = myStruct.structFirst; { char source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ strcpy(data, source); printLine(data); } }
['/* POTENTIAL FLAW: data may not have enough space to hold source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63265/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_67b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_67b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_67b_goodG2BSink(undefined8 param_1) { undefined8 uStack_1b; undefined2 uStack_13; undefined uStack_11; undefined8 uStack_10; uStack_1b = 0x4141414141414141; uStack_13 = 0x4141; uStack_11 = 0; uStack_10 = param_1; func_0x004009e0(param_1,&uStack_1b); printLine(uStack_10); return; }
['gcc']
16,281
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_01_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63312/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_01.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_01_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_01_bad(void) { long lVar1; undefined8 uStack_30; undefined2 uStack_28; undefined uStack_26; undefined auStack_1a [10]; undefined *puStack_10; puStack_10 = auStack_1a; auStack_1a[0] = 0; uStack_30 = 0x4141414141414141; uStack_28 = 0x4141; uStack_26 = 0; lVar1 = func_0x00400a50(&uStack_30); func_0x00400ab0(puStack_10,&uStack_30,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,282
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_01_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63312/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_01.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_01_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_01_good(void) { goodG2B(); return; }
['gcc']
16,283
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_02_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; if(1) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63313/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_02.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_02_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_02_bad(void) { long lVar1; undefined8 uStack_30; undefined2 uStack_28; undefined uStack_26; undefined auStack_1a [10]; undefined *puStack_10; puStack_10 = auStack_1a; auStack_1a[0] = 0; uStack_30 = 0x4141414141414141; uStack_28 = 0x4141; uStack_26 = 0; lVar1 = func_0x00400a50(&uStack_30); func_0x00400ab0(puStack_10,&uStack_30,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,284
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_02_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63313/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_02.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_02_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_02_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,285
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_03_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; if(5==5) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63314/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_03.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_03_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_03_bad(void) { long lVar1; undefined8 uStack_30; undefined2 uStack_28; undefined uStack_26; undefined auStack_1a [10]; undefined *puStack_10; puStack_10 = auStack_1a; auStack_1a[0] = 0; uStack_30 = 0x4141414141414141; uStack_28 = 0x4141; uStack_26 = 0; lVar1 = func_0x00400a50(&uStack_30); func_0x00400ab0(puStack_10,&uStack_30,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,286
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_03_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63314/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_03.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_03_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_03_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,287
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_04_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; if(STATIC_CONST_TRUE) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63315/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_04.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_04_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_04_bad(void) { long lVar1; undefined8 uStack_30; undefined2 uStack_28; undefined uStack_26; undefined auStack_1a [10]; undefined *puStack_10; puStack_10 = auStack_1a; auStack_1a[0] = 0; uStack_30 = 0x4141414141414141; uStack_28 = 0x4141; uStack_26 = 0; lVar1 = func_0x00400a50(&uStack_30); func_0x00400ab0(puStack_10,&uStack_30,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,288
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_04_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63315/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_04.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_04_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_04_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,289
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_05_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; if(staticTrue) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63316/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_05.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_05_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_05_bad(void) { long lVar1; undefined8 uStack_30; undefined2 uStack_28; undefined uStack_26; undefined auStack_1a [10]; undefined *puStack_10; if (staticTrue != 0) { puStack_10 = auStack_1a; auStack_1a[0] = 0; } uStack_30 = 0x4141414141414141; uStack_28 = 0x4141; uStack_26 = 0; lVar1 = func_0x00400a50(&uStack_30); func_0x00400ab0(puStack_10,&uStack_30,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,290
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_05_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63316/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_05.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_05_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_05_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,291
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_06_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; if(STATIC_CONST_FIVE==5) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63317/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_06.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_06_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_06_bad(void) { long lVar1; undefined8 uStack_30; undefined2 uStack_28; undefined uStack_26; undefined auStack_1a [10]; undefined *puStack_10; puStack_10 = auStack_1a; auStack_1a[0] = 0; uStack_30 = 0x4141414141414141; uStack_28 = 0x4141; uStack_26 = 0; lVar1 = func_0x00400a50(&uStack_30); func_0x00400ab0(puStack_10,&uStack_30,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,292
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_06_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63317/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_06.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_06_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_06_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,293
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_07_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; if(staticFive==5) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63318/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_07.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_07_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_07_bad(void) { long lVar1; undefined8 uStack_30; undefined2 uStack_28; undefined uStack_26; undefined auStack_1a [10]; undefined *puStack_10; if (staticFive == 5) { puStack_10 = auStack_1a; auStack_1a[0] = 0; } uStack_30 = 0x4141414141414141; uStack_28 = 0x4141; uStack_26 = 0; lVar1 = func_0x00400a50(&uStack_30); func_0x00400ab0(puStack_10,&uStack_30,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,294
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_07_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63318/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_07.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_07_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_07_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,295
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_08_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; if(staticReturnsTrue()) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63319/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_08.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_08_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_08_bad(void) { int iVar1; long lVar2; undefined8 uStack_30; undefined2 uStack_28; undefined uStack_26; undefined auStack_1a [10]; undefined *puStack_10; iVar1 = staticReturnsTrue(); if (iVar1 != 0) { puStack_10 = auStack_1a; auStack_1a[0] = 0; } uStack_30 = 0x4141414141414141; uStack_28 = 0x4141; uStack_26 = 0; lVar2 = func_0x00400a50(&uStack_30); func_0x00400ab0(puStack_10,&uStack_30,lVar2 + 1); printLine(puStack_10); return; }
['gcc']
16,296
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_08_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63319/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_08.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_08_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_08_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,297
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_09_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; if(GLOBAL_CONST_TRUE) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63320/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_09.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_09_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_09_bad(void) { long lVar1; undefined8 uStack_30; undefined2 uStack_28; undefined uStack_26; undefined auStack_1a [10]; undefined *puStack_10; if (GLOBAL_CONST_TRUE != 0) { puStack_10 = auStack_1a; auStack_1a[0] = 0; } uStack_30 = 0x4141414141414141; uStack_28 = 0x4141; uStack_26 = 0; lVar1 = func_0x00400a50(&uStack_30); func_0x00400ab0(puStack_10,&uStack_30,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,298
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_09_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63320/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_09.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_09_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_09_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,299
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_10_bad() { char * data; char dataBadBuffer[10]; char dataGoodBuffer[10+1]; if(globalTrue) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63321/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_10.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_10_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memcpy_10_bad(void) { long lVar1; undefined8 uStack_30; undefined2 uStack_28; undefined uStack_26; undefined auStack_1a [10]; undefined *puStack_10; if (globalTrue != 0) { puStack_10 = auStack_1a; auStack_1a[0] = 0; } uStack_30 = 0x4141414141414141; uStack_28 = 0x4141; uStack_26 = 0; lVar1 = func_0x00400a50(&uStack_30); func_0x00400ab0(puStack_10,&uStack_30,lVar1 + 1); printLine(puStack_10); return; }
['gcc']