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
1,400
void CWE416_Use_After_Free__malloc_free_char_09_bad() { char * data; /* Initialize data */ data = NULL; if(GLOBAL_CONST_TRUE) { data = (char *)malloc(100*sizeof(char)); memset(data, 'A', 100-1); data[100-1] = '\0'; /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } if(GLOBAL_CONST_TRUE) { /* POTENTIAL FLAW: Use of data that may have been freed */ printLine(data); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102213/CWE416_Use_After_Free__malloc_free_char_09.c
CWE416_Use_After_Free__malloc_free_char_09_bad
void CWE416_Use_After_Free__malloc_free_char_09_bad(void) { long lStack_10; lStack_10 = 0; if (GLOBAL_CONST_TRUE != 0) { lStack_10 = func_0x00400b00(100); func_0x00400aa0(lStack_10,0x41,99); *(undefined *)(lStack_10 + 99) = 0; func_0x00400a60(lStack_10); } if (GLOBAL_CONST_TRUE != 0) { printLine(lStack_10); } return; }
['gcc']
1,401
void CWE416_Use_After_Free__malloc_free_char_09_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102213/CWE416_Use_After_Free__malloc_free_char_09.c
CWE416_Use_After_Free__malloc_free_char_09_good
void CWE416_Use_After_Free__malloc_free_char_09_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,402
void CWE416_Use_After_Free__malloc_free_char_10_bad() { char * data; /* Initialize data */ data = NULL; if(globalTrue) { data = (char *)malloc(100*sizeof(char)); memset(data, 'A', 100-1); data[100-1] = '\0'; /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } if(globalTrue) { /* POTENTIAL FLAW: Use of data that may have been freed */ printLine(data); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102214/CWE416_Use_After_Free__malloc_free_char_10.c
CWE416_Use_After_Free__malloc_free_char_10_bad
void CWE416_Use_After_Free__malloc_free_char_10_bad(void) { long lStack_10; lStack_10 = 0; if (globalTrue != 0) { lStack_10 = func_0x00400b00(100); func_0x00400aa0(lStack_10,0x41,99); *(undefined *)(lStack_10 + 99) = 0; func_0x00400a60(lStack_10); } if (globalTrue != 0) { printLine(lStack_10); } return; }
['gcc']
1,403
void CWE416_Use_After_Free__malloc_free_char_10_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102214/CWE416_Use_After_Free__malloc_free_char_10.c
CWE416_Use_After_Free__malloc_free_char_10_good
void CWE416_Use_After_Free__malloc_free_char_10_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,404
void CWE416_Use_After_Free__malloc_free_char_11_bad() { char * data; /* Initialize data */ data = NULL; if(globalReturnsTrue()) { data = (char *)malloc(100*sizeof(char)); memset(data, 'A', 100-1); data[100-1] = '\0'; /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } if(globalReturnsTrue()) { /* POTENTIAL FLAW: Use of data that may have been freed */ printLine(data); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102215/CWE416_Use_After_Free__malloc_free_char_11.c
CWE416_Use_After_Free__malloc_free_char_11_bad
void CWE416_Use_After_Free__malloc_free_char_11_bad(void) { int iVar1; long lStack_10; lStack_10 = 0; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { lStack_10 = func_0x00400b00(100); func_0x00400aa0(lStack_10,0x41,99); *(undefined *)(lStack_10 + 99) = 0; func_0x00400a60(lStack_10); } iVar1 = globalReturnsTrue(); if (iVar1 != 0) { printLine(lStack_10); } return; }
['gcc']
1,405
void CWE416_Use_After_Free__malloc_free_char_11_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102215/CWE416_Use_After_Free__malloc_free_char_11.c
CWE416_Use_After_Free__malloc_free_char_11_good
void CWE416_Use_After_Free__malloc_free_char_11_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,406
void CWE416_Use_After_Free__malloc_free_char_12_bad() { char * data; /* Initialize data */ data = NULL; if(globalReturnsTrueOrFalse()) { data = (char *)malloc(100*sizeof(char)); memset(data, 'A', 100-1); data[100-1] = '\0'; /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } else { data = (char *)malloc(100*sizeof(char)); memset(data, 'A', 100-1); data[100-1] = '\0'; /* FIX: Do not free data in the source */ } if(globalReturnsTrueOrFalse()) { /* POTENTIAL FLAW: Use of data that may have been freed */ printLine(data); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } else { /* FIX: Don't use data that may have been freed already */ /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ /* do nothing */ ; /* empty statement needed for some flow variants */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* FIX: Do not free data in the source */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */', "/* FIX: Don't use data that may have been freed already */", '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */', '/* do nothing */', '/* empty statement needed for some flow variants */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102216/CWE416_Use_After_Free__malloc_free_char_12.c
CWE416_Use_After_Free__malloc_free_char_12_bad
void CWE416_Use_After_Free__malloc_free_char_12_bad(void) { int iVar1; long lStack_10; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { lStack_10 = func_0x00400b00(100); func_0x00400aa0(lStack_10,0x41,99); *(undefined *)(lStack_10 + 99) = 0; } else { lStack_10 = func_0x00400b00(100); func_0x00400aa0(lStack_10,0x41,99); *(undefined *)(lStack_10 + 99) = 0; func_0x00400a60(lStack_10); } iVar1 = globalReturnsTrueOrFalse(); if (iVar1 != 0) { printLine(lStack_10); } return; }
['gcc']
1,407
void CWE416_Use_After_Free__malloc_free_char_12_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102216/CWE416_Use_After_Free__malloc_free_char_12.c
CWE416_Use_After_Free__malloc_free_char_12_good
void CWE416_Use_After_Free__malloc_free_char_12_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
1,408
void CWE416_Use_After_Free__malloc_free_char_13_bad() { char * data; /* Initialize data */ data = NULL; if(GLOBAL_CONST_FIVE==5) { data = (char *)malloc(100*sizeof(char)); memset(data, 'A', 100-1); data[100-1] = '\0'; /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } if(GLOBAL_CONST_FIVE==5) { /* POTENTIAL FLAW: Use of data that may have been freed */ printLine(data); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102217/CWE416_Use_After_Free__malloc_free_char_13.c
CWE416_Use_After_Free__malloc_free_char_13_bad
void CWE416_Use_After_Free__malloc_free_char_13_bad(void) { long lStack_10; lStack_10 = 0; if (GLOBAL_CONST_FIVE == 5) { lStack_10 = func_0x00400b00(100); func_0x00400aa0(lStack_10,0x41,99); *(undefined *)(lStack_10 + 99) = 0; func_0x00400a60(lStack_10); } if (GLOBAL_CONST_FIVE == 5) { printLine(lStack_10); } return; }
['gcc']
1,409
void CWE416_Use_After_Free__malloc_free_char_13_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102217/CWE416_Use_After_Free__malloc_free_char_13.c
CWE416_Use_After_Free__malloc_free_char_13_good
void CWE416_Use_After_Free__malloc_free_char_13_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,410
void CWE416_Use_After_Free__malloc_free_char_14_bad() { char * data; /* Initialize data */ data = NULL; if(globalFive==5) { data = (char *)malloc(100*sizeof(char)); memset(data, 'A', 100-1); data[100-1] = '\0'; /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } if(globalFive==5) { /* POTENTIAL FLAW: Use of data that may have been freed */ printLine(data); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102218/CWE416_Use_After_Free__malloc_free_char_14.c
CWE416_Use_After_Free__malloc_free_char_14_bad
void CWE416_Use_After_Free__malloc_free_char_14_bad(void) { long lStack_10; lStack_10 = 0; if (globalFive == 5) { lStack_10 = func_0x00400b00(100); func_0x00400aa0(lStack_10,0x41,99); *(undefined *)(lStack_10 + 99) = 0; func_0x00400a60(lStack_10); } if (globalFive == 5) { printLine(lStack_10); } return; }
['gcc']
1,411
void CWE416_Use_After_Free__malloc_free_char_14_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102218/CWE416_Use_After_Free__malloc_free_char_14.c
CWE416_Use_After_Free__malloc_free_char_14_good
void CWE416_Use_After_Free__malloc_free_char_14_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,412
void CWE416_Use_After_Free__malloc_free_char_15_bad() { char * data; /* Initialize data */ data = NULL; switch(6) { case 6: data = (char *)malloc(100*sizeof(char)); memset(data, 'A', 100-1); data[100-1] = '\0'; /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } switch(7) { case 7: /* POTENTIAL FLAW: Use of data that may have been freed */ printLine(data); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102219/CWE416_Use_After_Free__malloc_free_char_15.c
CWE416_Use_After_Free__malloc_free_char_15_bad
void CWE416_Use_After_Free__malloc_free_char_15_bad(void) { long lVar1; lVar1 = func_0x00400b00(100); func_0x00400aa0(lVar1,0x41,99); *(undefined *)(lVar1 + 99) = 0; func_0x00400a60(lVar1); printLine(lVar1); return; }
['gcc']
1,413
void CWE416_Use_After_Free__malloc_free_char_15_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102219/CWE416_Use_After_Free__malloc_free_char_15.c
CWE416_Use_After_Free__malloc_free_char_15_good
void CWE416_Use_After_Free__malloc_free_char_15_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,414
void CWE416_Use_After_Free__malloc_free_char_16_bad() { char * data; /* Initialize data */ data = NULL; while(1) { data = (char *)malloc(100*sizeof(char)); memset(data, 'A', 100-1); data[100-1] = '\0'; /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); break; } while(1) { /* POTENTIAL FLAW: Use of data that may have been freed */ printLine(data); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ break; } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102220/CWE416_Use_After_Free__malloc_free_char_16.c
CWE416_Use_After_Free__malloc_free_char_16_bad
void CWE416_Use_After_Free__malloc_free_char_16_bad(void) { long lVar1; lVar1 = func_0x00400b00(100); func_0x00400aa0(lVar1,0x41,99); *(undefined *)(lVar1 + 99) = 0; func_0x00400a60(lVar1); printLine(lVar1); return; }
['gcc']
1,415
void CWE416_Use_After_Free__malloc_free_char_16_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102220/CWE416_Use_After_Free__malloc_free_char_16.c
CWE416_Use_After_Free__malloc_free_char_16_good
void CWE416_Use_After_Free__malloc_free_char_16_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
1,416
void CWE416_Use_After_Free__malloc_free_char_17_bad() { int i,j; char * data; /* Initialize data */ data = NULL; for(i = 0; i < 1; i++) { data = (char *)malloc(100*sizeof(char)); memset(data, 'A', 100-1); data[100-1] = '\0'; /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } for(j = 0; j < 1; j++) { /* POTENTIAL FLAW: Use of data that may have been freed */ printLine(data); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102221/CWE416_Use_After_Free__malloc_free_char_17.c
CWE416_Use_After_Free__malloc_free_char_17_bad
void CWE416_Use_After_Free__malloc_free_char_17_bad(void) { long lStack_18; int iStack_10; int iStack_c; lStack_18 = 0; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { lStack_18 = func_0x00400b00(100); func_0x00400aa0(lStack_18,0x41,99); *(undefined *)(lStack_18 + 99) = 0; func_0x00400a60(lStack_18); } for (iStack_10 = 0; iStack_10 < 1; iStack_10 = iStack_10 + 1) { printLine(lStack_18); } return; }
['gcc']
1,417
void CWE416_Use_After_Free__malloc_free_char_17_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102221/CWE416_Use_After_Free__malloc_free_char_17.c
CWE416_Use_After_Free__malloc_free_char_17_good
void CWE416_Use_After_Free__malloc_free_char_17_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
1,418
void CWE416_Use_After_Free__malloc_free_char_18_bad() { char * data; /* Initialize data */ data = NULL; goto source; source: data = (char *)malloc(100*sizeof(char)); memset(data, 'A', 100-1); data[100-1] = '\0'; /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); goto sink; sink: /* POTENTIAL FLAW: Use of data that may have been freed */ printLine(data); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102222/CWE416_Use_After_Free__malloc_free_char_18.c
CWE416_Use_After_Free__malloc_free_char_18_bad
void CWE416_Use_After_Free__malloc_free_char_18_bad(void) { long lVar1; lVar1 = func_0x00400b00(100); func_0x00400aa0(lVar1,0x41,99); *(undefined *)(lVar1 + 99) = 0; func_0x00400a60(lVar1); printLine(lVar1); return; }
['gcc']
1,419
void CWE416_Use_After_Free__malloc_free_char_18_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102222/CWE416_Use_After_Free__malloc_free_char_18.c
CWE416_Use_After_Free__malloc_free_char_18_good
void CWE416_Use_After_Free__malloc_free_char_18_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
1,420
void CWE416_Use_After_Free__malloc_free_char_63_bad() { char * data; /* Initialize data */ data = NULL; data = (char *)malloc(100*sizeof(char)); memset(data, 'A', 100-1); data[100-1] = '\0'; /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); CWE416_Use_After_Free__malloc_free_char_63b_badSink(&data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102225/CWE416_Use_After_Free__malloc_free_char_63a.c
CWE416_Use_After_Free__malloc_free_char_63_bad
void CWE416_Use_After_Free__malloc_free_char_63_bad(void) { long lStack_10; lStack_10 = 0; lStack_10 = func_0x00400b00(100); func_0x00400aa0(lStack_10,0x41,99); *(undefined *)(lStack_10 + 99) = 0; func_0x00400a60(lStack_10); CWE416_Use_After_Free__malloc_free_char_63b_badSink(&lStack_10); return; }
['gcc']
1,421
void CWE416_Use_After_Free__malloc_free_char_63_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102225/CWE416_Use_After_Free__malloc_free_char_63a.c
CWE416_Use_After_Free__malloc_free_char_63_good
void CWE416_Use_After_Free__malloc_free_char_63_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
1,422
void CWE416_Use_After_Free__malloc_free_char_63b_badSink(char * * dataPtr) { char * data = *dataPtr; /* POTENTIAL FLAW: Use of data that may have been freed */ printLine(data); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ }
['/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102225/CWE416_Use_After_Free__malloc_free_char_63b.c
CWE416_Use_After_Free__malloc_free_char_63b_badSink
void CWE416_Use_After_Free__malloc_free_char_63b_badSink(undefined8 *param_1) { printLine(*param_1); return; }
['gcc']
1,423
void CWE416_Use_After_Free__malloc_free_char_63b_goodG2BSink(char * * dataPtr) { char * data = *dataPtr; /* POTENTIAL FLAW: Use of data that may have been freed */ printLine(data); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ }
['/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102225/CWE416_Use_After_Free__malloc_free_char_63b.c
CWE416_Use_After_Free__malloc_free_char_63b_goodG2BSink
void CWE416_Use_After_Free__malloc_free_char_63b_goodG2BSink(undefined8 *param_1) { printLine(*param_1); return; }
['gcc']
1,424
void CWE416_Use_After_Free__malloc_free_char_63b_goodB2GSink(char * * dataPtr) { char * data = *dataPtr; /* FIX: Don't use data that may have been freed already */ /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ /* do nothing */ ; /* empty statement needed for some flow variants */ }
["/* FIX: Don't use data that may have been freed already */", '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */', '/* do nothing */', '/* empty statement needed for some flow variants */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102225/CWE416_Use_After_Free__malloc_free_char_63b.c
CWE416_Use_After_Free__malloc_free_char_63b_goodB2GSink
void CWE416_Use_After_Free__malloc_free_char_63b_goodB2GSink(void) { return; }
['gcc']
1,425
void CWE416_Use_After_Free__malloc_free_char_64_bad() { char * data; /* Initialize data */ data = NULL; data = (char *)malloc(100*sizeof(char)); memset(data, 'A', 100-1); data[100-1] = '\0'; /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); CWE416_Use_After_Free__malloc_free_char_64b_badSink(&data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102226/CWE416_Use_After_Free__malloc_free_char_64a.c
CWE416_Use_After_Free__malloc_free_char_64_bad
void CWE416_Use_After_Free__malloc_free_char_64_bad(void) { long lStack_10; lStack_10 = 0; lStack_10 = func_0x00400b00(100); func_0x00400aa0(lStack_10,0x41,99); *(undefined *)(lStack_10 + 99) = 0; func_0x00400a60(lStack_10); CWE416_Use_After_Free__malloc_free_char_64b_badSink(&lStack_10); return; }
['gcc']
1,426
void CWE416_Use_After_Free__malloc_free_char_64_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102226/CWE416_Use_After_Free__malloc_free_char_64a.c
CWE416_Use_After_Free__malloc_free_char_64_good
void CWE416_Use_After_Free__malloc_free_char_64_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
1,427
void CWE416_Use_After_Free__malloc_free_char_64b_badSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ char * * dataPtr = (char * *)dataVoidPtr; /* dereference dataPtr into data */ char * data = (*dataPtr); /* POTENTIAL FLAW: Use of data that may have been freed */ printLine(data); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102226/CWE416_Use_After_Free__malloc_free_char_64b.c
CWE416_Use_After_Free__malloc_free_char_64b_badSink
void CWE416_Use_After_Free__malloc_free_char_64b_badSink(undefined8 *param_1) { printLine(*param_1); return; }
['gcc']
1,428
void CWE416_Use_After_Free__malloc_free_char_64b_goodG2BSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ char * * dataPtr = (char * *)dataVoidPtr; /* dereference dataPtr into data */ char * data = (*dataPtr); /* POTENTIAL FLAW: Use of data that may have been freed */ printLine(data); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102226/CWE416_Use_After_Free__malloc_free_char_64b.c
CWE416_Use_After_Free__malloc_free_char_64b_goodG2BSink
void CWE416_Use_After_Free__malloc_free_char_64b_goodG2BSink(undefined8 *param_1) { printLine(*param_1); return; }
['gcc']
1,429
void CWE416_Use_After_Free__malloc_free_char_64b_goodB2GSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ char * * dataPtr = (char * *)dataVoidPtr; /* dereference dataPtr into data */ char * data = (*dataPtr); /* FIX: Don't use data that may have been freed already */ /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ /* do nothing */ ; /* empty statement needed for some flow variants */ }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', "/* FIX: Don't use data that may have been freed already */", '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */', '/* do nothing */', '/* empty statement needed for some flow variants */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102226/CWE416_Use_After_Free__malloc_free_char_64b.c
CWE416_Use_After_Free__malloc_free_char_64b_goodB2GSink
void CWE416_Use_After_Free__malloc_free_char_64b_goodB2GSink(void) { return; }
['gcc']
1,430
void CWE416_Use_After_Free__malloc_free_int64_t_08_bad() { int64_t * data; /* Initialize data */ data = NULL; if(staticReturnsTrue()) { data = (int64_t *)malloc(100*sizeof(int64_t)); { size_t i; for(i = 0; i < 100; i++) { data[i] = 5LL; } } /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } if(staticReturnsTrue()) { /* POTENTIAL FLAW: Use of data that may have been freed */ printLongLongLine(data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102234/CWE416_Use_After_Free__malloc_free_int64_t_08.c
CWE416_Use_After_Free__malloc_free_int64_t_08_bad
void CWE416_Use_After_Free__malloc_free_int64_t_08_bad(void) { int iVar1; ulong uStack_18; undefined8 *puStack_10; puStack_10 = (undefined8 *)0x0; iVar1 = staticReturnsTrue(); if (iVar1 != 0) { puStack_10 = (undefined8 *)func_0x00400ab0(800); for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) { puStack_10[uStack_18] = 5; } func_0x00400a20(puStack_10); } iVar1 = staticReturnsTrue(); if (iVar1 != 0) { printLongLongLine(*puStack_10); } return; }
['gcc']
1,431
void CWE416_Use_After_Free__malloc_free_int64_t_08_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102234/CWE416_Use_After_Free__malloc_free_int64_t_08.c
CWE416_Use_After_Free__malloc_free_int64_t_08_good
void CWE416_Use_After_Free__malloc_free_int64_t_08_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,432
void CWE416_Use_After_Free__malloc_free_int64_t_11_bad() { int64_t * data; /* Initialize data */ data = NULL; if(globalReturnsTrue()) { data = (int64_t *)malloc(100*sizeof(int64_t)); { size_t i; for(i = 0; i < 100; i++) { data[i] = 5LL; } } /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } if(globalReturnsTrue()) { /* POTENTIAL FLAW: Use of data that may have been freed */ printLongLongLine(data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102237/CWE416_Use_After_Free__malloc_free_int64_t_11.c
CWE416_Use_After_Free__malloc_free_int64_t_11_bad
void CWE416_Use_After_Free__malloc_free_int64_t_11_bad(void) { int iVar1; ulong uStack_18; undefined8 *puStack_10; puStack_10 = (undefined8 *)0x0; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { puStack_10 = (undefined8 *)func_0x00400ab0(800); for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) { puStack_10[uStack_18] = 5; } func_0x00400a20(puStack_10); } iVar1 = globalReturnsTrue(); if (iVar1 != 0) { printLongLongLine(*puStack_10); } return; }
['gcc']
1,433
void CWE416_Use_After_Free__malloc_free_int64_t_11_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102237/CWE416_Use_After_Free__malloc_free_int64_t_11.c
CWE416_Use_After_Free__malloc_free_int64_t_11_good
void CWE416_Use_After_Free__malloc_free_int64_t_11_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,434
void CWE416_Use_After_Free__malloc_free_int64_t_12_bad() { int64_t * data; /* Initialize data */ data = NULL; if(globalReturnsTrueOrFalse()) { data = (int64_t *)malloc(100*sizeof(int64_t)); { size_t i; for(i = 0; i < 100; i++) { data[i] = 5LL; } } /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } else { data = (int64_t *)malloc(100*sizeof(int64_t)); { size_t i; for(i = 0; i < 100; i++) { data[i] = 5LL; } } /* FIX: Do not free data in the source */ } if(globalReturnsTrueOrFalse()) { /* POTENTIAL FLAW: Use of data that may have been freed */ printLongLongLine(data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } else { /* FIX: Don't use data that may have been freed already */ /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ /* do nothing */ ; /* empty statement needed for some flow variants */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* FIX: Do not free data in the source */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */', "/* FIX: Don't use data that may have been freed already */", '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */', '/* do nothing */', '/* empty statement needed for some flow variants */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102238/CWE416_Use_After_Free__malloc_free_int64_t_12.c
CWE416_Use_After_Free__malloc_free_int64_t_12_bad
void CWE416_Use_After_Free__malloc_free_int64_t_12_bad(void) { int iVar1; ulong uStack_20; ulong uStack_18; undefined8 *puStack_10; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { puStack_10 = (undefined8 *)func_0x00400ab0(800); for (uStack_20 = 0; uStack_20 < 100; uStack_20 = uStack_20 + 1) { puStack_10[uStack_20] = 5; } } else { puStack_10 = (undefined8 *)func_0x00400ab0(800); for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) { puStack_10[uStack_18] = 5; } func_0x00400a20(puStack_10); } iVar1 = globalReturnsTrueOrFalse(); if (iVar1 != 0) { printLongLongLine(*puStack_10); } return; }
['gcc']
1,435
void CWE416_Use_After_Free__malloc_free_int64_t_12_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102238/CWE416_Use_After_Free__malloc_free_int64_t_12.c
CWE416_Use_After_Free__malloc_free_int64_t_12_good
void CWE416_Use_After_Free__malloc_free_int64_t_12_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
1,436
void CWE416_Use_After_Free__malloc_free_int64_t_17_bad() { int i,j; int64_t * data; /* Initialize data */ data = NULL; for(i = 0; i < 1; i++) { data = (int64_t *)malloc(100*sizeof(int64_t)); { size_t i; for(i = 0; i < 100; i++) { data[i] = 5LL; } } /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } for(j = 0; j < 1; j++) { /* POTENTIAL FLAW: Use of data that may have been freed */ printLongLongLine(data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102243/CWE416_Use_After_Free__malloc_free_int64_t_17.c
CWE416_Use_After_Free__malloc_free_int64_t_17_bad
void CWE416_Use_After_Free__malloc_free_int64_t_17_bad(void) { ulong uStack_20; undefined8 *puStack_18; int iStack_10; int iStack_c; puStack_18 = (undefined8 *)0x0; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { puStack_18 = (undefined8 *)func_0x00400ab0(800); for (uStack_20 = 0; uStack_20 < 100; uStack_20 = uStack_20 + 1) { puStack_18[uStack_20] = 5; } func_0x00400a20(puStack_18); } for (iStack_10 = 0; iStack_10 < 1; iStack_10 = iStack_10 + 1) { printLongLongLine(*puStack_18); } return; }
['gcc']
1,437
void CWE416_Use_After_Free__malloc_free_int64_t_17_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102243/CWE416_Use_After_Free__malloc_free_int64_t_17.c
CWE416_Use_After_Free__malloc_free_int64_t_17_good
void CWE416_Use_After_Free__malloc_free_int64_t_17_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
1,438
void CWE416_Use_After_Free__malloc_free_int64_t_63_bad() { int64_t * data; /* Initialize data */ data = NULL; data = (int64_t *)malloc(100*sizeof(int64_t)); { size_t i; for(i = 0; i < 100; i++) { data[i] = 5LL; } } /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); CWE416_Use_After_Free__malloc_free_int64_t_63b_badSink(&data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102247/CWE416_Use_After_Free__malloc_free_int64_t_63a.c
CWE416_Use_After_Free__malloc_free_int64_t_63_bad
void CWE416_Use_After_Free__malloc_free_int64_t_63_bad(void) { long lStack_18; ulong uStack_10; lStack_18 = 0; lStack_18 = func_0x00400ab0(800); for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined8 *)(lStack_18 + uStack_10 * 8) = 5; } func_0x00400a20(lStack_18); CWE416_Use_After_Free__malloc_free_int64_t_63b_badSink(&lStack_18); return; }
['gcc']
1,439
void CWE416_Use_After_Free__malloc_free_int64_t_63_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102247/CWE416_Use_After_Free__malloc_free_int64_t_63a.c
CWE416_Use_After_Free__malloc_free_int64_t_63_good
void CWE416_Use_After_Free__malloc_free_int64_t_63_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
1,440
void CWE416_Use_After_Free__malloc_free_int64_t_63b_badSink(int64_t * * dataPtr) { int64_t * data = *dataPtr; /* POTENTIAL FLAW: Use of data that may have been freed */ printLongLongLine(data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ }
['/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102247/CWE416_Use_After_Free__malloc_free_int64_t_63b.c
CWE416_Use_After_Free__malloc_free_int64_t_63b_badSink
void CWE416_Use_After_Free__malloc_free_int64_t_63b_badSink(undefined8 *param_1) { printLongLongLine(*(undefined8 *)*param_1); return; }
['gcc']
1,441
void CWE416_Use_After_Free__malloc_free_int64_t_63b_goodG2BSink(int64_t * * dataPtr) { int64_t * data = *dataPtr; /* POTENTIAL FLAW: Use of data that may have been freed */ printLongLongLine(data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ }
['/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102247/CWE416_Use_After_Free__malloc_free_int64_t_63b.c
CWE416_Use_After_Free__malloc_free_int64_t_63b_goodG2BSink
void CWE416_Use_After_Free__malloc_free_int64_t_63b_goodG2BSink(undefined8 *param_1) { printLongLongLine(*(undefined8 *)*param_1); return; }
['gcc']
1,442
void CWE416_Use_After_Free__malloc_free_int64_t_63b_goodB2GSink(int64_t * * dataPtr) { int64_t * data = *dataPtr; /* FIX: Don't use data that may have been freed already */ /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ /* do nothing */ ; /* empty statement needed for some flow variants */ }
["/* FIX: Don't use data that may have been freed already */", '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */', '/* do nothing */', '/* empty statement needed for some flow variants */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102247/CWE416_Use_After_Free__malloc_free_int64_t_63b.c
CWE416_Use_After_Free__malloc_free_int64_t_63b_goodB2GSink
void CWE416_Use_After_Free__malloc_free_int64_t_63b_goodB2GSink(void) { return; }
['gcc']
1,443
void CWE416_Use_After_Free__malloc_free_int_08_bad() { int * data; /* Initialize data */ data = NULL; if(staticReturnsTrue()) { data = (int *)malloc(100*sizeof(int)); { size_t i; for(i = 0; i < 100; i++) { data[i] = 5; } } /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } if(staticReturnsTrue()) { /* POTENTIAL FLAW: Use of data that may have been freed */ printIntLine(data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102256/CWE416_Use_After_Free__malloc_free_int_08.c
CWE416_Use_After_Free__malloc_free_int_08_bad
void CWE416_Use_After_Free__malloc_free_int_08_bad(void) { int iVar1; ulong uStack_18; undefined4 *puStack_10; puStack_10 = (undefined4 *)0x0; iVar1 = staticReturnsTrue(); if (iVar1 != 0) { puStack_10 = (undefined4 *)func_0x00400ab0(400); for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) { puStack_10[uStack_18] = 5; } func_0x00400a20(puStack_10); } iVar1 = staticReturnsTrue(); if (iVar1 != 0) { printIntLine(*puStack_10); } return; }
['gcc']
1,444
void CWE416_Use_After_Free__malloc_free_int_08_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102256/CWE416_Use_After_Free__malloc_free_int_08.c
CWE416_Use_After_Free__malloc_free_int_08_good
void CWE416_Use_After_Free__malloc_free_int_08_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,445
void CWE416_Use_After_Free__malloc_free_int_11_bad() { int * data; /* Initialize data */ data = NULL; if(globalReturnsTrue()) { data = (int *)malloc(100*sizeof(int)); { size_t i; for(i = 0; i < 100; i++) { data[i] = 5; } } /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } if(globalReturnsTrue()) { /* POTENTIAL FLAW: Use of data that may have been freed */ printIntLine(data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102259/CWE416_Use_After_Free__malloc_free_int_11.c
CWE416_Use_After_Free__malloc_free_int_11_bad
void CWE416_Use_After_Free__malloc_free_int_11_bad(void) { int iVar1; ulong uStack_18; undefined4 *puStack_10; puStack_10 = (undefined4 *)0x0; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { puStack_10 = (undefined4 *)func_0x00400ab0(400); for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) { puStack_10[uStack_18] = 5; } func_0x00400a20(puStack_10); } iVar1 = globalReturnsTrue(); if (iVar1 != 0) { printIntLine(*puStack_10); } return; }
['gcc']
1,446
void CWE416_Use_After_Free__malloc_free_int_11_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102259/CWE416_Use_After_Free__malloc_free_int_11.c
CWE416_Use_After_Free__malloc_free_int_11_good
void CWE416_Use_After_Free__malloc_free_int_11_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,447
void CWE416_Use_After_Free__malloc_free_int_12_bad() { int * data; /* Initialize data */ data = NULL; if(globalReturnsTrueOrFalse()) { data = (int *)malloc(100*sizeof(int)); { size_t i; for(i = 0; i < 100; i++) { data[i] = 5; } } /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } else { data = (int *)malloc(100*sizeof(int)); { size_t i; for(i = 0; i < 100; i++) { data[i] = 5; } } /* FIX: Do not free data in the source */ } if(globalReturnsTrueOrFalse()) { /* POTENTIAL FLAW: Use of data that may have been freed */ printIntLine(data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } else { /* FIX: Don't use data that may have been freed already */ /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ /* do nothing */ ; /* empty statement needed for some flow variants */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* FIX: Do not free data in the source */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */', "/* FIX: Don't use data that may have been freed already */", '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */', '/* do nothing */', '/* empty statement needed for some flow variants */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102260/CWE416_Use_After_Free__malloc_free_int_12.c
CWE416_Use_After_Free__malloc_free_int_12_bad
void CWE416_Use_After_Free__malloc_free_int_12_bad(void) { int iVar1; ulong uStack_20; ulong uStack_18; undefined4 *puStack_10; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { puStack_10 = (undefined4 *)func_0x00400ab0(400); for (uStack_20 = 0; uStack_20 < 100; uStack_20 = uStack_20 + 1) { puStack_10[uStack_20] = 5; } } else { puStack_10 = (undefined4 *)func_0x00400ab0(400); for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) { puStack_10[uStack_18] = 5; } func_0x00400a20(puStack_10); } iVar1 = globalReturnsTrueOrFalse(); if (iVar1 != 0) { printIntLine(*puStack_10); } return; }
['gcc']
1,448
void CWE416_Use_After_Free__malloc_free_int_12_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102260/CWE416_Use_After_Free__malloc_free_int_12.c
CWE416_Use_After_Free__malloc_free_int_12_good
void CWE416_Use_After_Free__malloc_free_int_12_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
1,449
void CWE416_Use_After_Free__malloc_free_int_17_bad() { int i,j; int * data; /* Initialize data */ data = NULL; for(i = 0; i < 1; i++) { data = (int *)malloc(100*sizeof(int)); { size_t i; for(i = 0; i < 100; i++) { data[i] = 5; } } /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } for(j = 0; j < 1; j++) { /* POTENTIAL FLAW: Use of data that may have been freed */ printIntLine(data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102265/CWE416_Use_After_Free__malloc_free_int_17.c
CWE416_Use_After_Free__malloc_free_int_17_bad
void CWE416_Use_After_Free__malloc_free_int_17_bad(void) { ulong uStack_20; undefined4 *puStack_18; int iStack_10; int iStack_c; puStack_18 = (undefined4 *)0x0; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { puStack_18 = (undefined4 *)func_0x00400ab0(400); for (uStack_20 = 0; uStack_20 < 100; uStack_20 = uStack_20 + 1) { puStack_18[uStack_20] = 5; } func_0x00400a20(puStack_18); } for (iStack_10 = 0; iStack_10 < 1; iStack_10 = iStack_10 + 1) { printIntLine(*puStack_18); } return; }
['gcc']
1,450
void CWE416_Use_After_Free__malloc_free_int_17_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102265/CWE416_Use_After_Free__malloc_free_int_17.c
CWE416_Use_After_Free__malloc_free_int_17_good
void CWE416_Use_After_Free__malloc_free_int_17_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
1,451
void CWE416_Use_After_Free__malloc_free_int_63_bad() { int * data; /* Initialize data */ data = NULL; data = (int *)malloc(100*sizeof(int)); { size_t i; for(i = 0; i < 100; i++) { data[i] = 5; } } /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); CWE416_Use_After_Free__malloc_free_int_63b_badSink(&data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102269/CWE416_Use_After_Free__malloc_free_int_63a.c
CWE416_Use_After_Free__malloc_free_int_63_bad
void CWE416_Use_After_Free__malloc_free_int_63_bad(void) { long lStack_18; ulong uStack_10; lStack_18 = 0; lStack_18 = func_0x00400ab0(400); for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined4 *)(lStack_18 + uStack_10 * 4) = 5; } func_0x00400a20(lStack_18); CWE416_Use_After_Free__malloc_free_int_63b_badSink(&lStack_18); return; }
['gcc']
1,452
void CWE416_Use_After_Free__malloc_free_int_63_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102269/CWE416_Use_After_Free__malloc_free_int_63a.c
CWE416_Use_After_Free__malloc_free_int_63_good
void CWE416_Use_After_Free__malloc_free_int_63_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
1,453
void CWE416_Use_After_Free__malloc_free_int_63b_badSink(int * * dataPtr) { int * data = *dataPtr; /* POTENTIAL FLAW: Use of data that may have been freed */ printIntLine(data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ }
['/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102269/CWE416_Use_After_Free__malloc_free_int_63b.c
CWE416_Use_After_Free__malloc_free_int_63b_badSink
void CWE416_Use_After_Free__malloc_free_int_63b_badSink(undefined8 *param_1) { printIntLine(*(undefined4 *)*param_1); return; }
['gcc']
1,454
void CWE416_Use_After_Free__malloc_free_int_63b_goodG2BSink(int * * dataPtr) { int * data = *dataPtr; /* POTENTIAL FLAW: Use of data that may have been freed */ printIntLine(data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ }
['/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102269/CWE416_Use_After_Free__malloc_free_int_63b.c
CWE416_Use_After_Free__malloc_free_int_63b_goodG2BSink
void CWE416_Use_After_Free__malloc_free_int_63b_goodG2BSink(undefined8 *param_1) { printIntLine(*(undefined4 *)*param_1); return; }
['gcc']
1,455
void CWE416_Use_After_Free__malloc_free_int_63b_goodB2GSink(int * * dataPtr) { int * data = *dataPtr; /* FIX: Don't use data that may have been freed already */ /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ /* do nothing */ ; /* empty statement needed for some flow variants */ }
["/* FIX: Don't use data that may have been freed already */", '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */', '/* do nothing */', '/* empty statement needed for some flow variants */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102269/CWE416_Use_After_Free__malloc_free_int_63b.c
CWE416_Use_After_Free__malloc_free_int_63b_goodB2GSink
void CWE416_Use_After_Free__malloc_free_int_63b_goodB2GSink(void) { return; }
['gcc']
1,456
void CWE416_Use_After_Free__malloc_free_int_64_bad() { int * data; /* Initialize data */ data = NULL; data = (int *)malloc(100*sizeof(int)); { size_t i; for(i = 0; i < 100; i++) { data[i] = 5; } } /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); CWE416_Use_After_Free__malloc_free_int_64b_badSink(&data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102270/CWE416_Use_After_Free__malloc_free_int_64a.c
CWE416_Use_After_Free__malloc_free_int_64_bad
void CWE416_Use_After_Free__malloc_free_int_64_bad(void) { long lStack_18; ulong uStack_10; lStack_18 = 0; lStack_18 = func_0x00400ab0(400); for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined4 *)(lStack_18 + uStack_10 * 4) = 5; } func_0x00400a20(lStack_18); CWE416_Use_After_Free__malloc_free_int_64b_badSink(&lStack_18); return; }
['gcc']
1,457
void CWE416_Use_After_Free__malloc_free_int_64_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102270/CWE416_Use_After_Free__malloc_free_int_64a.c
CWE416_Use_After_Free__malloc_free_int_64_good
void CWE416_Use_After_Free__malloc_free_int_64_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
1,458
void CWE416_Use_After_Free__malloc_free_int_64b_badSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ int * * dataPtr = (int * *)dataVoidPtr; /* dereference dataPtr into data */ int * data = (*dataPtr); /* POTENTIAL FLAW: Use of data that may have been freed */ printIntLine(data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102270/CWE416_Use_After_Free__malloc_free_int_64b.c
CWE416_Use_After_Free__malloc_free_int_64b_badSink
void CWE416_Use_After_Free__malloc_free_int_64b_badSink(undefined8 *param_1) { printIntLine(*(undefined4 *)*param_1); return; }
['gcc']
1,459
void CWE416_Use_After_Free__malloc_free_int_64b_goodG2BSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ int * * dataPtr = (int * *)dataVoidPtr; /* dereference dataPtr into data */ int * data = (*dataPtr); /* POTENTIAL FLAW: Use of data that may have been freed */ printIntLine(data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102270/CWE416_Use_After_Free__malloc_free_int_64b.c
CWE416_Use_After_Free__malloc_free_int_64b_goodG2BSink
void CWE416_Use_After_Free__malloc_free_int_64b_goodG2BSink(undefined8 *param_1) { printIntLine(*(undefined4 *)*param_1); return; }
['gcc']
1,460
void CWE416_Use_After_Free__malloc_free_int_64b_goodB2GSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ int * * dataPtr = (int * *)dataVoidPtr; /* dereference dataPtr into data */ int * data = (*dataPtr); /* FIX: Don't use data that may have been freed already */ /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ /* do nothing */ ; /* empty statement needed for some flow variants */ }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', "/* FIX: Don't use data that may have been freed already */", '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */', '/* do nothing */', '/* empty statement needed for some flow variants */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102270/CWE416_Use_After_Free__malloc_free_int_64b.c
CWE416_Use_After_Free__malloc_free_int_64b_goodB2GSink
void CWE416_Use_After_Free__malloc_free_int_64b_goodB2GSink(void) { return; }
['gcc']
1,461
void CWE416_Use_After_Free__malloc_free_long_08_bad() { long * data; /* Initialize data */ data = NULL; if(staticReturnsTrue()) { data = (long *)malloc(100*sizeof(long)); { size_t i; for(i = 0; i < 100; i++) { data[i] = 5L; } } /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } if(staticReturnsTrue()) { /* POTENTIAL FLAW: Use of data that may have been freed */ printLongLine(data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102278/CWE416_Use_After_Free__malloc_free_long_08.c
CWE416_Use_After_Free__malloc_free_long_08_bad
void CWE416_Use_After_Free__malloc_free_long_08_bad(void) { int iVar1; ulong uStack_18; undefined8 *puStack_10; puStack_10 = (undefined8 *)0x0; iVar1 = staticReturnsTrue(); if (iVar1 != 0) { puStack_10 = (undefined8 *)func_0x00400ab0(800); for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) { puStack_10[uStack_18] = 5; } func_0x00400a20(puStack_10); } iVar1 = staticReturnsTrue(); if (iVar1 != 0) { printLongLine(*puStack_10); } return; }
['gcc']
1,462
void CWE416_Use_After_Free__malloc_free_long_08_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102278/CWE416_Use_After_Free__malloc_free_long_08.c
CWE416_Use_After_Free__malloc_free_long_08_good
void CWE416_Use_After_Free__malloc_free_long_08_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,463
void CWE416_Use_After_Free__malloc_free_long_11_bad() { long * data; /* Initialize data */ data = NULL; if(globalReturnsTrue()) { data = (long *)malloc(100*sizeof(long)); { size_t i; for(i = 0; i < 100; i++) { data[i] = 5L; } } /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } if(globalReturnsTrue()) { /* POTENTIAL FLAW: Use of data that may have been freed */ printLongLine(data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102281/CWE416_Use_After_Free__malloc_free_long_11.c
CWE416_Use_After_Free__malloc_free_long_11_bad
void CWE416_Use_After_Free__malloc_free_long_11_bad(void) { int iVar1; ulong uStack_18; undefined8 *puStack_10; puStack_10 = (undefined8 *)0x0; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { puStack_10 = (undefined8 *)func_0x00400ab0(800); for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) { puStack_10[uStack_18] = 5; } func_0x00400a20(puStack_10); } iVar1 = globalReturnsTrue(); if (iVar1 != 0) { printLongLine(*puStack_10); } return; }
['gcc']
1,464
void CWE416_Use_After_Free__malloc_free_long_11_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102281/CWE416_Use_After_Free__malloc_free_long_11.c
CWE416_Use_After_Free__malloc_free_long_11_good
void CWE416_Use_After_Free__malloc_free_long_11_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,465
void CWE416_Use_After_Free__malloc_free_long_12_bad() { long * data; /* Initialize data */ data = NULL; if(globalReturnsTrueOrFalse()) { data = (long *)malloc(100*sizeof(long)); { size_t i; for(i = 0; i < 100; i++) { data[i] = 5L; } } /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } else { data = (long *)malloc(100*sizeof(long)); { size_t i; for(i = 0; i < 100; i++) { data[i] = 5L; } } /* FIX: Do not free data in the source */ } if(globalReturnsTrueOrFalse()) { /* POTENTIAL FLAW: Use of data that may have been freed */ printLongLine(data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } else { /* FIX: Don't use data that may have been freed already */ /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ /* do nothing */ ; /* empty statement needed for some flow variants */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* FIX: Do not free data in the source */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */', "/* FIX: Don't use data that may have been freed already */", '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */', '/* do nothing */', '/* empty statement needed for some flow variants */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102282/CWE416_Use_After_Free__malloc_free_long_12.c
CWE416_Use_After_Free__malloc_free_long_12_bad
void CWE416_Use_After_Free__malloc_free_long_12_bad(void) { int iVar1; ulong uStack_20; ulong uStack_18; undefined8 *puStack_10; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { puStack_10 = (undefined8 *)func_0x00400ab0(800); for (uStack_20 = 0; uStack_20 < 100; uStack_20 = uStack_20 + 1) { puStack_10[uStack_20] = 5; } } else { puStack_10 = (undefined8 *)func_0x00400ab0(800); for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) { puStack_10[uStack_18] = 5; } func_0x00400a20(puStack_10); } iVar1 = globalReturnsTrueOrFalse(); if (iVar1 != 0) { printLongLine(*puStack_10); } return; }
['gcc']
1,466
void CWE416_Use_After_Free__malloc_free_long_12_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102282/CWE416_Use_After_Free__malloc_free_long_12.c
CWE416_Use_After_Free__malloc_free_long_12_good
void CWE416_Use_After_Free__malloc_free_long_12_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
1,467
void CWE416_Use_After_Free__malloc_free_long_17_bad() { int i,j; long * data; /* Initialize data */ data = NULL; for(i = 0; i < 1; i++) { data = (long *)malloc(100*sizeof(long)); { size_t i; for(i = 0; i < 100; i++) { data[i] = 5L; } } /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } for(j = 0; j < 1; j++) { /* POTENTIAL FLAW: Use of data that may have been freed */ printLongLine(data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102287/CWE416_Use_After_Free__malloc_free_long_17.c
CWE416_Use_After_Free__malloc_free_long_17_bad
void CWE416_Use_After_Free__malloc_free_long_17_bad(void) { ulong uStack_20; undefined8 *puStack_18; int iStack_10; int iStack_c; puStack_18 = (undefined8 *)0x0; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { puStack_18 = (undefined8 *)func_0x00400ab0(800); for (uStack_20 = 0; uStack_20 < 100; uStack_20 = uStack_20 + 1) { puStack_18[uStack_20] = 5; } func_0x00400a20(puStack_18); } for (iStack_10 = 0; iStack_10 < 1; iStack_10 = iStack_10 + 1) { printLongLine(*puStack_18); } return; }
['gcc']
1,468
void CWE416_Use_After_Free__malloc_free_long_17_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102287/CWE416_Use_After_Free__malloc_free_long_17.c
CWE416_Use_After_Free__malloc_free_long_17_good
void CWE416_Use_After_Free__malloc_free_long_17_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
1,469
void CWE416_Use_After_Free__malloc_free_long_63_bad() { long * data; /* Initialize data */ data = NULL; data = (long *)malloc(100*sizeof(long)); { size_t i; for(i = 0; i < 100; i++) { data[i] = 5L; } } /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); CWE416_Use_After_Free__malloc_free_long_63b_badSink(&data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102291/CWE416_Use_After_Free__malloc_free_long_63a.c
CWE416_Use_After_Free__malloc_free_long_63_bad
void CWE416_Use_After_Free__malloc_free_long_63_bad(void) { long lStack_18; ulong uStack_10; lStack_18 = 0; lStack_18 = func_0x00400ab0(800); for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined8 *)(lStack_18 + uStack_10 * 8) = 5; } func_0x00400a20(lStack_18); CWE416_Use_After_Free__malloc_free_long_63b_badSink(&lStack_18); return; }
['gcc']
1,470
void CWE416_Use_After_Free__malloc_free_long_63_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102291/CWE416_Use_After_Free__malloc_free_long_63a.c
CWE416_Use_After_Free__malloc_free_long_63_good
void CWE416_Use_After_Free__malloc_free_long_63_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
1,471
void CWE416_Use_After_Free__malloc_free_long_63b_badSink(long * * dataPtr) { long * data = *dataPtr; /* POTENTIAL FLAW: Use of data that may have been freed */ printLongLine(data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ }
['/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102291/CWE416_Use_After_Free__malloc_free_long_63b.c
CWE416_Use_After_Free__malloc_free_long_63b_badSink
void CWE416_Use_After_Free__malloc_free_long_63b_badSink(undefined8 *param_1) { printLongLine(*(undefined8 *)*param_1); return; }
['gcc']
1,472
void CWE416_Use_After_Free__malloc_free_long_63b_goodG2BSink(long * * dataPtr) { long * data = *dataPtr; /* POTENTIAL FLAW: Use of data that may have been freed */ printLongLine(data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ }
['/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102291/CWE416_Use_After_Free__malloc_free_long_63b.c
CWE416_Use_After_Free__malloc_free_long_63b_goodG2BSink
void CWE416_Use_After_Free__malloc_free_long_63b_goodG2BSink(undefined8 *param_1) { printLongLine(*(undefined8 *)*param_1); return; }
['gcc']
1,473
void CWE416_Use_After_Free__malloc_free_long_63b_goodB2GSink(long * * dataPtr) { long * data = *dataPtr; /* FIX: Don't use data that may have been freed already */ /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ /* do nothing */ ; /* empty statement needed for some flow variants */ }
["/* FIX: Don't use data that may have been freed already */", '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */', '/* do nothing */', '/* empty statement needed for some flow variants */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102291/CWE416_Use_After_Free__malloc_free_long_63b.c
CWE416_Use_After_Free__malloc_free_long_63b_goodB2GSink
void CWE416_Use_After_Free__malloc_free_long_63b_goodB2GSink(void) { return; }
['gcc']
1,474
void CWE416_Use_After_Free__malloc_free_long_64_bad() { long * data; /* Initialize data */ data = NULL; data = (long *)malloc(100*sizeof(long)); { size_t i; for(i = 0; i < 100; i++) { data[i] = 5L; } } /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); CWE416_Use_After_Free__malloc_free_long_64b_badSink(&data); }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102292/CWE416_Use_After_Free__malloc_free_long_64a.c
CWE416_Use_After_Free__malloc_free_long_64_bad
void CWE416_Use_After_Free__malloc_free_long_64_bad(void) { long lStack_18; ulong uStack_10; lStack_18 = 0; lStack_18 = func_0x00400ab0(800); for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined8 *)(lStack_18 + uStack_10 * 8) = 5; } func_0x00400a20(lStack_18); CWE416_Use_After_Free__malloc_free_long_64b_badSink(&lStack_18); return; }
['gcc']
1,475
void CWE416_Use_After_Free__malloc_free_long_64_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102292/CWE416_Use_After_Free__malloc_free_long_64a.c
CWE416_Use_After_Free__malloc_free_long_64_good
void CWE416_Use_After_Free__malloc_free_long_64_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
1,476
void CWE416_Use_After_Free__malloc_free_long_64b_badSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ long * * dataPtr = (long * *)dataVoidPtr; /* dereference dataPtr into data */ long * data = (*dataPtr); /* POTENTIAL FLAW: Use of data that may have been freed */ printLongLine(data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102292/CWE416_Use_After_Free__malloc_free_long_64b.c
CWE416_Use_After_Free__malloc_free_long_64b_badSink
void CWE416_Use_After_Free__malloc_free_long_64b_badSink(undefined8 *param_1) { printLongLine(*(undefined8 *)*param_1); return; }
['gcc']
1,477
void CWE416_Use_After_Free__malloc_free_long_64b_goodG2BSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ long * * dataPtr = (long * *)dataVoidPtr; /* dereference dataPtr into data */ long * data = (*dataPtr); /* POTENTIAL FLAW: Use of data that may have been freed */ printLongLine(data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102292/CWE416_Use_After_Free__malloc_free_long_64b.c
CWE416_Use_After_Free__malloc_free_long_64b_goodG2BSink
void CWE416_Use_After_Free__malloc_free_long_64b_goodG2BSink(undefined8 *param_1) { printLongLine(*(undefined8 *)*param_1); return; }
['gcc']
1,478
void CWE416_Use_After_Free__malloc_free_long_64b_goodB2GSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ long * * dataPtr = (long * *)dataVoidPtr; /* dereference dataPtr into data */ long * data = (*dataPtr); /* FIX: Don't use data that may have been freed already */ /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ /* do nothing */ ; /* empty statement needed for some flow variants */ }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', "/* FIX: Don't use data that may have been freed already */", '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */', '/* do nothing */', '/* empty statement needed for some flow variants */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102292/CWE416_Use_After_Free__malloc_free_long_64b.c
CWE416_Use_After_Free__malloc_free_long_64b_goodB2GSink
void CWE416_Use_After_Free__malloc_free_long_64b_goodB2GSink(void) { return; }
['gcc']
1,479
void CWE416_Use_After_Free__malloc_free_struct_02_bad() { twoIntsStruct * data; /* Initialize data */ data = NULL; if(1) { data = (twoIntsStruct *)malloc(100*sizeof(twoIntsStruct)); { size_t i; for(i = 0; i < 100; i++) { data[i].intOne = 1; data[i].intTwo = 2; } } /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } if(1) { /* POTENTIAL FLAW: Use of data that may have been freed */ printStructLine(&data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102294/CWE416_Use_After_Free__malloc_free_struct_02.c
CWE416_Use_After_Free__malloc_free_struct_02_bad
void CWE416_Use_After_Free__malloc_free_struct_02_bad(void) { long lVar1; ulong uStack_10; lVar1 = func_0x00400ab0(800); for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined4 *)(lVar1 + uStack_10 * 8) = 1; *(undefined4 *)(lVar1 + uStack_10 * 8 + 4) = 2; } func_0x00400a20(lVar1); printStructLine(lVar1); return; }
['gcc']
1,480
void CWE416_Use_After_Free__malloc_free_struct_02_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102294/CWE416_Use_After_Free__malloc_free_struct_02.c
CWE416_Use_After_Free__malloc_free_struct_02_good
void CWE416_Use_After_Free__malloc_free_struct_02_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,481
void CWE416_Use_After_Free__malloc_free_struct_03_bad() { twoIntsStruct * data; /* Initialize data */ data = NULL; if(5==5) { data = (twoIntsStruct *)malloc(100*sizeof(twoIntsStruct)); { size_t i; for(i = 0; i < 100; i++) { data[i].intOne = 1; data[i].intTwo = 2; } } /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } if(5==5) { /* POTENTIAL FLAW: Use of data that may have been freed */ printStructLine(&data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102295/CWE416_Use_After_Free__malloc_free_struct_03.c
CWE416_Use_After_Free__malloc_free_struct_03_bad
void CWE416_Use_After_Free__malloc_free_struct_03_bad(void) { long lVar1; ulong uStack_10; lVar1 = func_0x00400ab0(800); for (uStack_10 = 0; uStack_10 < 100; uStack_10 = uStack_10 + 1) { *(undefined4 *)(lVar1 + uStack_10 * 8) = 1; *(undefined4 *)(lVar1 + uStack_10 * 8 + 4) = 2; } func_0x00400a20(lVar1); printStructLine(lVar1); return; }
['gcc']
1,482
void CWE416_Use_After_Free__malloc_free_struct_03_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102295/CWE416_Use_After_Free__malloc_free_struct_03.c
CWE416_Use_After_Free__malloc_free_struct_03_good
void CWE416_Use_After_Free__malloc_free_struct_03_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,483
void CWE416_Use_After_Free__malloc_free_struct_04_bad() { twoIntsStruct * data; /* Initialize data */ data = NULL; if(STATIC_CONST_TRUE) { data = (twoIntsStruct *)malloc(100*sizeof(twoIntsStruct)); { size_t i; for(i = 0; i < 100; i++) { data[i].intOne = 1; data[i].intTwo = 2; } } /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } if(STATIC_CONST_TRUE) { /* POTENTIAL FLAW: Use of data that may have been freed */ printStructLine(&data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102296/CWE416_Use_After_Free__malloc_free_struct_04.c
CWE416_Use_After_Free__malloc_free_struct_04_bad
void CWE416_Use_After_Free__malloc_free_struct_04_bad(void) { long lVar1; ulong uStack_18; lVar1 = func_0x00400ab0(800); for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) { *(undefined4 *)(lVar1 + uStack_18 * 8) = 1; *(undefined4 *)(lVar1 + uStack_18 * 8 + 4) = 2; } func_0x00400a20(lVar1); printStructLine(lVar1); return; }
['gcc']
1,484
void CWE416_Use_After_Free__malloc_free_struct_04_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102296/CWE416_Use_After_Free__malloc_free_struct_04.c
CWE416_Use_After_Free__malloc_free_struct_04_good
void CWE416_Use_After_Free__malloc_free_struct_04_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,485
void CWE416_Use_After_Free__malloc_free_struct_05_bad() { twoIntsStruct * data; /* Initialize data */ data = NULL; if(staticTrue) { data = (twoIntsStruct *)malloc(100*sizeof(twoIntsStruct)); { size_t i; for(i = 0; i < 100; i++) { data[i].intOne = 1; data[i].intTwo = 2; } } /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } if(staticTrue) { /* POTENTIAL FLAW: Use of data that may have been freed */ printStructLine(&data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102297/CWE416_Use_After_Free__malloc_free_struct_05.c
CWE416_Use_After_Free__malloc_free_struct_05_bad
void CWE416_Use_After_Free__malloc_free_struct_05_bad(void) { ulong uStack_18; long lStack_10; lStack_10 = 0; if (staticTrue != 0) { lStack_10 = func_0x00400ab0(800); for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) { *(undefined4 *)(lStack_10 + uStack_18 * 8) = 1; *(undefined4 *)(lStack_10 + uStack_18 * 8 + 4) = 2; } func_0x00400a20(lStack_10); } if (staticTrue != 0) { printStructLine(lStack_10); } return; }
['gcc']
1,486
void CWE416_Use_After_Free__malloc_free_struct_05_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102297/CWE416_Use_After_Free__malloc_free_struct_05.c
CWE416_Use_After_Free__malloc_free_struct_05_good
void CWE416_Use_After_Free__malloc_free_struct_05_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,487
void CWE416_Use_After_Free__malloc_free_struct_06_bad() { twoIntsStruct * data; /* Initialize data */ data = NULL; if(STATIC_CONST_FIVE==5) { data = (twoIntsStruct *)malloc(100*sizeof(twoIntsStruct)); { size_t i; for(i = 0; i < 100; i++) { data[i].intOne = 1; data[i].intTwo = 2; } } /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } if(STATIC_CONST_FIVE==5) { /* POTENTIAL FLAW: Use of data that may have been freed */ printStructLine(&data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102298/CWE416_Use_After_Free__malloc_free_struct_06.c
CWE416_Use_After_Free__malloc_free_struct_06_bad
void CWE416_Use_After_Free__malloc_free_struct_06_bad(void) { long lVar1; ulong uStack_18; lVar1 = func_0x00400ab0(800); for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) { *(undefined4 *)(lVar1 + uStack_18 * 8) = 1; *(undefined4 *)(lVar1 + uStack_18 * 8 + 4) = 2; } func_0x00400a20(lVar1); printStructLine(lVar1); return; }
['gcc']
1,488
void CWE416_Use_After_Free__malloc_free_struct_06_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102298/CWE416_Use_After_Free__malloc_free_struct_06.c
CWE416_Use_After_Free__malloc_free_struct_06_good
void CWE416_Use_After_Free__malloc_free_struct_06_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,489
void CWE416_Use_After_Free__malloc_free_struct_07_bad() { twoIntsStruct * data; /* Initialize data */ data = NULL; if(staticFive==5) { data = (twoIntsStruct *)malloc(100*sizeof(twoIntsStruct)); { size_t i; for(i = 0; i < 100; i++) { data[i].intOne = 1; data[i].intTwo = 2; } } /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } if(staticFive==5) { /* POTENTIAL FLAW: Use of data that may have been freed */ printStructLine(&data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102299/CWE416_Use_After_Free__malloc_free_struct_07.c
CWE416_Use_After_Free__malloc_free_struct_07_bad
void CWE416_Use_After_Free__malloc_free_struct_07_bad(void) { ulong uStack_18; long lStack_10; lStack_10 = 0; if (staticFive == 5) { lStack_10 = func_0x00400ab0(800); for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) { *(undefined4 *)(lStack_10 + uStack_18 * 8) = 1; *(undefined4 *)(lStack_10 + uStack_18 * 8 + 4) = 2; } func_0x00400a20(lStack_10); } if (staticFive == 5) { printStructLine(lStack_10); } return; }
['gcc']
1,490
void CWE416_Use_After_Free__malloc_free_struct_07_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102299/CWE416_Use_After_Free__malloc_free_struct_07.c
CWE416_Use_After_Free__malloc_free_struct_07_good
void CWE416_Use_After_Free__malloc_free_struct_07_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,491
void CWE416_Use_After_Free__malloc_free_struct_08_bad() { twoIntsStruct * data; /* Initialize data */ data = NULL; if(staticReturnsTrue()) { data = (twoIntsStruct *)malloc(100*sizeof(twoIntsStruct)); { size_t i; for(i = 0; i < 100; i++) { data[i].intOne = 1; data[i].intTwo = 2; } } /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } if(staticReturnsTrue()) { /* POTENTIAL FLAW: Use of data that may have been freed */ printStructLine(&data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102300/CWE416_Use_After_Free__malloc_free_struct_08.c
CWE416_Use_After_Free__malloc_free_struct_08_bad
void CWE416_Use_After_Free__malloc_free_struct_08_bad(void) { int iVar1; ulong uStack_18; long lStack_10; lStack_10 = 0; iVar1 = staticReturnsTrue(); if (iVar1 != 0) { lStack_10 = func_0x00400ab0(800); for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) { *(undefined4 *)(lStack_10 + uStack_18 * 8) = 1; *(undefined4 *)(lStack_10 + uStack_18 * 8 + 4) = 2; } func_0x00400a20(lStack_10); } iVar1 = staticReturnsTrue(); if (iVar1 != 0) { printStructLine(lStack_10); } return; }
['gcc']
1,492
void CWE416_Use_After_Free__malloc_free_struct_08_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102300/CWE416_Use_After_Free__malloc_free_struct_08.c
CWE416_Use_After_Free__malloc_free_struct_08_good
void CWE416_Use_After_Free__malloc_free_struct_08_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,493
void CWE416_Use_After_Free__malloc_free_struct_09_bad() { twoIntsStruct * data; /* Initialize data */ data = NULL; if(GLOBAL_CONST_TRUE) { data = (twoIntsStruct *)malloc(100*sizeof(twoIntsStruct)); { size_t i; for(i = 0; i < 100; i++) { data[i].intOne = 1; data[i].intTwo = 2; } } /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } if(GLOBAL_CONST_TRUE) { /* POTENTIAL FLAW: Use of data that may have been freed */ printStructLine(&data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102301/CWE416_Use_After_Free__malloc_free_struct_09.c
CWE416_Use_After_Free__malloc_free_struct_09_bad
void CWE416_Use_After_Free__malloc_free_struct_09_bad(void) { ulong uStack_18; long lStack_10; lStack_10 = 0; if (GLOBAL_CONST_TRUE != 0) { lStack_10 = func_0x00400ab0(800); for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) { *(undefined4 *)(lStack_10 + uStack_18 * 8) = 1; *(undefined4 *)(lStack_10 + uStack_18 * 8 + 4) = 2; } func_0x00400a20(lStack_10); } if (GLOBAL_CONST_TRUE != 0) { printStructLine(lStack_10); } return; }
['gcc']
1,494
void CWE416_Use_After_Free__malloc_free_struct_09_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102301/CWE416_Use_After_Free__malloc_free_struct_09.c
CWE416_Use_After_Free__malloc_free_struct_09_good
void CWE416_Use_After_Free__malloc_free_struct_09_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,495
void CWE416_Use_After_Free__malloc_free_struct_10_bad() { twoIntsStruct * data; /* Initialize data */ data = NULL; if(globalTrue) { data = (twoIntsStruct *)malloc(100*sizeof(twoIntsStruct)); { size_t i; for(i = 0; i < 100; i++) { data[i].intOne = 1; data[i].intTwo = 2; } } /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } if(globalTrue) { /* POTENTIAL FLAW: Use of data that may have been freed */ printStructLine(&data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102302/CWE416_Use_After_Free__malloc_free_struct_10.c
CWE416_Use_After_Free__malloc_free_struct_10_bad
void CWE416_Use_After_Free__malloc_free_struct_10_bad(void) { ulong uStack_18; long lStack_10; lStack_10 = 0; if (globalTrue != 0) { lStack_10 = func_0x00400ab0(800); for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) { *(undefined4 *)(lStack_10 + uStack_18 * 8) = 1; *(undefined4 *)(lStack_10 + uStack_18 * 8 + 4) = 2; } func_0x00400a20(lStack_10); } if (globalTrue != 0) { printStructLine(lStack_10); } return; }
['gcc']
1,496
void CWE416_Use_After_Free__malloc_free_struct_10_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102302/CWE416_Use_After_Free__malloc_free_struct_10.c
CWE416_Use_After_Free__malloc_free_struct_10_good
void CWE416_Use_After_Free__malloc_free_struct_10_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,497
void CWE416_Use_After_Free__malloc_free_struct_11_bad() { twoIntsStruct * data; /* Initialize data */ data = NULL; if(globalReturnsTrue()) { data = (twoIntsStruct *)malloc(100*sizeof(twoIntsStruct)); { size_t i; for(i = 0; i < 100; i++) { data[i].intOne = 1; data[i].intTwo = 2; } } /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } if(globalReturnsTrue()) { /* POTENTIAL FLAW: Use of data that may have been freed */ printStructLine(&data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102303/CWE416_Use_After_Free__malloc_free_struct_11.c
CWE416_Use_After_Free__malloc_free_struct_11_bad
void CWE416_Use_After_Free__malloc_free_struct_11_bad(void) { int iVar1; ulong uStack_18; long lStack_10; lStack_10 = 0; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { lStack_10 = func_0x00400ab0(800); for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) { *(undefined4 *)(lStack_10 + uStack_18 * 8) = 1; *(undefined4 *)(lStack_10 + uStack_18 * 8 + 4) = 2; } func_0x00400a20(lStack_10); } iVar1 = globalReturnsTrue(); if (iVar1 != 0) { printStructLine(lStack_10); } return; }
['gcc']
1,498
void CWE416_Use_After_Free__malloc_free_struct_11_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102303/CWE416_Use_After_Free__malloc_free_struct_11.c
CWE416_Use_After_Free__malloc_free_struct_11_good
void CWE416_Use_After_Free__malloc_free_struct_11_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
1,499
void CWE416_Use_After_Free__malloc_free_struct_12_bad() { twoIntsStruct * data; /* Initialize data */ data = NULL; if(globalReturnsTrueOrFalse()) { data = (twoIntsStruct *)malloc(100*sizeof(twoIntsStruct)); { size_t i; for(i = 0; i < 100; i++) { data[i].intOne = 1; data[i].intTwo = 2; } } /* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */ free(data); } else { data = (twoIntsStruct *)malloc(100*sizeof(twoIntsStruct)); { size_t i; for(i = 0; i < 100; i++) { data[i].intOne = 1; data[i].intTwo = 2; } } /* FIX: Do not free data in the source */ } if(globalReturnsTrueOrFalse()) { /* POTENTIAL FLAW: Use of data that may have been freed */ printStructLine(&data[0]); /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ } else { /* FIX: Don't use data that may have been freed already */ /* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */ /* do nothing */ ; /* empty statement needed for some flow variants */ } }
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink attempts to use data */', '/* FIX: Do not free data in the source */', '/* POTENTIAL FLAW: Use of data that may have been freed */', '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */', "/* FIX: Don't use data that may have been freed already */", '/* POTENTIAL INCIDENTAL - Possible memory leak here if data was not freed */', '/* do nothing */', '/* empty statement needed for some flow variants */']
['CWE416']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/102304/CWE416_Use_After_Free__malloc_free_struct_12.c
CWE416_Use_After_Free__malloc_free_struct_12_bad
void CWE416_Use_After_Free__malloc_free_struct_12_bad(void) { int iVar1; ulong uStack_20; ulong uStack_18; long lStack_10; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { lStack_10 = func_0x00400ab0(800); for (uStack_20 = 0; uStack_20 < 100; uStack_20 = uStack_20 + 1) { *(undefined4 *)(lStack_10 + uStack_20 * 8) = 1; *(undefined4 *)(lStack_10 + uStack_20 * 8 + 4) = 2; } } else { lStack_10 = func_0x00400ab0(800); for (uStack_18 = 0; uStack_18 < 100; uStack_18 = uStack_18 + 1) { *(undefined4 *)(lStack_10 + uStack_18 * 8) = 1; *(undefined4 *)(lStack_10 + uStack_18 * 8 + 4) = 2; } func_0x00400a20(lStack_10); } iVar1 = globalReturnsTrueOrFalse(); if (iVar1 != 0) { printStructLine(lStack_10); } return; }
['gcc']