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,200
|
void CWE415_Double_Free__malloc_free_int64_t_53b_goodG2BSink(int64_t * data)
{
CWE415_Double_Free__malloc_free_int64_t_53c_goodG2BSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101322/CWE415_Double_Free__malloc_free_int64_t_53b.c
|
CWE415_Double_Free__malloc_free_int64_t_53b_goodG2BSink
|
void CWE415_Double_Free__malloc_free_int64_t_53b_goodG2BSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_int64_t_53c_goodG2BSink(param_1);
return;
}
|
['gcc']
|
1,201
|
void CWE415_Double_Free__malloc_free_int64_t_53b_goodB2GSink(int64_t * data)
{
CWE415_Double_Free__malloc_free_int64_t_53c_goodB2GSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101322/CWE415_Double_Free__malloc_free_int64_t_53b.c
|
CWE415_Double_Free__malloc_free_int64_t_53b_goodB2GSink
|
void CWE415_Double_Free__malloc_free_int64_t_53b_goodB2GSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_int64_t_53c_goodB2GSink(param_1);
return;
}
|
['gcc']
|
1,202
|
void CWE415_Double_Free__malloc_free_int64_t_53c_badSink(int64_t * data)
{
CWE415_Double_Free__malloc_free_int64_t_53d_badSink(data);
}
|
[]
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101322/CWE415_Double_Free__malloc_free_int64_t_53c.c
|
CWE415_Double_Free__malloc_free_int64_t_53c_badSink
|
void CWE415_Double_Free__malloc_free_int64_t_53c_badSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_int64_t_53d_badSink(param_1);
return;
}
|
['gcc']
|
1,203
|
void CWE415_Double_Free__malloc_free_int64_t_53c_goodG2BSink(int64_t * data)
{
CWE415_Double_Free__malloc_free_int64_t_53d_goodG2BSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101322/CWE415_Double_Free__malloc_free_int64_t_53c.c
|
CWE415_Double_Free__malloc_free_int64_t_53c_goodG2BSink
|
void CWE415_Double_Free__malloc_free_int64_t_53c_goodG2BSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_int64_t_53d_goodG2BSink(param_1);
return;
}
|
['gcc']
|
1,204
|
void CWE415_Double_Free__malloc_free_int64_t_53c_goodB2GSink(int64_t * data)
{
CWE415_Double_Free__malloc_free_int64_t_53d_goodB2GSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101322/CWE415_Double_Free__malloc_free_int64_t_53c.c
|
CWE415_Double_Free__malloc_free_int64_t_53c_goodB2GSink
|
void CWE415_Double_Free__malloc_free_int64_t_53c_goodB2GSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_int64_t_53d_goodB2GSink(param_1);
return;
}
|
['gcc']
|
1,205
|
void CWE415_Double_Free__malloc_free_int64_t_53d_badSink(int64_t * data)
{
/* POTENTIAL FLAW: Possibly freeing memory twice */
free(data);
}
|
['/* POTENTIAL FLAW: Possibly freeing memory twice */']
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101322/CWE415_Double_Free__malloc_free_int64_t_53d.c
|
CWE415_Double_Free__malloc_free_int64_t_53d_badSink
|
void CWE415_Double_Free__malloc_free_int64_t_53d_badSink(undefined8 param_1)
{
func_0x00400a20(param_1);
return;
}
|
['gcc']
|
1,206
|
void CWE415_Double_Free__malloc_free_int64_t_53d_goodG2BSink(int64_t * data)
{
/* POTENTIAL FLAW: Possibly freeing memory twice */
free(data);
}
|
['/* POTENTIAL FLAW: Possibly freeing memory twice */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101322/CWE415_Double_Free__malloc_free_int64_t_53d.c
|
CWE415_Double_Free__malloc_free_int64_t_53d_goodG2BSink
|
void CWE415_Double_Free__malloc_free_int64_t_53d_goodG2BSink(undefined8 param_1)
{
func_0x00400a20(param_1);
return;
}
|
['gcc']
|
1,207
|
void CWE415_Double_Free__malloc_free_int64_t_53d_goodB2GSink(int64_t * data)
{
/* do nothing */
/* FIX: Don't attempt to free the memory */
; /* empty statement needed for some flow variants */
}
|
['/* do nothing */', "/* FIX: Don't attempt to free the memory */", '/* empty statement needed for some flow variants */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101322/CWE415_Double_Free__malloc_free_int64_t_53d.c
|
CWE415_Double_Free__malloc_free_int64_t_53d_goodB2GSink
|
void CWE415_Double_Free__malloc_free_int64_t_53d_goodB2GSink(void)
{
return;
}
|
['gcc']
|
1,208
|
void CWE415_Double_Free__malloc_free_int64_t_54_bad()
{
int64_t * data;
/* Initialize data */
data = NULL;
data = (int64_t *)malloc(100*sizeof(int64_t));
/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */
free(data);
CWE415_Double_Free__malloc_free_int64_t_54b_badSink(data);
}
|
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */']
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101323/CWE415_Double_Free__malloc_free_int64_t_54a.c
|
CWE415_Double_Free__malloc_free_int64_t_54_bad
|
void CWE415_Double_Free__malloc_free_int64_t_54_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(800);
func_0x00400a20(uVar1);
CWE415_Double_Free__malloc_free_int64_t_54b_badSink(uVar1);
return;
}
|
['gcc']
|
1,209
|
void CWE415_Double_Free__malloc_free_int64_t_54_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101323/CWE415_Double_Free__malloc_free_int64_t_54a.c
|
CWE415_Double_Free__malloc_free_int64_t_54_good
|
void CWE415_Double_Free__malloc_free_int64_t_54_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
1,210
|
void CWE415_Double_Free__malloc_free_int64_t_54b_badSink(int64_t * data)
{
CWE415_Double_Free__malloc_free_int64_t_54c_badSink(data);
}
|
[]
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101323/CWE415_Double_Free__malloc_free_int64_t_54b.c
|
CWE415_Double_Free__malloc_free_int64_t_54b_badSink
|
void CWE415_Double_Free__malloc_free_int64_t_54b_badSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_int64_t_54c_badSink(param_1);
return;
}
|
['gcc']
|
1,211
|
void CWE415_Double_Free__malloc_free_int64_t_54b_goodG2BSink(int64_t * data)
{
CWE415_Double_Free__malloc_free_int64_t_54c_goodG2BSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101323/CWE415_Double_Free__malloc_free_int64_t_54b.c
|
CWE415_Double_Free__malloc_free_int64_t_54b_goodG2BSink
|
void CWE415_Double_Free__malloc_free_int64_t_54b_goodG2BSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_int64_t_54c_goodG2BSink(param_1);
return;
}
|
['gcc']
|
1,212
|
void CWE415_Double_Free__malloc_free_int64_t_54b_goodB2GSink(int64_t * data)
{
CWE415_Double_Free__malloc_free_int64_t_54c_goodB2GSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101323/CWE415_Double_Free__malloc_free_int64_t_54b.c
|
CWE415_Double_Free__malloc_free_int64_t_54b_goodB2GSink
|
void CWE415_Double_Free__malloc_free_int64_t_54b_goodB2GSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_int64_t_54c_goodB2GSink(param_1);
return;
}
|
['gcc']
|
1,213
|
void CWE415_Double_Free__malloc_free_int64_t_54c_badSink(int64_t * data)
{
CWE415_Double_Free__malloc_free_int64_t_54d_badSink(data);
}
|
[]
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101323/CWE415_Double_Free__malloc_free_int64_t_54c.c
|
CWE415_Double_Free__malloc_free_int64_t_54c_badSink
|
void CWE415_Double_Free__malloc_free_int64_t_54c_badSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_int64_t_54d_badSink(param_1);
return;
}
|
['gcc']
|
1,214
|
void CWE415_Double_Free__malloc_free_int64_t_54c_goodG2BSink(int64_t * data)
{
CWE415_Double_Free__malloc_free_int64_t_54d_goodG2BSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101323/CWE415_Double_Free__malloc_free_int64_t_54c.c
|
CWE415_Double_Free__malloc_free_int64_t_54c_goodG2BSink
|
void CWE415_Double_Free__malloc_free_int64_t_54c_goodG2BSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_int64_t_54d_goodG2BSink(param_1);
return;
}
|
['gcc']
|
1,215
|
void CWE415_Double_Free__malloc_free_int64_t_54c_goodB2GSink(int64_t * data)
{
CWE415_Double_Free__malloc_free_int64_t_54d_goodB2GSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101323/CWE415_Double_Free__malloc_free_int64_t_54c.c
|
CWE415_Double_Free__malloc_free_int64_t_54c_goodB2GSink
|
void CWE415_Double_Free__malloc_free_int64_t_54c_goodB2GSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_int64_t_54d_goodB2GSink(param_1);
return;
}
|
['gcc']
|
1,216
|
void CWE415_Double_Free__malloc_free_int64_t_54d_badSink(int64_t * data)
{
CWE415_Double_Free__malloc_free_int64_t_54e_badSink(data);
}
|
[]
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101323/CWE415_Double_Free__malloc_free_int64_t_54d.c
|
CWE415_Double_Free__malloc_free_int64_t_54d_badSink
|
void CWE415_Double_Free__malloc_free_int64_t_54d_badSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_int64_t_54e_badSink(param_1);
return;
}
|
['gcc']
|
1,217
|
void CWE415_Double_Free__malloc_free_int64_t_54d_goodG2BSink(int64_t * data)
{
CWE415_Double_Free__malloc_free_int64_t_54e_goodG2BSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101323/CWE415_Double_Free__malloc_free_int64_t_54d.c
|
CWE415_Double_Free__malloc_free_int64_t_54d_goodG2BSink
|
void CWE415_Double_Free__malloc_free_int64_t_54d_goodG2BSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_int64_t_54e_goodG2BSink(param_1);
return;
}
|
['gcc']
|
1,218
|
void CWE415_Double_Free__malloc_free_int64_t_54d_goodB2GSink(int64_t * data)
{
CWE415_Double_Free__malloc_free_int64_t_54e_goodB2GSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101323/CWE415_Double_Free__malloc_free_int64_t_54d.c
|
CWE415_Double_Free__malloc_free_int64_t_54d_goodB2GSink
|
void CWE415_Double_Free__malloc_free_int64_t_54d_goodB2GSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_int64_t_54e_goodB2GSink(param_1);
return;
}
|
['gcc']
|
1,219
|
void CWE415_Double_Free__malloc_free_int64_t_54e_badSink(int64_t * data)
{
/* POTENTIAL FLAW: Possibly freeing memory twice */
free(data);
}
|
['/* POTENTIAL FLAW: Possibly freeing memory twice */']
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101323/CWE415_Double_Free__malloc_free_int64_t_54e.c
|
CWE415_Double_Free__malloc_free_int64_t_54e_badSink
|
void CWE415_Double_Free__malloc_free_int64_t_54e_badSink(undefined8 param_1)
{
func_0x00400a20(param_1);
return;
}
|
['gcc']
|
1,220
|
void CWE415_Double_Free__malloc_free_int64_t_54e_goodG2BSink(int64_t * data)
{
/* POTENTIAL FLAW: Possibly freeing memory twice */
free(data);
}
|
['/* POTENTIAL FLAW: Possibly freeing memory twice */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101323/CWE415_Double_Free__malloc_free_int64_t_54e.c
|
CWE415_Double_Free__malloc_free_int64_t_54e_goodG2BSink
|
void CWE415_Double_Free__malloc_free_int64_t_54e_goodG2BSink(undefined8 param_1)
{
func_0x00400a20(param_1);
return;
}
|
['gcc']
|
1,221
|
void CWE415_Double_Free__malloc_free_int64_t_54e_goodB2GSink(int64_t * data)
{
/* do nothing */
/* FIX: Don't attempt to free the memory */
; /* empty statement needed for some flow variants */
}
|
['/* do nothing */', "/* FIX: Don't attempt to free the memory */", '/* empty statement needed for some flow variants */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101323/CWE415_Double_Free__malloc_free_int64_t_54e.c
|
CWE415_Double_Free__malloc_free_int64_t_54e_goodB2GSink
|
void CWE415_Double_Free__malloc_free_int64_t_54e_goodB2GSink(void)
{
return;
}
|
['gcc']
|
1,222
|
void CWE415_Double_Free__malloc_free_int64_t_66_bad()
{
int64_t * data;
int64_t * dataArray[5];
/* Initialize data */
data = NULL;
data = (int64_t *)malloc(100*sizeof(int64_t));
/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */
free(data);
/* put data in array */
dataArray[2] = data;
CWE415_Double_Free__malloc_free_int64_t_66b_badSink(dataArray);
}
|
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */', '/* put data in array */']
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101329/CWE415_Double_Free__malloc_free_int64_t_66a.c
|
CWE415_Double_Free__malloc_free_int64_t_66_bad
|
void CWE415_Double_Free__malloc_free_int64_t_66_bad(void)
{
undefined auStack_38 [16];
undefined8 uStack_28;
undefined8 uStack_10;
uStack_10 = 0;
uStack_10 = func_0x00400ab0(800);
func_0x00400a20(uStack_10);
uStack_28 = uStack_10;
CWE415_Double_Free__malloc_free_int64_t_66b_badSink(auStack_38);
return;
}
|
['gcc']
|
1,223
|
void CWE415_Double_Free__malloc_free_int64_t_66_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101329/CWE415_Double_Free__malloc_free_int64_t_66a.c
|
CWE415_Double_Free__malloc_free_int64_t_66_good
|
void CWE415_Double_Free__malloc_free_int64_t_66_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
1,224
|
void CWE415_Double_Free__malloc_free_int64_t_66b_badSink(int64_t * dataArray[])
{
/* copy data out of dataArray */
int64_t * data = dataArray[2];
/* POTENTIAL FLAW: Possibly freeing memory twice */
free(data);
}
|
['/* copy data out of dataArray */', '/* POTENTIAL FLAW: Possibly freeing memory twice */']
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101329/CWE415_Double_Free__malloc_free_int64_t_66b.c
|
CWE415_Double_Free__malloc_free_int64_t_66b_badSink
|
void CWE415_Double_Free__malloc_free_int64_t_66b_badSink(long param_1)
{
func_0x00400a20(*(undefined8 *)(param_1 + 0x10));
return;
}
|
['gcc']
|
1,225
|
void CWE415_Double_Free__malloc_free_int64_t_66b_goodB2GSink(int64_t * dataArray[])
{
int64_t * data = dataArray[2];
/* do nothing */
/* FIX: Don't attempt to free the memory */
; /* empty statement needed for some flow variants */
}
|
['/* do nothing */', "/* FIX: Don't attempt to free the memory */", '/* empty statement needed for some flow variants */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101329/CWE415_Double_Free__malloc_free_int64_t_66b.c
|
CWE415_Double_Free__malloc_free_int64_t_66b_goodB2GSink
|
void CWE415_Double_Free__malloc_free_int64_t_66b_goodB2GSink(void)
{
return;
}
|
['gcc']
|
1,226
|
void CWE415_Double_Free__malloc_free_int_08_bad()
{
int * data;
/* Initialize data */
data = NULL;
if(staticReturnsTrue())
{
data = (int *)malloc(100*sizeof(int));
/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */
free(data);
}
if(staticReturnsTrue())
{
/* POTENTIAL FLAW: Possibly freeing memory twice */
free(data);
}
}
|
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */', '/* POTENTIAL FLAW: Possibly freeing memory twice */']
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101346/CWE415_Double_Free__malloc_free_int_08.c
|
CWE415_Double_Free__malloc_free_int_08_bad
|
void CWE415_Double_Free__malloc_free_int_08_bad(void)
{
int iVar1;
undefined8 uStack_10;
uStack_10 = 0;
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
uStack_10 = func_0x00400ab0(400);
func_0x00400a20(uStack_10);
}
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
func_0x00400a20(uStack_10);
}
return;
}
|
['gcc']
|
1,227
|
void CWE415_Double_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/101346/CWE415_Double_Free__malloc_free_int_08.c
|
CWE415_Double_Free__malloc_free_int_08_good
|
void CWE415_Double_Free__malloc_free_int_08_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
1,228
|
void CWE415_Double_Free__malloc_free_int_11_bad()
{
int * data;
/* Initialize data */
data = NULL;
if(globalReturnsTrue())
{
data = (int *)malloc(100*sizeof(int));
/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */
free(data);
}
if(globalReturnsTrue())
{
/* POTENTIAL FLAW: Possibly freeing memory twice */
free(data);
}
}
|
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */', '/* POTENTIAL FLAW: Possibly freeing memory twice */']
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101349/CWE415_Double_Free__malloc_free_int_11.c
|
CWE415_Double_Free__malloc_free_int_11_bad
|
void CWE415_Double_Free__malloc_free_int_11_bad(void)
{
int iVar1;
undefined8 uStack_10;
uStack_10 = 0;
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
uStack_10 = func_0x00400ab0(400);
func_0x00400a20(uStack_10);
}
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
func_0x00400a20(uStack_10);
}
return;
}
|
['gcc']
|
1,229
|
void CWE415_Double_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/101349/CWE415_Double_Free__malloc_free_int_11.c
|
CWE415_Double_Free__malloc_free_int_11_good
|
void CWE415_Double_Free__malloc_free_int_11_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
1,230
|
void CWE415_Double_Free__malloc_free_int_12_bad()
{
int * data;
/* Initialize data */
data = NULL;
if(globalReturnsTrueOrFalse())
{
data = (int *)malloc(100*sizeof(int));
/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */
free(data);
}
else
{
data = (int *)malloc(100*sizeof(int));
/* FIX: Do NOT free data in the source - the bad sink frees data */
}
if(globalReturnsTrueOrFalse())
{
/* POTENTIAL FLAW: Possibly freeing memory twice */
free(data);
}
else
{
/* do nothing */
/* FIX: Don't attempt to free the memory */
; /* empty statement needed for some flow variants */
}
}
|
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */', '/* FIX: Do NOT free data in the source - the bad sink frees data */', '/* POTENTIAL FLAW: Possibly freeing memory twice */', '/* do nothing */', "/* FIX: Don't attempt to free the memory */", '/* empty statement needed for some flow variants */']
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101350/CWE415_Double_Free__malloc_free_int_12.c
|
CWE415_Double_Free__malloc_free_int_12_bad
|
void CWE415_Double_Free__malloc_free_int_12_bad(void)
{
int iVar1;
undefined8 uStack_10;
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
uStack_10 = func_0x00400ab0(400);
}
else {
uStack_10 = func_0x00400ab0(400);
func_0x00400a20(uStack_10);
}
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 != 0) {
func_0x00400a20(uStack_10);
}
return;
}
|
['gcc']
|
1,231
|
void CWE415_Double_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/101350/CWE415_Double_Free__malloc_free_int_12.c
|
CWE415_Double_Free__malloc_free_int_12_good
|
void CWE415_Double_Free__malloc_free_int_12_good(void)
{
goodB2G();
goodG2B();
return;
}
|
['gcc']
|
1,232
|
void CWE415_Double_Free__malloc_free_int_53_bad()
{
int * data;
/* Initialize data */
data = NULL;
data = (int *)malloc(100*sizeof(int));
/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */
free(data);
CWE415_Double_Free__malloc_free_int_53b_badSink(data);
}
|
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */']
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101370/CWE415_Double_Free__malloc_free_int_53a.c
|
CWE415_Double_Free__malloc_free_int_53_bad
|
void CWE415_Double_Free__malloc_free_int_53_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(400);
func_0x00400a20(uVar1);
CWE415_Double_Free__malloc_free_int_53b_badSink(uVar1);
return;
}
|
['gcc']
|
1,233
|
void CWE415_Double_Free__malloc_free_int_53_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101370/CWE415_Double_Free__malloc_free_int_53a.c
|
CWE415_Double_Free__malloc_free_int_53_good
|
void CWE415_Double_Free__malloc_free_int_53_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
1,234
|
void CWE415_Double_Free__malloc_free_int_53b_badSink(int * data)
{
CWE415_Double_Free__malloc_free_int_53c_badSink(data);
}
|
[]
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101370/CWE415_Double_Free__malloc_free_int_53b.c
|
CWE415_Double_Free__malloc_free_int_53b_badSink
|
void CWE415_Double_Free__malloc_free_int_53b_badSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_int_53c_badSink(param_1);
return;
}
|
['gcc']
|
1,235
|
void CWE415_Double_Free__malloc_free_int_53b_goodG2BSink(int * data)
{
CWE415_Double_Free__malloc_free_int_53c_goodG2BSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101370/CWE415_Double_Free__malloc_free_int_53b.c
|
CWE415_Double_Free__malloc_free_int_53b_goodG2BSink
|
void CWE415_Double_Free__malloc_free_int_53b_goodG2BSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_int_53c_goodG2BSink(param_1);
return;
}
|
['gcc']
|
1,236
|
void CWE415_Double_Free__malloc_free_int_53b_goodB2GSink(int * data)
{
CWE415_Double_Free__malloc_free_int_53c_goodB2GSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101370/CWE415_Double_Free__malloc_free_int_53b.c
|
CWE415_Double_Free__malloc_free_int_53b_goodB2GSink
|
void CWE415_Double_Free__malloc_free_int_53b_goodB2GSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_int_53c_goodB2GSink(param_1);
return;
}
|
['gcc']
|
1,237
|
void CWE415_Double_Free__malloc_free_int_53c_badSink(int * data)
{
CWE415_Double_Free__malloc_free_int_53d_badSink(data);
}
|
[]
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101370/CWE415_Double_Free__malloc_free_int_53c.c
|
CWE415_Double_Free__malloc_free_int_53c_badSink
|
void CWE415_Double_Free__malloc_free_int_53c_badSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_int_53d_badSink(param_1);
return;
}
|
['gcc']
|
1,238
|
void CWE415_Double_Free__malloc_free_int_53c_goodG2BSink(int * data)
{
CWE415_Double_Free__malloc_free_int_53d_goodG2BSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101370/CWE415_Double_Free__malloc_free_int_53c.c
|
CWE415_Double_Free__malloc_free_int_53c_goodG2BSink
|
void CWE415_Double_Free__malloc_free_int_53c_goodG2BSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_int_53d_goodG2BSink(param_1);
return;
}
|
['gcc']
|
1,239
|
void CWE415_Double_Free__malloc_free_int_53c_goodB2GSink(int * data)
{
CWE415_Double_Free__malloc_free_int_53d_goodB2GSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101370/CWE415_Double_Free__malloc_free_int_53c.c
|
CWE415_Double_Free__malloc_free_int_53c_goodB2GSink
|
void CWE415_Double_Free__malloc_free_int_53c_goodB2GSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_int_53d_goodB2GSink(param_1);
return;
}
|
['gcc']
|
1,240
|
void CWE415_Double_Free__malloc_free_int_53d_badSink(int * data)
{
/* POTENTIAL FLAW: Possibly freeing memory twice */
free(data);
}
|
['/* POTENTIAL FLAW: Possibly freeing memory twice */']
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101370/CWE415_Double_Free__malloc_free_int_53d.c
|
CWE415_Double_Free__malloc_free_int_53d_badSink
|
void CWE415_Double_Free__malloc_free_int_53d_badSink(undefined8 param_1)
{
func_0x00400a20(param_1);
return;
}
|
['gcc']
|
1,241
|
void CWE415_Double_Free__malloc_free_int_53d_goodG2BSink(int * data)
{
/* POTENTIAL FLAW: Possibly freeing memory twice */
free(data);
}
|
['/* POTENTIAL FLAW: Possibly freeing memory twice */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101370/CWE415_Double_Free__malloc_free_int_53d.c
|
CWE415_Double_Free__malloc_free_int_53d_goodG2BSink
|
void CWE415_Double_Free__malloc_free_int_53d_goodG2BSink(undefined8 param_1)
{
func_0x00400a20(param_1);
return;
}
|
['gcc']
|
1,242
|
void CWE415_Double_Free__malloc_free_int_53d_goodB2GSink(int * data)
{
/* do nothing */
/* FIX: Don't attempt to free the memory */
; /* empty statement needed for some flow variants */
}
|
['/* do nothing */', "/* FIX: Don't attempt to free the memory */", '/* empty statement needed for some flow variants */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101370/CWE415_Double_Free__malloc_free_int_53d.c
|
CWE415_Double_Free__malloc_free_int_53d_goodB2GSink
|
void CWE415_Double_Free__malloc_free_int_53d_goodB2GSink(void)
{
return;
}
|
['gcc']
|
1,243
|
void CWE415_Double_Free__malloc_free_int_54_bad()
{
int * data;
/* Initialize data */
data = NULL;
data = (int *)malloc(100*sizeof(int));
/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */
free(data);
CWE415_Double_Free__malloc_free_int_54b_badSink(data);
}
|
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */']
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101371/CWE415_Double_Free__malloc_free_int_54a.c
|
CWE415_Double_Free__malloc_free_int_54_bad
|
void CWE415_Double_Free__malloc_free_int_54_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(400);
func_0x00400a20(uVar1);
CWE415_Double_Free__malloc_free_int_54b_badSink(uVar1);
return;
}
|
['gcc']
|
1,244
|
void CWE415_Double_Free__malloc_free_int_54_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101371/CWE415_Double_Free__malloc_free_int_54a.c
|
CWE415_Double_Free__malloc_free_int_54_good
|
void CWE415_Double_Free__malloc_free_int_54_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
1,245
|
void CWE415_Double_Free__malloc_free_int_54b_badSink(int * data)
{
CWE415_Double_Free__malloc_free_int_54c_badSink(data);
}
|
[]
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101371/CWE415_Double_Free__malloc_free_int_54b.c
|
CWE415_Double_Free__malloc_free_int_54b_badSink
|
void CWE415_Double_Free__malloc_free_int_54b_badSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_int_54c_badSink(param_1);
return;
}
|
['gcc']
|
1,246
|
void CWE415_Double_Free__malloc_free_int_54b_goodG2BSink(int * data)
{
CWE415_Double_Free__malloc_free_int_54c_goodG2BSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101371/CWE415_Double_Free__malloc_free_int_54b.c
|
CWE415_Double_Free__malloc_free_int_54b_goodG2BSink
|
void CWE415_Double_Free__malloc_free_int_54b_goodG2BSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_int_54c_goodG2BSink(param_1);
return;
}
|
['gcc']
|
1,247
|
void CWE415_Double_Free__malloc_free_int_54b_goodB2GSink(int * data)
{
CWE415_Double_Free__malloc_free_int_54c_goodB2GSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101371/CWE415_Double_Free__malloc_free_int_54b.c
|
CWE415_Double_Free__malloc_free_int_54b_goodB2GSink
|
void CWE415_Double_Free__malloc_free_int_54b_goodB2GSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_int_54c_goodB2GSink(param_1);
return;
}
|
['gcc']
|
1,248
|
void CWE415_Double_Free__malloc_free_int_54c_badSink(int * data)
{
CWE415_Double_Free__malloc_free_int_54d_badSink(data);
}
|
[]
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101371/CWE415_Double_Free__malloc_free_int_54c.c
|
CWE415_Double_Free__malloc_free_int_54c_badSink
|
void CWE415_Double_Free__malloc_free_int_54c_badSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_int_54d_badSink(param_1);
return;
}
|
['gcc']
|
1,249
|
void CWE415_Double_Free__malloc_free_int_54c_goodG2BSink(int * data)
{
CWE415_Double_Free__malloc_free_int_54d_goodG2BSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101371/CWE415_Double_Free__malloc_free_int_54c.c
|
CWE415_Double_Free__malloc_free_int_54c_goodG2BSink
|
void CWE415_Double_Free__malloc_free_int_54c_goodG2BSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_int_54d_goodG2BSink(param_1);
return;
}
|
['gcc']
|
1,250
|
void CWE415_Double_Free__malloc_free_int_54c_goodB2GSink(int * data)
{
CWE415_Double_Free__malloc_free_int_54d_goodB2GSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101371/CWE415_Double_Free__malloc_free_int_54c.c
|
CWE415_Double_Free__malloc_free_int_54c_goodB2GSink
|
void CWE415_Double_Free__malloc_free_int_54c_goodB2GSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_int_54d_goodB2GSink(param_1);
return;
}
|
['gcc']
|
1,251
|
void CWE415_Double_Free__malloc_free_int_54d_badSink(int * data)
{
CWE415_Double_Free__malloc_free_int_54e_badSink(data);
}
|
[]
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101371/CWE415_Double_Free__malloc_free_int_54d.c
|
CWE415_Double_Free__malloc_free_int_54d_badSink
|
void CWE415_Double_Free__malloc_free_int_54d_badSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_int_54e_badSink(param_1);
return;
}
|
['gcc']
|
1,252
|
void CWE415_Double_Free__malloc_free_int_54d_goodG2BSink(int * data)
{
CWE415_Double_Free__malloc_free_int_54e_goodG2BSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101371/CWE415_Double_Free__malloc_free_int_54d.c
|
CWE415_Double_Free__malloc_free_int_54d_goodG2BSink
|
void CWE415_Double_Free__malloc_free_int_54d_goodG2BSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_int_54e_goodG2BSink(param_1);
return;
}
|
['gcc']
|
1,253
|
void CWE415_Double_Free__malloc_free_int_54d_goodB2GSink(int * data)
{
CWE415_Double_Free__malloc_free_int_54e_goodB2GSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101371/CWE415_Double_Free__malloc_free_int_54d.c
|
CWE415_Double_Free__malloc_free_int_54d_goodB2GSink
|
void CWE415_Double_Free__malloc_free_int_54d_goodB2GSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_int_54e_goodB2GSink(param_1);
return;
}
|
['gcc']
|
1,254
|
void CWE415_Double_Free__malloc_free_int_54e_badSink(int * data)
{
/* POTENTIAL FLAW: Possibly freeing memory twice */
free(data);
}
|
['/* POTENTIAL FLAW: Possibly freeing memory twice */']
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101371/CWE415_Double_Free__malloc_free_int_54e.c
|
CWE415_Double_Free__malloc_free_int_54e_badSink
|
void CWE415_Double_Free__malloc_free_int_54e_badSink(undefined8 param_1)
{
func_0x00400a20(param_1);
return;
}
|
['gcc']
|
1,255
|
void CWE415_Double_Free__malloc_free_int_54e_goodG2BSink(int * data)
{
/* POTENTIAL FLAW: Possibly freeing memory twice */
free(data);
}
|
['/* POTENTIAL FLAW: Possibly freeing memory twice */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101371/CWE415_Double_Free__malloc_free_int_54e.c
|
CWE415_Double_Free__malloc_free_int_54e_goodG2BSink
|
void CWE415_Double_Free__malloc_free_int_54e_goodG2BSink(undefined8 param_1)
{
func_0x00400a20(param_1);
return;
}
|
['gcc']
|
1,256
|
void CWE415_Double_Free__malloc_free_int_54e_goodB2GSink(int * data)
{
/* do nothing */
/* FIX: Don't attempt to free the memory */
; /* empty statement needed for some flow variants */
}
|
['/* do nothing */', "/* FIX: Don't attempt to free the memory */", '/* empty statement needed for some flow variants */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101371/CWE415_Double_Free__malloc_free_int_54e.c
|
CWE415_Double_Free__malloc_free_int_54e_goodB2GSink
|
void CWE415_Double_Free__malloc_free_int_54e_goodB2GSink(void)
{
return;
}
|
['gcc']
|
1,257
|
void CWE415_Double_Free__malloc_free_int_66_bad()
{
int * data;
int * dataArray[5];
/* Initialize data */
data = NULL;
data = (int *)malloc(100*sizeof(int));
/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */
free(data);
/* put data in array */
dataArray[2] = data;
CWE415_Double_Free__malloc_free_int_66b_badSink(dataArray);
}
|
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */', '/* put data in array */']
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101377/CWE415_Double_Free__malloc_free_int_66a.c
|
CWE415_Double_Free__malloc_free_int_66_bad
|
void CWE415_Double_Free__malloc_free_int_66_bad(void)
{
undefined auStack_38 [16];
undefined8 uStack_28;
undefined8 uStack_10;
uStack_10 = 0;
uStack_10 = func_0x00400ab0(400);
func_0x00400a20(uStack_10);
uStack_28 = uStack_10;
CWE415_Double_Free__malloc_free_int_66b_badSink(auStack_38);
return;
}
|
['gcc']
|
1,258
|
void CWE415_Double_Free__malloc_free_int_66_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101377/CWE415_Double_Free__malloc_free_int_66a.c
|
CWE415_Double_Free__malloc_free_int_66_good
|
void CWE415_Double_Free__malloc_free_int_66_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
1,259
|
void CWE415_Double_Free__malloc_free_int_66b_badSink(int * dataArray[])
{
/* copy data out of dataArray */
int * data = dataArray[2];
/* POTENTIAL FLAW: Possibly freeing memory twice */
free(data);
}
|
['/* copy data out of dataArray */', '/* POTENTIAL FLAW: Possibly freeing memory twice */']
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101377/CWE415_Double_Free__malloc_free_int_66b.c
|
CWE415_Double_Free__malloc_free_int_66b_badSink
|
void CWE415_Double_Free__malloc_free_int_66b_badSink(long param_1)
{
func_0x00400a20(*(undefined8 *)(param_1 + 0x10));
return;
}
|
['gcc']
|
1,260
|
void CWE415_Double_Free__malloc_free_int_66b_goodG2BSink(int * dataArray[])
{
int * data = dataArray[2];
/* POTENTIAL FLAW: Possibly freeing memory twice */
free(data);
}
|
['/* POTENTIAL FLAW: Possibly freeing memory twice */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101377/CWE415_Double_Free__malloc_free_int_66b.c
|
CWE415_Double_Free__malloc_free_int_66b_goodG2BSink
|
void CWE415_Double_Free__malloc_free_int_66b_goodG2BSink(long param_1)
{
func_0x00400a20(*(undefined8 *)(param_1 + 0x10));
return;
}
|
['gcc']
|
1,261
|
void CWE415_Double_Free__malloc_free_int_66b_goodB2GSink(int * dataArray[])
{
int * data = dataArray[2];
/* do nothing */
/* FIX: Don't attempt to free the memory */
; /* empty statement needed for some flow variants */
}
|
['/* do nothing */', "/* FIX: Don't attempt to free the memory */", '/* empty statement needed for some flow variants */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101377/CWE415_Double_Free__malloc_free_int_66b.c
|
CWE415_Double_Free__malloc_free_int_66b_goodB2GSink
|
void CWE415_Double_Free__malloc_free_int_66b_goodB2GSink(void)
{
return;
}
|
['gcc']
|
1,262
|
void CWE415_Double_Free__malloc_free_int_67_bad()
{
int * data;
CWE415_Double_Free__malloc_free_int_67_structType myStruct;
/* Initialize data */
data = NULL;
data = (int *)malloc(100*sizeof(int));
/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */
free(data);
myStruct.structFirst = data;
CWE415_Double_Free__malloc_free_int_67b_badSink(myStruct);
}
|
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */']
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101378/CWE415_Double_Free__malloc_free_int_67a.c
|
CWE415_Double_Free__malloc_free_int_67_bad
|
void CWE415_Double_Free__malloc_free_int_67_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(400);
func_0x00400a20(uVar1);
CWE415_Double_Free__malloc_free_int_67b_badSink(uVar1);
return;
}
|
['gcc']
|
1,263
|
void CWE415_Double_Free__malloc_free_int_67_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101378/CWE415_Double_Free__malloc_free_int_67a.c
|
CWE415_Double_Free__malloc_free_int_67_good
|
void CWE415_Double_Free__malloc_free_int_67_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
1,264
|
void CWE415_Double_Free__malloc_free_int_67b_badSink(CWE415_Double_Free__malloc_free_int_67_structType myStruct)
{
int * data = myStruct.structFirst;
/* POTENTIAL FLAW: Possibly freeing memory twice */
free(data);
}
|
['/* POTENTIAL FLAW: Possibly freeing memory twice */']
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101378/CWE415_Double_Free__malloc_free_int_67b.c
|
CWE415_Double_Free__malloc_free_int_67b_badSink
|
void CWE415_Double_Free__malloc_free_int_67b_badSink(undefined8 param_1)
{
func_0x00400a20(param_1);
return;
}
|
['gcc']
|
1,265
|
void CWE415_Double_Free__malloc_free_int_67b_goodG2BSink(CWE415_Double_Free__malloc_free_int_67_structType myStruct)
{
int * data = myStruct.structFirst;
/* POTENTIAL FLAW: Possibly freeing memory twice */
free(data);
}
|
['/* POTENTIAL FLAW: Possibly freeing memory twice */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101378/CWE415_Double_Free__malloc_free_int_67b.c
|
CWE415_Double_Free__malloc_free_int_67b_goodG2BSink
|
void CWE415_Double_Free__malloc_free_int_67b_goodG2BSink(undefined8 param_1)
{
func_0x00400a20(param_1);
return;
}
|
['gcc']
|
1,266
|
void CWE415_Double_Free__malloc_free_int_67b_goodB2GSink(CWE415_Double_Free__malloc_free_int_67_structType myStruct)
{
int * data = myStruct.structFirst;
/* do nothing */
/* FIX: Don't attempt to free the memory */
; /* empty statement needed for some flow variants */
}
|
['/* do nothing */', "/* FIX: Don't attempt to free the memory */", '/* empty statement needed for some flow variants */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101378/CWE415_Double_Free__malloc_free_int_67b.c
|
CWE415_Double_Free__malloc_free_int_67b_goodB2GSink
|
void CWE415_Double_Free__malloc_free_int_67b_goodB2GSink(void)
{
return;
}
|
['gcc']
|
1,267
|
void CWE415_Double_Free__malloc_free_long_08_bad()
{
long * data;
/* Initialize data */
data = NULL;
if(staticReturnsTrue())
{
data = (long *)malloc(100*sizeof(long));
/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */
free(data);
}
if(staticReturnsTrue())
{
/* POTENTIAL FLAW: Possibly freeing memory twice */
free(data);
}
}
|
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */', '/* POTENTIAL FLAW: Possibly freeing memory twice */']
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101394/CWE415_Double_Free__malloc_free_long_08.c
|
CWE415_Double_Free__malloc_free_long_08_bad
|
void CWE415_Double_Free__malloc_free_long_08_bad(void)
{
int iVar1;
undefined8 uStack_10;
uStack_10 = 0;
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
uStack_10 = func_0x00400ab0(800);
func_0x00400a20(uStack_10);
}
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
func_0x00400a20(uStack_10);
}
return;
}
|
['gcc']
|
1,268
|
void CWE415_Double_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/101394/CWE415_Double_Free__malloc_free_long_08.c
|
CWE415_Double_Free__malloc_free_long_08_good
|
void CWE415_Double_Free__malloc_free_long_08_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
1,269
|
void CWE415_Double_Free__malloc_free_long_11_bad()
{
long * data;
/* Initialize data */
data = NULL;
if(globalReturnsTrue())
{
data = (long *)malloc(100*sizeof(long));
/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */
free(data);
}
if(globalReturnsTrue())
{
/* POTENTIAL FLAW: Possibly freeing memory twice */
free(data);
}
}
|
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */', '/* POTENTIAL FLAW: Possibly freeing memory twice */']
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101397/CWE415_Double_Free__malloc_free_long_11.c
|
CWE415_Double_Free__malloc_free_long_11_bad
|
void CWE415_Double_Free__malloc_free_long_11_bad(void)
{
int iVar1;
undefined8 uStack_10;
uStack_10 = 0;
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
uStack_10 = func_0x00400ab0(800);
func_0x00400a20(uStack_10);
}
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
func_0x00400a20(uStack_10);
}
return;
}
|
['gcc']
|
1,270
|
void CWE415_Double_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/101397/CWE415_Double_Free__malloc_free_long_11.c
|
CWE415_Double_Free__malloc_free_long_11_good
|
void CWE415_Double_Free__malloc_free_long_11_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
1,271
|
void CWE415_Double_Free__malloc_free_long_12_bad()
{
long * data;
/* Initialize data */
data = NULL;
if(globalReturnsTrueOrFalse())
{
data = (long *)malloc(100*sizeof(long));
/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */
free(data);
}
else
{
data = (long *)malloc(100*sizeof(long));
/* FIX: Do NOT free data in the source - the bad sink frees data */
}
if(globalReturnsTrueOrFalse())
{
/* POTENTIAL FLAW: Possibly freeing memory twice */
free(data);
}
else
{
/* do nothing */
/* FIX: Don't attempt to free the memory */
; /* empty statement needed for some flow variants */
}
}
|
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */', '/* FIX: Do NOT free data in the source - the bad sink frees data */', '/* POTENTIAL FLAW: Possibly freeing memory twice */', '/* do nothing */', "/* FIX: Don't attempt to free the memory */", '/* empty statement needed for some flow variants */']
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101398/CWE415_Double_Free__malloc_free_long_12.c
|
CWE415_Double_Free__malloc_free_long_12_bad
|
void CWE415_Double_Free__malloc_free_long_12_bad(void)
{
int iVar1;
undefined8 uStack_10;
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
uStack_10 = func_0x00400ab0(800);
}
else {
uStack_10 = func_0x00400ab0(800);
func_0x00400a20(uStack_10);
}
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 != 0) {
func_0x00400a20(uStack_10);
}
return;
}
|
['gcc']
|
1,272
|
void CWE415_Double_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/101398/CWE415_Double_Free__malloc_free_long_12.c
|
CWE415_Double_Free__malloc_free_long_12_good
|
void CWE415_Double_Free__malloc_free_long_12_good(void)
{
goodB2G();
goodG2B();
return;
}
|
['gcc']
|
1,273
|
void CWE415_Double_Free__malloc_free_long_53_bad()
{
long * data;
/* Initialize data */
data = NULL;
data = (long *)malloc(100*sizeof(long));
/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */
free(data);
CWE415_Double_Free__malloc_free_long_53b_badSink(data);
}
|
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */']
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101418/CWE415_Double_Free__malloc_free_long_53a.c
|
CWE415_Double_Free__malloc_free_long_53_bad
|
void CWE415_Double_Free__malloc_free_long_53_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(800);
func_0x00400a20(uVar1);
CWE415_Double_Free__malloc_free_long_53b_badSink(uVar1);
return;
}
|
['gcc']
|
1,274
|
void CWE415_Double_Free__malloc_free_long_53_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101418/CWE415_Double_Free__malloc_free_long_53a.c
|
CWE415_Double_Free__malloc_free_long_53_good
|
void CWE415_Double_Free__malloc_free_long_53_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
1,275
|
void CWE415_Double_Free__malloc_free_long_53b_badSink(long * data)
{
CWE415_Double_Free__malloc_free_long_53c_badSink(data);
}
|
[]
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101418/CWE415_Double_Free__malloc_free_long_53b.c
|
CWE415_Double_Free__malloc_free_long_53b_badSink
|
void CWE415_Double_Free__malloc_free_long_53b_badSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_long_53c_badSink(param_1);
return;
}
|
['gcc']
|
1,276
|
void CWE415_Double_Free__malloc_free_long_53b_goodG2BSink(long * data)
{
CWE415_Double_Free__malloc_free_long_53c_goodG2BSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101418/CWE415_Double_Free__malloc_free_long_53b.c
|
CWE415_Double_Free__malloc_free_long_53b_goodG2BSink
|
void CWE415_Double_Free__malloc_free_long_53b_goodG2BSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_long_53c_goodG2BSink(param_1);
return;
}
|
['gcc']
|
1,277
|
void CWE415_Double_Free__malloc_free_long_53b_goodB2GSink(long * data)
{
CWE415_Double_Free__malloc_free_long_53c_goodB2GSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101418/CWE415_Double_Free__malloc_free_long_53b.c
|
CWE415_Double_Free__malloc_free_long_53b_goodB2GSink
|
void CWE415_Double_Free__malloc_free_long_53b_goodB2GSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_long_53c_goodB2GSink(param_1);
return;
}
|
['gcc']
|
1,278
|
void CWE415_Double_Free__malloc_free_long_53c_badSink(long * data)
{
CWE415_Double_Free__malloc_free_long_53d_badSink(data);
}
|
[]
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101418/CWE415_Double_Free__malloc_free_long_53c.c
|
CWE415_Double_Free__malloc_free_long_53c_badSink
|
void CWE415_Double_Free__malloc_free_long_53c_badSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_long_53d_badSink(param_1);
return;
}
|
['gcc']
|
1,279
|
void CWE415_Double_Free__malloc_free_long_53c_goodG2BSink(long * data)
{
CWE415_Double_Free__malloc_free_long_53d_goodG2BSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101418/CWE415_Double_Free__malloc_free_long_53c.c
|
CWE415_Double_Free__malloc_free_long_53c_goodG2BSink
|
void CWE415_Double_Free__malloc_free_long_53c_goodG2BSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_long_53d_goodG2BSink(param_1);
return;
}
|
['gcc']
|
1,280
|
void CWE415_Double_Free__malloc_free_long_53c_goodB2GSink(long * data)
{
CWE415_Double_Free__malloc_free_long_53d_goodB2GSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101418/CWE415_Double_Free__malloc_free_long_53c.c
|
CWE415_Double_Free__malloc_free_long_53c_goodB2GSink
|
void CWE415_Double_Free__malloc_free_long_53c_goodB2GSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_long_53d_goodB2GSink(param_1);
return;
}
|
['gcc']
|
1,281
|
void CWE415_Double_Free__malloc_free_long_53d_badSink(long * data)
{
/* POTENTIAL FLAW: Possibly freeing memory twice */
free(data);
}
|
['/* POTENTIAL FLAW: Possibly freeing memory twice */']
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101418/CWE415_Double_Free__malloc_free_long_53d.c
|
CWE415_Double_Free__malloc_free_long_53d_badSink
|
void CWE415_Double_Free__malloc_free_long_53d_badSink(undefined8 param_1)
{
func_0x00400a20(param_1);
return;
}
|
['gcc']
|
1,282
|
void CWE415_Double_Free__malloc_free_long_53d_goodG2BSink(long * data)
{
/* POTENTIAL FLAW: Possibly freeing memory twice */
free(data);
}
|
['/* POTENTIAL FLAW: Possibly freeing memory twice */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101418/CWE415_Double_Free__malloc_free_long_53d.c
|
CWE415_Double_Free__malloc_free_long_53d_goodG2BSink
|
void CWE415_Double_Free__malloc_free_long_53d_goodG2BSink(undefined8 param_1)
{
func_0x00400a20(param_1);
return;
}
|
['gcc']
|
1,283
|
void CWE415_Double_Free__malloc_free_long_53d_goodB2GSink(long * data)
{
/* do nothing */
/* FIX: Don't attempt to free the memory */
; /* empty statement needed for some flow variants */
}
|
['/* do nothing */', "/* FIX: Don't attempt to free the memory */", '/* empty statement needed for some flow variants */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101418/CWE415_Double_Free__malloc_free_long_53d.c
|
CWE415_Double_Free__malloc_free_long_53d_goodB2GSink
|
void CWE415_Double_Free__malloc_free_long_53d_goodB2GSink(void)
{
return;
}
|
['gcc']
|
1,284
|
void CWE415_Double_Free__malloc_free_long_54_bad()
{
long * data;
/* Initialize data */
data = NULL;
data = (long *)malloc(100*sizeof(long));
/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */
free(data);
CWE415_Double_Free__malloc_free_long_54b_badSink(data);
}
|
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */']
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101419/CWE415_Double_Free__malloc_free_long_54a.c
|
CWE415_Double_Free__malloc_free_long_54_bad
|
void CWE415_Double_Free__malloc_free_long_54_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400ab0(800);
func_0x00400a20(uVar1);
CWE415_Double_Free__malloc_free_long_54b_badSink(uVar1);
return;
}
|
['gcc']
|
1,285
|
void CWE415_Double_Free__malloc_free_long_54_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101419/CWE415_Double_Free__malloc_free_long_54a.c
|
CWE415_Double_Free__malloc_free_long_54_good
|
void CWE415_Double_Free__malloc_free_long_54_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
1,286
|
void CWE415_Double_Free__malloc_free_long_54b_badSink(long * data)
{
CWE415_Double_Free__malloc_free_long_54c_badSink(data);
}
|
[]
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101419/CWE415_Double_Free__malloc_free_long_54b.c
|
CWE415_Double_Free__malloc_free_long_54b_badSink
|
void CWE415_Double_Free__malloc_free_long_54b_badSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_long_54c_badSink(param_1);
return;
}
|
['gcc']
|
1,287
|
void CWE415_Double_Free__malloc_free_long_54b_goodG2BSink(long * data)
{
CWE415_Double_Free__malloc_free_long_54c_goodG2BSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101419/CWE415_Double_Free__malloc_free_long_54b.c
|
CWE415_Double_Free__malloc_free_long_54b_goodG2BSink
|
void CWE415_Double_Free__malloc_free_long_54b_goodG2BSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_long_54c_goodG2BSink(param_1);
return;
}
|
['gcc']
|
1,288
|
void CWE415_Double_Free__malloc_free_long_54b_goodB2GSink(long * data)
{
CWE415_Double_Free__malloc_free_long_54c_goodB2GSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101419/CWE415_Double_Free__malloc_free_long_54b.c
|
CWE415_Double_Free__malloc_free_long_54b_goodB2GSink
|
void CWE415_Double_Free__malloc_free_long_54b_goodB2GSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_long_54c_goodB2GSink(param_1);
return;
}
|
['gcc']
|
1,289
|
void CWE415_Double_Free__malloc_free_long_54c_badSink(long * data)
{
CWE415_Double_Free__malloc_free_long_54d_badSink(data);
}
|
[]
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101419/CWE415_Double_Free__malloc_free_long_54c.c
|
CWE415_Double_Free__malloc_free_long_54c_badSink
|
void CWE415_Double_Free__malloc_free_long_54c_badSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_long_54d_badSink(param_1);
return;
}
|
['gcc']
|
1,290
|
void CWE415_Double_Free__malloc_free_long_54c_goodG2BSink(long * data)
{
CWE415_Double_Free__malloc_free_long_54d_goodG2BSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101419/CWE415_Double_Free__malloc_free_long_54c.c
|
CWE415_Double_Free__malloc_free_long_54c_goodG2BSink
|
void CWE415_Double_Free__malloc_free_long_54c_goodG2BSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_long_54d_goodG2BSink(param_1);
return;
}
|
['gcc']
|
1,291
|
void CWE415_Double_Free__malloc_free_long_54c_goodB2GSink(long * data)
{
CWE415_Double_Free__malloc_free_long_54d_goodB2GSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101419/CWE415_Double_Free__malloc_free_long_54c.c
|
CWE415_Double_Free__malloc_free_long_54c_goodB2GSink
|
void CWE415_Double_Free__malloc_free_long_54c_goodB2GSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_long_54d_goodB2GSink(param_1);
return;
}
|
['gcc']
|
1,292
|
void CWE415_Double_Free__malloc_free_long_54d_badSink(long * data)
{
CWE415_Double_Free__malloc_free_long_54e_badSink(data);
}
|
[]
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101419/CWE415_Double_Free__malloc_free_long_54d.c
|
CWE415_Double_Free__malloc_free_long_54d_badSink
|
void CWE415_Double_Free__malloc_free_long_54d_badSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_long_54e_badSink(param_1);
return;
}
|
['gcc']
|
1,293
|
void CWE415_Double_Free__malloc_free_long_54d_goodG2BSink(long * data)
{
CWE415_Double_Free__malloc_free_long_54e_goodG2BSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101419/CWE415_Double_Free__malloc_free_long_54d.c
|
CWE415_Double_Free__malloc_free_long_54d_goodG2BSink
|
void CWE415_Double_Free__malloc_free_long_54d_goodG2BSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_long_54e_goodG2BSink(param_1);
return;
}
|
['gcc']
|
1,294
|
void CWE415_Double_Free__malloc_free_long_54d_goodB2GSink(long * data)
{
CWE415_Double_Free__malloc_free_long_54e_goodB2GSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101419/CWE415_Double_Free__malloc_free_long_54d.c
|
CWE415_Double_Free__malloc_free_long_54d_goodB2GSink
|
void CWE415_Double_Free__malloc_free_long_54d_goodB2GSink(undefined8 param_1)
{
CWE415_Double_Free__malloc_free_long_54e_goodB2GSink(param_1);
return;
}
|
['gcc']
|
1,295
|
void CWE415_Double_Free__malloc_free_long_54e_badSink(long * data)
{
/* POTENTIAL FLAW: Possibly freeing memory twice */
free(data);
}
|
['/* POTENTIAL FLAW: Possibly freeing memory twice */']
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101419/CWE415_Double_Free__malloc_free_long_54e.c
|
CWE415_Double_Free__malloc_free_long_54e_badSink
|
void CWE415_Double_Free__malloc_free_long_54e_badSink(undefined8 param_1)
{
func_0x00400a20(param_1);
return;
}
|
['gcc']
|
1,296
|
void CWE415_Double_Free__malloc_free_long_54e_goodG2BSink(long * data)
{
/* POTENTIAL FLAW: Possibly freeing memory twice */
free(data);
}
|
['/* POTENTIAL FLAW: Possibly freeing memory twice */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101419/CWE415_Double_Free__malloc_free_long_54e.c
|
CWE415_Double_Free__malloc_free_long_54e_goodG2BSink
|
void CWE415_Double_Free__malloc_free_long_54e_goodG2BSink(undefined8 param_1)
{
func_0x00400a20(param_1);
return;
}
|
['gcc']
|
1,297
|
void CWE415_Double_Free__malloc_free_long_54e_goodB2GSink(long * data)
{
/* do nothing */
/* FIX: Don't attempt to free the memory */
; /* empty statement needed for some flow variants */
}
|
['/* do nothing */', "/* FIX: Don't attempt to free the memory */", '/* empty statement needed for some flow variants */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101419/CWE415_Double_Free__malloc_free_long_54e.c
|
CWE415_Double_Free__malloc_free_long_54e_goodB2GSink
|
void CWE415_Double_Free__malloc_free_long_54e_goodB2GSink(void)
{
return;
}
|
['gcc']
|
1,298
|
void CWE415_Double_Free__malloc_free_long_66_bad()
{
long * data;
long * dataArray[5];
/* Initialize data */
data = NULL;
data = (long *)malloc(100*sizeof(long));
/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */
free(data);
/* put data in array */
dataArray[2] = data;
CWE415_Double_Free__malloc_free_long_66b_badSink(dataArray);
}
|
['/* Initialize data */', '/* POTENTIAL FLAW: Free data in the source - the bad sink frees data as well */', '/* put data in array */']
|
['CWE415']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101425/CWE415_Double_Free__malloc_free_long_66a.c
|
CWE415_Double_Free__malloc_free_long_66_bad
|
void CWE415_Double_Free__malloc_free_long_66_bad(void)
{
undefined auStack_38 [16];
undefined8 uStack_28;
undefined8 uStack_10;
uStack_10 = 0;
uStack_10 = func_0x00400ab0(800);
func_0x00400a20(uStack_10);
uStack_28 = uStack_10;
CWE415_Double_Free__malloc_free_long_66b_badSink(auStack_38);
return;
}
|
['gcc']
|
1,299
|
void CWE415_Double_Free__malloc_free_long_66_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/101425/CWE415_Double_Free__malloc_free_long_66a.c
|
CWE415_Double_Free__malloc_free_long_66_good
|
void CWE415_Double_Free__malloc_free_long_66_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.