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 |
|---|---|---|---|---|---|---|---|---|
700
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_16_good()
{
goodB2G();
goodG2B();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100681/CWE401_Memory_Leak__twoIntsStruct_realloc_16.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_16_good
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_16_good(void)
{
goodB2G();
goodG2B();
return;
}
|
['gcc']
|
701
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_17_bad()
{
int i,j;
twoIntsStruct * data;
data = NULL;
for(i = 0; i < 1; i++)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (twoIntsStruct *)realloc(data, 100*sizeof(twoIntsStruct));
/* Initialize and make use of data */
data[0].intOne = 0;
data[0].intTwo = 0;
printStructLine(&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/100682/CWE401_Memory_Leak__twoIntsStruct_realloc_17.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_17_bad
|
void CWE401_Memory_Leak__twoIntsStruct_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,800);
*puStack_18 = 0;
puStack_18[1] = 0;
printStructLine(puStack_18);
}
for (iStack_10 = 0; iStack_10 < 1; iStack_10 = iStack_10 + 1) {
}
return;
}
|
['gcc']
|
702
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_17_good()
{
goodB2G();
goodG2B();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100682/CWE401_Memory_Leak__twoIntsStruct_realloc_17.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_17_good
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_17_good(void)
{
goodB2G();
goodG2B();
return;
}
|
['gcc']
|
703
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_18_bad()
{
twoIntsStruct * data;
data = NULL;
goto source;
source:
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (twoIntsStruct *)realloc(data, 100*sizeof(twoIntsStruct));
/* Initialize and make use of data */
data[0].intOne = 0;
data[0].intTwo = 0;
printStructLine(&data[0]);
goto sink;
sink:
/* 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/100683/CWE401_Memory_Leak__twoIntsStruct_realloc_18.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_18_bad
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_18_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a80(0,800);
*puVar1 = 0;
puVar1[1] = 0;
printStructLine(puVar1);
return;
}
|
['gcc']
|
704
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_18_good()
{
goodB2G();
goodG2B();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100683/CWE401_Memory_Leak__twoIntsStruct_realloc_18.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_18_good
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_18_good(void)
{
goodB2G();
goodG2B();
return;
}
|
['gcc']
|
705
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_21_bad()
{
twoIntsStruct * data;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (twoIntsStruct *)realloc(data, 100*sizeof(twoIntsStruct));
/* Initialize and make use of data */
data[0].intOne = 0;
data[0].intTwo = 0;
printStructLine(&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/100684/CWE401_Memory_Leak__twoIntsStruct_realloc_21.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_21_bad
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_21_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a80(0,800);
*puVar1 = 0;
puVar1[1] = 0;
printStructLine(puVar1);
badStatic = 1;
badSink(puVar1);
return;
}
|
['gcc']
|
706
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_21_good()
{
goodB2G1();
goodB2G2();
goodG2B();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100684/CWE401_Memory_Leak__twoIntsStruct_realloc_21.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_21_good
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_21_good(void)
{
goodB2G1();
goodB2G2();
goodG2B();
return;
}
|
['gcc']
|
707
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_22_bad()
{
twoIntsStruct * data;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (twoIntsStruct *)realloc(data, 100*sizeof(twoIntsStruct));
/* Initialize and make use of data */
data[0].intOne = 0;
data[0].intTwo = 0;
printStructLine(&data[0]);
CWE401_Memory_Leak__twoIntsStruct_realloc_22_badGlobal = 1; /* true */
CWE401_Memory_Leak__twoIntsStruct_realloc_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/100685/CWE401_Memory_Leak__twoIntsStruct_realloc_22a.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_22_bad
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_22_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a80(0,800);
*puVar1 = 0;
puVar1[1] = 0;
printStructLine(puVar1);
CWE401_Memory_Leak__twoIntsStruct_realloc_22_badGlobal = 1;
CWE401_Memory_Leak__twoIntsStruct_realloc_22_badSink(puVar1);
return;
}
|
['gcc']
|
708
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_22_good()
{
goodB2G1();
goodB2G2();
goodG2B();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100685/CWE401_Memory_Leak__twoIntsStruct_realloc_22a.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_22_good
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_22_good(void)
{
goodB2G1();
goodB2G2();
goodG2B();
return;
}
|
['gcc']
|
709
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_22_badSink(twoIntsStruct * data)
{
if(CWE401_Memory_Leak__twoIntsStruct_realloc_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/100685/CWE401_Memory_Leak__twoIntsStruct_realloc_22b.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_22_badSink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_22_badSink(void)
{
return;
}
|
['gcc']
|
710
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_22_goodB2G1Sink(twoIntsStruct * data)
{
if(CWE401_Memory_Leak__twoIntsStruct_realloc_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/100685/CWE401_Memory_Leak__twoIntsStruct_realloc_22b.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_22_goodB2G1Sink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_22_goodB2G1Sink(undefined8 param_1)
{
if (CWE401_Memory_Leak__twoIntsStruct_realloc_22_goodB2G1Global == 0) {
func_0x00400a20(param_1);
}
else {
printLine(&UNK_00401314);
}
return;
}
|
['gcc']
|
711
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_22_goodB2G2Sink(twoIntsStruct * data)
{
if(CWE401_Memory_Leak__twoIntsStruct_realloc_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/100685/CWE401_Memory_Leak__twoIntsStruct_realloc_22b.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_22_goodB2G2Sink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_22_goodB2G2Sink(undefined8 param_1)
{
if (CWE401_Memory_Leak__twoIntsStruct_realloc_22_goodB2G2Global != 0) {
func_0x00400a20(param_1);
}
return;
}
|
['gcc']
|
712
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_22_goodG2BSink(twoIntsStruct * data)
{
if(CWE401_Memory_Leak__twoIntsStruct_realloc_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/100685/CWE401_Memory_Leak__twoIntsStruct_realloc_22b.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_22_goodG2BSink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_22_goodG2BSink(void)
{
return;
}
|
['gcc']
|
713
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_31_bad()
{
twoIntsStruct * data;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (twoIntsStruct *)realloc(data, 100*sizeof(twoIntsStruct));
/* Initialize and make use of data */
data[0].intOne = 0;
data[0].intTwo = 0;
printStructLine(&data[0]);
{
twoIntsStruct * dataCopy = data;
twoIntsStruct * 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/100686/CWE401_Memory_Leak__twoIntsStruct_realloc_31.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_31_bad
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_31_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a80(0,800);
*puVar1 = 0;
puVar1[1] = 0;
printStructLine(puVar1);
return;
}
|
['gcc']
|
714
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_31_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100686/CWE401_Memory_Leak__twoIntsStruct_realloc_31.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_31_good
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_31_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
715
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_32_bad()
{
twoIntsStruct * data;
twoIntsStruct * *dataPtr1 = &data;
twoIntsStruct * *dataPtr2 = &data;
data = NULL;
{
twoIntsStruct * data = *dataPtr1;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (twoIntsStruct *)realloc(data, 100*sizeof(twoIntsStruct));
/* Initialize and make use of data */
data[0].intOne = 0;
data[0].intTwo = 0;
printStructLine(&data[0]);
*dataPtr1 = data;
}
{
twoIntsStruct * 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/100687/CWE401_Memory_Leak__twoIntsStruct_realloc_32.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_32_bad
|
/* WARNING: Restarted to delay deadcode elimination for space: stack */
void CWE401_Memory_Leak__twoIntsStruct_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,800);
*puStack_20 = 0;
puStack_20[1] = 0;
printStructLine(puStack_20);
*puStack_10 = puStack_20;
return;
}
|
['gcc']
|
716
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_32_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100687/CWE401_Memory_Leak__twoIntsStruct_realloc_32.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_32_good
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_32_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
717
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_34_bad()
{
twoIntsStruct * data;
CWE401_Memory_Leak__twoIntsStruct_realloc_34_unionType myUnion;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (twoIntsStruct *)realloc(data, 100*sizeof(twoIntsStruct));
/* Initialize and make use of data */
data[0].intOne = 0;
data[0].intTwo = 0;
printStructLine(&data[0]);
myUnion.unionFirst = data;
{
twoIntsStruct * 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/100689/CWE401_Memory_Leak__twoIntsStruct_realloc_34.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_34_bad
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_34_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a80(0,800);
*puVar1 = 0;
puVar1[1] = 0;
printStructLine(puVar1);
return;
}
|
['gcc']
|
718
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_34_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100689/CWE401_Memory_Leak__twoIntsStruct_realloc_34.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_34_good
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_34_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
719
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_41_bad()
{
twoIntsStruct * data;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (twoIntsStruct *)realloc(data, 100*sizeof(twoIntsStruct));
/* Initialize and make use of data */
data[0].intOne = 0;
data[0].intTwo = 0;
printStructLine(&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/100690/CWE401_Memory_Leak__twoIntsStruct_realloc_41.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_41_bad
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_41_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a80(0,800);
*puVar1 = 0;
puVar1[1] = 0;
printStructLine(puVar1);
badSink(puVar1);
return;
}
|
['gcc']
|
720
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_41_good()
{
goodB2G();
goodG2B();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100690/CWE401_Memory_Leak__twoIntsStruct_realloc_41.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_41_good
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_41_good(void)
{
goodB2G();
goodG2B();
return;
}
|
['gcc']
|
721
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_42_bad()
{
twoIntsStruct * 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/100691/CWE401_Memory_Leak__twoIntsStruct_realloc_42.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_42_bad
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_42_bad(void)
{
badSource(0);
return;
}
|
['gcc']
|
722
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_42_good()
{
goodB2G();
goodG2B();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100691/CWE401_Memory_Leak__twoIntsStruct_realloc_42.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_42_good
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_42_good(void)
{
goodB2G();
goodG2B();
return;
}
|
['gcc']
|
723
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_44_bad()
{
twoIntsStruct * data;
/* define a function pointer */
void (*funcPtr) (twoIntsStruct *) = badSink;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (twoIntsStruct *)realloc(data, 100*sizeof(twoIntsStruct));
/* Initialize and make use of data */
data[0].intOne = 0;
data[0].intTwo = 0;
printStructLine(&data[0]);
/* use the function pointer */
funcPtr(data);
}
|
['/* define a function pointer */', '/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* use the function pointer */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100693/CWE401_Memory_Leak__twoIntsStruct_realloc_44.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_44_bad
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_44_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a80(0,800);
*puVar1 = 0;
puVar1[1] = 0;
printStructLine(puVar1);
badSink(puVar1);
return;
}
|
['gcc']
|
724
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_44_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100693/CWE401_Memory_Leak__twoIntsStruct_realloc_44.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_44_good
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_44_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
725
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_53_bad()
{
twoIntsStruct * data;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (twoIntsStruct *)realloc(data, 100*sizeof(twoIntsStruct));
/* Initialize and make use of data */
data[0].intOne = 0;
data[0].intTwo = 0;
printStructLine(&data[0]);
CWE401_Memory_Leak__twoIntsStruct_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/100697/CWE401_Memory_Leak__twoIntsStruct_realloc_53a.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_53_bad
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_53_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a80(0,800);
*puVar1 = 0;
puVar1[1] = 0;
printStructLine(puVar1);
CWE401_Memory_Leak__twoIntsStruct_realloc_53b_badSink(puVar1);
return;
}
|
['gcc']
|
726
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_53_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100697/CWE401_Memory_Leak__twoIntsStruct_realloc_53a.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_53_good
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_53_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
727
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_53b_badSink(twoIntsStruct * data)
{
CWE401_Memory_Leak__twoIntsStruct_realloc_53c_badSink(data);
}
|
[]
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100697/CWE401_Memory_Leak__twoIntsStruct_realloc_53b.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_53b_badSink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_53b_badSink(undefined8 param_1)
{
CWE401_Memory_Leak__twoIntsStruct_realloc_53c_badSink(param_1);
return;
}
|
['gcc']
|
728
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_53b_goodG2BSink(twoIntsStruct * data)
{
CWE401_Memory_Leak__twoIntsStruct_realloc_53c_goodG2BSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100697/CWE401_Memory_Leak__twoIntsStruct_realloc_53b.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_53b_goodG2BSink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_53b_goodG2BSink(undefined8 param_1)
{
CWE401_Memory_Leak__twoIntsStruct_realloc_53c_goodG2BSink(param_1);
return;
}
|
['gcc']
|
729
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_53b_goodB2GSink(twoIntsStruct * data)
{
CWE401_Memory_Leak__twoIntsStruct_realloc_53c_goodB2GSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100697/CWE401_Memory_Leak__twoIntsStruct_realloc_53b.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_53b_goodB2GSink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_53b_goodB2GSink(undefined8 param_1)
{
CWE401_Memory_Leak__twoIntsStruct_realloc_53c_goodB2GSink(param_1);
return;
}
|
['gcc']
|
730
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_53c_badSink(twoIntsStruct * data)
{
CWE401_Memory_Leak__twoIntsStruct_realloc_53d_badSink(data);
}
|
[]
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100697/CWE401_Memory_Leak__twoIntsStruct_realloc_53c.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_53c_badSink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_53c_badSink(undefined8 param_1)
{
CWE401_Memory_Leak__twoIntsStruct_realloc_53d_badSink(param_1);
return;
}
|
['gcc']
|
731
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_53c_goodG2BSink(twoIntsStruct * data)
{
CWE401_Memory_Leak__twoIntsStruct_realloc_53d_goodG2BSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100697/CWE401_Memory_Leak__twoIntsStruct_realloc_53c.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_53c_goodG2BSink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_53c_goodG2BSink(undefined8 param_1)
{
CWE401_Memory_Leak__twoIntsStruct_realloc_53d_goodG2BSink(param_1);
return;
}
|
['gcc']
|
732
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_53c_goodB2GSink(twoIntsStruct * data)
{
CWE401_Memory_Leak__twoIntsStruct_realloc_53d_goodB2GSink(data);
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100697/CWE401_Memory_Leak__twoIntsStruct_realloc_53c.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_53c_goodB2GSink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_53c_goodB2GSink(undefined8 param_1)
{
CWE401_Memory_Leak__twoIntsStruct_realloc_53d_goodB2GSink(param_1);
return;
}
|
['gcc']
|
733
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_53d_badSink(twoIntsStruct * 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/100697/CWE401_Memory_Leak__twoIntsStruct_realloc_53d.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_53d_badSink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_53d_badSink(void)
{
return;
}
|
['gcc']
|
734
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_53d_goodG2BSink(twoIntsStruct * 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/100697/CWE401_Memory_Leak__twoIntsStruct_realloc_53d.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_53d_goodG2BSink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_53d_goodG2BSink(void)
{
return;
}
|
['gcc']
|
735
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_53d_goodB2GSink(twoIntsStruct * 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/100697/CWE401_Memory_Leak__twoIntsStruct_realloc_53d.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_53d_goodB2GSink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_53d_goodB2GSink(undefined8 param_1)
{
func_0x00400a20(param_1);
return;
}
|
['gcc']
|
736
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_61_bad()
{
twoIntsStruct * data;
data = NULL;
data = CWE401_Memory_Leak__twoIntsStruct_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/100699/CWE401_Memory_Leak__twoIntsStruct_realloc_61a.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_61_bad
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_61_bad(void)
{
CWE401_Memory_Leak__twoIntsStruct_realloc_61b_badSource(0);
return;
}
|
['gcc']
|
737
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_61_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100699/CWE401_Memory_Leak__twoIntsStruct_realloc_61a.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_61_good
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_61_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
738
|
twoIntsStruct * CWE401_Memory_Leak__twoIntsStruct_realloc_61b_badSource(twoIntsStruct * data)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (twoIntsStruct *)realloc(data, 100*sizeof(twoIntsStruct));
/* Initialize and make use of data */
data[0].intOne = 0;
data[0].intTwo = 0;
printStructLine(&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/100699/CWE401_Memory_Leak__twoIntsStruct_realloc_61b.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_61b_badSource
|
undefined4 * CWE401_Memory_Leak__twoIntsStruct_realloc_61b_badSource(undefined8 param_1)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a80(param_1,800);
*puVar1 = 0;
puVar1[1] = 0;
printStructLine(puVar1);
return puVar1;
}
|
['gcc']
|
739
|
twoIntsStruct * CWE401_Memory_Leak__twoIntsStruct_realloc_61b_goodG2BSource(twoIntsStruct * data)
{
/* FIX: Use memory allocated on the stack with ALLOCA */
data = (twoIntsStruct *)ALLOCA(100*sizeof(twoIntsStruct));
/* Initialize and make use of data */
data[0].intOne = 0;
data[0].intTwo = 0;
printStructLine(&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/100699/CWE401_Memory_Leak__twoIntsStruct_realloc_61b.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_61b_goodG2BSource
|
undefined4 *
CWE401_Memory_Leak__twoIntsStruct_realloc_61b_goodG2BSource(undefined8 param_1,undefined8 param_2)
{
undefined4 uStack_340;
undefined4 uStack_33c;
undefined4 *puStack_10;
puStack_10 = &uStack_340;
uStack_340 = 0;
uStack_33c = 0;
printStructLine(puStack_10,param_2,7);
return puStack_10;
}
|
['gcc']
|
740
|
twoIntsStruct * CWE401_Memory_Leak__twoIntsStruct_realloc_61b_goodB2GSource(twoIntsStruct * data)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (twoIntsStruct *)realloc(data, 100*sizeof(twoIntsStruct));
/* Initialize and make use of data */
data[0].intOne = 0;
data[0].intTwo = 0;
printStructLine(&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/100699/CWE401_Memory_Leak__twoIntsStruct_realloc_61b.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_61b_goodB2GSource
|
undefined4 * CWE401_Memory_Leak__twoIntsStruct_realloc_61b_goodB2GSource(undefined8 param_1)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400ad0(param_1,800);
*puVar1 = 0;
puVar1[1] = 0;
printStructLine(puVar1);
return puVar1;
}
|
['gcc']
|
741
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_63_bad()
{
twoIntsStruct * data;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (twoIntsStruct *)realloc(data, 100*sizeof(twoIntsStruct));
/* Initialize and make use of data */
data[0].intOne = 0;
data[0].intTwo = 0;
printStructLine(&data[0]);
CWE401_Memory_Leak__twoIntsStruct_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/100701/CWE401_Memory_Leak__twoIntsStruct_realloc_63a.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_63_bad
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_63_bad(void)
{
undefined4 *puStack_10;
puStack_10 = (undefined4 *)0x0;
puStack_10 = (undefined4 *)func_0x00400a80(0,800);
*puStack_10 = 0;
puStack_10[1] = 0;
printStructLine(puStack_10);
CWE401_Memory_Leak__twoIntsStruct_realloc_63b_badSink(&puStack_10);
return;
}
|
['gcc']
|
742
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_63_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100701/CWE401_Memory_Leak__twoIntsStruct_realloc_63a.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_63_good
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_63_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
743
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_63b_badSink(twoIntsStruct * * dataPtr)
{
twoIntsStruct * 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/100701/CWE401_Memory_Leak__twoIntsStruct_realloc_63b.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_63b_badSink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_63b_badSink(void)
{
return;
}
|
['gcc']
|
744
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_63b_goodG2BSink(twoIntsStruct * * dataPtr)
{
twoIntsStruct * 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/100701/CWE401_Memory_Leak__twoIntsStruct_realloc_63b.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_63b_goodG2BSink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_63b_goodG2BSink(void)
{
return;
}
|
['gcc']
|
745
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_63b_goodB2GSink(twoIntsStruct * * dataPtr)
{
twoIntsStruct * 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/100701/CWE401_Memory_Leak__twoIntsStruct_realloc_63b.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_63b_goodB2GSink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_63b_goodB2GSink(undefined8 *param_1)
{
func_0x00400a20(*param_1);
return;
}
|
['gcc']
|
746
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_64_bad()
{
twoIntsStruct * data;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (twoIntsStruct *)realloc(data, 100*sizeof(twoIntsStruct));
/* Initialize and make use of data */
data[0].intOne = 0;
data[0].intTwo = 0;
printStructLine(&data[0]);
CWE401_Memory_Leak__twoIntsStruct_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/100702/CWE401_Memory_Leak__twoIntsStruct_realloc_64a.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_64_bad
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_64_bad(void)
{
undefined4 *puStack_10;
puStack_10 = (undefined4 *)0x0;
puStack_10 = (undefined4 *)func_0x00400a80(0,800);
*puStack_10 = 0;
puStack_10[1] = 0;
printStructLine(puStack_10);
CWE401_Memory_Leak__twoIntsStruct_realloc_64b_badSink(&puStack_10);
return;
}
|
['gcc']
|
747
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_64_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100702/CWE401_Memory_Leak__twoIntsStruct_realloc_64a.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_64_good
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_64_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
748
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_64b_badSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
twoIntsStruct * * dataPtr = (twoIntsStruct * *)dataVoidPtr;
/* dereference dataPtr into data */
twoIntsStruct * 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/100702/CWE401_Memory_Leak__twoIntsStruct_realloc_64b.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_64b_badSink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_64b_badSink(void)
{
return;
}
|
['gcc']
|
749
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_64b_goodG2BSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
twoIntsStruct * * dataPtr = (twoIntsStruct * *)dataVoidPtr;
/* dereference dataPtr into data */
twoIntsStruct * 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/100702/CWE401_Memory_Leak__twoIntsStruct_realloc_64b.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_64b_goodG2BSink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_64b_goodG2BSink(void)
{
return;
}
|
['gcc']
|
750
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_64b_goodB2GSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
twoIntsStruct * * dataPtr = (twoIntsStruct * *)dataVoidPtr;
/* dereference dataPtr into data */
twoIntsStruct * 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/100702/CWE401_Memory_Leak__twoIntsStruct_realloc_64b.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_64b_goodB2GSink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_64b_goodB2GSink(undefined8 *param_1)
{
func_0x00400a20(*param_1);
return;
}
|
['gcc']
|
751
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_65_bad()
{
twoIntsStruct * data;
/* define a function pointer */
void (*funcPtr) (twoIntsStruct *) = CWE401_Memory_Leak__twoIntsStruct_realloc_65b_badSink;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (twoIntsStruct *)realloc(data, 100*sizeof(twoIntsStruct));
/* Initialize and make use of data */
data[0].intOne = 0;
data[0].intTwo = 0;
printStructLine(&data[0]);
/* use the function pointer */
funcPtr(data);
}
|
['/* define a function pointer */', '/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */', '/* use the function pointer */']
|
['CWE401']
|
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100703/CWE401_Memory_Leak__twoIntsStruct_realloc_65a.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_65_bad
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_65_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a80(0,800);
*puVar1 = 0;
puVar1[1] = 0;
printStructLine(puVar1);
CWE401_Memory_Leak__twoIntsStruct_realloc_65b_badSink(puVar1);
return;
}
|
['gcc']
|
752
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_65_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100703/CWE401_Memory_Leak__twoIntsStruct_realloc_65a.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_65_good
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_65_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
753
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_65b_badSink(twoIntsStruct * 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/100703/CWE401_Memory_Leak__twoIntsStruct_realloc_65b.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_65b_badSink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_65b_badSink(void)
{
return;
}
|
['gcc']
|
754
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_65b_goodG2BSink(twoIntsStruct * 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/100703/CWE401_Memory_Leak__twoIntsStruct_realloc_65b.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_65b_goodG2BSink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_65b_goodG2BSink(void)
{
return;
}
|
['gcc']
|
755
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_65b_goodB2GSink(twoIntsStruct * 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/100703/CWE401_Memory_Leak__twoIntsStruct_realloc_65b.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_65b_goodB2GSink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_65b_goodB2GSink(undefined8 param_1)
{
func_0x00400a20(param_1);
return;
}
|
['gcc']
|
756
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_66_bad()
{
twoIntsStruct * data;
twoIntsStruct * dataArray[5];
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (twoIntsStruct *)realloc(data, 100*sizeof(twoIntsStruct));
/* Initialize and make use of data */
data[0].intOne = 0;
data[0].intTwo = 0;
printStructLine(&data[0]);
/* put data in array */
dataArray[2] = data;
CWE401_Memory_Leak__twoIntsStruct_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/100704/CWE401_Memory_Leak__twoIntsStruct_realloc_66a.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_66_bad
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_66_bad(void)
{
undefined auStack_38 [16];
undefined4 *puStack_28;
undefined4 *puStack_10;
puStack_10 = (undefined4 *)0x0;
puStack_10 = (undefined4 *)func_0x00400a80(0,800);
*puStack_10 = 0;
puStack_10[1] = 0;
printStructLine(puStack_10);
puStack_28 = puStack_10;
CWE401_Memory_Leak__twoIntsStruct_realloc_66b_badSink(auStack_38);
return;
}
|
['gcc']
|
757
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_66_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100704/CWE401_Memory_Leak__twoIntsStruct_realloc_66a.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_66_good
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_66_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
758
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_66b_badSink(twoIntsStruct * dataArray[])
{
/* copy data out of dataArray */
twoIntsStruct * 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/100704/CWE401_Memory_Leak__twoIntsStruct_realloc_66b.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_66b_badSink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_66b_badSink(void)
{
return;
}
|
['gcc']
|
759
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_66b_goodG2BSink(twoIntsStruct * dataArray[])
{
twoIntsStruct * 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/100704/CWE401_Memory_Leak__twoIntsStruct_realloc_66b.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_66b_goodG2BSink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_66b_goodG2BSink(void)
{
return;
}
|
['gcc']
|
760
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_66b_goodB2GSink(twoIntsStruct * dataArray[])
{
twoIntsStruct * 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/100704/CWE401_Memory_Leak__twoIntsStruct_realloc_66b.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_66b_goodB2GSink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_66b_goodB2GSink(long param_1)
{
func_0x00400a20(*(undefined8 *)(param_1 + 0x10));
return;
}
|
['gcc']
|
761
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_67_bad()
{
twoIntsStruct * data;
CWE401_Memory_Leak__twoIntsStruct_realloc_67_structType myStruct;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (twoIntsStruct *)realloc(data, 100*sizeof(twoIntsStruct));
/* Initialize and make use of data */
data[0].intOne = 0;
data[0].intTwo = 0;
printStructLine(&data[0]);
myStruct.structFirst = data;
CWE401_Memory_Leak__twoIntsStruct_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/100705/CWE401_Memory_Leak__twoIntsStruct_realloc_67a.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_67_bad
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_67_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a80(0,800);
*puVar1 = 0;
puVar1[1] = 0;
printStructLine(puVar1);
CWE401_Memory_Leak__twoIntsStruct_realloc_67b_badSink(puVar1);
return;
}
|
['gcc']
|
762
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_67_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100705/CWE401_Memory_Leak__twoIntsStruct_realloc_67a.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_67_good
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_67_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
763
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_67b_badSink(CWE401_Memory_Leak__twoIntsStruct_realloc_67_structType myStruct)
{
twoIntsStruct * 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/100705/CWE401_Memory_Leak__twoIntsStruct_realloc_67b.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_67b_badSink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_67b_badSink(void)
{
return;
}
|
['gcc']
|
764
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_67b_goodG2BSink(CWE401_Memory_Leak__twoIntsStruct_realloc_67_structType myStruct)
{
twoIntsStruct * 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/100705/CWE401_Memory_Leak__twoIntsStruct_realloc_67b.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_67b_goodG2BSink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_67b_goodG2BSink(void)
{
return;
}
|
['gcc']
|
765
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_67b_goodB2GSink(CWE401_Memory_Leak__twoIntsStruct_realloc_67_structType myStruct)
{
twoIntsStruct * 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/100705/CWE401_Memory_Leak__twoIntsStruct_realloc_67b.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_67b_goodB2GSink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_67b_goodB2GSink(undefined8 param_1)
{
func_0x00400a20(param_1);
return;
}
|
['gcc']
|
766
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_68_bad()
{
twoIntsStruct * data;
data = NULL;
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (twoIntsStruct *)realloc(data, 100*sizeof(twoIntsStruct));
/* Initialize and make use of data */
data[0].intOne = 0;
data[0].intTwo = 0;
printStructLine(&data[0]);
CWE401_Memory_Leak__twoIntsStruct_realloc_68_badData = data;
CWE401_Memory_Leak__twoIntsStruct_realloc_68b_badSink();
}
|
['/* 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/100706/CWE401_Memory_Leak__twoIntsStruct_realloc_68a.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_68_bad
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_68_bad(void)
{
undefined4 *puVar1;
puVar1 = (undefined4 *)func_0x00400a80(0,800);
*puVar1 = 0;
puVar1[1] = 0;
printStructLine(puVar1);
CWE401_Memory_Leak__twoIntsStruct_realloc_68_badData = puVar1;
CWE401_Memory_Leak__twoIntsStruct_realloc_68b_badSink();
return;
}
|
['gcc']
|
767
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_68_good()
{
goodG2B();
goodB2G();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100706/CWE401_Memory_Leak__twoIntsStruct_realloc_68a.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_68_good
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_68_good(void)
{
goodG2B();
goodB2G();
return;
}
|
['gcc']
|
768
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_68b_badSink()
{
twoIntsStruct * data = CWE401_Memory_Leak__twoIntsStruct_realloc_68_badData;
/* 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/100706/CWE401_Memory_Leak__twoIntsStruct_realloc_68b.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_68b_badSink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_68b_badSink(void)
{
return;
}
|
['gcc']
|
769
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_68b_goodG2BSink()
{
twoIntsStruct * data = CWE401_Memory_Leak__twoIntsStruct_realloc_68_goodG2BData;
/* 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/100706/CWE401_Memory_Leak__twoIntsStruct_realloc_68b.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_68b_goodG2BSink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_68b_goodG2BSink(void)
{
return;
}
|
['gcc']
|
770
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_68b_goodB2GSink()
{
twoIntsStruct * data = CWE401_Memory_Leak__twoIntsStruct_realloc_68_goodB2GData;
/* 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/100706/CWE401_Memory_Leak__twoIntsStruct_realloc_68b.c
|
CWE401_Memory_Leak__twoIntsStruct_realloc_68b_goodB2GSink
|
void CWE401_Memory_Leak__twoIntsStruct_realloc_68b_goodB2GSink(void)
{
func_0x00400a20(CWE401_Memory_Leak__twoIntsStruct_realloc_68_goodB2GData);
return;
}
|
['gcc']
|
771
|
void CWE401_Memory_Leak__wchar_t_calloc_02_bad()
{
wchar_t * data;
data = NULL;
if(1)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (wchar_t *)calloc(100, sizeof(wchar_t));
/* Initialize and make use of data */
wcscpy(data, L"A String");
printWLine(data);
}
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/100716/CWE401_Memory_Leak__wchar_t_calloc_02.c
|
CWE401_Memory_Leak__wchar_t_calloc_02_bad
|
void CWE401_Memory_Leak__wchar_t_calloc_02_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400a80(100,4);
func_0x00400a90(uVar1,&UNK_00401198);
printWLine(uVar1);
return;
}
|
['gcc']
|
772
|
void CWE401_Memory_Leak__wchar_t_calloc_02_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100716/CWE401_Memory_Leak__wchar_t_calloc_02.c
|
CWE401_Memory_Leak__wchar_t_calloc_02_good
|
void CWE401_Memory_Leak__wchar_t_calloc_02_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
773
|
void CWE401_Memory_Leak__wchar_t_calloc_03_bad()
{
wchar_t * data;
data = NULL;
if(5==5)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (wchar_t *)calloc(100, sizeof(wchar_t));
/* Initialize and make use of data */
wcscpy(data, L"A String");
printWLine(data);
}
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/100717/CWE401_Memory_Leak__wchar_t_calloc_03.c
|
CWE401_Memory_Leak__wchar_t_calloc_03_bad
|
void CWE401_Memory_Leak__wchar_t_calloc_03_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400a80(100,4);
func_0x00400a90(uVar1,&UNK_00401198);
printWLine(uVar1);
return;
}
|
['gcc']
|
774
|
void CWE401_Memory_Leak__wchar_t_calloc_03_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100717/CWE401_Memory_Leak__wchar_t_calloc_03.c
|
CWE401_Memory_Leak__wchar_t_calloc_03_good
|
void CWE401_Memory_Leak__wchar_t_calloc_03_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
775
|
void CWE401_Memory_Leak__wchar_t_calloc_04_bad()
{
wchar_t * data;
data = NULL;
if(STATIC_CONST_TRUE)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (wchar_t *)calloc(100, sizeof(wchar_t));
/* Initialize and make use of data */
wcscpy(data, L"A String");
printWLine(data);
}
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/100718/CWE401_Memory_Leak__wchar_t_calloc_04.c
|
CWE401_Memory_Leak__wchar_t_calloc_04_bad
|
void CWE401_Memory_Leak__wchar_t_calloc_04_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400a80(100,4);
func_0x00400a90(uVar1,&UNK_004011b0);
printWLine(uVar1);
return;
}
|
['gcc']
|
776
|
void CWE401_Memory_Leak__wchar_t_calloc_04_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100718/CWE401_Memory_Leak__wchar_t_calloc_04.c
|
CWE401_Memory_Leak__wchar_t_calloc_04_good
|
void CWE401_Memory_Leak__wchar_t_calloc_04_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
777
|
void CWE401_Memory_Leak__wchar_t_calloc_05_bad()
{
wchar_t * data;
data = NULL;
if(staticTrue)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (wchar_t *)calloc(100, sizeof(wchar_t));
/* Initialize and make use of data */
wcscpy(data, L"A String");
printWLine(data);
}
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/100719/CWE401_Memory_Leak__wchar_t_calloc_05.c
|
CWE401_Memory_Leak__wchar_t_calloc_05_bad
|
void CWE401_Memory_Leak__wchar_t_calloc_05_bad(void)
{
undefined8 uVar1;
if (staticTrue != 0) {
uVar1 = func_0x00400a80(100,4);
func_0x00400a90(uVar1,&UNK_004011a8);
printWLine(uVar1);
}
return;
}
|
['gcc']
|
778
|
void CWE401_Memory_Leak__wchar_t_calloc_05_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100719/CWE401_Memory_Leak__wchar_t_calloc_05.c
|
CWE401_Memory_Leak__wchar_t_calloc_05_good
|
void CWE401_Memory_Leak__wchar_t_calloc_05_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
779
|
void CWE401_Memory_Leak__wchar_t_calloc_06_bad()
{
wchar_t * data;
data = NULL;
if(STATIC_CONST_FIVE==5)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (wchar_t *)calloc(100, sizeof(wchar_t));
/* Initialize and make use of data */
wcscpy(data, L"A String");
printWLine(data);
}
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/100720/CWE401_Memory_Leak__wchar_t_calloc_06.c
|
CWE401_Memory_Leak__wchar_t_calloc_06_bad
|
void CWE401_Memory_Leak__wchar_t_calloc_06_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400a80(100,4);
func_0x00400a90(uVar1,&UNK_004011b0);
printWLine(uVar1);
return;
}
|
['gcc']
|
780
|
void CWE401_Memory_Leak__wchar_t_calloc_06_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100720/CWE401_Memory_Leak__wchar_t_calloc_06.c
|
CWE401_Memory_Leak__wchar_t_calloc_06_good
|
void CWE401_Memory_Leak__wchar_t_calloc_06_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
781
|
void CWE401_Memory_Leak__wchar_t_calloc_07_bad()
{
wchar_t * data;
data = NULL;
if(staticFive==5)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (wchar_t *)calloc(100, sizeof(wchar_t));
/* Initialize and make use of data */
wcscpy(data, L"A String");
printWLine(data);
}
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/100721/CWE401_Memory_Leak__wchar_t_calloc_07.c
|
CWE401_Memory_Leak__wchar_t_calloc_07_bad
|
void CWE401_Memory_Leak__wchar_t_calloc_07_bad(void)
{
undefined8 uVar1;
if (staticFive == 5) {
uVar1 = func_0x00400a80(100,4);
func_0x00400a90(uVar1,&UNK_004011a8);
printWLine(uVar1);
}
return;
}
|
['gcc']
|
782
|
void CWE401_Memory_Leak__wchar_t_calloc_07_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100721/CWE401_Memory_Leak__wchar_t_calloc_07.c
|
CWE401_Memory_Leak__wchar_t_calloc_07_good
|
void CWE401_Memory_Leak__wchar_t_calloc_07_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
783
|
void CWE401_Memory_Leak__wchar_t_calloc_08_bad()
{
wchar_t * data;
data = NULL;
if(staticReturnsTrue())
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (wchar_t *)calloc(100, sizeof(wchar_t));
/* Initialize and make use of data */
wcscpy(data, L"A String");
printWLine(data);
}
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/100722/CWE401_Memory_Leak__wchar_t_calloc_08.c
|
CWE401_Memory_Leak__wchar_t_calloc_08_bad
|
void CWE401_Memory_Leak__wchar_t_calloc_08_bad(void)
{
int iVar1;
undefined8 uVar2;
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
uVar2 = func_0x00400a80(100,4);
func_0x00400a90(uVar2,&UNK_004011c8);
printWLine(uVar2);
}
staticReturnsTrue();
return;
}
|
['gcc']
|
784
|
void CWE401_Memory_Leak__wchar_t_calloc_08_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100722/CWE401_Memory_Leak__wchar_t_calloc_08.c
|
CWE401_Memory_Leak__wchar_t_calloc_08_good
|
void CWE401_Memory_Leak__wchar_t_calloc_08_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
785
|
void CWE401_Memory_Leak__wchar_t_calloc_09_bad()
{
wchar_t * data;
data = NULL;
if(GLOBAL_CONST_TRUE)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (wchar_t *)calloc(100, sizeof(wchar_t));
/* Initialize and make use of data */
wcscpy(data, L"A String");
printWLine(data);
}
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/100723/CWE401_Memory_Leak__wchar_t_calloc_09.c
|
CWE401_Memory_Leak__wchar_t_calloc_09_bad
|
void CWE401_Memory_Leak__wchar_t_calloc_09_bad(void)
{
undefined8 uVar1;
if (GLOBAL_CONST_TRUE != 0) {
uVar1 = func_0x00400a80(100,4);
func_0x00400a90(uVar1,&UNK_004011a8);
printWLine(uVar1);
}
return;
}
|
['gcc']
|
786
|
void CWE401_Memory_Leak__wchar_t_calloc_09_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100723/CWE401_Memory_Leak__wchar_t_calloc_09.c
|
CWE401_Memory_Leak__wchar_t_calloc_09_good
|
void CWE401_Memory_Leak__wchar_t_calloc_09_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
787
|
void CWE401_Memory_Leak__wchar_t_calloc_10_bad()
{
wchar_t * data;
data = NULL;
if(globalTrue)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (wchar_t *)calloc(100, sizeof(wchar_t));
/* Initialize and make use of data */
wcscpy(data, L"A String");
printWLine(data);
}
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/100724/CWE401_Memory_Leak__wchar_t_calloc_10.c
|
CWE401_Memory_Leak__wchar_t_calloc_10_bad
|
void CWE401_Memory_Leak__wchar_t_calloc_10_bad(void)
{
undefined8 uVar1;
if (globalTrue != 0) {
uVar1 = func_0x00400a80(100,4);
func_0x00400a90(uVar1,&UNK_004011a8);
printWLine(uVar1);
}
return;
}
|
['gcc']
|
788
|
void CWE401_Memory_Leak__wchar_t_calloc_10_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100724/CWE401_Memory_Leak__wchar_t_calloc_10.c
|
CWE401_Memory_Leak__wchar_t_calloc_10_good
|
void CWE401_Memory_Leak__wchar_t_calloc_10_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
789
|
void CWE401_Memory_Leak__wchar_t_calloc_11_bad()
{
wchar_t * data;
data = NULL;
if(globalReturnsTrue())
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (wchar_t *)calloc(100, sizeof(wchar_t));
/* Initialize and make use of data */
wcscpy(data, L"A String");
printWLine(data);
}
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/100725/CWE401_Memory_Leak__wchar_t_calloc_11.c
|
CWE401_Memory_Leak__wchar_t_calloc_11_bad
|
void CWE401_Memory_Leak__wchar_t_calloc_11_bad(void)
{
int iVar1;
undefined8 uVar2;
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
uVar2 = func_0x00400a80(100,4);
func_0x00400a90(uVar2,&UNK_004011a8);
printWLine(uVar2);
}
globalReturnsTrue();
return;
}
|
['gcc']
|
790
|
void CWE401_Memory_Leak__wchar_t_calloc_11_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100725/CWE401_Memory_Leak__wchar_t_calloc_11.c
|
CWE401_Memory_Leak__wchar_t_calloc_11_good
|
void CWE401_Memory_Leak__wchar_t_calloc_11_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
791
|
void CWE401_Memory_Leak__wchar_t_calloc_12_bad()
{
wchar_t * data;
data = NULL;
if(globalReturnsTrueOrFalse())
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (wchar_t *)calloc(100, sizeof(wchar_t));
/* Initialize and make use of data */
wcscpy(data, L"A String");
printWLine(data);
}
else
{
/* FIX: Use memory allocated on the stack with ALLOCA */
data = (wchar_t *)ALLOCA(100*sizeof(wchar_t));
/* Initialize and make use of data */
wcscpy(data, L"A String");
printWLine(data);
}
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/100726/CWE401_Memory_Leak__wchar_t_calloc_12.c
|
CWE401_Memory_Leak__wchar_t_calloc_12_bad
|
void CWE401_Memory_Leak__wchar_t_calloc_12_bad(void)
{
int iVar1;
undefined *puVar2;
undefined auStack_1b8 [8];
undefined auStack_1b0 [400];
undefined *puStack_20;
undefined auStack_18 [8];
undefined *puStack_10;
puVar2 = auStack_18;
puStack_10 = (undefined *)0x0;
puStack_20 = &UNK_00400c3c;
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
puVar2 = auStack_1b8;
puStack_10 = auStack_1b0;
func_0x00400ae0(puStack_10,&UNK_00401268,7);
printWLine(puStack_10);
}
else {
puStack_20 = &UNK_00400c4f;
puStack_10 = (undefined *)func_0x00400ad0(100,4);
puStack_20 = &UNK_00400c64;
func_0x00400ae0(puStack_10,&UNK_00401268);
puStack_20 = &UNK_00400c70;
printWLine(puStack_10);
}
*(undefined **)(puVar2 + -8) = &UNK_00400ccf;
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
*(undefined **)(puVar2 + -8) = &UNK_00400cdf;
func_0x00400a60(puStack_10);
}
return;
}
|
['gcc']
|
792
|
void CWE401_Memory_Leak__wchar_t_calloc_12_good()
{
goodB2G();
goodG2B();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100726/CWE401_Memory_Leak__wchar_t_calloc_12.c
|
CWE401_Memory_Leak__wchar_t_calloc_12_good
|
void CWE401_Memory_Leak__wchar_t_calloc_12_good(void)
{
goodB2G();
goodG2B();
return;
}
|
['gcc']
|
793
|
void CWE401_Memory_Leak__wchar_t_calloc_13_bad()
{
wchar_t * data;
data = NULL;
if(GLOBAL_CONST_FIVE==5)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (wchar_t *)calloc(100, sizeof(wchar_t));
/* Initialize and make use of data */
wcscpy(data, L"A String");
printWLine(data);
}
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/100727/CWE401_Memory_Leak__wchar_t_calloc_13.c
|
CWE401_Memory_Leak__wchar_t_calloc_13_bad
|
void CWE401_Memory_Leak__wchar_t_calloc_13_bad(void)
{
undefined8 uVar1;
if (GLOBAL_CONST_FIVE == 5) {
uVar1 = func_0x00400a80(100,4);
func_0x00400a90(uVar1,&UNK_004011a8);
printWLine(uVar1);
}
return;
}
|
['gcc']
|
794
|
void CWE401_Memory_Leak__wchar_t_calloc_13_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100727/CWE401_Memory_Leak__wchar_t_calloc_13.c
|
CWE401_Memory_Leak__wchar_t_calloc_13_good
|
void CWE401_Memory_Leak__wchar_t_calloc_13_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
795
|
void CWE401_Memory_Leak__wchar_t_calloc_14_bad()
{
wchar_t * data;
data = NULL;
if(globalFive==5)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (wchar_t *)calloc(100, sizeof(wchar_t));
/* Initialize and make use of data */
wcscpy(data, L"A String");
printWLine(data);
}
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/100728/CWE401_Memory_Leak__wchar_t_calloc_14.c
|
CWE401_Memory_Leak__wchar_t_calloc_14_bad
|
void CWE401_Memory_Leak__wchar_t_calloc_14_bad(void)
{
undefined8 uVar1;
if (globalFive == 5) {
uVar1 = func_0x00400a80(100,4);
func_0x00400a90(uVar1,&UNK_004011a8);
printWLine(uVar1);
}
return;
}
|
['gcc']
|
796
|
void CWE401_Memory_Leak__wchar_t_calloc_14_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100728/CWE401_Memory_Leak__wchar_t_calloc_14.c
|
CWE401_Memory_Leak__wchar_t_calloc_14_good
|
void CWE401_Memory_Leak__wchar_t_calloc_14_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
797
|
void CWE401_Memory_Leak__wchar_t_calloc_15_bad()
{
wchar_t * data;
data = NULL;
switch(6)
{
case 6:
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (wchar_t *)calloc(100, sizeof(wchar_t));
/* Initialize and make use of data */
wcscpy(data, L"A String");
printWLine(data);
break;
default:
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
break;
}
switch(7)
{
case 7:
/* POTENTIAL FLAW: 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/100729/CWE401_Memory_Leak__wchar_t_calloc_15.c
|
CWE401_Memory_Leak__wchar_t_calloc_15_bad
|
void CWE401_Memory_Leak__wchar_t_calloc_15_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400a80(100,4);
func_0x00400a90(uVar1,&UNK_00401198);
printWLine(uVar1);
return;
}
|
['gcc']
|
798
|
void CWE401_Memory_Leak__wchar_t_calloc_15_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
}
|
[]
| null |
mvd
|
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100729/CWE401_Memory_Leak__wchar_t_calloc_15.c
|
CWE401_Memory_Leak__wchar_t_calloc_15_good
|
void CWE401_Memory_Leak__wchar_t_calloc_15_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
|
['gcc']
|
799
|
void CWE401_Memory_Leak__wchar_t_calloc_16_bad()
{
wchar_t * data;
data = NULL;
while(1)
{
/* POTENTIAL FLAW: Allocate memory on the heap */
data = (wchar_t *)calloc(100, sizeof(wchar_t));
/* Initialize and make use of data */
wcscpy(data, L"A String");
printWLine(data);
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/100730/CWE401_Memory_Leak__wchar_t_calloc_16.c
|
CWE401_Memory_Leak__wchar_t_calloc_16_bad
|
void CWE401_Memory_Leak__wchar_t_calloc_16_bad(void)
{
undefined8 uVar1;
uVar1 = func_0x00400a80(100,4);
func_0x00400a90(uVar1,&UNK_00401198);
printWLine(uVar1);
return;
}
|
['gcc']
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.