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
3,200
void CWE467_Use_of_sizeof_on_Pointer_Type__short_14_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104418/CWE467_Use_of_sizeof_on_Pointer_Type__short_14.c
CWE467_Use_of_sizeof_on_Pointer_Type__short_14_good
void CWE467_Use_of_sizeof_on_Pointer_Type__short_14_good(void) { good1(); good2(); return; }
['gcc']
3,201
void CWE467_Use_of_sizeof_on_Pointer_Type__short_15_bad() { switch(6) { case 6: { short * badShort = NULL; /* FLAW: Using sizeof the pointer and not the data type in malloc() */ badShort = (short *)malloc(sizeof(badShort)); *badShort = 5; printShortLine(*badShort); free(badShort); } break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } }
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */']
['CWE467']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104419/CWE467_Use_of_sizeof_on_Pointer_Type__short_15.c
CWE467_Use_of_sizeof_on_Pointer_Type__short_15_bad
void CWE467_Use_of_sizeof_on_Pointer_Type__short_15_bad(void) { short *psVar1; psVar1 = (short *)func_0x00400ab0(8); *psVar1 = 5; printShortLine((int)*psVar1); func_0x00400a20(psVar1); return; }
['gcc']
3,202
void CWE467_Use_of_sizeof_on_Pointer_Type__short_15_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104419/CWE467_Use_of_sizeof_on_Pointer_Type__short_15.c
CWE467_Use_of_sizeof_on_Pointer_Type__short_15_good
void CWE467_Use_of_sizeof_on_Pointer_Type__short_15_good(void) { good1(); good2(); return; }
['gcc']
3,203
void CWE467_Use_of_sizeof_on_Pointer_Type__short_16_bad() { while(1) { { short * badShort = NULL; /* FLAW: Using sizeof the pointer and not the data type in malloc() */ badShort = (short *)malloc(sizeof(badShort)); *badShort = 5; printShortLine(*badShort); free(badShort); } break; } }
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
['CWE467']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104420/CWE467_Use_of_sizeof_on_Pointer_Type__short_16.c
CWE467_Use_of_sizeof_on_Pointer_Type__short_16_bad
void CWE467_Use_of_sizeof_on_Pointer_Type__short_16_bad(void) { short *psVar1; psVar1 = (short *)func_0x00400ab0(8); *psVar1 = 5; printShortLine((int)*psVar1); func_0x00400a20(psVar1); return; }
['gcc']
3,204
void CWE467_Use_of_sizeof_on_Pointer_Type__short_16_good() { good1(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104420/CWE467_Use_of_sizeof_on_Pointer_Type__short_16.c
CWE467_Use_of_sizeof_on_Pointer_Type__short_16_good
void CWE467_Use_of_sizeof_on_Pointer_Type__short_16_good(void) { good1(); return; }
['gcc']
3,205
void CWE467_Use_of_sizeof_on_Pointer_Type__short_17_bad() { int j; for(j = 0; j < 1; j++) { { short * badShort = NULL; /* FLAW: Using sizeof the pointer and not the data type in malloc() */ badShort = (short *)malloc(sizeof(badShort)); *badShort = 5; printShortLine(*badShort); free(badShort); } } }
['/* FLAW: Using sizeof the pointer and not the data type in malloc() */']
['CWE467']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104421/CWE467_Use_of_sizeof_on_Pointer_Type__short_17.c
CWE467_Use_of_sizeof_on_Pointer_Type__short_17_bad
void CWE467_Use_of_sizeof_on_Pointer_Type__short_17_bad(void) { short *psVar1; int iStack_c; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { psVar1 = (short *)func_0x00400ab0(8); *psVar1 = 5; printShortLine((int)*psVar1); func_0x00400a20(psVar1); } return; }
['gcc']
3,206
void CWE467_Use_of_sizeof_on_Pointer_Type__short_17_good() { good1(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104421/CWE467_Use_of_sizeof_on_Pointer_Type__short_17.c
CWE467_Use_of_sizeof_on_Pointer_Type__short_17_good
void CWE467_Use_of_sizeof_on_Pointer_Type__short_17_good(void) { good1(); return; }
['gcc']
3,207
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_02_bad() { if(1) { { char string1[] = SOURCE_STRING; char string2[] = SOURCE_STRING; char * slashInString1; size_t indexOfSlashInString1; slashInString1 = strchr(string1, '/'); if (slashInString1 == NULL) { exit(1); } /* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */ indexOfSlashInString1 = (size_t)(slashInString1 - string2); /* print the index of where the slash was found */ printUnsignedLine(indexOfSlashInString1); } } }
['/* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */', '/* print the index of where the slash was found */']
['CWE469']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104461/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_02.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_02_bad
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_02_bad(void) { undefined8 uStack_30; undefined4 uStack_28; undefined8 uStack_24; undefined4 uStack_1c; ulong uStack_18; long lStack_10; uStack_24 = 0x7271706f2f636261; uStack_1c = 0x757473; uStack_30 = 0x7271706f2f636261; uStack_28 = 0x757473; lStack_10 = func_0x00400a40(&uStack_24,0x2f); if (lStack_10 == 0) { func_0x00400ad0(1); } uStack_18 = lStack_10 - (long)&uStack_30; printUnsignedLine(uStack_18 & 0xffffffff); return; }
['gcc']
3,208
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_02_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104461/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_02.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_02_good
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_02_good(void) { good1(); good2(); return; }
['gcc']
3,209
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_03_bad() { if(5==5) { { char string1[] = SOURCE_STRING; char string2[] = SOURCE_STRING; char * slashInString1; size_t indexOfSlashInString1; slashInString1 = strchr(string1, '/'); if (slashInString1 == NULL) { exit(1); } /* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */ indexOfSlashInString1 = (size_t)(slashInString1 - string2); /* print the index of where the slash was found */ printUnsignedLine(indexOfSlashInString1); } } }
['/* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */', '/* print the index of where the slash was found */']
['CWE469']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104462/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_03.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_03_bad
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_03_bad(void) { undefined8 uStack_30; undefined4 uStack_28; undefined8 uStack_24; undefined4 uStack_1c; ulong uStack_18; long lStack_10; uStack_24 = 0x7271706f2f636261; uStack_1c = 0x757473; uStack_30 = 0x7271706f2f636261; uStack_28 = 0x757473; lStack_10 = func_0x00400a40(&uStack_24,0x2f); if (lStack_10 == 0) { func_0x00400ad0(1); } uStack_18 = lStack_10 - (long)&uStack_30; printUnsignedLine(uStack_18 & 0xffffffff); return; }
['gcc']
3,210
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_03_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104462/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_03.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_03_good
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_03_good(void) { good1(); good2(); return; }
['gcc']
3,211
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_04_bad() { if(STATIC_CONST_TRUE) { { char string1[] = SOURCE_STRING; char string2[] = SOURCE_STRING; char * slashInString1; size_t indexOfSlashInString1; slashInString1 = strchr(string1, '/'); if (slashInString1 == NULL) { exit(1); } /* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */ indexOfSlashInString1 = (size_t)(slashInString1 - string2); /* print the index of where the slash was found */ printUnsignedLine(indexOfSlashInString1); } } }
['/* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */', '/* print the index of where the slash was found */']
['CWE469']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104463/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_04.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_04_bad
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_04_bad(void) { undefined8 uStack_30; undefined4 uStack_28; undefined8 uStack_24; undefined4 uStack_1c; ulong uStack_18; long lStack_10; uStack_24 = 0x7271706f2f636261; uStack_1c = 0x757473; uStack_30 = 0x7271706f2f636261; uStack_28 = 0x757473; lStack_10 = func_0x00400a40(&uStack_24,0x2f); if (lStack_10 == 0) { func_0x00400ad0(1); } uStack_18 = lStack_10 - (long)&uStack_30; printUnsignedLine(uStack_18 & 0xffffffff); return; }
['gcc']
3,212
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_04_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104463/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_04.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_04_good
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_04_good(void) { good1(); good2(); return; }
['gcc']
3,213
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_05_bad() { if(staticTrue) { { char string1[] = SOURCE_STRING; char string2[] = SOURCE_STRING; char * slashInString1; size_t indexOfSlashInString1; slashInString1 = strchr(string1, '/'); if (slashInString1 == NULL) { exit(1); } /* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */ indexOfSlashInString1 = (size_t)(slashInString1 - string2); /* print the index of where the slash was found */ printUnsignedLine(indexOfSlashInString1); } } }
['/* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */', '/* print the index of where the slash was found */']
['CWE469']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104464/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_05.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_05_bad
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_05_bad(void) { undefined8 uStack_30; undefined4 uStack_28; undefined8 uStack_24; undefined4 uStack_1c; ulong uStack_18; long lStack_10; if (staticTrue != 0) { uStack_24 = 0x7271706f2f636261; uStack_1c = 0x757473; uStack_30 = 0x7271706f2f636261; uStack_28 = 0x757473; lStack_10 = func_0x00400a40(&uStack_24,0x2f); if (lStack_10 == 0) { func_0x00400ad0(1); } uStack_18 = lStack_10 - (long)&uStack_30; printUnsignedLine(uStack_18 & 0xffffffff); } return; }
['gcc']
3,214
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_05_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104464/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_05.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_05_good
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_05_good(void) { good1(); good2(); return; }
['gcc']
3,215
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_06_bad() { if(STATIC_CONST_FIVE==5) { { char string1[] = SOURCE_STRING; char string2[] = SOURCE_STRING; char * slashInString1; size_t indexOfSlashInString1; slashInString1 = strchr(string1, '/'); if (slashInString1 == NULL) { exit(1); } /* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */ indexOfSlashInString1 = (size_t)(slashInString1 - string2); /* print the index of where the slash was found */ printUnsignedLine(indexOfSlashInString1); } } }
['/* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */', '/* print the index of where the slash was found */']
['CWE469']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104465/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_06.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_06_bad
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_06_bad(void) { undefined8 uStack_30; undefined4 uStack_28; undefined8 uStack_24; undefined4 uStack_1c; ulong uStack_18; long lStack_10; uStack_24 = 0x7271706f2f636261; uStack_1c = 0x757473; uStack_30 = 0x7271706f2f636261; uStack_28 = 0x757473; lStack_10 = func_0x00400a40(&uStack_24,0x2f); if (lStack_10 == 0) { func_0x00400ad0(1); } uStack_18 = lStack_10 - (long)&uStack_30; printUnsignedLine(uStack_18 & 0xffffffff); return; }
['gcc']
3,216
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_06_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104465/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_06.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_06_good
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_06_good(void) { good1(); good2(); return; }
['gcc']
3,217
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_07_bad() { if(staticFive==5) { { char string1[] = SOURCE_STRING; char string2[] = SOURCE_STRING; char * slashInString1; size_t indexOfSlashInString1; slashInString1 = strchr(string1, '/'); if (slashInString1 == NULL) { exit(1); } /* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */ indexOfSlashInString1 = (size_t)(slashInString1 - string2); /* print the index of where the slash was found */ printUnsignedLine(indexOfSlashInString1); } } }
['/* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */', '/* print the index of where the slash was found */']
['CWE469']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104466/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_07.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_07_bad
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_07_bad(void) { undefined8 uStack_30; undefined4 uStack_28; undefined8 uStack_24; undefined4 uStack_1c; ulong uStack_18; long lStack_10; if (staticFive == 5) { uStack_24 = 0x7271706f2f636261; uStack_1c = 0x757473; uStack_30 = 0x7271706f2f636261; uStack_28 = 0x757473; lStack_10 = func_0x00400a40(&uStack_24,0x2f); if (lStack_10 == 0) { func_0x00400ad0(1); } uStack_18 = lStack_10 - (long)&uStack_30; printUnsignedLine(uStack_18 & 0xffffffff); } return; }
['gcc']
3,218
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_07_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104466/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_07.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_07_good
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_07_good(void) { good1(); good2(); return; }
['gcc']
3,219
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_08_bad() { if(staticReturnsTrue()) { { char string1[] = SOURCE_STRING; char string2[] = SOURCE_STRING; char * slashInString1; size_t indexOfSlashInString1; slashInString1 = strchr(string1, '/'); if (slashInString1 == NULL) { exit(1); } /* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */ indexOfSlashInString1 = (size_t)(slashInString1 - string2); /* print the index of where the slash was found */ printUnsignedLine(indexOfSlashInString1); } } }
['/* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */', '/* print the index of where the slash was found */']
['CWE469']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104467/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_08.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_08_bad
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_08_bad(void) { int iVar1; undefined8 uStack_30; undefined4 uStack_28; undefined8 uStack_24; undefined4 uStack_1c; ulong uStack_18; long lStack_10; iVar1 = staticReturnsTrue(); if (iVar1 != 0) { uStack_24 = 0x7271706f2f636261; uStack_1c = 0x757473; uStack_30 = 0x7271706f2f636261; uStack_28 = 0x757473; lStack_10 = func_0x00400a40(&uStack_24,0x2f); if (lStack_10 == 0) { func_0x00400ad0(1); } uStack_18 = lStack_10 - (long)&uStack_30; printUnsignedLine(uStack_18 & 0xffffffff); } return; }
['gcc']
3,220
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_08_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104467/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_08.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_08_good
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_08_good(void) { good1(); good2(); return; }
['gcc']
3,221
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_09_bad() { if(GLOBAL_CONST_TRUE) { { char string1[] = SOURCE_STRING; char string2[] = SOURCE_STRING; char * slashInString1; size_t indexOfSlashInString1; slashInString1 = strchr(string1, '/'); if (slashInString1 == NULL) { exit(1); } /* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */ indexOfSlashInString1 = (size_t)(slashInString1 - string2); /* print the index of where the slash was found */ printUnsignedLine(indexOfSlashInString1); } } }
['/* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */', '/* print the index of where the slash was found */']
['CWE469']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104468/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_09.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_09_bad
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_09_bad(void) { undefined8 uStack_30; undefined4 uStack_28; undefined8 uStack_24; undefined4 uStack_1c; ulong uStack_18; long lStack_10; if (GLOBAL_CONST_TRUE != 0) { uStack_24 = 0x7271706f2f636261; uStack_1c = 0x757473; uStack_30 = 0x7271706f2f636261; uStack_28 = 0x757473; lStack_10 = func_0x00400a40(&uStack_24,0x2f); if (lStack_10 == 0) { func_0x00400ad0(1); } uStack_18 = lStack_10 - (long)&uStack_30; printUnsignedLine(uStack_18 & 0xffffffff); } return; }
['gcc']
3,222
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_09_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104468/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_09.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_09_good
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_09_good(void) { good1(); good2(); return; }
['gcc']
3,223
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_10_bad() { if(globalTrue) { { char string1[] = SOURCE_STRING; char string2[] = SOURCE_STRING; char * slashInString1; size_t indexOfSlashInString1; slashInString1 = strchr(string1, '/'); if (slashInString1 == NULL) { exit(1); } /* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */ indexOfSlashInString1 = (size_t)(slashInString1 - string2); /* print the index of where the slash was found */ printUnsignedLine(indexOfSlashInString1); } } }
['/* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */', '/* print the index of where the slash was found */']
['CWE469']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104469/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_10.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_10_bad
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_10_bad(void) { undefined8 uStack_30; undefined4 uStack_28; undefined8 uStack_24; undefined4 uStack_1c; ulong uStack_18; long lStack_10; if (globalTrue != 0) { uStack_24 = 0x7271706f2f636261; uStack_1c = 0x757473; uStack_30 = 0x7271706f2f636261; uStack_28 = 0x757473; lStack_10 = func_0x00400a40(&uStack_24,0x2f); if (lStack_10 == 0) { func_0x00400ad0(1); } uStack_18 = lStack_10 - (long)&uStack_30; printUnsignedLine(uStack_18 & 0xffffffff); } return; }
['gcc']
3,224
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_10_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104469/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_10.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_10_good
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_10_good(void) { good1(); good2(); return; }
['gcc']
3,225
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_11_bad() { if(globalReturnsTrue()) { { char string1[] = SOURCE_STRING; char string2[] = SOURCE_STRING; char * slashInString1; size_t indexOfSlashInString1; slashInString1 = strchr(string1, '/'); if (slashInString1 == NULL) { exit(1); } /* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */ indexOfSlashInString1 = (size_t)(slashInString1 - string2); /* print the index of where the slash was found */ printUnsignedLine(indexOfSlashInString1); } } }
['/* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */', '/* print the index of where the slash was found */']
['CWE469']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104470/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_11.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_11_bad
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_11_bad(void) { int iVar1; undefined8 uStack_30; undefined4 uStack_28; undefined8 uStack_24; undefined4 uStack_1c; ulong uStack_18; long lStack_10; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { uStack_24 = 0x7271706f2f636261; uStack_1c = 0x757473; uStack_30 = 0x7271706f2f636261; uStack_28 = 0x757473; lStack_10 = func_0x00400a40(&uStack_24,0x2f); if (lStack_10 == 0) { func_0x00400ad0(1); } uStack_18 = lStack_10 - (long)&uStack_30; printUnsignedLine(uStack_18 & 0xffffffff); } return; }
['gcc']
3,226
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_11_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104470/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_11.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_11_good
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_11_good(void) { good1(); good2(); return; }
['gcc']
3,227
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_12_bad() { if(globalReturnsTrueOrFalse()) { { char string1[] = SOURCE_STRING; char string2[] = SOURCE_STRING; char * slashInString1; size_t indexOfSlashInString1; slashInString1 = strchr(string1, '/'); if (slashInString1 == NULL) { exit(1); } /* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */ indexOfSlashInString1 = (size_t)(slashInString1 - string2); /* print the index of where the slash was found */ printUnsignedLine(indexOfSlashInString1); } } else { { char string1[] = SOURCE_STRING; char * slashInString1; size_t indexOfSlashInString1; slashInString1 = strchr(string1, '/'); if (slashInString1 == NULL) { exit(1); } /* FIX: subtract the ending pointer from the actual string it originated from (string1) */ indexOfSlashInString1 = (size_t)(slashInString1 - string1); /* print the index of where the slash was found */ printUnsignedLine(indexOfSlashInString1); } } }
['/* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */', '/* print the index of where the slash was found */', '/* FIX: subtract the ending pointer from the actual string it originated from (string1) */', '/* print the index of where the slash was found */']
['CWE469']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104471/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_12.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_12_bad
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_12_bad(void) { int iVar1; undefined8 uStack_4c; undefined4 uStack_44; undefined8 uStack_40; undefined4 uStack_38; undefined8 uStack_34; undefined4 uStack_2c; ulong uStack_28; long lStack_20; ulong uStack_18; long lStack_10; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { uStack_4c = 0x7271706f2f636261; uStack_44 = 0x757473; lStack_10 = func_0x00400a40(&uStack_4c,0x2f); if (lStack_10 == 0) { func_0x00400ad0(1); } uStack_18 = lStack_10 - (long)&uStack_4c; printUnsignedLine(uStack_18 & 0xffffffff); } else { uStack_34 = 0x7271706f2f636261; uStack_2c = 0x757473; uStack_40 = 0x7271706f2f636261; uStack_38 = 0x757473; lStack_20 = func_0x00400a40(&uStack_34,0x2f); if (lStack_20 == 0) { func_0x00400ad0(1); } uStack_28 = lStack_20 - (long)&uStack_40; printUnsignedLine(uStack_28 & 0xffffffff); } return; }
['gcc']
3,228
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_12_good() { good1(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104471/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_12.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_12_good
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_12_good(void) { good1(); return; }
['gcc']
3,229
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_13_bad() { if(GLOBAL_CONST_FIVE==5) { { char string1[] = SOURCE_STRING; char string2[] = SOURCE_STRING; char * slashInString1; size_t indexOfSlashInString1; slashInString1 = strchr(string1, '/'); if (slashInString1 == NULL) { exit(1); } /* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */ indexOfSlashInString1 = (size_t)(slashInString1 - string2); /* print the index of where the slash was found */ printUnsignedLine(indexOfSlashInString1); } } }
['/* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */', '/* print the index of where the slash was found */']
['CWE469']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104472/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_13.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_13_bad
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_13_bad(void) { undefined8 uStack_30; undefined4 uStack_28; undefined8 uStack_24; undefined4 uStack_1c; ulong uStack_18; long lStack_10; if (GLOBAL_CONST_FIVE == 5) { uStack_24 = 0x7271706f2f636261; uStack_1c = 0x757473; uStack_30 = 0x7271706f2f636261; uStack_28 = 0x757473; lStack_10 = func_0x00400a40(&uStack_24,0x2f); if (lStack_10 == 0) { func_0x00400ad0(1); } uStack_18 = lStack_10 - (long)&uStack_30; printUnsignedLine(uStack_18 & 0xffffffff); } return; }
['gcc']
3,230
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_13_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104472/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_13.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_13_good
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_13_good(void) { good1(); good2(); return; }
['gcc']
3,231
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_14_bad() { if(globalFive==5) { { char string1[] = SOURCE_STRING; char string2[] = SOURCE_STRING; char * slashInString1; size_t indexOfSlashInString1; slashInString1 = strchr(string1, '/'); if (slashInString1 == NULL) { exit(1); } /* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */ indexOfSlashInString1 = (size_t)(slashInString1 - string2); /* print the index of where the slash was found */ printUnsignedLine(indexOfSlashInString1); } } }
['/* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */', '/* print the index of where the slash was found */']
['CWE469']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104473/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_14.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_14_bad
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_14_bad(void) { undefined8 uStack_30; undefined4 uStack_28; undefined8 uStack_24; undefined4 uStack_1c; ulong uStack_18; long lStack_10; if (globalFive == 5) { uStack_24 = 0x7271706f2f636261; uStack_1c = 0x757473; uStack_30 = 0x7271706f2f636261; uStack_28 = 0x757473; lStack_10 = func_0x00400a40(&uStack_24,0x2f); if (lStack_10 == 0) { func_0x00400ad0(1); } uStack_18 = lStack_10 - (long)&uStack_30; printUnsignedLine(uStack_18 & 0xffffffff); } return; }
['gcc']
3,232
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_14_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104473/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_14.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_14_good
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_14_good(void) { good1(); good2(); return; }
['gcc']
3,233
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_15_bad() { switch(6) { case 6: { char string1[] = SOURCE_STRING; char string2[] = SOURCE_STRING; char * slashInString1; size_t indexOfSlashInString1; slashInString1 = strchr(string1, '/'); if (slashInString1 == NULL) { exit(1); } /* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */ indexOfSlashInString1 = (size_t)(slashInString1 - string2); /* print the index of where the slash was found */ printUnsignedLine(indexOfSlashInString1); } break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } }
['/* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */', '/* print the index of where the slash was found */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */']
['CWE469']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104474/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_15.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_15_bad
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_15_bad(void) { undefined8 uStack_30; undefined4 uStack_28; undefined8 uStack_24; undefined4 uStack_1c; ulong uStack_18; long lStack_10; uStack_24 = 0x7271706f2f636261; uStack_1c = 0x757473; uStack_30 = 0x7271706f2f636261; uStack_28 = 0x757473; lStack_10 = func_0x00400a40(&uStack_24,0x2f); if (lStack_10 == 0) { func_0x00400ad0(1); } uStack_18 = lStack_10 - (long)&uStack_30; printUnsignedLine(uStack_18 & 0xffffffff); return; }
['gcc']
3,234
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_15_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104474/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_15.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_15_good
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_15_good(void) { good1(); good2(); return; }
['gcc']
3,235
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_16_bad() { while(1) { { char string1[] = SOURCE_STRING; char string2[] = SOURCE_STRING; char * slashInString1; size_t indexOfSlashInString1; slashInString1 = strchr(string1, '/'); if (slashInString1 == NULL) { exit(1); } /* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */ indexOfSlashInString1 = (size_t)(slashInString1 - string2); /* print the index of where the slash was found */ printUnsignedLine(indexOfSlashInString1); } break; } }
['/* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */', '/* print the index of where the slash was found */']
['CWE469']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104475/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_16.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_16_bad
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_16_bad(void) { undefined8 uStack_30; undefined4 uStack_28; undefined8 uStack_24; undefined4 uStack_1c; ulong uStack_18; long lStack_10; uStack_24 = 0x7271706f2f636261; uStack_1c = 0x757473; uStack_30 = 0x7271706f2f636261; uStack_28 = 0x757473; lStack_10 = func_0x00400a40(&uStack_24,0x2f); if (lStack_10 == 0) { func_0x00400ad0(1); } uStack_18 = lStack_10 - (long)&uStack_30; printUnsignedLine(uStack_18 & 0xffffffff); return; }
['gcc']
3,236
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_16_good() { good1(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104475/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_16.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_16_good
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_16_good(void) { good1(); return; }
['gcc']
3,237
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_17_bad() { int j; for(j = 0; j < 1; j++) { { char string1[] = SOURCE_STRING; char string2[] = SOURCE_STRING; char * slashInString1; size_t indexOfSlashInString1; slashInString1 = strchr(string1, '/'); if (slashInString1 == NULL) { exit(1); } /* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */ indexOfSlashInString1 = (size_t)(slashInString1 - string2); /* print the index of where the slash was found */ printUnsignedLine(indexOfSlashInString1); } } }
['/* FLAW: subtracting the slash pointer from a completely different string, should be slashInString1 - string1 */', '/* print the index of where the slash was found */']
['CWE469']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104476/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_17.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_17_bad
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_17_bad(void) { undefined8 uStack_38; undefined4 uStack_30; undefined8 uStack_2c; undefined4 uStack_24; ulong uStack_20; long lStack_18; int iStack_c; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { uStack_2c = 0x7271706f2f636261; uStack_24 = 0x757473; uStack_38 = 0x7271706f2f636261; uStack_30 = 0x757473; lStack_18 = func_0x00400a40(&uStack_2c,0x2f); if (lStack_18 == 0) { func_0x00400ad0(1); } uStack_20 = lStack_18 - (long)&uStack_38; printUnsignedLine(uStack_20 & 0xffffffff); } return; }
['gcc']
3,238
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_17_good() { good1(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104476/CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_17.c
CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_17_good
void CWE469_Use_of_Pointer_Subtraction_to_Determine_Size__char_17_good(void) { good1(); return; }
['gcc']
3,239
void CWE475_Undefined_Behavior_for_Input_to_API__char_02_bad() { if(1) { { char dataBuffer[100] = ""; char * data = dataBuffer; strcpy(data, "abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(char)); printLine(data); } } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104497/CWE475_Undefined_Behavior_for_Input_to_API__char_02.c
CWE475_Undefined_Behavior_for_Input_to_API__char_02_bad
void CWE475_Undefined_Behavior_for_Input_to_API__char_02_bad(void) { undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined8 *puStack_10; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; puStack_10 = &uStack_78; uStack_78 = 0x6867666564636261; uStack_70 = 0x706f6e6d6c6b6a69; uStack_68 = 0x7877767574737271; /* WARNING: Ignoring partial resolution of indirect */ uStack_60._0_2_ = 0x7a79; /* WARNING: Ignoring partial resolution of indirect */ uStack_60._2_1_ = 0; func_0x00400a70((long)&uStack_78 + 6,(long)&uStack_78 + 4,10); printLine(puStack_10); return; }
['gcc']
3,240
void CWE475_Undefined_Behavior_for_Input_to_API__char_02_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104497/CWE475_Undefined_Behavior_for_Input_to_API__char_02.c
CWE475_Undefined_Behavior_for_Input_to_API__char_02_good
void CWE475_Undefined_Behavior_for_Input_to_API__char_02_good(void) { good1(); good2(); return; }
['gcc']
3,241
void CWE475_Undefined_Behavior_for_Input_to_API__char_03_bad() { if(5==5) { { char dataBuffer[100] = ""; char * data = dataBuffer; strcpy(data, "abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(char)); printLine(data); } } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104498/CWE475_Undefined_Behavior_for_Input_to_API__char_03.c
CWE475_Undefined_Behavior_for_Input_to_API__char_03_bad
void CWE475_Undefined_Behavior_for_Input_to_API__char_03_bad(void) { undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined8 *puStack_10; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; puStack_10 = &uStack_78; uStack_78 = 0x6867666564636261; uStack_70 = 0x706f6e6d6c6b6a69; uStack_68 = 0x7877767574737271; /* WARNING: Ignoring partial resolution of indirect */ uStack_60._0_2_ = 0x7a79; /* WARNING: Ignoring partial resolution of indirect */ uStack_60._2_1_ = 0; func_0x00400a70((long)&uStack_78 + 6,(long)&uStack_78 + 4,10); printLine(puStack_10); return; }
['gcc']
3,242
void CWE475_Undefined_Behavior_for_Input_to_API__char_03_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104498/CWE475_Undefined_Behavior_for_Input_to_API__char_03.c
CWE475_Undefined_Behavior_for_Input_to_API__char_03_good
void CWE475_Undefined_Behavior_for_Input_to_API__char_03_good(void) { good1(); good2(); return; }
['gcc']
3,243
void CWE475_Undefined_Behavior_for_Input_to_API__char_04_bad() { if(STATIC_CONST_TRUE) { { char dataBuffer[100] = ""; char * data = dataBuffer; strcpy(data, "abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(char)); printLine(data); } } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104499/CWE475_Undefined_Behavior_for_Input_to_API__char_04.c
CWE475_Undefined_Behavior_for_Input_to_API__char_04_bad
void CWE475_Undefined_Behavior_for_Input_to_API__char_04_bad(void) { undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined8 *puStack_10; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; puStack_10 = &uStack_78; uStack_78 = 0x6867666564636261; uStack_70 = 0x706f6e6d6c6b6a69; uStack_68 = 0x7877767574737271; /* WARNING: Ignoring partial resolution of indirect */ uStack_60._0_2_ = 0x7a79; /* WARNING: Ignoring partial resolution of indirect */ uStack_60._2_1_ = 0; func_0x00400a70((long)&uStack_78 + 6,(long)&uStack_78 + 4,10); printLine(puStack_10); return; }
['gcc']
3,244
void CWE475_Undefined_Behavior_for_Input_to_API__char_04_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104499/CWE475_Undefined_Behavior_for_Input_to_API__char_04.c
CWE475_Undefined_Behavior_for_Input_to_API__char_04_good
void CWE475_Undefined_Behavior_for_Input_to_API__char_04_good(void) { good1(); good2(); return; }
['gcc']
3,245
void CWE475_Undefined_Behavior_for_Input_to_API__char_05_bad() { if(staticTrue) { { char dataBuffer[100] = ""; char * data = dataBuffer; strcpy(data, "abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(char)); printLine(data); } } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104500/CWE475_Undefined_Behavior_for_Input_to_API__char_05.c
CWE475_Undefined_Behavior_for_Input_to_API__char_05_bad
void CWE475_Undefined_Behavior_for_Input_to_API__char_05_bad(void) { undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined8 *puStack_10; if (staticTrue != 0) { uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; puStack_10 = &uStack_78; uStack_78 = 0x6867666564636261; uStack_70 = 0x706f6e6d6c6b6a69; uStack_68 = 0x7877767574737271; /* WARNING: Ignoring partial resolution of indirect */ uStack_60._0_2_ = 0x7a79; /* WARNING: Ignoring partial resolution of indirect */ uStack_60._2_1_ = 0; func_0x00400a70((long)&uStack_78 + 6,(long)&uStack_78 + 4,10); printLine(puStack_10); } return; }
['gcc']
3,246
void CWE475_Undefined_Behavior_for_Input_to_API__char_05_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104500/CWE475_Undefined_Behavior_for_Input_to_API__char_05.c
CWE475_Undefined_Behavior_for_Input_to_API__char_05_good
void CWE475_Undefined_Behavior_for_Input_to_API__char_05_good(void) { good1(); good2(); return; }
['gcc']
3,247
void CWE475_Undefined_Behavior_for_Input_to_API__char_06_bad() { if(STATIC_CONST_FIVE==5) { { char dataBuffer[100] = ""; char * data = dataBuffer; strcpy(data, "abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(char)); printLine(data); } } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104501/CWE475_Undefined_Behavior_for_Input_to_API__char_06.c
CWE475_Undefined_Behavior_for_Input_to_API__char_06_bad
void CWE475_Undefined_Behavior_for_Input_to_API__char_06_bad(void) { undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined8 *puStack_10; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; puStack_10 = &uStack_78; uStack_78 = 0x6867666564636261; uStack_70 = 0x706f6e6d6c6b6a69; uStack_68 = 0x7877767574737271; /* WARNING: Ignoring partial resolution of indirect */ uStack_60._0_2_ = 0x7a79; /* WARNING: Ignoring partial resolution of indirect */ uStack_60._2_1_ = 0; func_0x00400a70((long)&uStack_78 + 6,(long)&uStack_78 + 4,10); printLine(puStack_10); return; }
['gcc']
3,248
void CWE475_Undefined_Behavior_for_Input_to_API__char_06_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104501/CWE475_Undefined_Behavior_for_Input_to_API__char_06.c
CWE475_Undefined_Behavior_for_Input_to_API__char_06_good
void CWE475_Undefined_Behavior_for_Input_to_API__char_06_good(void) { good1(); good2(); return; }
['gcc']
3,249
void CWE475_Undefined_Behavior_for_Input_to_API__char_07_bad() { if(staticFive==5) { { char dataBuffer[100] = ""; char * data = dataBuffer; strcpy(data, "abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(char)); printLine(data); } } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104502/CWE475_Undefined_Behavior_for_Input_to_API__char_07.c
CWE475_Undefined_Behavior_for_Input_to_API__char_07_bad
void CWE475_Undefined_Behavior_for_Input_to_API__char_07_bad(void) { undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined8 *puStack_10; if (staticFive == 5) { uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; puStack_10 = &uStack_78; uStack_78 = 0x6867666564636261; uStack_70 = 0x706f6e6d6c6b6a69; uStack_68 = 0x7877767574737271; /* WARNING: Ignoring partial resolution of indirect */ uStack_60._0_2_ = 0x7a79; /* WARNING: Ignoring partial resolution of indirect */ uStack_60._2_1_ = 0; func_0x00400a70((long)&uStack_78 + 6,(long)&uStack_78 + 4,10); printLine(puStack_10); } return; }
['gcc']
3,250
void CWE475_Undefined_Behavior_for_Input_to_API__char_07_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104502/CWE475_Undefined_Behavior_for_Input_to_API__char_07.c
CWE475_Undefined_Behavior_for_Input_to_API__char_07_good
void CWE475_Undefined_Behavior_for_Input_to_API__char_07_good(void) { good1(); good2(); return; }
['gcc']
3,251
void CWE475_Undefined_Behavior_for_Input_to_API__char_08_bad() { if(staticReturnsTrue()) { { char dataBuffer[100] = ""; char * data = dataBuffer; strcpy(data, "abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(char)); printLine(data); } } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104503/CWE475_Undefined_Behavior_for_Input_to_API__char_08.c
CWE475_Undefined_Behavior_for_Input_to_API__char_08_bad
void CWE475_Undefined_Behavior_for_Input_to_API__char_08_bad(void) { int iVar1; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined8 *puStack_10; iVar1 = staticReturnsTrue(); if (iVar1 != 0) { uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; puStack_10 = &uStack_78; uStack_78 = 0x6867666564636261; uStack_70 = 0x706f6e6d6c6b6a69; uStack_68 = 0x7877767574737271; /* WARNING: Ignoring partial resolution of indirect */ uStack_60._0_2_ = 0x7a79; /* WARNING: Ignoring partial resolution of indirect */ uStack_60._2_1_ = 0; func_0x00400a70((long)&uStack_78 + 6,(long)&uStack_78 + 4,10); printLine(puStack_10); } return; }
['gcc']
3,252
void CWE475_Undefined_Behavior_for_Input_to_API__char_08_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104503/CWE475_Undefined_Behavior_for_Input_to_API__char_08.c
CWE475_Undefined_Behavior_for_Input_to_API__char_08_good
void CWE475_Undefined_Behavior_for_Input_to_API__char_08_good(void) { good1(); good2(); return; }
['gcc']
3,253
void CWE475_Undefined_Behavior_for_Input_to_API__char_09_bad() { if(GLOBAL_CONST_TRUE) { { char dataBuffer[100] = ""; char * data = dataBuffer; strcpy(data, "abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(char)); printLine(data); } } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104504/CWE475_Undefined_Behavior_for_Input_to_API__char_09.c
CWE475_Undefined_Behavior_for_Input_to_API__char_09_bad
void CWE475_Undefined_Behavior_for_Input_to_API__char_09_bad(void) { undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined8 *puStack_10; if (GLOBAL_CONST_TRUE != 0) { uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; puStack_10 = &uStack_78; uStack_78 = 0x6867666564636261; uStack_70 = 0x706f6e6d6c6b6a69; uStack_68 = 0x7877767574737271; /* WARNING: Ignoring partial resolution of indirect */ uStack_60._0_2_ = 0x7a79; /* WARNING: Ignoring partial resolution of indirect */ uStack_60._2_1_ = 0; func_0x00400a70((long)&uStack_78 + 6,(long)&uStack_78 + 4,10); printLine(puStack_10); } return; }
['gcc']
3,254
void CWE475_Undefined_Behavior_for_Input_to_API__char_09_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104504/CWE475_Undefined_Behavior_for_Input_to_API__char_09.c
CWE475_Undefined_Behavior_for_Input_to_API__char_09_good
void CWE475_Undefined_Behavior_for_Input_to_API__char_09_good(void) { good1(); good2(); return; }
['gcc']
3,255
void CWE475_Undefined_Behavior_for_Input_to_API__char_10_bad() { if(globalTrue) { { char dataBuffer[100] = ""; char * data = dataBuffer; strcpy(data, "abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(char)); printLine(data); } } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104505/CWE475_Undefined_Behavior_for_Input_to_API__char_10.c
CWE475_Undefined_Behavior_for_Input_to_API__char_10_bad
void CWE475_Undefined_Behavior_for_Input_to_API__char_10_bad(void) { undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined8 *puStack_10; if (globalTrue != 0) { uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; puStack_10 = &uStack_78; uStack_78 = 0x6867666564636261; uStack_70 = 0x706f6e6d6c6b6a69; uStack_68 = 0x7877767574737271; /* WARNING: Ignoring partial resolution of indirect */ uStack_60._0_2_ = 0x7a79; /* WARNING: Ignoring partial resolution of indirect */ uStack_60._2_1_ = 0; func_0x00400a70((long)&uStack_78 + 6,(long)&uStack_78 + 4,10); printLine(puStack_10); } return; }
['gcc']
3,256
void CWE475_Undefined_Behavior_for_Input_to_API__char_10_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104505/CWE475_Undefined_Behavior_for_Input_to_API__char_10.c
CWE475_Undefined_Behavior_for_Input_to_API__char_10_good
void CWE475_Undefined_Behavior_for_Input_to_API__char_10_good(void) { good1(); good2(); return; }
['gcc']
3,257
void CWE475_Undefined_Behavior_for_Input_to_API__char_11_bad() { if(globalReturnsTrue()) { { char dataBuffer[100] = ""; char * data = dataBuffer; strcpy(data, "abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(char)); printLine(data); } } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104506/CWE475_Undefined_Behavior_for_Input_to_API__char_11.c
CWE475_Undefined_Behavior_for_Input_to_API__char_11_bad
void CWE475_Undefined_Behavior_for_Input_to_API__char_11_bad(void) { int iVar1; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined8 *puStack_10; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; puStack_10 = &uStack_78; uStack_78 = 0x6867666564636261; uStack_70 = 0x706f6e6d6c6b6a69; uStack_68 = 0x7877767574737271; /* WARNING: Ignoring partial resolution of indirect */ uStack_60._0_2_ = 0x7a79; /* WARNING: Ignoring partial resolution of indirect */ uStack_60._2_1_ = 0; func_0x00400a70((long)&uStack_78 + 6,(long)&uStack_78 + 4,10); printLine(puStack_10); } return; }
['gcc']
3,258
void CWE475_Undefined_Behavior_for_Input_to_API__char_11_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104506/CWE475_Undefined_Behavior_for_Input_to_API__char_11.c
CWE475_Undefined_Behavior_for_Input_to_API__char_11_good
void CWE475_Undefined_Behavior_for_Input_to_API__char_11_good(void) { good1(); good2(); return; }
['gcc']
3,259
void CWE475_Undefined_Behavior_for_Input_to_API__char_12_bad() { if(globalReturnsTrueOrFalse()) { { char dataBuffer[100] = ""; char * data = dataBuffer; strcpy(data, "abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(char)); printLine(data); } } else { { char dataBuffer[100] = ""; char * data = dataBuffer; strcpy(data, "abcdefghijklmnopqrstuvwxyz"); /* FIX: Copy overlapping memory regions using memmove() */ memmove(data + 6, data + 4, 10*sizeof(char)); printLine(data); } } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */', '/* FIX: Copy overlapping memory regions using memmove() */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104507/CWE475_Undefined_Behavior_for_Input_to_API__char_12.c
CWE475_Undefined_Behavior_for_Input_to_API__char_12_bad
void CWE475_Undefined_Behavior_for_Input_to_API__char_12_bad(void) { int iVar1; undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; undefined8 *puStack_18; undefined8 *puStack_10; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_10 = &uStack_88; uStack_88 = 0x6867666564636261; uStack_80 = 0x706f6e6d6c6b6a69; uStack_78 = 0x7877767574737271; /* WARNING: Ignoring partial resolution of indirect */ uStack_70._0_2_ = 0x7a79; /* WARNING: Ignoring partial resolution of indirect */ uStack_70._2_1_ = 0; func_0x00400af0((long)&uStack_88 + 6,(long)&uStack_88 + 4,10); printLine(puStack_10); } else { uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_18 = &uStack_88; uStack_88 = 0x6867666564636261; uStack_80 = 0x706f6e6d6c6b6a69; uStack_78 = 0x7877767574737271; /* WARNING: Ignoring partial resolution of indirect */ uStack_70._0_2_ = 0x7a79; /* WARNING: Ignoring partial resolution of indirect */ uStack_70._2_1_ = 0; func_0x00400ab0((long)&uStack_88 + 6,(long)&uStack_88 + 4,10); printLine(puStack_18); } return; }
['gcc']
3,260
void CWE475_Undefined_Behavior_for_Input_to_API__char_12_good() { good1(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104507/CWE475_Undefined_Behavior_for_Input_to_API__char_12.c
CWE475_Undefined_Behavior_for_Input_to_API__char_12_good
void CWE475_Undefined_Behavior_for_Input_to_API__char_12_good(void) { good1(); return; }
['gcc']
3,261
void CWE475_Undefined_Behavior_for_Input_to_API__char_13_bad() { if(GLOBAL_CONST_FIVE==5) { { char dataBuffer[100] = ""; char * data = dataBuffer; strcpy(data, "abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(char)); printLine(data); } } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104508/CWE475_Undefined_Behavior_for_Input_to_API__char_13.c
CWE475_Undefined_Behavior_for_Input_to_API__char_13_bad
void CWE475_Undefined_Behavior_for_Input_to_API__char_13_bad(void) { undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined8 *puStack_10; if (GLOBAL_CONST_FIVE == 5) { uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; puStack_10 = &uStack_78; uStack_78 = 0x6867666564636261; uStack_70 = 0x706f6e6d6c6b6a69; uStack_68 = 0x7877767574737271; /* WARNING: Ignoring partial resolution of indirect */ uStack_60._0_2_ = 0x7a79; /* WARNING: Ignoring partial resolution of indirect */ uStack_60._2_1_ = 0; func_0x00400a70((long)&uStack_78 + 6,(long)&uStack_78 + 4,10); printLine(puStack_10); } return; }
['gcc']
3,262
void CWE475_Undefined_Behavior_for_Input_to_API__char_13_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104508/CWE475_Undefined_Behavior_for_Input_to_API__char_13.c
CWE475_Undefined_Behavior_for_Input_to_API__char_13_good
void CWE475_Undefined_Behavior_for_Input_to_API__char_13_good(void) { good1(); good2(); return; }
['gcc']
3,263
void CWE475_Undefined_Behavior_for_Input_to_API__char_14_bad() { if(globalFive==5) { { char dataBuffer[100] = ""; char * data = dataBuffer; strcpy(data, "abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(char)); printLine(data); } } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104509/CWE475_Undefined_Behavior_for_Input_to_API__char_14.c
CWE475_Undefined_Behavior_for_Input_to_API__char_14_bad
void CWE475_Undefined_Behavior_for_Input_to_API__char_14_bad(void) { undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined8 *puStack_10; if (globalFive == 5) { uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; puStack_10 = &uStack_78; uStack_78 = 0x6867666564636261; uStack_70 = 0x706f6e6d6c6b6a69; uStack_68 = 0x7877767574737271; /* WARNING: Ignoring partial resolution of indirect */ uStack_60._0_2_ = 0x7a79; /* WARNING: Ignoring partial resolution of indirect */ uStack_60._2_1_ = 0; func_0x00400a70((long)&uStack_78 + 6,(long)&uStack_78 + 4,10); printLine(puStack_10); } return; }
['gcc']
3,264
void CWE475_Undefined_Behavior_for_Input_to_API__char_14_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104509/CWE475_Undefined_Behavior_for_Input_to_API__char_14.c
CWE475_Undefined_Behavior_for_Input_to_API__char_14_good
void CWE475_Undefined_Behavior_for_Input_to_API__char_14_good(void) { good1(); good2(); return; }
['gcc']
3,265
void CWE475_Undefined_Behavior_for_Input_to_API__char_15_bad() { switch(6) { case 6: { char dataBuffer[100] = ""; char * data = dataBuffer; strcpy(data, "abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(char)); printLine(data); } break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104510/CWE475_Undefined_Behavior_for_Input_to_API__char_15.c
CWE475_Undefined_Behavior_for_Input_to_API__char_15_bad
void CWE475_Undefined_Behavior_for_Input_to_API__char_15_bad(void) { undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined8 *puStack_10; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; puStack_10 = &uStack_78; uStack_78 = 0x6867666564636261; uStack_70 = 0x706f6e6d6c6b6a69; uStack_68 = 0x7877767574737271; /* WARNING: Ignoring partial resolution of indirect */ uStack_60._0_2_ = 0x7a79; /* WARNING: Ignoring partial resolution of indirect */ uStack_60._2_1_ = 0; func_0x00400a70((long)&uStack_78 + 6,(long)&uStack_78 + 4,10); printLine(puStack_10); return; }
['gcc']
3,266
void CWE475_Undefined_Behavior_for_Input_to_API__char_15_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104510/CWE475_Undefined_Behavior_for_Input_to_API__char_15.c
CWE475_Undefined_Behavior_for_Input_to_API__char_15_good
void CWE475_Undefined_Behavior_for_Input_to_API__char_15_good(void) { good1(); good2(); return; }
['gcc']
3,267
void CWE475_Undefined_Behavior_for_Input_to_API__char_16_bad() { while(1) { { char dataBuffer[100] = ""; char * data = dataBuffer; strcpy(data, "abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(char)); printLine(data); } break; } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104511/CWE475_Undefined_Behavior_for_Input_to_API__char_16.c
CWE475_Undefined_Behavior_for_Input_to_API__char_16_bad
void CWE475_Undefined_Behavior_for_Input_to_API__char_16_bad(void) { undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined8 *puStack_10; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; uStack_20 = 0; uStack_18 = 0; puStack_10 = &uStack_78; uStack_78 = 0x6867666564636261; uStack_70 = 0x706f6e6d6c6b6a69; uStack_68 = 0x7877767574737271; /* WARNING: Ignoring partial resolution of indirect */ uStack_60._0_2_ = 0x7a79; /* WARNING: Ignoring partial resolution of indirect */ uStack_60._2_1_ = 0; func_0x00400a70((long)&uStack_78 + 6,(long)&uStack_78 + 4,10); printLine(puStack_10); return; }
['gcc']
3,268
void CWE475_Undefined_Behavior_for_Input_to_API__char_16_good() { good1(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104511/CWE475_Undefined_Behavior_for_Input_to_API__char_16.c
CWE475_Undefined_Behavior_for_Input_to_API__char_16_good
void CWE475_Undefined_Behavior_for_Input_to_API__char_16_good(void) { good1(); return; }
['gcc']
3,269
void CWE475_Undefined_Behavior_for_Input_to_API__char_17_bad() { int j; for(j = 0; j < 1; j++) { { char dataBuffer[100] = ""; char * data = dataBuffer; strcpy(data, "abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(char)); printLine(data); } } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104512/CWE475_Undefined_Behavior_for_Input_to_API__char_17.c
CWE475_Undefined_Behavior_for_Input_to_API__char_17_bad
void CWE475_Undefined_Behavior_for_Input_to_API__char_17_bad(void) { undefined8 uStack_88; undefined8 uStack_80; undefined8 uStack_78; undefined8 uStack_70; undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; undefined8 *puStack_18; int iStack_c; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { uStack_70 = 0; uStack_68 = 0; uStack_60 = 0; uStack_58 = 0; uStack_50 = 0; uStack_48 = 0; uStack_40 = 0; uStack_38 = 0; uStack_30 = 0; uStack_28 = 0; puStack_18 = &uStack_88; uStack_88 = 0x6867666564636261; uStack_80 = 0x706f6e6d6c6b6a69; uStack_78 = 0x7877767574737271; /* WARNING: Ignoring partial resolution of indirect */ uStack_70._0_2_ = 0x7a79; /* WARNING: Ignoring partial resolution of indirect */ uStack_70._2_1_ = 0; func_0x00400a70((long)&uStack_88 + 6,(long)&uStack_88 + 4,10); printLine(puStack_18); } return; }
['gcc']
3,270
void CWE475_Undefined_Behavior_for_Input_to_API__char_17_good() { good1(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104512/CWE475_Undefined_Behavior_for_Input_to_API__char_17.c
CWE475_Undefined_Behavior_for_Input_to_API__char_17_good
void CWE475_Undefined_Behavior_for_Input_to_API__char_17_good(void) { good1(); return; }
['gcc']
3,271
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_02_bad() { if(1) { { wchar_t dataBuffer[100] = L""; wchar_t * data = dataBuffer; wcscpy(data, L"abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(wchar_t)); printWLine(data); } } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104515/CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_02.c
CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_02_bad
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_02_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [49]; undefined8 *puStack_10; uStack_1a8 = 0; uStack_1a0 = 0; puVar2 = auStack_198; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1a8; func_0x00400a90(puStack_10,&UNK_004011e8); func_0x00400ab0(puStack_10 + 3,puStack_10 + 2,0x28); printWLine(puStack_10); return; }
['gcc']
3,272
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_02_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104515/CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_02.c
CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_02_good
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_02_good(void) { good1(); good2(); return; }
['gcc']
3,273
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_03_bad() { if(5==5) { { wchar_t dataBuffer[100] = L""; wchar_t * data = dataBuffer; wcscpy(data, L"abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(wchar_t)); printWLine(data); } } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104516/CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_03.c
CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_03_bad
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_03_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [49]; undefined8 *puStack_10; uStack_1a8 = 0; uStack_1a0 = 0; puVar2 = auStack_198; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1a8; func_0x00400a90(puStack_10,&UNK_004011e8); func_0x00400ab0(puStack_10 + 3,puStack_10 + 2,0x28); printWLine(puStack_10); return; }
['gcc']
3,274
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_03_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104516/CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_03.c
CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_03_good
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_03_good(void) { good1(); good2(); return; }
['gcc']
3,275
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_04_bad() { if(STATIC_CONST_TRUE) { { wchar_t dataBuffer[100] = L""; wchar_t * data = dataBuffer; wcscpy(data, L"abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(wchar_t)); printWLine(data); } } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104517/CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_04.c
CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_04_bad
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_04_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [49]; undefined8 *puStack_10; uStack_1a8 = 0; uStack_1a0 = 0; puVar2 = auStack_198; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1a8; func_0x00400a90(puStack_10,&UNK_00401200); func_0x00400ab0(puStack_10 + 3,puStack_10 + 2,0x28); printWLine(puStack_10); return; }
['gcc']
3,276
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_04_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104517/CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_04.c
CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_04_good
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_04_good(void) { good1(); good2(); return; }
['gcc']
3,277
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_05_bad() { if(staticTrue) { { wchar_t dataBuffer[100] = L""; wchar_t * data = dataBuffer; wcscpy(data, L"abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(wchar_t)); printWLine(data); } } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104518/CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_05.c
CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_05_bad
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_05_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [49]; undefined8 *puStack_10; if (staticTrue != 0) { uStack_1a8 = 0; uStack_1a0 = 0; puVar2 = auStack_198; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1a8; func_0x00400a90(puStack_10,&UNK_004011f8); func_0x00400ab0(puStack_10 + 3,puStack_10 + 2,0x28); printWLine(puStack_10); } return; }
['gcc']
3,278
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_05_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104518/CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_05.c
CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_05_good
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_05_good(void) { good1(); good2(); return; }
['gcc']
3,279
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_06_bad() { if(STATIC_CONST_FIVE==5) { { wchar_t dataBuffer[100] = L""; wchar_t * data = dataBuffer; wcscpy(data, L"abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(wchar_t)); printWLine(data); } } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104519/CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_06.c
CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_06_bad
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_06_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [49]; undefined8 *puStack_10; uStack_1a8 = 0; uStack_1a0 = 0; puVar2 = auStack_198; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1a8; func_0x00400a90(puStack_10,&UNK_00401200); func_0x00400ab0(puStack_10 + 3,puStack_10 + 2,0x28); printWLine(puStack_10); return; }
['gcc']
3,280
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_06_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104519/CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_06.c
CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_06_good
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_06_good(void) { good1(); good2(); return; }
['gcc']
3,281
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_07_bad() { if(staticFive==5) { { wchar_t dataBuffer[100] = L""; wchar_t * data = dataBuffer; wcscpy(data, L"abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(wchar_t)); printWLine(data); } } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104520/CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_07.c
CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_07_bad
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_07_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [49]; undefined8 *puStack_10; if (staticFive == 5) { uStack_1a8 = 0; uStack_1a0 = 0; puVar2 = auStack_198; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1a8; func_0x00400a90(puStack_10,&UNK_004011f8); func_0x00400ab0(puStack_10 + 3,puStack_10 + 2,0x28); printWLine(puStack_10); } return; }
['gcc']
3,282
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_07_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104520/CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_07.c
CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_07_good
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_07_good(void) { good1(); good2(); return; }
['gcc']
3,283
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_08_bad() { if(staticReturnsTrue()) { { wchar_t dataBuffer[100] = L""; wchar_t * data = dataBuffer; wcscpy(data, L"abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(wchar_t)); printWLine(data); } } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104521/CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_08.c
CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_08_bad
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_08_bad(void) { int iVar1; long lVar2; undefined8 *puVar3; byte bVar4; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [49]; undefined8 *puStack_10; bVar4 = 0; iVar1 = staticReturnsTrue(); if (iVar1 != 0) { uStack_1a8 = 0; uStack_1a0 = 0; puVar3 = auStack_198; for (lVar2 = 0x30; lVar2 != 0; lVar2 = lVar2 + -1) { *puVar3 = 0; puVar3 = puVar3 + (ulong)bVar4 * -2 + 1; } puStack_10 = &uStack_1a8; func_0x00400a90(puStack_10,&UNK_00401208); func_0x00400ab0(puStack_10 + 3,puStack_10 + 2,0x28); printWLine(puStack_10); } return; }
['gcc']
3,284
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_08_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104521/CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_08.c
CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_08_good
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_08_good(void) { good1(); good2(); return; }
['gcc']
3,285
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_09_bad() { if(GLOBAL_CONST_TRUE) { { wchar_t dataBuffer[100] = L""; wchar_t * data = dataBuffer; wcscpy(data, L"abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(wchar_t)); printWLine(data); } } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104522/CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_09.c
CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_09_bad
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_09_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [49]; undefined8 *puStack_10; if (GLOBAL_CONST_TRUE != 0) { uStack_1a8 = 0; uStack_1a0 = 0; puVar2 = auStack_198; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1a8; func_0x00400a90(puStack_10,&UNK_004011f8); func_0x00400ab0(puStack_10 + 3,puStack_10 + 2,0x28); printWLine(puStack_10); } return; }
['gcc']
3,286
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_09_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104522/CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_09.c
CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_09_good
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_09_good(void) { good1(); good2(); return; }
['gcc']
3,287
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_10_bad() { if(globalTrue) { { wchar_t dataBuffer[100] = L""; wchar_t * data = dataBuffer; wcscpy(data, L"abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(wchar_t)); printWLine(data); } } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104523/CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_10.c
CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_10_bad
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_10_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [49]; undefined8 *puStack_10; if (globalTrue != 0) { uStack_1a8 = 0; uStack_1a0 = 0; puVar2 = auStack_198; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1a8; func_0x00400a90(puStack_10,&UNK_004011f8); func_0x00400ab0(puStack_10 + 3,puStack_10 + 2,0x28); printWLine(puStack_10); } return; }
['gcc']
3,288
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_10_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104523/CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_10.c
CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_10_good
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_10_good(void) { good1(); good2(); return; }
['gcc']
3,289
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_11_bad() { if(globalReturnsTrue()) { { wchar_t dataBuffer[100] = L""; wchar_t * data = dataBuffer; wcscpy(data, L"abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(wchar_t)); printWLine(data); } } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104524/CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_11.c
CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_11_bad
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_11_bad(void) { int iVar1; long lVar2; undefined8 *puVar3; byte bVar4; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [49]; undefined8 *puStack_10; bVar4 = 0; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { uStack_1a8 = 0; uStack_1a0 = 0; puVar3 = auStack_198; for (lVar2 = 0x30; lVar2 != 0; lVar2 = lVar2 + -1) { *puVar3 = 0; puVar3 = puVar3 + (ulong)bVar4 * -2 + 1; } puStack_10 = &uStack_1a8; func_0x00400a90(puStack_10,&UNK_004011f8); func_0x00400ab0(puStack_10 + 3,puStack_10 + 2,0x28); printWLine(puStack_10); } return; }
['gcc']
3,290
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_11_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104524/CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_11.c
CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_11_good
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_11_good(void) { good1(); good2(); return; }
['gcc']
3,291
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_12_bad() { if(globalReturnsTrueOrFalse()) { { wchar_t dataBuffer[100] = L""; wchar_t * data = dataBuffer; wcscpy(data, L"abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(wchar_t)); printWLine(data); } } else { { wchar_t dataBuffer[100] = L""; wchar_t * data = dataBuffer; wcscpy(data, L"abcdefghijklmnopqrstuvwxyz"); /* FIX: Copy overlapping memory regions using memmove() */ memmove(data + 6, data + 4, 10*sizeof(wchar_t)); printWLine(data); } } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */', '/* FIX: Copy overlapping memory regions using memmove() */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104525/CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_12.c
CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_12_bad
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_12_bad(void) { int iVar1; long lVar2; undefined8 *puVar3; byte bVar4; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [48]; undefined8 *puStack_18; undefined8 *puStack_10; bVar4 = 0; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { uStack_1a8 = 0; uStack_1a0 = 0; puVar3 = auStack_198; for (lVar2 = 0x30; lVar2 != 0; lVar2 = lVar2 + -1) { *puVar3 = 0; puVar3 = puVar3 + (ulong)bVar4 * -2 + 1; } puStack_10 = &uStack_1a8; func_0x00400ae0(puStack_10,&UNK_004012c8); func_0x00400b40(puStack_10 + 3,puStack_10 + 2,0x28); printWLine(puStack_10); } else { uStack_1a8 = 0; uStack_1a0 = 0; puVar3 = auStack_198; for (lVar2 = 0x30; lVar2 != 0; lVar2 = lVar2 + -1) { *puVar3 = 0; puVar3 = puVar3 + (ulong)bVar4 * -2 + 1; } puStack_18 = &uStack_1a8; func_0x00400ae0(puStack_18,&UNK_004012c8); func_0x00400b00(puStack_18 + 3,puStack_18 + 2,0x28); printWLine(puStack_18); } return; }
['gcc']
3,292
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_12_good() { good1(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104525/CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_12.c
CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_12_good
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_12_good(void) { good1(); return; }
['gcc']
3,293
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_13_bad() { if(GLOBAL_CONST_FIVE==5) { { wchar_t dataBuffer[100] = L""; wchar_t * data = dataBuffer; wcscpy(data, L"abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(wchar_t)); printWLine(data); } } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104526/CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_13.c
CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_13_bad
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_13_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [49]; undefined8 *puStack_10; if (GLOBAL_CONST_FIVE == 5) { uStack_1a8 = 0; uStack_1a0 = 0; puVar2 = auStack_198; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1a8; func_0x00400a90(puStack_10,&UNK_004011f8); func_0x00400ab0(puStack_10 + 3,puStack_10 + 2,0x28); printWLine(puStack_10); } return; }
['gcc']
3,294
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_13_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104526/CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_13.c
CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_13_good
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_13_good(void) { good1(); good2(); return; }
['gcc']
3,295
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_14_bad() { if(globalFive==5) { { wchar_t dataBuffer[100] = L""; wchar_t * data = dataBuffer; wcscpy(data, L"abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(wchar_t)); printWLine(data); } } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104527/CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_14.c
CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_14_bad
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_14_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [49]; undefined8 *puStack_10; if (globalFive == 5) { uStack_1a8 = 0; uStack_1a0 = 0; puVar2 = auStack_198; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1a8; func_0x00400a90(puStack_10,&UNK_004011f8); func_0x00400ab0(puStack_10 + 3,puStack_10 + 2,0x28); printWLine(puStack_10); } return; }
['gcc']
3,296
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_14_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104527/CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_14.c
CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_14_good
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_14_good(void) { good1(); good2(); return; }
['gcc']
3,297
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_15_bad() { switch(6) { case 6: { wchar_t dataBuffer[100] = L""; wchar_t * data = dataBuffer; wcscpy(data, L"abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(wchar_t)); printWLine(data); } break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104528/CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_15.c
CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_15_bad
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_15_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [49]; undefined8 *puStack_10; uStack_1a8 = 0; uStack_1a0 = 0; puVar2 = auStack_198; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1a8; func_0x00400a90(puStack_10,&UNK_004011e8); func_0x00400ab0(puStack_10 + 3,puStack_10 + 2,0x28); printWLine(puStack_10); return; }
['gcc']
3,298
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_15_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104528/CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_15.c
CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_15_good
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_15_good(void) { good1(); good2(); return; }
['gcc']
3,299
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_16_bad() { while(1) { { wchar_t dataBuffer[100] = L""; wchar_t * data = dataBuffer; wcscpy(data, L"abcdefghijklmnopqrstuvwxyz"); /* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */ memcpy(data + 6, data + 4, 10*sizeof(wchar_t)); printWLine(data); } break; } }
['/* FLAW: Copy overlapping memory regions using memcpy() for which the result is undefined */']
['CWE475']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/104529/CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_16.c
CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_16_bad
void CWE475_Undefined_Behavior_for_Input_to_API__wchar_t_16_bad(void) { long lVar1; undefined8 *puVar2; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [49]; undefined8 *puStack_10; uStack_1a8 = 0; uStack_1a0 = 0; puVar2 = auStack_198; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + 1; } puStack_10 = &uStack_1a8; func_0x00400a90(puStack_10,&UNK_004011e8); func_0x00400ab0(puStack_10 + 3,puStack_10 + 2,0x28); printWLine(puStack_10); return; }
['gcc']