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 |
|---|---|---|---|---|---|---|---|---|
55,500
|
void CWE401_Memory_Leak__int64_t_realloc_34_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99465/CWE401_Memory_Leak__int64_t_realloc_34.c
|
CWE401_Memory_Leak__int64_t_realloc_34_good
|
void CWE401_Memory_Leak__int64_t_realloc_34_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
55,501
|
void CWE401_Memory_Leak__int64_t_realloc_41_bad()
{
int64_t * data;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int64_t *)realloc(data, 100*sizeof(int64_t));
/* Initialize and make use of data */
data[0] = 5LL;
printLongLongLine(data[0]);
badSink(data);
}
|
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99466/CWE401_Memory_Leak__int64_t_realloc_41.c
|
CWE401_Memory_Leak__int64_t_realloc_41_bad
|
void CWE401_Memory_Leak__int64_t_realloc_41_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400a80(0,800);
*puVar1 = 5;
printLongLongLine(*puVar1);
badSink(puVar1);
return;
}
|
['gcc']
|
55,502
|
void CWE401_Memory_Leak__int64_t_realloc_41_good()
{
goodB2G();
goodG2B();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99466/CWE401_Memory_Leak__int64_t_realloc_41.c
|
CWE401_Memory_Leak__int64_t_realloc_41_good
|
void CWE401_Memory_Leak__int64_t_realloc_41_good(void)
{
goodB2G();
goodG2B();
return;
}
|
['gcc']
|
55,503
|
void CWE401_Memory_Leak__int64_t_realloc_42_bad()
{
int64_t * data;
data = NULL;
data = badSource(data);
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
}
|
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99467/CWE401_Memory_Leak__int64_t_realloc_42.c
|
CWE401_Memory_Leak__int64_t_realloc_42_bad
|
void CWE401_Memory_Leak__int64_t_realloc_42_bad(void)
{
badSource(0);
return;
}
|
['gcc']
|
55,504
|
void CWE401_Memory_Leak__int64_t_realloc_42_good()
{
goodB2G();
goodG2B();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99467/CWE401_Memory_Leak__int64_t_realloc_42.c
|
CWE401_Memory_Leak__int64_t_realloc_42_good
|
void CWE401_Memory_Leak__int64_t_realloc_42_good(void)
{
goodB2G();
goodG2B();
return;
}
|
['gcc']
|
55,505
|
void CWE401_Memory_Leak__int64_t_realloc_51_bad()
{
int64_t * data;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int64_t *)realloc(data, 100*sizeof(int64_t));
/* Initialize and make use of data */
data[0] = 5LL;
printLongLongLine(data[0]);
CWE401_Memory_Leak__int64_t_realloc_51b_badSink(data);
}
|
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99471/CWE401_Memory_Leak__int64_t_realloc_51a.c
|
CWE401_Memory_Leak__int64_t_realloc_51_bad
|
void CWE401_Memory_Leak__int64_t_realloc_51_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400a80(0,800);
*puVar1 = 5;
printLongLongLine(*puVar1);
CWE401_Memory_Leak__int64_t_realloc_51b_badSink(puVar1);
return;
}
|
['gcc']
|
55,506
|
void CWE401_Memory_Leak__int64_t_realloc_51_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99471/CWE401_Memory_Leak__int64_t_realloc_51a.c
|
CWE401_Memory_Leak__int64_t_realloc_51_good
|
void CWE401_Memory_Leak__int64_t_realloc_51_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
55,507
|
void CWE401_Memory_Leak__int64_t_realloc_51b_badSink(int64_t * data)
{
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
}
|
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99471/CWE401_Memory_Leak__int64_t_realloc_51b.c
|
CWE401_Memory_Leak__int64_t_realloc_51b_badSink
|
void CWE401_Memory_Leak__int64_t_realloc_51b_badSink(void)
{
return;
}
|
['gcc']
|
55,508
|
void CWE401_Memory_Leak__int64_t_realloc_51b_goodG2BSink(int64_t * data)
{
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
}
|
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99471/CWE401_Memory_Leak__int64_t_realloc_51b.c
|
CWE401_Memory_Leak__int64_t_realloc_51b_goodG2BSink
|
void CWE401_Memory_Leak__int64_t_realloc_51b_goodG2BSink(void)
{
return;
}
|
['gcc']
|
55,509
|
void CWE401_Memory_Leak__int64_t_realloc_51b_goodB2GSink(int64_t * data)
{
/* FIX: Deallocate memory */
free(data);
}
|
['/* FIX: Deallocate memory */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99471/CWE401_Memory_Leak__int64_t_realloc_51b.c
|
CWE401_Memory_Leak__int64_t_realloc_51b_goodB2GSink
|
void CWE401_Memory_Leak__int64_t_realloc_51b_goodB2GSink(undefined8 param_1)
{
func_0x00400a20(param_1);
return;
}
|
['gcc']
|
55,510
|
void CWE401_Memory_Leak__int64_t_realloc_52_bad()
{
int64_t * data;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int64_t *)realloc(data, 100*sizeof(int64_t));
/* Initialize and make use of data */
data[0] = 5LL;
printLongLongLine(data[0]);
CWE401_Memory_Leak__int64_t_realloc_52b_badSink(data);
}
|
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99472/CWE401_Memory_Leak__int64_t_realloc_52a.c
|
CWE401_Memory_Leak__int64_t_realloc_52_bad
|
void CWE401_Memory_Leak__int64_t_realloc_52_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400a80(0,800);
*puVar1 = 5;
printLongLongLine(*puVar1);
CWE401_Memory_Leak__int64_t_realloc_52b_badSink(puVar1);
return;
}
|
['gcc']
|
55,511
|
void CWE401_Memory_Leak__int64_t_realloc_52_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99472/CWE401_Memory_Leak__int64_t_realloc_52a.c
|
CWE401_Memory_Leak__int64_t_realloc_52_good
|
void CWE401_Memory_Leak__int64_t_realloc_52_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
55,512
|
void CWE401_Memory_Leak__int64_t_realloc_52b_badSink(int64_t * data)
{
CWE401_Memory_Leak__int64_t_realloc_52c_badSink(data);
}
|
[]
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99472/CWE401_Memory_Leak__int64_t_realloc_52b.c
|
CWE401_Memory_Leak__int64_t_realloc_52b_badSink
|
void CWE401_Memory_Leak__int64_t_realloc_52b_badSink(undefined8 param_1)
{
CWE401_Memory_Leak__int64_t_realloc_52c_badSink(param_1);
return;
}
|
['gcc']
|
55,513
|
void CWE401_Memory_Leak__int64_t_realloc_52b_goodG2BSink(int64_t * data)
{
CWE401_Memory_Leak__int64_t_realloc_52c_goodG2BSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99472/CWE401_Memory_Leak__int64_t_realloc_52b.c
|
CWE401_Memory_Leak__int64_t_realloc_52b_goodG2BSink
|
void CWE401_Memory_Leak__int64_t_realloc_52b_goodG2BSink(undefined8 param_1)
{
CWE401_Memory_Leak__int64_t_realloc_52c_goodG2BSink(param_1);
return;
}
|
['gcc']
|
55,514
|
void CWE401_Memory_Leak__int64_t_realloc_52b_goodB2GSink(int64_t * data)
{
CWE401_Memory_Leak__int64_t_realloc_52c_goodB2GSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99472/CWE401_Memory_Leak__int64_t_realloc_52b.c
|
CWE401_Memory_Leak__int64_t_realloc_52b_goodB2GSink
|
void CWE401_Memory_Leak__int64_t_realloc_52b_goodB2GSink(undefined8 param_1)
{
CWE401_Memory_Leak__int64_t_realloc_52c_goodB2GSink(param_1);
return;
}
|
['gcc']
|
55,515
|
void CWE401_Memory_Leak__int64_t_realloc_52c_badSink(int64_t * data)
{
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
}
|
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99472/CWE401_Memory_Leak__int64_t_realloc_52c.c
|
CWE401_Memory_Leak__int64_t_realloc_52c_badSink
|
void CWE401_Memory_Leak__int64_t_realloc_52c_badSink(void)
{
return;
}
|
['gcc']
|
55,516
|
void CWE401_Memory_Leak__int64_t_realloc_52c_goodG2BSink(int64_t * data)
{
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
}
|
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99472/CWE401_Memory_Leak__int64_t_realloc_52c.c
|
CWE401_Memory_Leak__int64_t_realloc_52c_goodG2BSink
|
void CWE401_Memory_Leak__int64_t_realloc_52c_goodG2BSink(void)
{
return;
}
|
['gcc']
|
55,517
|
void CWE401_Memory_Leak__int64_t_realloc_52c_goodB2GSink(int64_t * data)
{
/* FIX: Deallocate memory */
free(data);
}
|
['/* FIX: Deallocate memory */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99472/CWE401_Memory_Leak__int64_t_realloc_52c.c
|
CWE401_Memory_Leak__int64_t_realloc_52c_goodB2GSink
|
void CWE401_Memory_Leak__int64_t_realloc_52c_goodB2GSink(undefined8 param_1)
{
func_0x00400a20(param_1);
return;
}
|
['gcc']
|
55,518
|
void CWE401_Memory_Leak__int64_t_realloc_53_bad()
{
int64_t * data;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int64_t *)realloc(data, 100*sizeof(int64_t));
/* Initialize and make use of data */
data[0] = 5LL;
printLongLongLine(data[0]);
CWE401_Memory_Leak__int64_t_realloc_53b_badSink(data);
}
|
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99473/CWE401_Memory_Leak__int64_t_realloc_53a.c
|
CWE401_Memory_Leak__int64_t_realloc_53_bad
|
void CWE401_Memory_Leak__int64_t_realloc_53_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400a80(0,800);
*puVar1 = 5;
printLongLongLine(*puVar1);
CWE401_Memory_Leak__int64_t_realloc_53b_badSink(puVar1);
return;
}
|
['gcc']
|
55,519
|
void CWE401_Memory_Leak__int64_t_realloc_53_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99473/CWE401_Memory_Leak__int64_t_realloc_53a.c
|
CWE401_Memory_Leak__int64_t_realloc_53_good
|
void CWE401_Memory_Leak__int64_t_realloc_53_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
55,520
|
void CWE401_Memory_Leak__int64_t_realloc_53b_badSink(int64_t * data)
{
CWE401_Memory_Leak__int64_t_realloc_53c_badSink(data);
}
|
[]
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99473/CWE401_Memory_Leak__int64_t_realloc_53b.c
|
CWE401_Memory_Leak__int64_t_realloc_53b_badSink
|
void CWE401_Memory_Leak__int64_t_realloc_53b_badSink(undefined8 param_1)
{
CWE401_Memory_Leak__int64_t_realloc_53c_badSink(param_1);
return;
}
|
['gcc']
|
55,521
|
void CWE401_Memory_Leak__int64_t_realloc_53b_goodG2BSink(int64_t * data)
{
CWE401_Memory_Leak__int64_t_realloc_53c_goodG2BSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99473/CWE401_Memory_Leak__int64_t_realloc_53b.c
|
CWE401_Memory_Leak__int64_t_realloc_53b_goodG2BSink
|
void CWE401_Memory_Leak__int64_t_realloc_53b_goodG2BSink(undefined8 param_1)
{
CWE401_Memory_Leak__int64_t_realloc_53c_goodG2BSink(param_1);
return;
}
|
['gcc']
|
55,522
|
void CWE401_Memory_Leak__int64_t_realloc_53b_goodB2GSink(int64_t * data)
{
CWE401_Memory_Leak__int64_t_realloc_53c_goodB2GSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99473/CWE401_Memory_Leak__int64_t_realloc_53b.c
|
CWE401_Memory_Leak__int64_t_realloc_53b_goodB2GSink
|
void CWE401_Memory_Leak__int64_t_realloc_53b_goodB2GSink(undefined8 param_1)
{
CWE401_Memory_Leak__int64_t_realloc_53c_goodB2GSink(param_1);
return;
}
|
['gcc']
|
55,523
|
void CWE401_Memory_Leak__int64_t_realloc_53c_badSink(int64_t * data)
{
CWE401_Memory_Leak__int64_t_realloc_53d_badSink(data);
}
|
[]
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99473/CWE401_Memory_Leak__int64_t_realloc_53c.c
|
CWE401_Memory_Leak__int64_t_realloc_53c_badSink
|
void CWE401_Memory_Leak__int64_t_realloc_53c_badSink(undefined8 param_1)
{
CWE401_Memory_Leak__int64_t_realloc_53d_badSink(param_1);
return;
}
|
['gcc']
|
55,524
|
void CWE401_Memory_Leak__int64_t_realloc_53c_goodG2BSink(int64_t * data)
{
CWE401_Memory_Leak__int64_t_realloc_53d_goodG2BSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99473/CWE401_Memory_Leak__int64_t_realloc_53c.c
|
CWE401_Memory_Leak__int64_t_realloc_53c_goodG2BSink
|
void CWE401_Memory_Leak__int64_t_realloc_53c_goodG2BSink(undefined8 param_1)
{
CWE401_Memory_Leak__int64_t_realloc_53d_goodG2BSink(param_1);
return;
}
|
['gcc']
|
55,525
|
void CWE401_Memory_Leak__int64_t_realloc_53c_goodB2GSink(int64_t * data)
{
CWE401_Memory_Leak__int64_t_realloc_53d_goodB2GSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99473/CWE401_Memory_Leak__int64_t_realloc_53c.c
|
CWE401_Memory_Leak__int64_t_realloc_53c_goodB2GSink
|
void CWE401_Memory_Leak__int64_t_realloc_53c_goodB2GSink(undefined8 param_1)
{
CWE401_Memory_Leak__int64_t_realloc_53d_goodB2GSink(param_1);
return;
}
|
['gcc']
|
55,526
|
void CWE401_Memory_Leak__int64_t_realloc_53d_badSink(int64_t * data)
{
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
}
|
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99473/CWE401_Memory_Leak__int64_t_realloc_53d.c
|
CWE401_Memory_Leak__int64_t_realloc_53d_badSink
|
void CWE401_Memory_Leak__int64_t_realloc_53d_badSink(void)
{
return;
}
|
['gcc']
|
55,527
|
void CWE401_Memory_Leak__int64_t_realloc_53d_goodG2BSink(int64_t * data)
{
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
}
|
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99473/CWE401_Memory_Leak__int64_t_realloc_53d.c
|
CWE401_Memory_Leak__int64_t_realloc_53d_goodG2BSink
|
void CWE401_Memory_Leak__int64_t_realloc_53d_goodG2BSink(void)
{
return;
}
|
['gcc']
|
55,528
|
void CWE401_Memory_Leak__int64_t_realloc_53d_goodB2GSink(int64_t * data)
{
/* FIX: Deallocate memory */
free(data);
}
|
['/* FIX: Deallocate memory */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99473/CWE401_Memory_Leak__int64_t_realloc_53d.c
|
CWE401_Memory_Leak__int64_t_realloc_53d_goodB2GSink
|
void CWE401_Memory_Leak__int64_t_realloc_53d_goodB2GSink(undefined8 param_1)
{
func_0x00400a20(param_1);
return;
}
|
['gcc']
|
55,529
|
void CWE401_Memory_Leak__int64_t_realloc_54_bad()
{
int64_t * data;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int64_t *)realloc(data, 100*sizeof(int64_t));
/* Initialize and make use of data */
data[0] = 5LL;
printLongLongLine(data[0]);
CWE401_Memory_Leak__int64_t_realloc_54b_badSink(data);
}
|
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99474/CWE401_Memory_Leak__int64_t_realloc_54a.c
|
CWE401_Memory_Leak__int64_t_realloc_54_bad
|
void CWE401_Memory_Leak__int64_t_realloc_54_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400a80(0,800);
*puVar1 = 5;
printLongLongLine(*puVar1);
CWE401_Memory_Leak__int64_t_realloc_54b_badSink(puVar1);
return;
}
|
['gcc']
|
55,530
|
void CWE401_Memory_Leak__int64_t_realloc_54_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99474/CWE401_Memory_Leak__int64_t_realloc_54a.c
|
CWE401_Memory_Leak__int64_t_realloc_54_good
|
void CWE401_Memory_Leak__int64_t_realloc_54_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
55,531
|
void CWE401_Memory_Leak__int64_t_realloc_54b_badSink(int64_t * data)
{
CWE401_Memory_Leak__int64_t_realloc_54c_badSink(data);
}
|
[]
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99474/CWE401_Memory_Leak__int64_t_realloc_54b.c
|
CWE401_Memory_Leak__int64_t_realloc_54b_badSink
|
void CWE401_Memory_Leak__int64_t_realloc_54b_badSink(undefined8 param_1)
{
CWE401_Memory_Leak__int64_t_realloc_54c_badSink(param_1);
return;
}
|
['gcc']
|
55,532
|
void CWE401_Memory_Leak__int64_t_realloc_54b_goodG2BSink(int64_t * data)
{
CWE401_Memory_Leak__int64_t_realloc_54c_goodG2BSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99474/CWE401_Memory_Leak__int64_t_realloc_54b.c
|
CWE401_Memory_Leak__int64_t_realloc_54b_goodG2BSink
|
void CWE401_Memory_Leak__int64_t_realloc_54b_goodG2BSink(undefined8 param_1)
{
CWE401_Memory_Leak__int64_t_realloc_54c_goodG2BSink(param_1);
return;
}
|
['gcc']
|
55,533
|
void CWE401_Memory_Leak__int64_t_realloc_54b_goodB2GSink(int64_t * data)
{
CWE401_Memory_Leak__int64_t_realloc_54c_goodB2GSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99474/CWE401_Memory_Leak__int64_t_realloc_54b.c
|
CWE401_Memory_Leak__int64_t_realloc_54b_goodB2GSink
|
void CWE401_Memory_Leak__int64_t_realloc_54b_goodB2GSink(undefined8 param_1)
{
CWE401_Memory_Leak__int64_t_realloc_54c_goodB2GSink(param_1);
return;
}
|
['gcc']
|
55,534
|
void CWE401_Memory_Leak__int64_t_realloc_54c_badSink(int64_t * data)
{
CWE401_Memory_Leak__int64_t_realloc_54d_badSink(data);
}
|
[]
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99474/CWE401_Memory_Leak__int64_t_realloc_54c.c
|
CWE401_Memory_Leak__int64_t_realloc_54c_badSink
|
void CWE401_Memory_Leak__int64_t_realloc_54c_badSink(undefined8 param_1)
{
CWE401_Memory_Leak__int64_t_realloc_54d_badSink(param_1);
return;
}
|
['gcc']
|
55,535
|
void CWE401_Memory_Leak__int64_t_realloc_54c_goodG2BSink(int64_t * data)
{
CWE401_Memory_Leak__int64_t_realloc_54d_goodG2BSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99474/CWE401_Memory_Leak__int64_t_realloc_54c.c
|
CWE401_Memory_Leak__int64_t_realloc_54c_goodG2BSink
|
void CWE401_Memory_Leak__int64_t_realloc_54c_goodG2BSink(undefined8 param_1)
{
CWE401_Memory_Leak__int64_t_realloc_54d_goodG2BSink(param_1);
return;
}
|
['gcc']
|
55,536
|
void CWE401_Memory_Leak__int64_t_realloc_54c_goodB2GSink(int64_t * data)
{
CWE401_Memory_Leak__int64_t_realloc_54d_goodB2GSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99474/CWE401_Memory_Leak__int64_t_realloc_54c.c
|
CWE401_Memory_Leak__int64_t_realloc_54c_goodB2GSink
|
void CWE401_Memory_Leak__int64_t_realloc_54c_goodB2GSink(undefined8 param_1)
{
CWE401_Memory_Leak__int64_t_realloc_54d_goodB2GSink(param_1);
return;
}
|
['gcc']
|
55,537
|
void CWE401_Memory_Leak__int64_t_realloc_54d_badSink(int64_t * data)
{
CWE401_Memory_Leak__int64_t_realloc_54e_badSink(data);
}
|
[]
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99474/CWE401_Memory_Leak__int64_t_realloc_54d.c
|
CWE401_Memory_Leak__int64_t_realloc_54d_badSink
|
void CWE401_Memory_Leak__int64_t_realloc_54d_badSink(undefined8 param_1)
{
CWE401_Memory_Leak__int64_t_realloc_54e_badSink(param_1);
return;
}
|
['gcc']
|
55,538
|
void CWE401_Memory_Leak__int64_t_realloc_54d_goodG2BSink(int64_t * data)
{
CWE401_Memory_Leak__int64_t_realloc_54e_goodG2BSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99474/CWE401_Memory_Leak__int64_t_realloc_54d.c
|
CWE401_Memory_Leak__int64_t_realloc_54d_goodG2BSink
|
void CWE401_Memory_Leak__int64_t_realloc_54d_goodG2BSink(undefined8 param_1)
{
CWE401_Memory_Leak__int64_t_realloc_54e_goodG2BSink(param_1);
return;
}
|
['gcc']
|
55,539
|
void CWE401_Memory_Leak__int64_t_realloc_54d_goodB2GSink(int64_t * data)
{
CWE401_Memory_Leak__int64_t_realloc_54e_goodB2GSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99474/CWE401_Memory_Leak__int64_t_realloc_54d.c
|
CWE401_Memory_Leak__int64_t_realloc_54d_goodB2GSink
|
void CWE401_Memory_Leak__int64_t_realloc_54d_goodB2GSink(undefined8 param_1)
{
CWE401_Memory_Leak__int64_t_realloc_54e_goodB2GSink(param_1);
return;
}
|
['gcc']
|
55,540
|
void CWE401_Memory_Leak__int64_t_realloc_54e_badSink(int64_t * data)
{
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
}
|
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99474/CWE401_Memory_Leak__int64_t_realloc_54e.c
|
CWE401_Memory_Leak__int64_t_realloc_54e_badSink
|
void CWE401_Memory_Leak__int64_t_realloc_54e_badSink(void)
{
return;
}
|
['gcc']
|
55,541
|
void CWE401_Memory_Leak__int64_t_realloc_54e_goodG2BSink(int64_t * data)
{
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
}
|
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99474/CWE401_Memory_Leak__int64_t_realloc_54e.c
|
CWE401_Memory_Leak__int64_t_realloc_54e_goodG2BSink
|
void CWE401_Memory_Leak__int64_t_realloc_54e_goodG2BSink(void)
{
return;
}
|
['gcc']
|
55,542
|
void CWE401_Memory_Leak__int64_t_realloc_54e_goodB2GSink(int64_t * data)
{
/* FIX: Deallocate memory */
free(data);
}
|
['/* FIX: Deallocate memory */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99474/CWE401_Memory_Leak__int64_t_realloc_54e.c
|
CWE401_Memory_Leak__int64_t_realloc_54e_goodB2GSink
|
void CWE401_Memory_Leak__int64_t_realloc_54e_goodB2GSink(undefined8 param_1)
{
func_0x00400a20(param_1);
return;
}
|
['gcc']
|
55,543
|
void CWE401_Memory_Leak__int64_t_realloc_61_bad()
{
int64_t * data;
data = NULL;
data = CWE401_Memory_Leak__int64_t_realloc_61b_badSource(data);
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
}
|
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99475/CWE401_Memory_Leak__int64_t_realloc_61a.c
|
CWE401_Memory_Leak__int64_t_realloc_61_bad
|
void CWE401_Memory_Leak__int64_t_realloc_61_bad(void)
{
CWE401_Memory_Leak__int64_t_realloc_61b_badSource(0);
return;
}
|
['gcc']
|
55,544
|
void CWE401_Memory_Leak__int64_t_realloc_61_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99475/CWE401_Memory_Leak__int64_t_realloc_61a.c
|
CWE401_Memory_Leak__int64_t_realloc_61_good
|
void CWE401_Memory_Leak__int64_t_realloc_61_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
55,545
|
int64_t * CWE401_Memory_Leak__int64_t_realloc_61b_badSource(int64_t * data)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int64_t *)realloc(data, 100*sizeof(int64_t));
/* Initialize and make use of data */
data[0] = 5LL;
printLongLongLine(data[0]);
return data;
}
|
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99475/CWE401_Memory_Leak__int64_t_realloc_61b.c
|
CWE401_Memory_Leak__int64_t_realloc_61b_badSource
|
undefined8 * CWE401_Memory_Leak__int64_t_realloc_61b_badSource(undefined8 param_1)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400a80(param_1,800);
*puVar1 = 5;
printLongLongLine(*puVar1);
return puVar1;
}
|
['gcc']
|
55,546
|
int64_t * CWE401_Memory_Leak__int64_t_realloc_61b_goodG2BSource(int64_t * data)
{
/* FIX: Use memory allocated on the stack with ALLOCA */
data = (int64_t *)ALLOCA(100*sizeof(int64_t));
/* Initialize and make use of data */
data[0] = 5LL;
printLongLongLine(data[0]);
return data;
}
|
['/* FIX: Use memory allocated on the stack with ALLOCA */', '/* Initialize and make use of data */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99475/CWE401_Memory_Leak__int64_t_realloc_61b.c
|
CWE401_Memory_Leak__int64_t_realloc_61b_goodG2BSource
|
/* WARNING: Heritage AFTER dead removal. Example location: s0xfffffffffffffcc0 : 0x00400c23 */
/* WARNING: Restarted to delay deadcode elimination for space: stack */
undefined8 *
CWE401_Memory_Leak__int64_t_realloc_61b_goodG2BSource(undefined8 param_1,undefined8 param_2)
{
undefined8 auStack_340 [102];
undefined8 *puStack_10;
puStack_10 = auStack_340;
auStack_340[0] = 5;
printLongLongLine(5,param_2,7);
return puStack_10;
}
|
['gcc']
|
55,547
|
int64_t * CWE401_Memory_Leak__int64_t_realloc_61b_goodB2GSource(int64_t * data)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int64_t *)realloc(data, 100*sizeof(int64_t));
/* Initialize and make use of data */
data[0] = 5LL;
printLongLongLine(data[0]);
return data;
}
|
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99475/CWE401_Memory_Leak__int64_t_realloc_61b.c
|
CWE401_Memory_Leak__int64_t_realloc_61b_goodB2GSource
|
undefined8 * CWE401_Memory_Leak__int64_t_realloc_61b_goodB2GSource(undefined8 param_1)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400ad0(param_1,800);
*puVar1 = 5;
printLongLongLine(*puVar1);
return puVar1;
}
|
['gcc']
|
55,548
|
void CWE401_Memory_Leak__int64_t_realloc_63_bad()
{
int64_t * data;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int64_t *)realloc(data, 100*sizeof(int64_t));
/* Initialize and make use of data */
data[0] = 5LL;
printLongLongLine(data[0]);
CWE401_Memory_Leak__int64_t_realloc_63b_badSink(&data);
}
|
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99477/CWE401_Memory_Leak__int64_t_realloc_63a.c
|
CWE401_Memory_Leak__int64_t_realloc_63_bad
|
void CWE401_Memory_Leak__int64_t_realloc_63_bad(void)
{
undefined8 *puStack_10;
puStack_10 = (undefined8 *)0x0;
puStack_10 = (undefined8 *)func_0x00400a80(0,800);
*puStack_10 = 5;
printLongLongLine(*puStack_10);
CWE401_Memory_Leak__int64_t_realloc_63b_badSink(&puStack_10);
return;
}
|
['gcc']
|
55,549
|
void CWE401_Memory_Leak__int64_t_realloc_63_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99477/CWE401_Memory_Leak__int64_t_realloc_63a.c
|
CWE401_Memory_Leak__int64_t_realloc_63_good
|
void CWE401_Memory_Leak__int64_t_realloc_63_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
55,550
|
void CWE401_Memory_Leak__int64_t_realloc_63b_badSink(int64_t * * dataPtr)
{
int64_t * data = *dataPtr;
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
}
|
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99477/CWE401_Memory_Leak__int64_t_realloc_63b.c
|
CWE401_Memory_Leak__int64_t_realloc_63b_badSink
|
void CWE401_Memory_Leak__int64_t_realloc_63b_badSink(void)
{
return;
}
|
['gcc']
|
55,551
|
void CWE401_Memory_Leak__int64_t_realloc_63b_goodG2BSink(int64_t * * dataPtr)
{
int64_t * data = *dataPtr;
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
}
|
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99477/CWE401_Memory_Leak__int64_t_realloc_63b.c
|
CWE401_Memory_Leak__int64_t_realloc_63b_goodG2BSink
|
void CWE401_Memory_Leak__int64_t_realloc_63b_goodG2BSink(void)
{
return;
}
|
['gcc']
|
55,552
|
void CWE401_Memory_Leak__int64_t_realloc_63b_goodB2GSink(int64_t * * dataPtr)
{
int64_t * data = *dataPtr;
/* FIX: Deallocate memory */
free(data);
}
|
['/* FIX: Deallocate memory */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99477/CWE401_Memory_Leak__int64_t_realloc_63b.c
|
CWE401_Memory_Leak__int64_t_realloc_63b_goodB2GSink
|
void CWE401_Memory_Leak__int64_t_realloc_63b_goodB2GSink(undefined8 *param_1)
{
func_0x00400a20(*param_1);
return;
}
|
['gcc']
|
55,553
|
void CWE401_Memory_Leak__int64_t_realloc_64_bad()
{
int64_t * data;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int64_t *)realloc(data, 100*sizeof(int64_t));
/* Initialize and make use of data */
data[0] = 5LL;
printLongLongLine(data[0]);
CWE401_Memory_Leak__int64_t_realloc_64b_badSink(&data);
}
|
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99478/CWE401_Memory_Leak__int64_t_realloc_64a.c
|
CWE401_Memory_Leak__int64_t_realloc_64_bad
|
void CWE401_Memory_Leak__int64_t_realloc_64_bad(void)
{
undefined8 *puStack_10;
puStack_10 = (undefined8 *)0x0;
puStack_10 = (undefined8 *)func_0x00400a80(0,800);
*puStack_10 = 5;
printLongLongLine(*puStack_10);
CWE401_Memory_Leak__int64_t_realloc_64b_badSink(&puStack_10);
return;
}
|
['gcc']
|
55,554
|
void CWE401_Memory_Leak__int64_t_realloc_64_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99478/CWE401_Memory_Leak__int64_t_realloc_64a.c
|
CWE401_Memory_Leak__int64_t_realloc_64_good
|
void CWE401_Memory_Leak__int64_t_realloc_64_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
55,555
|
void CWE401_Memory_Leak__int64_t_realloc_64b_badSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
int64_t * * dataPtr = (int64_t * *)dataVoidPtr;
/* dereference dataPtr into data */
int64_t * data = (*dataPtr);
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
}
|
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99478/CWE401_Memory_Leak__int64_t_realloc_64b.c
|
CWE401_Memory_Leak__int64_t_realloc_64b_badSink
|
void CWE401_Memory_Leak__int64_t_realloc_64b_badSink(void)
{
return;
}
|
['gcc']
|
55,556
|
void CWE401_Memory_Leak__int64_t_realloc_64b_goodG2BSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
int64_t * * dataPtr = (int64_t * *)dataVoidPtr;
/* dereference dataPtr into data */
int64_t * data = (*dataPtr);
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
}
|
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99478/CWE401_Memory_Leak__int64_t_realloc_64b.c
|
CWE401_Memory_Leak__int64_t_realloc_64b_goodG2BSink
|
void CWE401_Memory_Leak__int64_t_realloc_64b_goodG2BSink(void)
{
return;
}
|
['gcc']
|
55,557
|
void CWE401_Memory_Leak__int64_t_realloc_64b_goodB2GSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
int64_t * * dataPtr = (int64_t * *)dataVoidPtr;
/* dereference dataPtr into data */
int64_t * data = (*dataPtr);
/* FIX: Deallocate memory */
free(data);
}
|
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* FIX: Deallocate memory */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99478/CWE401_Memory_Leak__int64_t_realloc_64b.c
|
CWE401_Memory_Leak__int64_t_realloc_64b_goodB2GSink
|
void CWE401_Memory_Leak__int64_t_realloc_64b_goodB2GSink(undefined8 *param_1)
{
func_0x00400a20(*param_1);
return;
}
|
['gcc']
|
55,558
|
void CWE401_Memory_Leak__int64_t_realloc_66_bad()
{
int64_t * data;
int64_t * dataArray[5];
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int64_t *)realloc(data, 100*sizeof(int64_t));
/* Initialize and make use of data */
data[0] = 5LL;
printLongLongLine(data[0]);
/* put data in array */
dataArray[2] = data;
CWE401_Memory_Leak__int64_t_realloc_66b_badSink(dataArray);
}
|
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* put data in array */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99480/CWE401_Memory_Leak__int64_t_realloc_66a.c
|
CWE401_Memory_Leak__int64_t_realloc_66_bad
|
void CWE401_Memory_Leak__int64_t_realloc_66_bad(void)
{
undefined auStack_38 [16];
undefined8 *puStack_28;
undefined8 *puStack_10;
puStack_10 = (undefined8 *)0x0;
puStack_10 = (undefined8 *)func_0x00400a80(0,800);
*puStack_10 = 5;
printLongLongLine(*puStack_10);
puStack_28 = puStack_10;
CWE401_Memory_Leak__int64_t_realloc_66b_badSink(auStack_38);
return;
}
|
['gcc']
|
55,559
|
void CWE401_Memory_Leak__int64_t_realloc_66_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99480/CWE401_Memory_Leak__int64_t_realloc_66a.c
|
CWE401_Memory_Leak__int64_t_realloc_66_good
|
void CWE401_Memory_Leak__int64_t_realloc_66_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
55,560
|
void CWE401_Memory_Leak__int64_t_realloc_66b_badSink(int64_t * dataArray[])
{
/* copy data out of dataArray */
int64_t * data = dataArray[2];
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
}
|
['/* copy data out of dataArray */', '/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99480/CWE401_Memory_Leak__int64_t_realloc_66b.c
|
CWE401_Memory_Leak__int64_t_realloc_66b_badSink
|
void CWE401_Memory_Leak__int64_t_realloc_66b_badSink(void)
{
return;
}
|
['gcc']
|
55,561
|
void CWE401_Memory_Leak__int64_t_realloc_66b_goodG2BSink(int64_t * dataArray[])
{
int64_t * data = dataArray[2];
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
}
|
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99480/CWE401_Memory_Leak__int64_t_realloc_66b.c
|
CWE401_Memory_Leak__int64_t_realloc_66b_goodG2BSink
|
void CWE401_Memory_Leak__int64_t_realloc_66b_goodG2BSink(void)
{
return;
}
|
['gcc']
|
55,562
|
void CWE401_Memory_Leak__int64_t_realloc_66b_goodB2GSink(int64_t * dataArray[])
{
int64_t * data = dataArray[2];
/* FIX: Deallocate memory */
free(data);
}
|
['/* FIX: Deallocate memory */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99480/CWE401_Memory_Leak__int64_t_realloc_66b.c
|
CWE401_Memory_Leak__int64_t_realloc_66b_goodB2GSink
|
void CWE401_Memory_Leak__int64_t_realloc_66b_goodB2GSink(long param_1)
{
func_0x00400a20(*(undefined8 *)(param_1 + 0x10));
return;
}
|
['gcc']
|
55,563
|
void CWE401_Memory_Leak__int64_t_realloc_67_bad()
{
int64_t * data;
CWE401_Memory_Leak__int64_t_realloc_67_structType myStruct;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int64_t *)realloc(data, 100*sizeof(int64_t));
/* Initialize and make use of data */
data[0] = 5LL;
printLongLongLine(data[0]);
myStruct.structFirst = data;
CWE401_Memory_Leak__int64_t_realloc_67b_badSink(myStruct);
}
|
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99481/CWE401_Memory_Leak__int64_t_realloc_67a.c
|
CWE401_Memory_Leak__int64_t_realloc_67_bad
|
void CWE401_Memory_Leak__int64_t_realloc_67_bad(void)
{
undefined8 *puVar1;
puVar1 = (undefined8 *)func_0x00400a80(0,800);
*puVar1 = 5;
printLongLongLine(*puVar1);
CWE401_Memory_Leak__int64_t_realloc_67b_badSink(puVar1);
return;
}
|
['gcc']
|
55,564
|
void CWE401_Memory_Leak__int64_t_realloc_67_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99481/CWE401_Memory_Leak__int64_t_realloc_67a.c
|
CWE401_Memory_Leak__int64_t_realloc_67_good
|
void CWE401_Memory_Leak__int64_t_realloc_67_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
55,565
|
void CWE401_Memory_Leak__int64_t_realloc_67b_badSink(CWE401_Memory_Leak__int64_t_realloc_67_structType myStruct)
{
int64_t * data = myStruct.structFirst;
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
}
|
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99481/CWE401_Memory_Leak__int64_t_realloc_67b.c
|
CWE401_Memory_Leak__int64_t_realloc_67b_badSink
|
void CWE401_Memory_Leak__int64_t_realloc_67b_badSink(void)
{
return;
}
|
['gcc']
|
55,566
|
void CWE401_Memory_Leak__int64_t_realloc_67b_goodG2BSink(CWE401_Memory_Leak__int64_t_realloc_67_structType myStruct)
{
int64_t * data = myStruct.structFirst;
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
}
|
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99481/CWE401_Memory_Leak__int64_t_realloc_67b.c
|
CWE401_Memory_Leak__int64_t_realloc_67b_goodG2BSink
|
void CWE401_Memory_Leak__int64_t_realloc_67b_goodG2BSink(void)
{
return;
}
|
['gcc']
|
55,567
|
void CWE401_Memory_Leak__int64_t_realloc_67b_goodB2GSink(CWE401_Memory_Leak__int64_t_realloc_67_structType myStruct)
{
int64_t * data = myStruct.structFirst;
/* FIX: Deallocate memory */
free(data);
}
|
['/* FIX: Deallocate memory */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99481/CWE401_Memory_Leak__int64_t_realloc_67b.c
|
CWE401_Memory_Leak__int64_t_realloc_67b_goodB2GSink
|
void CWE401_Memory_Leak__int64_t_realloc_67b_goodB2GSink(undefined8 param_1)
{
func_0x00400a20(param_1);
return;
}
|
['gcc']
|
55,568
|
void CWE401_Memory_Leak__int_calloc_08_bad()
{
int * data;
data = NULL;
if(staticReturnsTrue())
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)calloc(100, sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
}
if(staticReturnsTrue())
{
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
}
}
|
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99497/CWE401_Memory_Leak__int_calloc_08.c
|
CWE401_Memory_Leak__int_calloc_08_bad
|
void CWE401_Memory_Leak__int_calloc_08_bad(void)
{
int iVar1;
undefined4 *puVar2;
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
puVar2 = (undefined4 *)func_0x00400a40(100,4);
*puVar2 = 5;
printIntLine(*puVar2);
}
staticReturnsTrue();
return;
}
|
['gcc']
|
55,569
|
void CWE401_Memory_Leak__int_calloc_08_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99497/CWE401_Memory_Leak__int_calloc_08.c
|
CWE401_Memory_Leak__int_calloc_08_good
|
void CWE401_Memory_Leak__int_calloc_08_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
55,570
|
void CWE401_Memory_Leak__int_calloc_11_bad()
{
int * data;
data = NULL;
if(globalReturnsTrue())
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)calloc(100, sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
}
if(globalReturnsTrue())
{
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
}
}
|
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99500/CWE401_Memory_Leak__int_calloc_11.c
|
CWE401_Memory_Leak__int_calloc_11_bad
|
void CWE401_Memory_Leak__int_calloc_11_bad(void)
{
int iVar1;
undefined4 *puVar2;
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
puVar2 = (undefined4 *)func_0x00400a40(100,4);
*puVar2 = 5;
printIntLine(*puVar2);
}
globalReturnsTrue();
return;
}
|
['gcc']
|
55,571
|
void CWE401_Memory_Leak__int_calloc_11_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99500/CWE401_Memory_Leak__int_calloc_11.c
|
CWE401_Memory_Leak__int_calloc_11_good
|
void CWE401_Memory_Leak__int_calloc_11_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
55,572
|
void CWE401_Memory_Leak__int_calloc_12_bad()
{
int * data;
data = NULL;
if(globalReturnsTrueOrFalse())
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)calloc(100, sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
}
else
{
/* FIX: Use memory allocated on the stack with ALLOCA */
data = (int *)ALLOCA(100*sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
}
if(globalReturnsTrueOrFalse())
{
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
}
else
{
/* FIX: Deallocate memory */
free(data);
}
}
|
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* FIX: Use memory allocated on the stack with ALLOCA */', '/* Initialize and make use of data */', '/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */', '/* FIX: Deallocate memory */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99501/CWE401_Memory_Leak__int_calloc_12.c
|
CWE401_Memory_Leak__int_calloc_12_bad
|
/* WARNING: Heritage AFTER dead removal. Example location: s0xfffffffffffffe50 : 0x00400c60 */
/* WARNING: Restarted to delay deadcode elimination for space: stack */
void CWE401_Memory_Leak__int_calloc_12_bad(void)
{
int iVar1;
undefined *puVar2;
undefined auStack_1b8 [8];
undefined4 auStack_1b0 [100];
undefined *puStack_20;
undefined auStack_18 [8];
undefined4 *puStack_10;
puVar2 = auStack_18;
puStack_10 = (undefined4 *)0x0;
puStack_20 = &UNK_00400bec;
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
puVar2 = auStack_1b8;
puStack_10 = auStack_1b0;
auStack_1b0[0] = 5;
printIntLine(5);
}
else {
puStack_20 = &UNK_00400bff;
puStack_10 = (undefined4 *)func_0x00400a90(100,4);
*puStack_10 = 5;
puStack_20 = &UNK_00400c1a;
printIntLine(*puStack_10);
}
*(undefined **)(puVar2 + -8) = &UNK_00400c73;
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
*(undefined **)(puVar2 + -8) = &UNK_00400c83;
func_0x00400a20(puStack_10);
}
return;
}
|
['gcc']
|
55,573
|
void CWE401_Memory_Leak__int_calloc_12_good()
{
goodB2G();
goodG2B();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99501/CWE401_Memory_Leak__int_calloc_12.c
|
CWE401_Memory_Leak__int_calloc_12_good
|
void CWE401_Memory_Leak__int_calloc_12_good(void)
{
goodB2G();
goodG2B();
return;
}
|
['gcc']
|
55,574
|
void CWE401_Memory_Leak__int_calloc_17_bad()
{
int i,j;
int * data;
data = NULL;
for(i = 0; i < 1; i++)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)calloc(100, sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
}
for(j = 0; j < 1; j++)
{
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
}
}
|
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99506/CWE401_Memory_Leak__int_calloc_17.c
|
CWE401_Memory_Leak__int_calloc_17_bad
|
void CWE401_Memory_Leak__int_calloc_17_bad(void)
{
undefined4 *puVar1;
int iStack_10;
int iStack_c;
for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) {
puVar1 = (undefined4 *)func_0x00400a40(100,4);
*puVar1 = 5;
printIntLine(*puVar1);
}
for (iStack_10 = 0; iStack_10 < 1; iStack_10 = iStack_10 + 1) {
}
return;
}
|
['gcc']
|
55,575
|
void CWE401_Memory_Leak__int_calloc_17_good()
{
goodB2G();
goodG2B();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99506/CWE401_Memory_Leak__int_calloc_17.c
|
CWE401_Memory_Leak__int_calloc_17_good
|
void CWE401_Memory_Leak__int_calloc_17_good(void)
{
goodB2G();
goodG2B();
return;
}
|
['gcc']
|
55,576
|
void CWE401_Memory_Leak__int_calloc_21_bad()
{
int * data;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)calloc(100, sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
badStatic = 1; /* true */
badSink(data);
}
|
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* true */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99508/CWE401_Memory_Leak__int_calloc_21.c
|
CWE401_Memory_Leak__int_calloc_21_bad
|
void CWE401_Memory_Leak__int_calloc_21_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a40(100,4);
*puVar1 = 5;
printIntLine(*puVar1);
badStatic = 1;
badSink(puVar1);
return;
}
|
['gcc']
|
55,577
|
void CWE401_Memory_Leak__int_calloc_21_good()
{
goodB2G1();
goodB2G2();
goodG2B();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99508/CWE401_Memory_Leak__int_calloc_21.c
|
CWE401_Memory_Leak__int_calloc_21_good
|
void CWE401_Memory_Leak__int_calloc_21_good(void)
{
goodB2G1();
goodB2G2();
goodG2B();
return;
}
|
['gcc']
|
55,578
|
void CWE401_Memory_Leak__int_calloc_22_bad()
{
int * data;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)calloc(100, sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
CWE401_Memory_Leak__int_calloc_22_badGlobal = 1; /* true */
CWE401_Memory_Leak__int_calloc_22_badSink(data);
}
|
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* true */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99509/CWE401_Memory_Leak__int_calloc_22a.c
|
CWE401_Memory_Leak__int_calloc_22_bad
|
void CWE401_Memory_Leak__int_calloc_22_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a40(100,4);
*puVar1 = 5;
printIntLine(*puVar1);
CWE401_Memory_Leak__int_calloc_22_badGlobal = 1;
CWE401_Memory_Leak__int_calloc_22_badSink(puVar1);
return;
}
|
['gcc']
|
55,579
|
void CWE401_Memory_Leak__int_calloc_22_good()
{
goodB2G1();
goodB2G2();
goodG2B();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99509/CWE401_Memory_Leak__int_calloc_22a.c
|
CWE401_Memory_Leak__int_calloc_22_good
|
void CWE401_Memory_Leak__int_calloc_22_good(void)
{
goodB2G1();
goodB2G2();
goodG2B();
return;
}
|
['gcc']
|
55,580
|
void CWE401_Memory_Leak__int_calloc_22_badSink(int * data)
{
if(CWE401_Memory_Leak__int_calloc_22_badGlobal)
{
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
}
}
|
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99509/CWE401_Memory_Leak__int_calloc_22b.c
|
CWE401_Memory_Leak__int_calloc_22_badSink
|
void CWE401_Memory_Leak__int_calloc_22_badSink(void)
{
return;
}
|
['gcc']
|
55,581
|
void CWE401_Memory_Leak__int_calloc_22_goodB2G1Sink(int * data)
{
if(CWE401_Memory_Leak__int_calloc_22_goodB2G1Global)
{
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
}
else
{
/* FIX: Deallocate memory */
free(data);
}
}
|
['/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* FIX: Deallocate memory */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99509/CWE401_Memory_Leak__int_calloc_22b.c
|
CWE401_Memory_Leak__int_calloc_22_goodB2G1Sink
|
void CWE401_Memory_Leak__int_calloc_22_goodB2G1Sink(undefined8 param_1)
{
if (CWE401_Memory_Leak__int_calloc_22_goodB2G1Global == 0) {
func_0x00400a20(param_1);
}
else {
printLine(&UNK_004012f4);
}
return;
}
|
['gcc']
|
55,582
|
void CWE401_Memory_Leak__int_calloc_22_goodB2G2Sink(int * data)
{
if(CWE401_Memory_Leak__int_calloc_22_goodB2G2Global)
{
/* FIX: Deallocate memory */
free(data);
}
}
|
['/* FIX: Deallocate memory */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99509/CWE401_Memory_Leak__int_calloc_22b.c
|
CWE401_Memory_Leak__int_calloc_22_goodB2G2Sink
|
void CWE401_Memory_Leak__int_calloc_22_goodB2G2Sink(undefined8 param_1)
{
if (CWE401_Memory_Leak__int_calloc_22_goodB2G2Global != 0) {
func_0x00400a20(param_1);
}
return;
}
|
['gcc']
|
55,583
|
void CWE401_Memory_Leak__int_calloc_22_goodG2BSink(int * data)
{
if(CWE401_Memory_Leak__int_calloc_22_goodG2BGlobal)
{
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
}
}
|
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99509/CWE401_Memory_Leak__int_calloc_22b.c
|
CWE401_Memory_Leak__int_calloc_22_goodG2BSink
|
void CWE401_Memory_Leak__int_calloc_22_goodG2BSink(void)
{
return;
}
|
['gcc']
|
55,584
|
void CWE401_Memory_Leak__int_calloc_31_bad()
{
int * data;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)calloc(100, sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
{
int * dataCopy = data;
int * data = dataCopy;
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
}
}
|
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99510/CWE401_Memory_Leak__int_calloc_31.c
|
CWE401_Memory_Leak__int_calloc_31_bad
|
void CWE401_Memory_Leak__int_calloc_31_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a40(100,4);
*puVar1 = 5;
printIntLine(*puVar1);
return;
}
|
['gcc']
|
55,585
|
void CWE401_Memory_Leak__int_calloc_31_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99510/CWE401_Memory_Leak__int_calloc_31.c
|
CWE401_Memory_Leak__int_calloc_31_good
|
void CWE401_Memory_Leak__int_calloc_31_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
55,586
|
void CWE401_Memory_Leak__int_calloc_34_bad()
{
int * data;
CWE401_Memory_Leak__int_calloc_34_unionType myUnion;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)calloc(100, sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
myUnion.unionFirst = data;
{
int * data = myUnion.unionSecond;
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
}
}
|
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99513/CWE401_Memory_Leak__int_calloc_34.c
|
CWE401_Memory_Leak__int_calloc_34_bad
|
void CWE401_Memory_Leak__int_calloc_34_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a40(100,4);
*puVar1 = 5;
printIntLine(*puVar1);
return;
}
|
['gcc']
|
55,587
|
void CWE401_Memory_Leak__int_calloc_34_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99513/CWE401_Memory_Leak__int_calloc_34.c
|
CWE401_Memory_Leak__int_calloc_34_good
|
void CWE401_Memory_Leak__int_calloc_34_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
55,588
|
void CWE401_Memory_Leak__int_calloc_41_bad()
{
int * data;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)calloc(100, sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
badSink(data);
}
|
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99514/CWE401_Memory_Leak__int_calloc_41.c
|
CWE401_Memory_Leak__int_calloc_41_bad
|
void CWE401_Memory_Leak__int_calloc_41_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a40(100,4);
*puVar1 = 5;
printIntLine(*puVar1);
badSink(puVar1);
return;
}
|
['gcc']
|
55,589
|
void CWE401_Memory_Leak__int_calloc_41_good()
{
goodB2G();
goodG2B();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99514/CWE401_Memory_Leak__int_calloc_41.c
|
CWE401_Memory_Leak__int_calloc_41_good
|
void CWE401_Memory_Leak__int_calloc_41_good(void)
{
goodB2G();
goodG2B();
return;
}
|
['gcc']
|
55,590
|
void CWE401_Memory_Leak__int_calloc_42_bad()
{
int * data;
data = NULL;
data = badSource(data);
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
}
|
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99515/CWE401_Memory_Leak__int_calloc_42.c
|
CWE401_Memory_Leak__int_calloc_42_bad
|
void CWE401_Memory_Leak__int_calloc_42_bad(void)
{
badSource(0);
return;
}
|
['gcc']
|
55,591
|
void CWE401_Memory_Leak__int_calloc_42_good()
{
goodB2G();
goodG2B();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99515/CWE401_Memory_Leak__int_calloc_42.c
|
CWE401_Memory_Leak__int_calloc_42_good
|
void CWE401_Memory_Leak__int_calloc_42_good(void)
{
goodB2G();
goodG2B();
return;
}
|
['gcc']
|
55,592
|
void CWE401_Memory_Leak__int_calloc_51_bad()
{
int * data;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)calloc(100, sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
CWE401_Memory_Leak__int_calloc_51b_badSink(data);
}
|
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99519/CWE401_Memory_Leak__int_calloc_51a.c
|
CWE401_Memory_Leak__int_calloc_51_bad
|
void CWE401_Memory_Leak__int_calloc_51_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a40(100,4);
*puVar1 = 5;
printIntLine(*puVar1);
CWE401_Memory_Leak__int_calloc_51b_badSink(puVar1);
return;
}
|
['gcc']
|
55,593
|
void CWE401_Memory_Leak__int_calloc_51_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99519/CWE401_Memory_Leak__int_calloc_51a.c
|
CWE401_Memory_Leak__int_calloc_51_good
|
void CWE401_Memory_Leak__int_calloc_51_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
55,594
|
void CWE401_Memory_Leak__int_calloc_51b_badSink(int * data)
{
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
}
|
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99519/CWE401_Memory_Leak__int_calloc_51b.c
|
CWE401_Memory_Leak__int_calloc_51b_badSink
|
void CWE401_Memory_Leak__int_calloc_51b_badSink(void)
{
return;
}
|
['gcc']
|
55,595
|
void CWE401_Memory_Leak__int_calloc_51b_goodG2BSink(int * data)
{
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
}
|
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99519/CWE401_Memory_Leak__int_calloc_51b.c
|
CWE401_Memory_Leak__int_calloc_51b_goodG2BSink
|
void CWE401_Memory_Leak__int_calloc_51b_goodG2BSink(void)
{
return;
}
|
['gcc']
|
55,596
|
void CWE401_Memory_Leak__int_calloc_51b_goodB2GSink(int * data)
{
/* FIX: Deallocate memory */
free(data);
}
|
['/* FIX: Deallocate memory */']
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99519/CWE401_Memory_Leak__int_calloc_51b.c
|
CWE401_Memory_Leak__int_calloc_51b_goodB2GSink
|
void CWE401_Memory_Leak__int_calloc_51b_goodB2GSink(undefined8 param_1)
{
func_0x00400a20(param_1);
return;
}
|
['gcc']
|
55,597
|
void CWE401_Memory_Leak__int_calloc_52_bad()
{
int * data;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)calloc(100, sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
CWE401_Memory_Leak__int_calloc_52b_badSink(data);
}
|
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99520/CWE401_Memory_Leak__int_calloc_52a.c
|
CWE401_Memory_Leak__int_calloc_52_bad
|
void CWE401_Memory_Leak__int_calloc_52_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a40(100,4);
*puVar1 = 5;
printIntLine(*puVar1);
CWE401_Memory_Leak__int_calloc_52b_badSink(puVar1);
return;
}
|
['gcc']
|
55,598
|
void CWE401_Memory_Leak__int_calloc_52_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99520/CWE401_Memory_Leak__int_calloc_52a.c
|
CWE401_Memory_Leak__int_calloc_52_good
|
void CWE401_Memory_Leak__int_calloc_52_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
55,599
|
void CWE401_Memory_Leak__int_calloc_52b_badSink(int * data)
{
CWE401_Memory_Leak__int_calloc_52c_badSink(data);
}
|
[]
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99520/CWE401_Memory_Leak__int_calloc_52b.c
|
CWE401_Memory_Leak__int_calloc_52b_badSink
|
void CWE401_Memory_Leak__int_calloc_52b_badSink(undefined8 param_1)
{
CWE401_Memory_Leak__int_calloc_52c_badSink(param_1);
return;
}
|
['gcc']
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.