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,400
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_15_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63366/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_15.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_15_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_15_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,401
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_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; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(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/63367/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_16.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_16_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_16_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_0x00400a40(&uStack_30); func_0x00400ad0(puStack_10,&uStack_30,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,402
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_16_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63367/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_16.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_16_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_16_good(void) { goodG2B(); return; }
['gcc']
16,403
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_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; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(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/63368/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_17.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_17_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_17_bad(void) { long lVar1; 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; lVar1 = func_0x00400a40(&uStack_38); func_0x00400ad0(puStack_18,&uStack_38,lVar1 + 1); printLine(puStack_18); return; }
['gcc']
16,404
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_17_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63368/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_17.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_17_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_17_good(void) { goodG2B(); return; }
['gcc']
16,405
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_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; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(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/63369/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_18.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_18_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_18_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_0x00400a40(&uStack_30); func_0x00400ad0(puStack_10,&uStack_30,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,406
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_18_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63369/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_18.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_18_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_18_good(void) { goodG2B(); return; }
['gcc']
16,407
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_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; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(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/63370/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_31.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_31_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_31_bad(void) { long lVar1; 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; lVar1 = func_0x00400a40(&uStack_40); func_0x00400ad0(puStack_20,&uStack_40,lVar1 + 1); printLine(puStack_20); return; }
['gcc']
16,408
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_31_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63370/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_31.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_31_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_31_good(void) { goodG2B(); return; }
['gcc']
16,409
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_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; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(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/63371/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_32.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_32_bad
/* WARNING: Heritage AFTER dead removal. Example location: s0xffffffffffffffd0 : 0x00400c13 */ /* WARNING: Restarted to delay deadcode elimination for space: stack */ void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_32_bad(void) { long lVar1; 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; lVar1 = func_0x00400a40(&uStack_50); func_0x00400ad0(uStack_28,&uStack_50,lVar1 + 1); printLine(uStack_28); return; }
['gcc']
16,410
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_32_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63371/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_32.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_32_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_32_good(void) { goodG2B(); return; }
['gcc']
16,411
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_34_bad() { char * data; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_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; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(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/63373/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_34.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_34_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_34_bad(void) { long lVar1; 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; lVar1 = func_0x00400a40(&uStack_40); func_0x00400ad0(puStack_18,&uStack_40,lVar1 + 1); printLine(puStack_18); return; }
['gcc']
16,412
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_34_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63373/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_34.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_34_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_34_good(void) { goodG2B(); return; }
['gcc']
16,413
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_41_badSink(char * data) { { 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 */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* 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/63374/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_41_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_41_badSink(undefined8 param_1) { long lVar1; undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; lVar1 = func_0x00400a40(&uStack_13); func_0x00400ad0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
16,414
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_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_memmove_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/63374/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_41_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_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_memmove_41_badSink(puStack_10); return; }
['gcc']
16,415
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_41_goodG2BSink(char * data) { { 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 */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* 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/63374/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_41_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_41_goodG2BSink (undefined8 param_1) { long lVar1; undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; lVar1 = func_0x00400a40(&uStack_13); func_0x00400ad0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
16,416
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_41_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63374/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_41_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_41_good(void) { goodG2B(); return; }
['gcc']
16,417
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_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_memmove_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/63377/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_51a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_51_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_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_memmove_51b_badSink(puStack_10); return; }
['gcc']
16,418
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_51_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63377/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_51a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_51_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_51_good(void) { goodG2B(); return; }
['gcc']
16,419
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_51b_badSink(char * data) { { 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 */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* 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/63377/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_51b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_51b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_51b_badSink(undefined8 param_1) { long lVar1; undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; lVar1 = func_0x00400a40(&uStack_13); func_0x00400ad0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
16,420
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_51b_goodG2BSink(char * data) { { 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 */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* 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/63377/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_51b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_51b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_51b_goodG2BSink (undefined8 param_1) { long lVar1; undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; lVar1 = func_0x00400a40(&uStack_13); func_0x00400ad0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
16,421
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_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_memmove_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/63378/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_52a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_52_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_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_memmove_52b_badSink(puStack_10); return; }
['gcc']
16,422
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_52_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63378/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_52a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_52_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_52_good(void) { goodG2B(); return; }
['gcc']
16,423
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_52b_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_52c_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63378/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_52b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_52b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_52b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_52c_badSink(param_1); return; }
['gcc']
16,424
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_52b_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_52c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63378/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_52b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_52b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_52b_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_52c_goodG2BSink(param_1); return; }
['gcc']
16,425
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_52c_badSink(char * data) { { 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 */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* 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/63378/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_52c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_52c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_52c_badSink(undefined8 param_1) { long lVar1; undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; lVar1 = func_0x00400a40(&uStack_13); func_0x00400ad0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
16,426
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_52c_goodG2BSink(char * data) { { 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 */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* 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/63378/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_52c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_52c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_52c_goodG2BSink (undefined8 param_1) { long lVar1; undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; lVar1 = func_0x00400a40(&uStack_13); func_0x00400ad0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
16,427
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_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_memmove_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/63379/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_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_memmove_53b_badSink(puStack_10); return; }
['gcc']
16,428
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63379/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53_good(void) { goodG2B(); return; }
['gcc']
16,429
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53b_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53c_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63379/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53c_badSink(param_1); return; }
['gcc']
16,430
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53b_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63379/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53b_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53c_goodG2BSink(param_1); return; }
['gcc']
16,431
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53c_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53d_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63379/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53c_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53d_badSink(param_1); return; }
['gcc']
16,432
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53c_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63379/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53c_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53d_goodG2BSink(param_1); return; }
['gcc']
16,433
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53d_badSink(char * data) { { 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 */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* 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/63379/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53d.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53d_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53d_badSink(undefined8 param_1) { long lVar1; undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; lVar1 = func_0x00400a40(&uStack_13); func_0x00400ad0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
16,434
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53d_goodG2BSink(char * data) { { 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 */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* 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/63379/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53d.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53d_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_53d_goodG2BSink (undefined8 param_1) { long lVar1; undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; lVar1 = func_0x00400a40(&uStack_13); func_0x00400ad0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
16,435
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_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_memmove_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/63380/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_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_memmove_54b_badSink(puStack_10); return; }
['gcc']
16,436
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63380/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54_good(void) { goodG2B(); return; }
['gcc']
16,437
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54b_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54c_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63380/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54c_badSink(param_1); return; }
['gcc']
16,438
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54b_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63380/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54b_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54c_goodG2BSink(param_1); return; }
['gcc']
16,439
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54c_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54d_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63380/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54c_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54d_badSink(param_1); return; }
['gcc']
16,440
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54c_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63380/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54c_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54d_goodG2BSink(param_1); return; }
['gcc']
16,441
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54d_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54e_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63380/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54d.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54d_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54d_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54e_badSink(param_1); return; }
['gcc']
16,442
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54d_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54e_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63380/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54d.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54d_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54d_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54e_goodG2BSink(param_1); return; }
['gcc']
16,443
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54e_badSink(char * data) { { 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 */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* 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/63380/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54e.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54e_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54e_badSink(undefined8 param_1) { long lVar1; undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; lVar1 = func_0x00400a40(&uStack_13); func_0x00400ad0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
16,444
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54e_goodG2BSink(char * data) { { 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 */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* 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/63380/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54e.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54e_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_54e_goodG2BSink (undefined8 param_1) { long lVar1; undefined8 uStack_13; undefined2 uStack_b; undefined uStack_9; uStack_13 = 0x4141414141414141; uStack_b = 0x4141; uStack_9 = 0; lVar1 = func_0x00400a40(&uStack_13); func_0x00400ad0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
16,445
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_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_memmove_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/63381/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_63a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_63_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_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_memmove_63b_badSink(&puStack_10); return; }
['gcc']
16,446
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_63_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63381/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_63a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_63_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_63_good(void) { goodG2B(); return; }
['gcc']
16,447
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_63b_badSink(char * * dataPtr) { char * data = *dataPtr; { 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 */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* 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/63381/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_63b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_63b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_63b_badSink (undefined8 *param_1) { long lVar1; 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; lVar1 = func_0x00400a40(&uStack_1b); func_0x00400ad0(uStack_10,&uStack_1b,lVar1 + 1); printLine(uStack_10); return; }
['gcc']
16,448
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_63b_goodG2BSink(char * * dataPtr) { char * data = *dataPtr; { 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 */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* 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/63381/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_63b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_63b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_63b_goodG2BSink (undefined8 *param_1) { long lVar1; 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; lVar1 = func_0x00400a40(&uStack_1b); func_0x00400ad0(uStack_10,&uStack_1b,lVar1 + 1); printLine(uStack_10); return; }
['gcc']
16,449
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_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_memmove_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/63382/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_64a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_64_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_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_memmove_64b_badSink(&puStack_10); return; }
['gcc']
16,450
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_64_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63382/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_64a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_64_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_64_good(void) { goodG2B(); return; }
['gcc']
16,451
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_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; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* 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/63382/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_64b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_64b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_64b_badSink (undefined8 *param_1) { long lVar1; 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; lVar1 = func_0x00400a40(&uStack_23); func_0x00400ad0(uStack_18,&uStack_23,lVar1 + 1); printLine(uStack_18); return; }
['gcc']
16,452
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_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; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* Copy length + 1 to include NUL terminator from source */', '/* 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/63382/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_64b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_64b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_64b_goodG2BSink (undefined8 *param_1) { long lVar1; 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; lVar1 = func_0x00400a40(&uStack_23); func_0x00400ad0(uStack_18,&uStack_23,lVar1 + 1); printLine(uStack_18); return; }
['gcc']
16,453
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_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_memmove_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/63384/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_66a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_66_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_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_memmove_66b_badSink(auStack_38); return; }
['gcc']
16,454
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_66_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63384/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_66a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_66_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_66_good(void) { goodG2B(); return; }
['gcc']
16,455
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_66b_badSink(char * dataArray[]) { /* copy data out of dataArray */ char * data = dataArray[2]; { 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 */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* copy data out of dataArray */', '/* 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/63384/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_66b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_66b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_66b_badSink(long param_1) { long lVar1; 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; lVar1 = func_0x00400a40(&uStack_1b); func_0x00400ad0(uStack_10,&uStack_1b,lVar1 + 1); printLine(uStack_10); return; }
['gcc']
16,456
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_66b_goodG2BSink(char * dataArray[]) { char * data = dataArray[2]; { 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 */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* 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/63384/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_66b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_66b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_66b_goodG2BSink(long param_1) { long lVar1; 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; lVar1 = func_0x00400a40(&uStack_1b); func_0x00400ad0(uStack_10,&uStack_1b,lVar1 + 1); printLine(uStack_10); return; }
['gcc']
16,457
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_67_bad() { char * data; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_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_memmove_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/63385/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_67a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_67_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_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_memmove_67b_badSink(puStack_18); return; }
['gcc']
16,458
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_67_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63385/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_67a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_67_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_67_good(void) { goodG2B(); return; }
['gcc']
16,459
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_67b_badSink(CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_67_structType myStruct) { char * data = myStruct.structFirst; { 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 */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* 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/63385/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_67b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_67b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_67b_badSink(undefined8 param_1) { long lVar1; 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; lVar1 = func_0x00400a40(&uStack_1b); func_0x00400ad0(uStack_10,&uStack_1b,lVar1 + 1); printLine(uStack_10); return; }
['gcc']
16,460
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_67b_goodG2BSink(CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_67_structType myStruct) { char * data = myStruct.structFirst; { 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 */ memmove(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* Copy length + 1 to include NUL terminator from source */', '/* 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/63385/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_67b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_67b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_memmove_67b_goodG2BSink (undefined8 param_1) { long lVar1; 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; lVar1 = func_0x00400a40(&uStack_1b); func_0x00400ad0(uStack_10,&uStack_1b,lVar1 + 1); printLine(uStack_10); return; }
['gcc']
16,461
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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 */ strncpy(data, source, strlen(source) + 1); 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/63392/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_01.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_01_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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_0x00400a20(puStack_10,&uStack_30,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,462
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_01_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63392/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_01.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_01_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_01_good(void) { goodG2B(); return; }
['gcc']
16,463
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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 */ strncpy(data, source, strlen(source) + 1); 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/63393/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_02.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_02_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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_0x00400a20(puStack_10,&uStack_30,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,464
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_02_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63393/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_02.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_02_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_02_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,465
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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 */ strncpy(data, source, strlen(source) + 1); 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/63394/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_03.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_03_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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_0x00400a20(puStack_10,&uStack_30,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,466
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_03_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63394/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_03.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_03_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_03_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,467
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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 */ strncpy(data, source, strlen(source) + 1); 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/63395/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_04.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_04_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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_0x00400a20(puStack_10,&uStack_30,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,468
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_04_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63395/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_04.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_04_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_04_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,469
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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 */ strncpy(data, source, strlen(source) + 1); 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/63396/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_05.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_05_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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_0x00400a20(puStack_10,&uStack_30,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,470
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_05_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63396/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_05.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_05_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_05_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,471
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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 */ strncpy(data, source, strlen(source) + 1); 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/63397/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_06.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_06_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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_0x00400a20(puStack_10,&uStack_30,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,472
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_06_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63397/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_06.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_06_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_06_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,473
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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 */ strncpy(data, source, strlen(source) + 1); 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/63398/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_07.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_07_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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_0x00400a20(puStack_10,&uStack_30,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,474
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_07_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63398/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_07.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_07_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_07_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,475
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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 */ strncpy(data, source, strlen(source) + 1); 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/63399/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_08.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_08_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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_0x00400a20(puStack_10,&uStack_30,lVar2 + 1); printLine(puStack_10); return; }
['gcc']
16,476
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_08_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63399/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_08.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_08_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_08_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,477
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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 */ strncpy(data, source, strlen(source) + 1); 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/63400/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_09.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_09_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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_0x00400a20(puStack_10,&uStack_30,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,478
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_09_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63400/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_09.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_09_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_09_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,479
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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 */ strncpy(data, source, strlen(source) + 1); 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/63401/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_10.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_10_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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_0x00400a20(puStack_10,&uStack_30,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,480
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_10_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63401/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_10.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_10_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_10_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,481
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ strncpy(data, source, strlen(source) + 1); 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/63402/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_11.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_11_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_11_bad(void) { int iVar1; long lVar2; 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; lVar2 = func_0x00400a50(&uStack_30); func_0x00400a20(puStack_10,&uStack_30,lVar2 + 1); printLine(puStack_10); return; }
['gcc']
16,482
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_11_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63402/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_11.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_11_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_11_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,483
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ strncpy(data, source, strlen(source) + 1); 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 */', '/* 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/63403/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_12.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_12_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_12_bad(void) { int iVar1; long lVar2; 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; lVar2 = func_0x00400a50(&uStack_30); func_0x00400a20(puStack_10,&uStack_30,lVar2 + 1); printLine(puStack_10); return; }
['gcc']
16,484
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_12_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63403/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_12.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_12_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_12_good(void) { goodG2B(); return; }
['gcc']
16,485
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ strncpy(data, source, strlen(source) + 1); 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/63404/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_13.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_13_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_13_bad(void) { long lVar1; 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; lVar1 = func_0x00400a50(&uStack_30); func_0x00400a20(puStack_10,&uStack_30,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,486
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_13_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63404/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_13.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_13_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_13_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,487
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ strncpy(data, source, strlen(source) + 1); 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/63405/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_14.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_14_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_14_bad(void) { long lVar1; 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; lVar1 = func_0x00400a50(&uStack_30); func_0x00400a20(puStack_10,&uStack_30,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,488
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_14_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63405/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_14.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_14_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_14_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,489
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ strncpy(data, source, strlen(source) + 1); 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 */', '/* 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/63406/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_15.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_15_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_15_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_0x00400a20(puStack_10,&uStack_30,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,490
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_15_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63406/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_15.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_15_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_15_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
16,491
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ strncpy(data, source, strlen(source) + 1); 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/63407/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_16.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_16_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_16_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_0x00400a20(puStack_10,&uStack_30,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,492
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_16_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63407/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_16.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_16_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_16_good(void) { goodG2B(); return; }
['gcc']
16,493
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ strncpy(data, source, strlen(source) + 1); 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/63408/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_17.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_17_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_17_bad(void) { long lVar1; 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; lVar1 = func_0x00400a50(&uStack_38); func_0x00400a20(puStack_18,&uStack_38,lVar1 + 1); printLine(puStack_18); return; }
['gcc']
16,494
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_17_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63408/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_17.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_17_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_17_good(void) { goodG2B(); return; }
['gcc']
16,495
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ strncpy(data, source, strlen(source) + 1); 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/63409/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_18.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_18_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_18_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_0x00400a20(puStack_10,&uStack_30,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
16,496
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_18_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63409/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_18.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_18_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_18_good(void) { goodG2B(); return; }
['gcc']
16,497
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ strncpy(data, source, strlen(source) + 1); 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/63410/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_31.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_31_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_31_bad(void) { long lVar1; 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; lVar1 = func_0x00400a50(&uStack_40); func_0x00400a20(puStack_20,&uStack_40,lVar1 + 1); printLine(puStack_20); return; }
['gcc']
16,498
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_31_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63410/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_31.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_31_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_31_good(void) { goodG2B(); return; }
['gcc']
16,499
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_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; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ strncpy(data, source, strlen(source) + 1); 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/63411/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_32.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_32_bad
/* WARNING: Heritage AFTER dead removal. Example location: s0xffffffffffffffd0 : 0x00400c13 */ /* WARNING: Restarted to delay deadcode elimination for space: stack */ void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_32_bad(void) { long lVar1; 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; lVar1 = func_0x00400a50(&uStack_50); func_0x00400a20(uStack_28,&uStack_50,lVar1 + 1); printLine(uStack_28); return; }
['gcc']