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,700
|
void CWE401_Memory_Leak__int_malloc_53d_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/99569/CWE401_Memory_Leak__int_malloc_53d.c
|
CWE401_Memory_Leak__int_malloc_53d_badSink
|
void CWE401_Memory_Leak__int_malloc_53d_badSink(void)
{
return;
}
|
['gcc']
|
55,701
|
void CWE401_Memory_Leak__int_malloc_53d_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/99569/CWE401_Memory_Leak__int_malloc_53d.c
|
CWE401_Memory_Leak__int_malloc_53d_goodG2BSink
|
void CWE401_Memory_Leak__int_malloc_53d_goodG2BSink(void)
{
return;
}
|
['gcc']
|
55,702
|
void CWE401_Memory_Leak__int_malloc_53d_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/99569/CWE401_Memory_Leak__int_malloc_53d.c
|
CWE401_Memory_Leak__int_malloc_53d_goodB2GSink
|
void CWE401_Memory_Leak__int_malloc_53d_goodB2GSink(undefined8 param_1)
{
func_0x00400a20(param_1);
return;
}
|
['gcc']
|
55,703
|
void CWE401_Memory_Leak__int_realloc_02_bad()
{
int * data;
data = NULL;
if(1)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)realloc(data, 100*sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
}
if(1)
{
/* 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/99587/CWE401_Memory_Leak__int_realloc_02.c
|
CWE401_Memory_Leak__int_realloc_02_bad
|
void CWE401_Memory_Leak__int_realloc_02_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a80(0,400);
*puVar1 = 5;
printIntLine(*puVar1);
return;
}
|
['gcc']
|
55,704
|
void CWE401_Memory_Leak__int_realloc_02_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99587/CWE401_Memory_Leak__int_realloc_02.c
|
CWE401_Memory_Leak__int_realloc_02_good
|
void CWE401_Memory_Leak__int_realloc_02_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
55,705
|
void CWE401_Memory_Leak__int_realloc_03_bad()
{
int * data;
data = NULL;
if(5==5)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)realloc(data, 100*sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
}
if(5==5)
{
/* 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/99588/CWE401_Memory_Leak__int_realloc_03.c
|
CWE401_Memory_Leak__int_realloc_03_bad
|
void CWE401_Memory_Leak__int_realloc_03_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a80(0,400);
*puVar1 = 5;
printIntLine(*puVar1);
return;
}
|
['gcc']
|
55,706
|
void CWE401_Memory_Leak__int_realloc_03_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99588/CWE401_Memory_Leak__int_realloc_03.c
|
CWE401_Memory_Leak__int_realloc_03_good
|
void CWE401_Memory_Leak__int_realloc_03_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
55,707
|
void CWE401_Memory_Leak__int_realloc_04_bad()
{
int * data;
data = NULL;
if(STATIC_CONST_TRUE)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)realloc(data, 100*sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
}
if(STATIC_CONST_TRUE)
{
/* 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/99589/CWE401_Memory_Leak__int_realloc_04.c
|
CWE401_Memory_Leak__int_realloc_04_bad
|
void CWE401_Memory_Leak__int_realloc_04_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a80(0,400);
*puVar1 = 5;
printIntLine(*puVar1);
return;
}
|
['gcc']
|
55,708
|
void CWE401_Memory_Leak__int_realloc_04_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99589/CWE401_Memory_Leak__int_realloc_04.c
|
CWE401_Memory_Leak__int_realloc_04_good
|
void CWE401_Memory_Leak__int_realloc_04_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
55,709
|
void CWE401_Memory_Leak__int_realloc_05_bad()
{
int * data;
data = NULL;
if(staticTrue)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)realloc(data, 100*sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
}
if(staticTrue)
{
/* 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/99590/CWE401_Memory_Leak__int_realloc_05.c
|
CWE401_Memory_Leak__int_realloc_05_bad
|
void CWE401_Memory_Leak__int_realloc_05_bad(void)
{
undefined4 *puVar1;
if (staticTrue != 0) {
puVar1 = (undefined4 *)func_0x00400a80(0,400);
*puVar1 = 5;
printIntLine(*puVar1);
}
return;
}
|
['gcc']
|
55,710
|
void CWE401_Memory_Leak__int_realloc_05_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99590/CWE401_Memory_Leak__int_realloc_05.c
|
CWE401_Memory_Leak__int_realloc_05_good
|
void CWE401_Memory_Leak__int_realloc_05_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
55,711
|
void CWE401_Memory_Leak__int_realloc_06_bad()
{
int * data;
data = NULL;
if(STATIC_CONST_FIVE==5)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)realloc(data, 100*sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
}
if(STATIC_CONST_FIVE==5)
{
/* 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/99591/CWE401_Memory_Leak__int_realloc_06.c
|
CWE401_Memory_Leak__int_realloc_06_bad
|
void CWE401_Memory_Leak__int_realloc_06_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a80(0,400);
*puVar1 = 5;
printIntLine(*puVar1);
return;
}
|
['gcc']
|
55,712
|
void CWE401_Memory_Leak__int_realloc_06_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99591/CWE401_Memory_Leak__int_realloc_06.c
|
CWE401_Memory_Leak__int_realloc_06_good
|
void CWE401_Memory_Leak__int_realloc_06_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
55,713
|
void CWE401_Memory_Leak__int_realloc_07_bad()
{
int * data;
data = NULL;
if(staticFive==5)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)realloc(data, 100*sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
}
if(staticFive==5)
{
/* 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/99592/CWE401_Memory_Leak__int_realloc_07.c
|
CWE401_Memory_Leak__int_realloc_07_bad
|
void CWE401_Memory_Leak__int_realloc_07_bad(void)
{
undefined4 *puVar1;
if (staticFive == 5) {
puVar1 = (undefined4 *)func_0x00400a80(0,400);
*puVar1 = 5;
printIntLine(*puVar1);
}
return;
}
|
['gcc']
|
55,714
|
void CWE401_Memory_Leak__int_realloc_07_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99592/CWE401_Memory_Leak__int_realloc_07.c
|
CWE401_Memory_Leak__int_realloc_07_good
|
void CWE401_Memory_Leak__int_realloc_07_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
55,715
|
void CWE401_Memory_Leak__int_realloc_08_bad()
{
int * data;
data = NULL;
if(staticReturnsTrue())
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)realloc(data, 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/99593/CWE401_Memory_Leak__int_realloc_08.c
|
CWE401_Memory_Leak__int_realloc_08_bad
|
void CWE401_Memory_Leak__int_realloc_08_bad(void)
{
int iVar1;
undefined4 *puVar2;
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
puVar2 = (undefined4 *)func_0x00400a80(0,400);
*puVar2 = 5;
printIntLine(*puVar2);
}
staticReturnsTrue();
return;
}
|
['gcc']
|
55,716
|
void CWE401_Memory_Leak__int_realloc_08_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99593/CWE401_Memory_Leak__int_realloc_08.c
|
CWE401_Memory_Leak__int_realloc_08_good
|
void CWE401_Memory_Leak__int_realloc_08_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
55,717
|
void CWE401_Memory_Leak__int_realloc_09_bad()
{
int * data;
data = NULL;
if(GLOBAL_CONST_TRUE)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)realloc(data, 100*sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
}
if(GLOBAL_CONST_TRUE)
{
/* 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/99594/CWE401_Memory_Leak__int_realloc_09.c
|
CWE401_Memory_Leak__int_realloc_09_bad
|
void CWE401_Memory_Leak__int_realloc_09_bad(void)
{
undefined4 *puVar1;
if (GLOBAL_CONST_TRUE != 0) {
puVar1 = (undefined4 *)func_0x00400a80(0,400);
*puVar1 = 5;
printIntLine(*puVar1);
}
return;
}
|
['gcc']
|
55,718
|
void CWE401_Memory_Leak__int_realloc_09_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99594/CWE401_Memory_Leak__int_realloc_09.c
|
CWE401_Memory_Leak__int_realloc_09_good
|
void CWE401_Memory_Leak__int_realloc_09_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
55,719
|
void CWE401_Memory_Leak__int_realloc_10_bad()
{
int * data;
data = NULL;
if(globalTrue)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)realloc(data, 100*sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
}
if(globalTrue)
{
/* 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/99595/CWE401_Memory_Leak__int_realloc_10.c
|
CWE401_Memory_Leak__int_realloc_10_bad
|
void CWE401_Memory_Leak__int_realloc_10_bad(void)
{
undefined4 *puVar1;
if (globalTrue != 0) {
puVar1 = (undefined4 *)func_0x00400a80(0,400);
*puVar1 = 5;
printIntLine(*puVar1);
}
return;
}
|
['gcc']
|
55,720
|
void CWE401_Memory_Leak__int_realloc_10_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99595/CWE401_Memory_Leak__int_realloc_10.c
|
CWE401_Memory_Leak__int_realloc_10_good
|
void CWE401_Memory_Leak__int_realloc_10_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
55,721
|
void CWE401_Memory_Leak__int_realloc_11_bad()
{
int * data;
data = NULL;
if(globalReturnsTrue())
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)realloc(data, 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/99596/CWE401_Memory_Leak__int_realloc_11.c
|
CWE401_Memory_Leak__int_realloc_11_bad
|
void CWE401_Memory_Leak__int_realloc_11_bad(void)
{
int iVar1;
undefined4 *puVar2;
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
puVar2 = (undefined4 *)func_0x00400a80(0,400);
*puVar2 = 5;
printIntLine(*puVar2);
}
globalReturnsTrue();
return;
}
|
['gcc']
|
55,722
|
void CWE401_Memory_Leak__int_realloc_11_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99596/CWE401_Memory_Leak__int_realloc_11.c
|
CWE401_Memory_Leak__int_realloc_11_good
|
void CWE401_Memory_Leak__int_realloc_11_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
55,723
|
void CWE401_Memory_Leak__int_realloc_12_bad()
{
int * data;
data = NULL;
if(globalReturnsTrueOrFalse())
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)realloc(data, 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/99597/CWE401_Memory_Leak__int_realloc_12.c
|
CWE401_Memory_Leak__int_realloc_12_bad
|
/* WARNING: Heritage AFTER dead removal. Example location: s0xfffffffffffffe50 : 0x00400c62 */
/* WARNING: Restarted to delay deadcode elimination for space: stack */
void CWE401_Memory_Leak__int_realloc_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_00400c01;
puStack_10 = (undefined4 *)func_0x00400ad0(puStack_10,400);
*puStack_10 = 5;
puStack_20 = &UNK_00400c1c;
printIntLine(*puStack_10);
}
*(undefined **)(puVar2 + -8) = &UNK_00400c75;
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
*(undefined **)(puVar2 + -8) = &UNK_00400c85;
func_0x00400a20(puStack_10);
}
return;
}
|
['gcc']
|
55,724
|
void CWE401_Memory_Leak__int_realloc_12_good()
{
goodB2G();
goodG2B();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99597/CWE401_Memory_Leak__int_realloc_12.c
|
CWE401_Memory_Leak__int_realloc_12_good
|
void CWE401_Memory_Leak__int_realloc_12_good(void)
{
goodB2G();
goodG2B();
return;
}
|
['gcc']
|
55,725
|
void CWE401_Memory_Leak__int_realloc_13_bad()
{
int * data;
data = NULL;
if(GLOBAL_CONST_FIVE==5)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)realloc(data, 100*sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
}
if(GLOBAL_CONST_FIVE==5)
{
/* 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/99598/CWE401_Memory_Leak__int_realloc_13.c
|
CWE401_Memory_Leak__int_realloc_13_bad
|
void CWE401_Memory_Leak__int_realloc_13_bad(void)
{
undefined4 *puVar1;
if (GLOBAL_CONST_FIVE == 5) {
puVar1 = (undefined4 *)func_0x00400a80(0,400);
*puVar1 = 5;
printIntLine(*puVar1);
}
return;
}
|
['gcc']
|
55,726
|
void CWE401_Memory_Leak__int_realloc_13_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99598/CWE401_Memory_Leak__int_realloc_13.c
|
CWE401_Memory_Leak__int_realloc_13_good
|
void CWE401_Memory_Leak__int_realloc_13_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
55,727
|
void CWE401_Memory_Leak__int_realloc_14_bad()
{
int * data;
data = NULL;
if(globalFive==5)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)realloc(data, 100*sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
}
if(globalFive==5)
{
/* 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/99599/CWE401_Memory_Leak__int_realloc_14.c
|
CWE401_Memory_Leak__int_realloc_14_bad
|
void CWE401_Memory_Leak__int_realloc_14_bad(void)
{
undefined4 *puVar1;
if (globalFive == 5) {
puVar1 = (undefined4 *)func_0x00400a80(0,400);
*puVar1 = 5;
printIntLine(*puVar1);
}
return;
}
|
['gcc']
|
55,728
|
void CWE401_Memory_Leak__int_realloc_14_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99599/CWE401_Memory_Leak__int_realloc_14.c
|
CWE401_Memory_Leak__int_realloc_14_good
|
void CWE401_Memory_Leak__int_realloc_14_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
55,729
|
void CWE401_Memory_Leak__int_realloc_15_bad()
{
int * data;
data = NULL;
switch(6)
{
case 6:
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)realloc(data, 100*sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
break;
default:
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
break;
}
switch(7)
{
case 7:
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
break;
default:
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
break;
}
}
|
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99600/CWE401_Memory_Leak__int_realloc_15.c
|
CWE401_Memory_Leak__int_realloc_15_bad
|
void CWE401_Memory_Leak__int_realloc_15_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a80(0,400);
*puVar1 = 5;
printIntLine(*puVar1);
return;
}
|
['gcc']
|
55,730
|
void CWE401_Memory_Leak__int_realloc_15_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99600/CWE401_Memory_Leak__int_realloc_15.c
|
CWE401_Memory_Leak__int_realloc_15_good
|
void CWE401_Memory_Leak__int_realloc_15_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
55,731
|
void CWE401_Memory_Leak__int_realloc_16_bad()
{
int * data;
data = NULL;
while(1)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)realloc(data, 100*sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
break;
}
while(1)
{
/* POTENTIAL FLAW: No deallocation */
; /* empty statement needed for some flow variants */
break;
}
}
|
['/* 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/99601/CWE401_Memory_Leak__int_realloc_16.c
|
CWE401_Memory_Leak__int_realloc_16_bad
|
void CWE401_Memory_Leak__int_realloc_16_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a80(0,400);
*puVar1 = 5;
printIntLine(*puVar1);
return;
}
|
['gcc']
|
55,732
|
void CWE401_Memory_Leak__int_realloc_16_good()
{
goodB2G();
goodG2B();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99601/CWE401_Memory_Leak__int_realloc_16.c
|
CWE401_Memory_Leak__int_realloc_16_good
|
void CWE401_Memory_Leak__int_realloc_16_good(void)
{
goodB2G();
goodG2B();
return;
}
|
['gcc']
|
55,733
|
void CWE401_Memory_Leak__int_realloc_17_bad()
{
int i,j;
int * data;
data = NULL;
for(i = 0; i < 1; i++)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)realloc(data, 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/99602/CWE401_Memory_Leak__int_realloc_17.c
|
CWE401_Memory_Leak__int_realloc_17_bad
|
void CWE401_Memory_Leak__int_realloc_17_bad(void)
{
undefined4 *puStack_18;
int iStack_10;
int iStack_c;
puStack_18 = (undefined4 *)0x0;
for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) {
puStack_18 = (undefined4 *)func_0x00400a80(puStack_18,400);
*puStack_18 = 5;
printIntLine(*puStack_18);
}
for (iStack_10 = 0; iStack_10 < 1; iStack_10 = iStack_10 + 1) {
}
return;
}
|
['gcc']
|
55,734
|
void CWE401_Memory_Leak__int_realloc_17_good()
{
goodB2G();
goodG2B();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99602/CWE401_Memory_Leak__int_realloc_17.c
|
CWE401_Memory_Leak__int_realloc_17_good
|
void CWE401_Memory_Leak__int_realloc_17_good(void)
{
goodB2G();
goodG2B();
return;
}
|
['gcc']
|
55,735
|
void CWE401_Memory_Leak__int_realloc_31_bad()
{
int * data;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)realloc(data, 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/99606/CWE401_Memory_Leak__int_realloc_31.c
|
CWE401_Memory_Leak__int_realloc_31_bad
|
void CWE401_Memory_Leak__int_realloc_31_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a80(0,400);
*puVar1 = 5;
printIntLine(*puVar1);
return;
}
|
['gcc']
|
55,736
|
void CWE401_Memory_Leak__int_realloc_31_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99606/CWE401_Memory_Leak__int_realloc_31.c
|
CWE401_Memory_Leak__int_realloc_31_good
|
void CWE401_Memory_Leak__int_realloc_31_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
55,737
|
void CWE401_Memory_Leak__int_realloc_32_bad()
{
int * data;
int * *dataPtr1 = &data;
int * *dataPtr2 = &data;
data = NULL;
{
int * data = *dataPtr1;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)realloc(data, 100*sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
*dataPtr1 = data;
}
{
int * data = *dataPtr2;
/* 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/99607/CWE401_Memory_Leak__int_realloc_32.c
|
CWE401_Memory_Leak__int_realloc_32_bad
|
/* WARNING: Restarted to delay deadcode elimination for space: stack */
void CWE401_Memory_Leak__int_realloc_32_bad(void)
{
undefined8 auStack_30 [2];
undefined4 *puStack_20;
undefined8 *puStack_18;
undefined8 *puStack_10;
puStack_10 = auStack_30;
puStack_18 = auStack_30;
auStack_30[0] = 0;
puStack_20 = (undefined4 *)0x0;
puStack_20 = (undefined4 *)func_0x00400a80(0,400);
*puStack_20 = 5;
printIntLine(*puStack_20);
*puStack_10 = puStack_20;
return;
}
|
['gcc']
|
55,738
|
void CWE401_Memory_Leak__int_realloc_32_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99607/CWE401_Memory_Leak__int_realloc_32.c
|
CWE401_Memory_Leak__int_realloc_32_good
|
void CWE401_Memory_Leak__int_realloc_32_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
55,739
|
void CWE401_Memory_Leak__int_realloc_41_bad()
{
int * data;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)realloc(data, 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/99610/CWE401_Memory_Leak__int_realloc_41.c
|
CWE401_Memory_Leak__int_realloc_41_bad
|
void CWE401_Memory_Leak__int_realloc_41_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a80(0,400);
*puVar1 = 5;
printIntLine(*puVar1);
badSink(puVar1);
return;
}
|
['gcc']
|
55,740
|
void CWE401_Memory_Leak__int_realloc_41_good()
{
goodB2G();
goodG2B();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99610/CWE401_Memory_Leak__int_realloc_41.c
|
CWE401_Memory_Leak__int_realloc_41_good
|
void CWE401_Memory_Leak__int_realloc_41_good(void)
{
goodB2G();
goodG2B();
return;
}
|
['gcc']
|
55,741
|
void CWE401_Memory_Leak__int_realloc_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/99611/CWE401_Memory_Leak__int_realloc_42.c
|
CWE401_Memory_Leak__int_realloc_42_bad
|
void CWE401_Memory_Leak__int_realloc_42_bad(void)
{
badSource(0);
return;
}
|
['gcc']
|
55,742
|
void CWE401_Memory_Leak__int_realloc_42_good()
{
goodB2G();
goodG2B();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99611/CWE401_Memory_Leak__int_realloc_42.c
|
CWE401_Memory_Leak__int_realloc_42_good
|
void CWE401_Memory_Leak__int_realloc_42_good(void)
{
goodB2G();
goodG2B();
return;
}
|
['gcc']
|
55,743
|
void CWE401_Memory_Leak__int_realloc_51_bad()
{
int * data;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)realloc(data, 100*sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
CWE401_Memory_Leak__int_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/99615/CWE401_Memory_Leak__int_realloc_51a.c
|
CWE401_Memory_Leak__int_realloc_51_bad
|
void CWE401_Memory_Leak__int_realloc_51_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a80(0,400);
*puVar1 = 5;
printIntLine(*puVar1);
CWE401_Memory_Leak__int_realloc_51b_badSink(puVar1);
return;
}
|
['gcc']
|
55,744
|
void CWE401_Memory_Leak__int_realloc_51_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99615/CWE401_Memory_Leak__int_realloc_51a.c
|
CWE401_Memory_Leak__int_realloc_51_good
|
void CWE401_Memory_Leak__int_realloc_51_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
55,745
|
void CWE401_Memory_Leak__int_realloc_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/99615/CWE401_Memory_Leak__int_realloc_51b.c
|
CWE401_Memory_Leak__int_realloc_51b_badSink
|
void CWE401_Memory_Leak__int_realloc_51b_badSink(void)
{
return;
}
|
['gcc']
|
55,746
|
void CWE401_Memory_Leak__int_realloc_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/99615/CWE401_Memory_Leak__int_realloc_51b.c
|
CWE401_Memory_Leak__int_realloc_51b_goodG2BSink
|
void CWE401_Memory_Leak__int_realloc_51b_goodG2BSink(void)
{
return;
}
|
['gcc']
|
55,747
|
void CWE401_Memory_Leak__int_realloc_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/99615/CWE401_Memory_Leak__int_realloc_51b.c
|
CWE401_Memory_Leak__int_realloc_51b_goodB2GSink
|
void CWE401_Memory_Leak__int_realloc_51b_goodB2GSink(undefined8 param_1)
{
func_0x00400a20(param_1);
return;
}
|
['gcc']
|
55,748
|
void CWE401_Memory_Leak__int_realloc_52_bad()
{
int * data;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)realloc(data, 100*sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
CWE401_Memory_Leak__int_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/99616/CWE401_Memory_Leak__int_realloc_52a.c
|
CWE401_Memory_Leak__int_realloc_52_bad
|
void CWE401_Memory_Leak__int_realloc_52_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a80(0,400);
*puVar1 = 5;
printIntLine(*puVar1);
CWE401_Memory_Leak__int_realloc_52b_badSink(puVar1);
return;
}
|
['gcc']
|
55,749
|
void CWE401_Memory_Leak__int_realloc_52_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99616/CWE401_Memory_Leak__int_realloc_52a.c
|
CWE401_Memory_Leak__int_realloc_52_good
|
void CWE401_Memory_Leak__int_realloc_52_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
55,750
|
void CWE401_Memory_Leak__int_realloc_52b_badSink(int * data)
{
CWE401_Memory_Leak__int_realloc_52c_badSink(data);
}
|
[]
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99616/CWE401_Memory_Leak__int_realloc_52b.c
|
CWE401_Memory_Leak__int_realloc_52b_badSink
|
void CWE401_Memory_Leak__int_realloc_52b_badSink(undefined8 param_1)
{
CWE401_Memory_Leak__int_realloc_52c_badSink(param_1);
return;
}
|
['gcc']
|
55,751
|
void CWE401_Memory_Leak__int_realloc_52b_goodG2BSink(int * data)
{
CWE401_Memory_Leak__int_realloc_52c_goodG2BSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99616/CWE401_Memory_Leak__int_realloc_52b.c
|
CWE401_Memory_Leak__int_realloc_52b_goodG2BSink
|
void CWE401_Memory_Leak__int_realloc_52b_goodG2BSink(undefined8 param_1)
{
CWE401_Memory_Leak__int_realloc_52c_goodG2BSink(param_1);
return;
}
|
['gcc']
|
55,752
|
void CWE401_Memory_Leak__int_realloc_52b_goodB2GSink(int * data)
{
CWE401_Memory_Leak__int_realloc_52c_goodB2GSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99616/CWE401_Memory_Leak__int_realloc_52b.c
|
CWE401_Memory_Leak__int_realloc_52b_goodB2GSink
|
void CWE401_Memory_Leak__int_realloc_52b_goodB2GSink(undefined8 param_1)
{
CWE401_Memory_Leak__int_realloc_52c_goodB2GSink(param_1);
return;
}
|
['gcc']
|
55,753
|
void CWE401_Memory_Leak__int_realloc_52c_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/99616/CWE401_Memory_Leak__int_realloc_52c.c
|
CWE401_Memory_Leak__int_realloc_52c_badSink
|
void CWE401_Memory_Leak__int_realloc_52c_badSink(void)
{
return;
}
|
['gcc']
|
55,754
|
void CWE401_Memory_Leak__int_realloc_52c_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/99616/CWE401_Memory_Leak__int_realloc_52c.c
|
CWE401_Memory_Leak__int_realloc_52c_goodG2BSink
|
void CWE401_Memory_Leak__int_realloc_52c_goodG2BSink(void)
{
return;
}
|
['gcc']
|
55,755
|
void CWE401_Memory_Leak__int_realloc_52c_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/99616/CWE401_Memory_Leak__int_realloc_52c.c
|
CWE401_Memory_Leak__int_realloc_52c_goodB2GSink
|
void CWE401_Memory_Leak__int_realloc_52c_goodB2GSink(undefined8 param_1)
{
func_0x00400a20(param_1);
return;
}
|
['gcc']
|
55,756
|
void CWE401_Memory_Leak__int_realloc_53_bad()
{
int * data;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)realloc(data, 100*sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
CWE401_Memory_Leak__int_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/99617/CWE401_Memory_Leak__int_realloc_53a.c
|
CWE401_Memory_Leak__int_realloc_53_bad
|
void CWE401_Memory_Leak__int_realloc_53_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a80(0,400);
*puVar1 = 5;
printIntLine(*puVar1);
CWE401_Memory_Leak__int_realloc_53b_badSink(puVar1);
return;
}
|
['gcc']
|
55,757
|
void CWE401_Memory_Leak__int_realloc_53_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99617/CWE401_Memory_Leak__int_realloc_53a.c
|
CWE401_Memory_Leak__int_realloc_53_good
|
void CWE401_Memory_Leak__int_realloc_53_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
55,758
|
void CWE401_Memory_Leak__int_realloc_53b_badSink(int * data)
{
CWE401_Memory_Leak__int_realloc_53c_badSink(data);
}
|
[]
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99617/CWE401_Memory_Leak__int_realloc_53b.c
|
CWE401_Memory_Leak__int_realloc_53b_badSink
|
void CWE401_Memory_Leak__int_realloc_53b_badSink(undefined8 param_1)
{
CWE401_Memory_Leak__int_realloc_53c_badSink(param_1);
return;
}
|
['gcc']
|
55,759
|
void CWE401_Memory_Leak__int_realloc_53b_goodG2BSink(int * data)
{
CWE401_Memory_Leak__int_realloc_53c_goodG2BSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99617/CWE401_Memory_Leak__int_realloc_53b.c
|
CWE401_Memory_Leak__int_realloc_53b_goodG2BSink
|
void CWE401_Memory_Leak__int_realloc_53b_goodG2BSink(undefined8 param_1)
{
CWE401_Memory_Leak__int_realloc_53c_goodG2BSink(param_1);
return;
}
|
['gcc']
|
55,760
|
void CWE401_Memory_Leak__int_realloc_53b_goodB2GSink(int * data)
{
CWE401_Memory_Leak__int_realloc_53c_goodB2GSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99617/CWE401_Memory_Leak__int_realloc_53b.c
|
CWE401_Memory_Leak__int_realloc_53b_goodB2GSink
|
void CWE401_Memory_Leak__int_realloc_53b_goodB2GSink(undefined8 param_1)
{
CWE401_Memory_Leak__int_realloc_53c_goodB2GSink(param_1);
return;
}
|
['gcc']
|
55,761
|
void CWE401_Memory_Leak__int_realloc_53c_badSink(int * data)
{
CWE401_Memory_Leak__int_realloc_53d_badSink(data);
}
|
[]
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99617/CWE401_Memory_Leak__int_realloc_53c.c
|
CWE401_Memory_Leak__int_realloc_53c_badSink
|
void CWE401_Memory_Leak__int_realloc_53c_badSink(undefined8 param_1)
{
CWE401_Memory_Leak__int_realloc_53d_badSink(param_1);
return;
}
|
['gcc']
|
55,762
|
void CWE401_Memory_Leak__int_realloc_53c_goodG2BSink(int * data)
{
CWE401_Memory_Leak__int_realloc_53d_goodG2BSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99617/CWE401_Memory_Leak__int_realloc_53c.c
|
CWE401_Memory_Leak__int_realloc_53c_goodG2BSink
|
void CWE401_Memory_Leak__int_realloc_53c_goodG2BSink(undefined8 param_1)
{
CWE401_Memory_Leak__int_realloc_53d_goodG2BSink(param_1);
return;
}
|
['gcc']
|
55,763
|
void CWE401_Memory_Leak__int_realloc_53c_goodB2GSink(int * data)
{
CWE401_Memory_Leak__int_realloc_53d_goodB2GSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99617/CWE401_Memory_Leak__int_realloc_53c.c
|
CWE401_Memory_Leak__int_realloc_53c_goodB2GSink
|
void CWE401_Memory_Leak__int_realloc_53c_goodB2GSink(undefined8 param_1)
{
CWE401_Memory_Leak__int_realloc_53d_goodB2GSink(param_1);
return;
}
|
['gcc']
|
55,764
|
void CWE401_Memory_Leak__int_realloc_53d_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/99617/CWE401_Memory_Leak__int_realloc_53d.c
|
CWE401_Memory_Leak__int_realloc_53d_badSink
|
void CWE401_Memory_Leak__int_realloc_53d_badSink(void)
{
return;
}
|
['gcc']
|
55,765
|
void CWE401_Memory_Leak__int_realloc_53d_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/99617/CWE401_Memory_Leak__int_realloc_53d.c
|
CWE401_Memory_Leak__int_realloc_53d_goodG2BSink
|
void CWE401_Memory_Leak__int_realloc_53d_goodG2BSink(void)
{
return;
}
|
['gcc']
|
55,766
|
void CWE401_Memory_Leak__int_realloc_53d_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/99617/CWE401_Memory_Leak__int_realloc_53d.c
|
CWE401_Memory_Leak__int_realloc_53d_goodB2GSink
|
void CWE401_Memory_Leak__int_realloc_53d_goodB2GSink(undefined8 param_1)
{
func_0x00400a20(param_1);
return;
}
|
['gcc']
|
55,767
|
void CWE401_Memory_Leak__int_realloc_54_bad()
{
int * data;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)realloc(data, 100*sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
CWE401_Memory_Leak__int_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/99618/CWE401_Memory_Leak__int_realloc_54a.c
|
CWE401_Memory_Leak__int_realloc_54_bad
|
void CWE401_Memory_Leak__int_realloc_54_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a80(0,400);
*puVar1 = 5;
printIntLine(*puVar1);
CWE401_Memory_Leak__int_realloc_54b_badSink(puVar1);
return;
}
|
['gcc']
|
55,768
|
void CWE401_Memory_Leak__int_realloc_54_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99618/CWE401_Memory_Leak__int_realloc_54a.c
|
CWE401_Memory_Leak__int_realloc_54_good
|
void CWE401_Memory_Leak__int_realloc_54_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
55,769
|
void CWE401_Memory_Leak__int_realloc_54b_badSink(int * data)
{
CWE401_Memory_Leak__int_realloc_54c_badSink(data);
}
|
[]
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99618/CWE401_Memory_Leak__int_realloc_54b.c
|
CWE401_Memory_Leak__int_realloc_54b_badSink
|
void CWE401_Memory_Leak__int_realloc_54b_badSink(undefined8 param_1)
{
CWE401_Memory_Leak__int_realloc_54c_badSink(param_1);
return;
}
|
['gcc']
|
55,770
|
void CWE401_Memory_Leak__int_realloc_54b_goodG2BSink(int * data)
{
CWE401_Memory_Leak__int_realloc_54c_goodG2BSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99618/CWE401_Memory_Leak__int_realloc_54b.c
|
CWE401_Memory_Leak__int_realloc_54b_goodG2BSink
|
void CWE401_Memory_Leak__int_realloc_54b_goodG2BSink(undefined8 param_1)
{
CWE401_Memory_Leak__int_realloc_54c_goodG2BSink(param_1);
return;
}
|
['gcc']
|
55,771
|
void CWE401_Memory_Leak__int_realloc_54b_goodB2GSink(int * data)
{
CWE401_Memory_Leak__int_realloc_54c_goodB2GSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99618/CWE401_Memory_Leak__int_realloc_54b.c
|
CWE401_Memory_Leak__int_realloc_54b_goodB2GSink
|
void CWE401_Memory_Leak__int_realloc_54b_goodB2GSink(undefined8 param_1)
{
CWE401_Memory_Leak__int_realloc_54c_goodB2GSink(param_1);
return;
}
|
['gcc']
|
55,772
|
void CWE401_Memory_Leak__int_realloc_54c_badSink(int * data)
{
CWE401_Memory_Leak__int_realloc_54d_badSink(data);
}
|
[]
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99618/CWE401_Memory_Leak__int_realloc_54c.c
|
CWE401_Memory_Leak__int_realloc_54c_badSink
|
void CWE401_Memory_Leak__int_realloc_54c_badSink(undefined8 param_1)
{
CWE401_Memory_Leak__int_realloc_54d_badSink(param_1);
return;
}
|
['gcc']
|
55,773
|
void CWE401_Memory_Leak__int_realloc_54c_goodG2BSink(int * data)
{
CWE401_Memory_Leak__int_realloc_54d_goodG2BSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99618/CWE401_Memory_Leak__int_realloc_54c.c
|
CWE401_Memory_Leak__int_realloc_54c_goodG2BSink
|
void CWE401_Memory_Leak__int_realloc_54c_goodG2BSink(undefined8 param_1)
{
CWE401_Memory_Leak__int_realloc_54d_goodG2BSink(param_1);
return;
}
|
['gcc']
|
55,774
|
void CWE401_Memory_Leak__int_realloc_54c_goodB2GSink(int * data)
{
CWE401_Memory_Leak__int_realloc_54d_goodB2GSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99618/CWE401_Memory_Leak__int_realloc_54c.c
|
CWE401_Memory_Leak__int_realloc_54c_goodB2GSink
|
void CWE401_Memory_Leak__int_realloc_54c_goodB2GSink(undefined8 param_1)
{
CWE401_Memory_Leak__int_realloc_54d_goodB2GSink(param_1);
return;
}
|
['gcc']
|
55,775
|
void CWE401_Memory_Leak__int_realloc_54d_badSink(int * data)
{
CWE401_Memory_Leak__int_realloc_54e_badSink(data);
}
|
[]
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99618/CWE401_Memory_Leak__int_realloc_54d.c
|
CWE401_Memory_Leak__int_realloc_54d_badSink
|
void CWE401_Memory_Leak__int_realloc_54d_badSink(undefined8 param_1)
{
CWE401_Memory_Leak__int_realloc_54e_badSink(param_1);
return;
}
|
['gcc']
|
55,776
|
void CWE401_Memory_Leak__int_realloc_54d_goodG2BSink(int * data)
{
CWE401_Memory_Leak__int_realloc_54e_goodG2BSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99618/CWE401_Memory_Leak__int_realloc_54d.c
|
CWE401_Memory_Leak__int_realloc_54d_goodG2BSink
|
void CWE401_Memory_Leak__int_realloc_54d_goodG2BSink(undefined8 param_1)
{
CWE401_Memory_Leak__int_realloc_54e_goodG2BSink(param_1);
return;
}
|
['gcc']
|
55,777
|
void CWE401_Memory_Leak__int_realloc_54d_goodB2GSink(int * data)
{
CWE401_Memory_Leak__int_realloc_54e_goodB2GSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99618/CWE401_Memory_Leak__int_realloc_54d.c
|
CWE401_Memory_Leak__int_realloc_54d_goodB2GSink
|
void CWE401_Memory_Leak__int_realloc_54d_goodB2GSink(undefined8 param_1)
{
CWE401_Memory_Leak__int_realloc_54e_goodB2GSink(param_1);
return;
}
|
['gcc']
|
55,778
|
void CWE401_Memory_Leak__int_realloc_54e_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/99618/CWE401_Memory_Leak__int_realloc_54e.c
|
CWE401_Memory_Leak__int_realloc_54e_badSink
|
void CWE401_Memory_Leak__int_realloc_54e_badSink(void)
{
return;
}
|
['gcc']
|
55,779
|
void CWE401_Memory_Leak__int_realloc_54e_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/99618/CWE401_Memory_Leak__int_realloc_54e.c
|
CWE401_Memory_Leak__int_realloc_54e_goodG2BSink
|
void CWE401_Memory_Leak__int_realloc_54e_goodG2BSink(void)
{
return;
}
|
['gcc']
|
55,780
|
void CWE401_Memory_Leak__int_realloc_54e_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/99618/CWE401_Memory_Leak__int_realloc_54e.c
|
CWE401_Memory_Leak__int_realloc_54e_goodB2GSink
|
void CWE401_Memory_Leak__int_realloc_54e_goodB2GSink(undefined8 param_1)
{
func_0x00400a20(param_1);
return;
}
|
['gcc']
|
55,781
|
void CWE401_Memory_Leak__int_realloc_61_bad()
{
int * data;
data = NULL;
data = CWE401_Memory_Leak__int_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/99619/CWE401_Memory_Leak__int_realloc_61a.c
|
CWE401_Memory_Leak__int_realloc_61_bad
|
void CWE401_Memory_Leak__int_realloc_61_bad(void)
{
CWE401_Memory_Leak__int_realloc_61b_badSource(0);
return;
}
|
['gcc']
|
55,782
|
void CWE401_Memory_Leak__int_realloc_61_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99619/CWE401_Memory_Leak__int_realloc_61a.c
|
CWE401_Memory_Leak__int_realloc_61_good
|
void CWE401_Memory_Leak__int_realloc_61_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
55,783
|
int * CWE401_Memory_Leak__int_realloc_61b_badSource(int * data)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)realloc(data, 100*sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(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/99619/CWE401_Memory_Leak__int_realloc_61b.c
|
CWE401_Memory_Leak__int_realloc_61b_badSource
|
undefined4 * CWE401_Memory_Leak__int_realloc_61b_badSource(undefined8 param_1)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a80(param_1,400);
*puVar1 = 5;
printIntLine(*puVar1);
return puVar1;
}
|
['gcc']
|
55,784
|
int * CWE401_Memory_Leak__int_realloc_61b_goodG2BSource(int * data)
{
/* 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]);
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/99619/CWE401_Memory_Leak__int_realloc_61b.c
|
CWE401_Memory_Leak__int_realloc_61b_goodG2BSource
|
/* WARNING: Heritage AFTER dead removal. Example location: s0xfffffffffffffe50 : 0x00400c22 */
/* WARNING: Restarted to delay deadcode elimination for space: stack */
undefined4 *
CWE401_Memory_Leak__int_realloc_61b_goodG2BSource(undefined8 param_1,undefined8 param_2)
{
undefined4 auStack_1b0 [104];
undefined4 *puStack_10;
puStack_10 = auStack_1b0;
auStack_1b0[0] = 5;
printIntLine(5,param_2,7);
return puStack_10;
}
|
['gcc']
|
55,785
|
int * CWE401_Memory_Leak__int_realloc_61b_goodB2GSource(int * data)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)realloc(data, 100*sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(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/99619/CWE401_Memory_Leak__int_realloc_61b.c
|
CWE401_Memory_Leak__int_realloc_61b_goodB2GSource
|
undefined4 * CWE401_Memory_Leak__int_realloc_61b_goodB2GSource(undefined8 param_1)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ad0(param_1,400);
*puVar1 = 5;
printIntLine(*puVar1);
return puVar1;
}
|
['gcc']
|
55,786
|
void CWE401_Memory_Leak__int_realloc_63_bad()
{
int * data;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)realloc(data, 100*sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
CWE401_Memory_Leak__int_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/99621/CWE401_Memory_Leak__int_realloc_63a.c
|
CWE401_Memory_Leak__int_realloc_63_bad
|
void CWE401_Memory_Leak__int_realloc_63_bad(void)
{
undefined4 *puStack_10;
puStack_10 = (undefined4 *)0x0;
puStack_10 = (undefined4 *)func_0x00400a80(0,400);
*puStack_10 = 5;
printIntLine(*puStack_10);
CWE401_Memory_Leak__int_realloc_63b_badSink(&puStack_10);
return;
}
|
['gcc']
|
55,787
|
void CWE401_Memory_Leak__int_realloc_63_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99621/CWE401_Memory_Leak__int_realloc_63a.c
|
CWE401_Memory_Leak__int_realloc_63_good
|
void CWE401_Memory_Leak__int_realloc_63_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
55,788
|
void CWE401_Memory_Leak__int_realloc_63b_badSink(int * * dataPtr)
{
int * 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/99621/CWE401_Memory_Leak__int_realloc_63b.c
|
CWE401_Memory_Leak__int_realloc_63b_badSink
|
void CWE401_Memory_Leak__int_realloc_63b_badSink(void)
{
return;
}
|
['gcc']
|
55,789
|
void CWE401_Memory_Leak__int_realloc_63b_goodG2BSink(int * * dataPtr)
{
int * 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/99621/CWE401_Memory_Leak__int_realloc_63b.c
|
CWE401_Memory_Leak__int_realloc_63b_goodG2BSink
|
void CWE401_Memory_Leak__int_realloc_63b_goodG2BSink(void)
{
return;
}
|
['gcc']
|
55,790
|
void CWE401_Memory_Leak__int_realloc_63b_goodB2GSink(int * * dataPtr)
{
int * 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/99621/CWE401_Memory_Leak__int_realloc_63b.c
|
CWE401_Memory_Leak__int_realloc_63b_goodB2GSink
|
void CWE401_Memory_Leak__int_realloc_63b_goodB2GSink(undefined8 *param_1)
{
func_0x00400a20(*param_1);
return;
}
|
['gcc']
|
55,791
|
void CWE401_Memory_Leak__int_realloc_64_bad()
{
int * data;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)realloc(data, 100*sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
CWE401_Memory_Leak__int_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/99622/CWE401_Memory_Leak__int_realloc_64a.c
|
CWE401_Memory_Leak__int_realloc_64_bad
|
void CWE401_Memory_Leak__int_realloc_64_bad(void)
{
undefined4 *puStack_10;
puStack_10 = (undefined4 *)0x0;
puStack_10 = (undefined4 *)func_0x00400a80(0,400);
*puStack_10 = 5;
printIntLine(*puStack_10);
CWE401_Memory_Leak__int_realloc_64b_badSink(&puStack_10);
return;
}
|
['gcc']
|
55,792
|
void CWE401_Memory_Leak__int_realloc_64_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99622/CWE401_Memory_Leak__int_realloc_64a.c
|
CWE401_Memory_Leak__int_realloc_64_good
|
void CWE401_Memory_Leak__int_realloc_64_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
55,793
|
void CWE401_Memory_Leak__int_realloc_64b_badSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
int * * dataPtr = (int * *)dataVoidPtr;
/* dereference dataPtr into data */
int * data = (*dataPtr);
/* POTENTIAL FLAW: 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/99622/CWE401_Memory_Leak__int_realloc_64b.c
|
CWE401_Memory_Leak__int_realloc_64b_badSink
|
void CWE401_Memory_Leak__int_realloc_64b_badSink(void)
{
return;
}
|
['gcc']
|
55,794
|
void CWE401_Memory_Leak__int_realloc_64b_goodG2BSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
int * * dataPtr = (int * *)dataVoidPtr;
/* dereference dataPtr into data */
int * data = (*dataPtr);
/* POTENTIAL FLAW: 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/99622/CWE401_Memory_Leak__int_realloc_64b.c
|
CWE401_Memory_Leak__int_realloc_64b_goodG2BSink
|
void CWE401_Memory_Leak__int_realloc_64b_goodG2BSink(void)
{
return;
}
|
['gcc']
|
55,795
|
void CWE401_Memory_Leak__int_realloc_64b_goodB2GSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
int * * dataPtr = (int * *)dataVoidPtr;
/* dereference dataPtr into data */
int * data = (*dataPtr);
/* FIX: 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/99622/CWE401_Memory_Leak__int_realloc_64b.c
|
CWE401_Memory_Leak__int_realloc_64b_goodB2GSink
|
void CWE401_Memory_Leak__int_realloc_64b_goodB2GSink(undefined8 *param_1)
{
func_0x00400a20(*param_1);
return;
}
|
['gcc']
|
55,796
|
void CWE401_Memory_Leak__int_realloc_66_bad()
{
int * data;
int * dataArray[5];
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (int *)realloc(data, 100*sizeof(int));
/* Initialize and make use of data */
data[0] = 5;
printIntLine(data[0]);
/* put data in array */
dataArray[2] = data;
CWE401_Memory_Leak__int_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/99624/CWE401_Memory_Leak__int_realloc_66a.c
|
CWE401_Memory_Leak__int_realloc_66_bad
|
void CWE401_Memory_Leak__int_realloc_66_bad(void)
{
undefined auStack_38 [16];
undefined4 *puStack_28;
undefined4 *puStack_10;
puStack_10 = (undefined4 *)0x0;
puStack_10 = (undefined4 *)func_0x00400a80(0,400);
*puStack_10 = 5;
printIntLine(*puStack_10);
puStack_28 = puStack_10;
CWE401_Memory_Leak__int_realloc_66b_badSink(auStack_38);
return;
}
|
['gcc']
|
55,797
|
void CWE401_Memory_Leak__int_realloc_66_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99624/CWE401_Memory_Leak__int_realloc_66a.c
|
CWE401_Memory_Leak__int_realloc_66_good
|
void CWE401_Memory_Leak__int_realloc_66_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
55,798
|
void CWE401_Memory_Leak__int_realloc_66b_badSink(int * dataArray[])
{
/* copy data out of dataArray */
int * 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/99624/CWE401_Memory_Leak__int_realloc_66b.c
|
CWE401_Memory_Leak__int_realloc_66b_badSink
|
void CWE401_Memory_Leak__int_realloc_66b_badSink(void)
{
return;
}
|
['gcc']
|
55,799
|
void CWE401_Memory_Leak__int_realloc_66b_goodG2BSink(int * dataArray[])
{
int * 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/99624/CWE401_Memory_Leak__int_realloc_66b.c
|
CWE401_Memory_Leak__int_realloc_66b_goodG2BSink
|
void CWE401_Memory_Leak__int_realloc_66b_goodG2BSink(void)
{
return;
}
|
['gcc']
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.