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
15,900
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_08_bad() { if(staticReturnsTrue()) { { charVoid structCharVoid; structCharVoid.voidSecond = (void *)SRC_STR; /* Print the initial block pointed to by structCharVoid.voidSecond */ printLine((char *)structCharVoid.voidSecond); /* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */ memmove(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid)); structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */ printLine((char *)structCharVoid.charFirst); printLine((char *)structCharVoid.voidSecond); } } }
['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */']
['CWE121']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63061/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_08.c
CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_08_bad
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_08_bad(void) { int iVar1; undefined8 uStack_28; ulong uStack_20; undefined *puStack_18; undefined8 uStack_10; iVar1 = staticReturnsTrue(); if (iVar1 != 0) { puStack_18 = &UNK_00401144; printLine(&UNK_00401144); uStack_28 = _UNK_00401144; puStack_18 = (undefined *)_UNK_00401154; uStack_10 = _UNK_0040115c; uStack_20 = _UNK_0040114c & 0xffffffffffffff; printLine(&uStack_28); printLine(puStack_18); } return; }
['gcc']
15,901
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_08_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63061/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_08.c
CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_08_good
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_08_good(void) { good1(); good2(); return; }
['gcc']
15,902
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_09_bad() { if(GLOBAL_CONST_TRUE) { { charVoid structCharVoid; structCharVoid.voidSecond = (void *)SRC_STR; /* Print the initial block pointed to by structCharVoid.voidSecond */ printLine((char *)structCharVoid.voidSecond); /* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */ memmove(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid)); structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */ printLine((char *)structCharVoid.charFirst); printLine((char *)structCharVoid.voidSecond); } } }
['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */']
['CWE121']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63062/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_09.c
CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_09_bad
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_09_bad(void) { undefined8 uStack_28; ulong uStack_20; undefined *puStack_18; undefined8 uStack_10; if (GLOBAL_CONST_TRUE != 0) { puStack_18 = &UNK_00401124; printLine(&UNK_00401124); uStack_28 = _UNK_00401124; puStack_18 = (undefined *)_UNK_00401134; uStack_10 = _UNK_0040113c; uStack_20 = _UNK_0040112c & 0xffffffffffffff; printLine(&uStack_28); printLine(puStack_18); } return; }
['gcc']
15,903
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_09_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63062/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_09.c
CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_09_good
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_09_good(void) { good1(); good2(); return; }
['gcc']
15,904
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_10_bad() { if(globalTrue) { { charVoid structCharVoid; structCharVoid.voidSecond = (void *)SRC_STR; /* Print the initial block pointed to by structCharVoid.voidSecond */ printLine((char *)structCharVoid.voidSecond); /* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */ memmove(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid)); structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */ printLine((char *)structCharVoid.charFirst); printLine((char *)structCharVoid.voidSecond); } } }
['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */']
['CWE121']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63063/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_10.c
CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_10_bad
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_10_bad(void) { undefined8 uStack_28; ulong uStack_20; undefined *puStack_18; undefined8 uStack_10; if (globalTrue != 0) { puStack_18 = &UNK_00401124; printLine(&UNK_00401124); uStack_28 = _UNK_00401124; puStack_18 = (undefined *)_UNK_00401134; uStack_10 = _UNK_0040113c; uStack_20 = _UNK_0040112c & 0xffffffffffffff; printLine(&uStack_28); printLine(puStack_18); } return; }
['gcc']
15,905
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_10_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63063/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_10.c
CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_10_good
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_10_good(void) { good1(); good2(); return; }
['gcc']
15,906
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_11_bad() { if(globalReturnsTrue()) { { charVoid structCharVoid; structCharVoid.voidSecond = (void *)SRC_STR; /* Print the initial block pointed to by structCharVoid.voidSecond */ printLine((char *)structCharVoid.voidSecond); /* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */ memmove(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid)); structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */ printLine((char *)structCharVoid.charFirst); printLine((char *)structCharVoid.voidSecond); } } }
['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */']
['CWE121']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63064/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_11.c
CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_11_bad
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_11_bad(void) { int iVar1; undefined8 uStack_28; ulong uStack_20; undefined *puStack_18; undefined8 uStack_10; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { puStack_18 = &UNK_00401124; printLine(&UNK_00401124); uStack_28 = _UNK_00401124; puStack_18 = (undefined *)_UNK_00401134; uStack_10 = _UNK_0040113c; uStack_20 = _UNK_0040112c & 0xffffffffffffff; printLine(&uStack_28); printLine(puStack_18); } return; }
['gcc']
15,907
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_11_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63064/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_11.c
CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_11_good
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_11_good(void) { good1(); good2(); return; }
['gcc']
15,908
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_12_bad() { if(globalReturnsTrueOrFalse()) { { charVoid structCharVoid; structCharVoid.voidSecond = (void *)SRC_STR; /* Print the initial block pointed to by structCharVoid.voidSecond */ printLine((char *)structCharVoid.voidSecond); /* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */ memmove(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid)); structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */ printLine((char *)structCharVoid.charFirst); printLine((char *)structCharVoid.voidSecond); } } else { { charVoid structCharVoid; structCharVoid.voidSecond = (void *)SRC_STR; /* Print the initial block pointed to by structCharVoid.voidSecond */ printLine((char *)structCharVoid.voidSecond); /* FIX: Use sizeof(structCharVoid.charFirst) to avoid overwriting the pointer voidSecond */ memmove(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid.charFirst)); structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */ printLine((char *)structCharVoid.charFirst); printLine((char *)structCharVoid.voidSecond); } } }
['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */', '/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FIX: Use sizeof(structCharVoid.charFirst) to avoid overwriting the pointer voidSecond */', '/* null terminate the string */']
['CWE121']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63065/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_12.c
CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_12_bad
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_12_bad(void) { int iVar1; undefined8 uStack_28; ulong uStack_20; undefined *puStack_18; undefined8 uStack_10; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { puStack_18 = &UNK_00401174; printLine(&UNK_00401174); uStack_28 = 0x3736353433323130; uStack_20 = 0x65646362613938; printLine(&uStack_28); printLine(puStack_18); } else { puStack_18 = &UNK_00401174; printLine(&UNK_00401174); uStack_28 = _UNK_00401174; puStack_18 = (undefined *)_UNK_00401184; uStack_10 = _UNK_0040118c; uStack_20 = _UNK_0040117c & 0xffffffffffffff; printLine(&uStack_28); printLine(puStack_18); } return; }
['gcc']
15,909
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_12_good() { good1(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63065/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_12.c
CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_12_good
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_12_good(void) { good1(); return; }
['gcc']
15,910
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_13_bad() { if(GLOBAL_CONST_FIVE==5) { { charVoid structCharVoid; structCharVoid.voidSecond = (void *)SRC_STR; /* Print the initial block pointed to by structCharVoid.voidSecond */ printLine((char *)structCharVoid.voidSecond); /* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */ memmove(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid)); structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */ printLine((char *)structCharVoid.charFirst); printLine((char *)structCharVoid.voidSecond); } } }
['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */']
['CWE121']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63066/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_13.c
CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_13_bad
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_13_bad(void) { undefined8 uStack_28; ulong uStack_20; undefined *puStack_18; undefined8 uStack_10; if (GLOBAL_CONST_FIVE == 5) { puStack_18 = &UNK_00401124; printLine(&UNK_00401124); uStack_28 = _UNK_00401124; puStack_18 = (undefined *)_UNK_00401134; uStack_10 = _UNK_0040113c; uStack_20 = _UNK_0040112c & 0xffffffffffffff; printLine(&uStack_28); printLine(puStack_18); } return; }
['gcc']
15,911
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_13_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63066/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_13.c
CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_13_good
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_13_good(void) { good1(); good2(); return; }
['gcc']
15,912
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_14_bad() { if(globalFive==5) { { charVoid structCharVoid; structCharVoid.voidSecond = (void *)SRC_STR; /* Print the initial block pointed to by structCharVoid.voidSecond */ printLine((char *)structCharVoid.voidSecond); /* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */ memmove(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid)); structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */ printLine((char *)structCharVoid.charFirst); printLine((char *)structCharVoid.voidSecond); } } }
['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */']
['CWE121']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63067/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_14.c
CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_14_bad
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_14_bad(void) { undefined8 uStack_28; ulong uStack_20; undefined *puStack_18; undefined8 uStack_10; if (globalFive == 5) { puStack_18 = &UNK_00401124; printLine(&UNK_00401124); uStack_28 = _UNK_00401124; puStack_18 = (undefined *)_UNK_00401134; uStack_10 = _UNK_0040113c; uStack_20 = _UNK_0040112c & 0xffffffffffffff; printLine(&uStack_28); printLine(puStack_18); } return; }
['gcc']
15,913
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_14_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63067/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_14.c
CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_14_good
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_14_good(void) { good1(); good2(); return; }
['gcc']
15,914
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_15_bad() { switch(6) { case 6: { charVoid structCharVoid; structCharVoid.voidSecond = (void *)SRC_STR; /* Print the initial block pointed to by structCharVoid.voidSecond */ printLine((char *)structCharVoid.voidSecond); /* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */ memmove(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid)); structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */ printLine((char *)structCharVoid.charFirst); printLine((char *)structCharVoid.voidSecond); } break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } }
['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */']
['CWE121']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63068/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_15.c
CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_15_bad
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_15_bad(void) { undefined8 uStack_28; ulong uStack_20; undefined *puStack_18; undefined8 uStack_10; puStack_18 = &UNK_00401114; printLine(&UNK_00401114); uStack_28 = _UNK_00401114; puStack_18 = (undefined *)_UNK_00401124; uStack_10 = _UNK_0040112c; uStack_20 = _UNK_0040111c & 0xffffffffffffff; printLine(&uStack_28); printLine(puStack_18); return; }
['gcc']
15,915
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_15_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63068/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_15.c
CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_15_good
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_15_good(void) { good1(); good2(); return; }
['gcc']
15,916
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_16_bad() { while(1) { { charVoid structCharVoid; structCharVoid.voidSecond = (void *)SRC_STR; /* Print the initial block pointed to by structCharVoid.voidSecond */ printLine((char *)structCharVoid.voidSecond); /* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */ memmove(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid)); structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */ printLine((char *)structCharVoid.charFirst); printLine((char *)structCharVoid.voidSecond); } break; } }
['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */']
['CWE121']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63069/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_16.c
CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_16_bad
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_16_bad(void) { undefined8 uStack_28; ulong uStack_20; undefined *puStack_18; undefined8 uStack_10; puStack_18 = &UNK_00401114; printLine(&UNK_00401114); uStack_28 = _UNK_00401114; puStack_18 = (undefined *)_UNK_00401124; uStack_10 = _UNK_0040112c; uStack_20 = _UNK_0040111c & 0xffffffffffffff; printLine(&uStack_28); printLine(puStack_18); return; }
['gcc']
15,917
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_16_good() { good1(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63069/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_16.c
CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_16_good
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_16_good(void) { good1(); return; }
['gcc']
15,918
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_17_bad() { int j; for(j = 0; j < 1; j++) { { charVoid structCharVoid; structCharVoid.voidSecond = (void *)SRC_STR; /* Print the initial block pointed to by structCharVoid.voidSecond */ printLine((char *)structCharVoid.voidSecond); /* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */ memmove(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid)); structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */ printLine((char *)structCharVoid.charFirst); printLine((char *)structCharVoid.voidSecond); } } }
['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */']
['CWE121']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63070/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_17.c
CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_17_bad
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_17_bad(void) { undefined8 uStack_38; ulong uStack_30; undefined *puStack_28; undefined8 uStack_20; int iStack_c; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { puStack_28 = &UNK_00401134; printLine(&UNK_00401134); uStack_38 = _UNK_00401134; puStack_28 = (undefined *)_UNK_00401144; uStack_20 = _UNK_0040114c; uStack_30 = _UNK_0040113c & 0xffffffffffffff; printLine(&uStack_38); printLine(puStack_28); } return; }
['gcc']
15,919
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_17_good() { good1(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63070/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_17.c
CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_17_good
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_17_good(void) { good1(); return; }
['gcc']
15,920
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_18_bad() { goto sink; sink: { charVoid structCharVoid; structCharVoid.voidSecond = (void *)SRC_STR; /* Print the initial block pointed to by structCharVoid.voidSecond */ printLine((char *)structCharVoid.voidSecond); /* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */ memmove(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid)); structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */ printLine((char *)structCharVoid.charFirst); printLine((char *)structCharVoid.voidSecond); } }
['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */']
['CWE121']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63071/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_18.c
CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_18_bad
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_18_bad(void) { undefined8 uStack_28; ulong uStack_20; undefined *puStack_18; undefined8 uStack_10; puStack_18 = &UNK_00401114; printLine(&UNK_00401114); uStack_28 = _UNK_00401114; puStack_18 = (undefined *)_UNK_00401124; uStack_10 = _UNK_0040112c; uStack_20 = _UNK_0040111c & 0xffffffffffffff; printLine(&uStack_28); printLine(puStack_18); return; }
['gcc']
15,921
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_18_good() { good1(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63071/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_18.c
CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_18_good
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_18_good(void) { good1(); return; }
['gcc']
15,922
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_01_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63112/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_01.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_01_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_01_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_50; puStack_18 = auStack_70; auStack_50[0] = 0; uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; puStack_10 = puStack_20; lVar1 = func_0x00400a50(&uStack_2b,0x10,2); func_0x00400ab0(puStack_20,&uStack_2b,lVar1 + 1); printLine(puStack_20); return; }
['gcc']
15,923
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_01_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63112/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_01.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_01_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_01_good(void) { goodG2B(); return; }
['gcc']
15,924
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_02_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); if(1) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63113/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_02.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_02_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_02_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_50; puStack_18 = auStack_70; auStack_50[0] = 0; uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; puStack_10 = puStack_20; lVar1 = func_0x00400a50(&uStack_2b,0x10,2); func_0x00400ab0(puStack_20,&uStack_2b,lVar1 + 1); printLine(puStack_20); return; }
['gcc']
15,925
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_02_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63113/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_02.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_02_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_02_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
15,926
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_03_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); if(5==5) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63114/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_03.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_03_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_03_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_50; puStack_18 = auStack_70; auStack_50[0] = 0; uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; puStack_10 = puStack_20; lVar1 = func_0x00400a50(&uStack_2b,0x10,2); func_0x00400ab0(puStack_20,&uStack_2b,lVar1 + 1); printLine(puStack_20); return; }
['gcc']
15,927
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_03_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63114/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_03.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_03_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_03_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
15,928
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_04_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); if(STATIC_CONST_TRUE) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63115/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_04.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_04_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_04_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_18 = auStack_50; puStack_20 = auStack_70; auStack_50[0] = 0; uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; puStack_10 = puStack_18; lVar1 = func_0x00400a50(&uStack_2b,0x10,2); func_0x00400ab0(puStack_10,&uStack_2b,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
15,929
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_04_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63115/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_04.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_04_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_04_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
15,930
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_05_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); if(staticTrue) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63116/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_05.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_05_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_05_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_18 = auStack_50; puStack_20 = auStack_70; if (staticTrue != 0) { auStack_50[0] = 0; puStack_10 = puStack_18; } uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; lVar1 = func_0x00400a50(&uStack_2b,0x10,2); func_0x00400ab0(puStack_10,&uStack_2b,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
15,931
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_05_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63116/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_05.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_05_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_05_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
15,932
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_06_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); if(STATIC_CONST_FIVE==5) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63117/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_06.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_06_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_06_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_18 = auStack_50; puStack_20 = auStack_70; auStack_50[0] = 0; uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; puStack_10 = puStack_18; lVar1 = func_0x00400a50(&uStack_2b,0x10,2); func_0x00400ab0(puStack_10,&uStack_2b,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
15,933
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_06_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63117/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_06.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_06_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_06_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
15,934
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_07_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); if(staticFive==5) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63118/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_07.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_07_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_07_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_18 = auStack_50; puStack_20 = auStack_70; if (staticFive == 5) { auStack_50[0] = 0; puStack_10 = puStack_18; } uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; lVar1 = func_0x00400a50(&uStack_2b,0x10,2); func_0x00400ab0(puStack_10,&uStack_2b,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
15,935
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_07_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63118/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_07.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_07_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_07_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
15,936
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_08_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); if(staticReturnsTrue()) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63119/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_08.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_08_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_08_bad(undefined8 param_1) { int iVar1; long lVar2; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_18 = auStack_50; puStack_20 = auStack_70; iVar1 = staticReturnsTrue(param_1,0x10,2); if (iVar1 != 0) { puStack_10 = puStack_18; *puStack_18 = 0; } uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; lVar2 = func_0x00400a50(&uStack_2b); func_0x00400ab0(puStack_10,&uStack_2b,lVar2 + 1); printLine(puStack_10); return; }
['gcc']
15,937
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_08_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63119/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_08.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_08_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_08_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
15,938
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_09_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); if(GLOBAL_CONST_TRUE) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63120/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_09.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_09_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_09_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_18 = auStack_50; puStack_20 = auStack_70; if (GLOBAL_CONST_TRUE != 0) { auStack_50[0] = 0; puStack_10 = puStack_18; } uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; lVar1 = func_0x00400a50(&uStack_2b,0x10,2); func_0x00400ab0(puStack_10,&uStack_2b,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
15,939
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_09_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63120/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_09.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_09_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_09_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
15,940
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_10_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); if(globalTrue) { /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = '\0'; /* null terminate */ } { char source[10+1] = SRC_STRING; /* Copy length + 1 to include NUL terminator from source */ /* POTENTIAL FLAW: data may not have enough space to hold source */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63121/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_10.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_10_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_10_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_18 = auStack_50; puStack_20 = auStack_70; if (globalTrue != 0) { auStack_50[0] = 0; puStack_10 = puStack_18; } uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; lVar1 = func_0x00400a50(&uStack_2b,0x10,2); func_0x00400ab0(puStack_10,&uStack_2b,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
15,941
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_10_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63121/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_10.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_10_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_10_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
15,942
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_11_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); 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 */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63122/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_11.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_11_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_11_bad(undefined8 param_1) { int iVar1; long lVar2; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_18 = auStack_50; puStack_20 = auStack_70; iVar1 = globalReturnsTrue(param_1,0x10,2); if (iVar1 != 0) { puStack_10 = puStack_18; *puStack_18 = 0; } uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; lVar2 = func_0x00400a50(&uStack_2b); func_0x00400ab0(puStack_10,&uStack_2b,lVar2 + 1); printLine(puStack_10); return; }
['gcc']
15,943
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_11_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63122/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_11.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_11_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_11_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
15,944
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_12_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); 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 */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* 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/63123/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_12.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_12_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_12_bad(undefined8 param_1) { int iVar1; long lVar2; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_18 = auStack_50; puStack_20 = auStack_70; iVar1 = globalReturnsTrueOrFalse(param_1,0x10,2); if (iVar1 == 0) { puStack_10 = puStack_20; *puStack_20 = 0; } else { puStack_10 = puStack_18; *puStack_18 = 0; } uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; lVar2 = func_0x00400a50(&uStack_2b); func_0x00400ab0(puStack_10,&uStack_2b,lVar2 + 1); printLine(puStack_10); return; }
['gcc']
15,945
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_12_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63123/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_12.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_12_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_12_good(void) { goodG2B(); return; }
['gcc']
15,946
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_13_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); 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 */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63124/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_13.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_13_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_13_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_18 = auStack_50; puStack_20 = auStack_70; if (GLOBAL_CONST_FIVE == 5) { auStack_50[0] = 0; puStack_10 = puStack_18; } uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; lVar1 = func_0x00400a50(&uStack_2b,0x10,2); func_0x00400ab0(puStack_10,&uStack_2b,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
15,947
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_13_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63124/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_13.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_13_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_13_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
15,948
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_14_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); 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 */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63125/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_14.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_14_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_14_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_18 = auStack_50; puStack_20 = auStack_70; if (globalFive == 5) { auStack_50[0] = 0; puStack_10 = puStack_18; } uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; lVar1 = func_0x00400a50(&uStack_2b,0x10,2); func_0x00400ab0(puStack_10,&uStack_2b,lVar1 + 1); printLine(puStack_10); return; }
['gcc']
15,949
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_14_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63125/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_14.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_14_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_14_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
15,950
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_15_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); 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 */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* 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/63126/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_15.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_15_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_15_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_50; puStack_18 = auStack_70; auStack_50[0] = 0; uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; puStack_10 = puStack_20; lVar1 = func_0x00400a50(&uStack_2b,0x10,2); func_0x00400ab0(puStack_20,&uStack_2b,lVar1 + 1); printLine(puStack_20); return; }
['gcc']
15,951
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_15_good() { goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63126/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_15.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_15_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_15_good(void) { goodG2B1(); goodG2B2(); return; }
['gcc']
15,952
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_16_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); 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 */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63127/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_16.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_16_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_16_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_50; puStack_18 = auStack_70; auStack_50[0] = 0; uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; puStack_10 = puStack_20; lVar1 = func_0x00400a50(&uStack_2b,0x10,2); func_0x00400ab0(puStack_20,&uStack_2b,lVar1 + 1); printLine(puStack_20); return; }
['gcc']
15,953
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_16_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63127/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_16.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_16_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_16_good(void) { goodG2B(); return; }
['gcc']
15,954
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_17_bad() { int i; char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); 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 */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63128/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_17.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_17_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_17_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [29]; undefined8 uStack_33; undefined2 uStack_2b; undefined uStack_29; undefined *puStack_28; undefined *puStack_20; undefined *puStack_18; int iStack_c; puStack_20 = auStack_50; puStack_28 = auStack_70; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { puStack_18 = puStack_20; *puStack_20 = 0; } uStack_33 = 0x4141414141414141; uStack_2b = 0x4141; uStack_29 = 0; lVar1 = func_0x00400a50(&uStack_33,0x10,2); func_0x00400ab0(puStack_18,&uStack_33,lVar1 + 1); printLine(puStack_18); return; }
['gcc']
15,955
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_17_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63128/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_17.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_17_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_17_good(void) { goodG2B(); return; }
['gcc']
15,956
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_18_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); 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 */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63129/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_18.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_18_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_18_bad(void) { long lVar1; undefined auStack_70 [32]; undefined auStack_50 [37]; undefined8 uStack_2b; undefined2 uStack_23; undefined uStack_21; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_50; puStack_18 = auStack_70; auStack_50[0] = 0; uStack_2b = 0x4141414141414141; uStack_23 = 0x4141; uStack_21 = 0; puStack_10 = puStack_20; lVar1 = func_0x00400a50(&uStack_2b,0x10,2); func_0x00400ab0(puStack_20,&uStack_2b,lVar1 + 1); printLine(puStack_20); return; }
['gcc']
15,957
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_18_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63129/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_18.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_18_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_18_good(void) { goodG2B(); return; }
['gcc']
15,958
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_31_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); /* 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 */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63130/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_31.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_31_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_31_bad(void) { long lVar1; undefined auStack_80 [32]; undefined auStack_60 [37]; undefined8 uStack_3b; undefined2 uStack_33; undefined uStack_31; undefined *puStack_30; undefined *puStack_28; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_30 = auStack_60; puStack_18 = auStack_80; auStack_60[0] = 0; uStack_3b = 0x4141414141414141; uStack_33 = 0x4141; uStack_31 = 0; puStack_28 = puStack_30; puStack_20 = puStack_30; puStack_10 = puStack_30; lVar1 = func_0x00400a50(&uStack_3b,0x10,2); func_0x00400ab0(puStack_30,&uStack_3b,lVar1 + 1); printLine(puStack_30); return; }
['gcc']
15,959
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_31_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63130/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_31.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_31_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_31_good(void) { goodG2B(); return; }
['gcc']
15,960
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_32_bad() { char * data; char * *dataPtr1 = &data; char * *dataPtr2 = &data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); { 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 */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63131/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_32.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_32_bad
/* WARNING: Heritage AFTER dead removal. Example location: s0xffffffffffffffc0 : 0x00400c8b */ /* WARNING: Restarted to delay deadcode elimination for space: stack */ void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_32_bad(void) { long lVar1; undefined auStack_90 [32]; undefined auStack_70 [37]; undefined8 uStack_4b; undefined2 uStack_43; undefined uStack_41; undefined8 uStack_40; undefined8 uStack_38; undefined *puStack_30; undefined *puStack_28; undefined *puStack_20; undefined8 *puStack_18; undefined8 *puStack_10; puStack_10 = &uStack_40; puStack_18 = &uStack_40; puStack_30 = auStack_70; puStack_28 = auStack_90; auStack_70[0] = 0; uStack_38 = uStack_40; uStack_4b = 0x4141414141414141; uStack_43 = 0x4141; uStack_41 = 0; puStack_20 = puStack_30; lVar1 = func_0x00400a50(&uStack_4b); func_0x00400ab0(uStack_38,&uStack_4b,lVar1 + 1); printLine(uStack_38); return; }
['gcc']
15,961
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_32_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63131/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_32.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_32_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_32_good(void) { goodG2B(); return; }
['gcc']
15,962
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_34_bad() { char * data; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_34_unionType myUnion; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); /* 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 */ memcpy(data, source, (strlen(source) + 1) * sizeof(char)); printLine(data); } } }
['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */']
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63133/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_34.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_34_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_34_bad(void) { long lVar1; undefined auStack_80 [32]; undefined auStack_60 [37]; undefined8 uStack_3b; undefined2 uStack_33; undefined uStack_31; undefined *puStack_30; undefined *puStack_28; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_30 = auStack_60; puStack_18 = auStack_80; auStack_60[0] = 0; uStack_3b = 0x4141414141414141; uStack_33 = 0x4141; uStack_31 = 0; puStack_28 = puStack_30; puStack_20 = puStack_30; puStack_10 = puStack_30; lVar1 = func_0x00400a50(&uStack_3b,0x10,2); func_0x00400ab0(puStack_28,&uStack_3b,lVar1 + 1); printLine(puStack_28); return; }
['gcc']
15,963
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_34_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63133/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_34.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_34_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_34_good(void) { goodG2B(); return; }
['gcc']
15,964
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_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 */ memcpy(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/63134/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_41_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_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_0x00400a50(&uStack_13); func_0x00400ab0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
15,965
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_41_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); /* 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_alloca_memcpy_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/63134/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_41_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_41_bad(void) { undefined auStack_60 [32]; undefined auStack_40 [32]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_40; puStack_18 = auStack_60; auStack_40[0] = 0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_41_badSink(puStack_20,0x10,2); return; }
['gcc']
15,966
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_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 */ memcpy(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/63134/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_41_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_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_0x00400a50(&uStack_13); func_0x00400ab0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
15,967
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_41_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63134/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_41.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_41_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_41_good(void) { goodG2B(); return; }
['gcc']
15,968
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_51_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); /* 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_alloca_memcpy_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/63137/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_51a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_51_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_51_bad(void) { undefined auStack_60 [32]; undefined auStack_40 [32]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_40; puStack_18 = auStack_60; auStack_40[0] = 0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_51b_badSink(puStack_20,0x10,2); return; }
['gcc']
15,969
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_51_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63137/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_51a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_51_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_51_good(void) { goodG2B(); return; }
['gcc']
15,970
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_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 */ memcpy(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/63137/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_51b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_51b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_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_0x00400a50(&uStack_13); func_0x00400ab0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
15,971
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_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 */ memcpy(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/63137/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_51b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_51b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_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_0x00400a50(&uStack_13); func_0x00400ab0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
15,972
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_52_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); /* 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_alloca_memcpy_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/63138/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_52a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_52_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_52_bad(void) { undefined auStack_60 [32]; undefined auStack_40 [32]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_40; puStack_18 = auStack_60; auStack_40[0] = 0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_52b_badSink(puStack_20,0x10,2); return; }
['gcc']
15,973
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_52_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63138/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_52a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_52_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_52_good(void) { goodG2B(); return; }
['gcc']
15,974
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_52b_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_52c_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63138/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_52b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_52b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_52b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_52c_badSink(param_1); return; }
['gcc']
15,975
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_52b_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_52c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63138/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_52b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_52b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_52b_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_52c_goodG2BSink(param_1); return; }
['gcc']
15,976
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_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 */ memcpy(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/63138/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_52c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_52c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_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_0x00400a50(&uStack_13); func_0x00400ab0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
15,977
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_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 */ memcpy(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/63138/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_52c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_52c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_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_0x00400a50(&uStack_13); func_0x00400ab0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
15,978
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); /* 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_alloca_memcpy_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/63139/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53_bad(void) { undefined auStack_60 [32]; undefined auStack_40 [32]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_40; puStack_18 = auStack_60; auStack_40[0] = 0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53b_badSink(puStack_20,0x10,2); return; }
['gcc']
15,979
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63139/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53_good(void) { goodG2B(); return; }
['gcc']
15,980
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53b_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53c_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63139/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53c_badSink(param_1); return; }
['gcc']
15,981
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53b_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63139/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53b_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53c_goodG2BSink(param_1); return; }
['gcc']
15,982
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53c_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53d_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63139/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53c_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53d_badSink(param_1); return; }
['gcc']
15,983
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53c_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63139/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53c_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53d_goodG2BSink(param_1); return; }
['gcc']
15,984
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_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 */ memcpy(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/63139/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53d.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53d_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_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_0x00400a50(&uStack_13); func_0x00400ab0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
15,985
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_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 */ memcpy(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/63139/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53d.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_53d_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_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_0x00400a50(&uStack_13); func_0x00400ab0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
15,986
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); /* 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_alloca_memcpy_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/63140/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54_bad(void) { undefined auStack_60 [32]; undefined auStack_40 [32]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_40; puStack_18 = auStack_60; auStack_40[0] = 0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54b_badSink(puStack_20,0x10,2); return; }
['gcc']
15,987
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63140/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54_good(void) { goodG2B(); return; }
['gcc']
15,988
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54b_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54c_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63140/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54b_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54c_badSink(param_1); return; }
['gcc']
15,989
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54b_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63140/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54b_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54c_goodG2BSink(param_1); return; }
['gcc']
15,990
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54c_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54d_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63140/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54c_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54c_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54d_badSink(param_1); return; }
['gcc']
15,991
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54c_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63140/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54c.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54c_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54c_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54d_goodG2BSink(param_1); return; }
['gcc']
15,992
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54d_badSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54e_badSink(data); }
[]
['CWE121', 'CWE193']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63140/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54d.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54d_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54d_badSink(undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54e_badSink(param_1); return; }
['gcc']
15,993
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54d_goodG2BSink(char * data) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54e_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63140/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54d.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54d_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54d_goodG2BSink (undefined8 param_1) { CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54e_goodG2BSink(param_1); return; }
['gcc']
15,994
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_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 */ memcpy(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/63140/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54e.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54e_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_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_0x00400a50(&uStack_13); func_0x00400ab0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
15,995
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_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 */ memcpy(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/63140/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54e.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_54e_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_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_0x00400a50(&uStack_13); func_0x00400ab0(param_1,&uStack_13,lVar1 + 1); printLine(param_1); return; }
['gcc']
15,996
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_63_bad() { char * data; char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char)); char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char)); /* 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_alloca_memcpy_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/63141/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_63a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_63_bad
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_63_bad(void) { undefined auStack_60 [32]; undefined auStack_40 [32]; undefined *puStack_20; undefined *puStack_18; undefined *puStack_10; puStack_20 = auStack_40; puStack_18 = auStack_60; auStack_40[0] = 0; puStack_10 = puStack_20; CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_63b_badSink(&puStack_20,0x10,2); return; }
['gcc']
15,997
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_63_good() { goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63141/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_63a.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_63_good
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_63_good(void) { goodG2B(); return; }
['gcc']
15,998
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_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 */ memcpy(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/63141/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_63b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_63b_badSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_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_0x00400a50(&uStack_1b); func_0x00400ab0(uStack_10,&uStack_1b,lVar1 + 1); printLine(uStack_10); return; }
['gcc']
15,999
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_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 */ memcpy(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/63141/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_63b.c
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_63b_goodG2BSink
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memcpy_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_0x00400a50(&uStack_1b); func_0x00400ab0(uStack_10,&uStack_1b,lVar1 + 1); printLine(uStack_10); return; }
['gcc']