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 |
|---|---|---|---|---|---|---|---|---|
9,400 | void CWE758_Undefined_Behavior__int_pointer_malloc_use_18_bad()
{
goto sink;
sink:
{
int * * pointer = (int * *)malloc(sizeof(int *));
int * data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printIntLine(*data);
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112279/CWE758_Undefined_Behavior__int_pointer_malloc_use_18.c | CWE758_Undefined_Behavior__int_pointer_malloc_use_18_bad |
void CWE758_Undefined_Behavior__int_pointer_malloc_use_18_bad(void)
{
undefined4 *puVar1;
undefined8 *puVar2;
puVar2 = (undefined8 *)func_0x00400ab0(8);
puVar1 = (undefined4 *)*puVar2;
func_0x00400a20(puVar2);
printIntLine(*puVar1);
return;
}
| ['gcc'] |
9,401 | void CWE758_Undefined_Behavior__int_pointer_malloc_use_18_good()
{
good1();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112279/CWE758_Undefined_Behavior__int_pointer_malloc_use_18.c | CWE758_Undefined_Behavior__int_pointer_malloc_use_18_good |
void CWE758_Undefined_Behavior__int_pointer_malloc_use_18_good(void)
{
good1();
return;
}
| ['gcc'] |
9,402 | void CWE758_Undefined_Behavior__long_malloc_use_08_bad()
{
if(staticReturnsTrue())
{
{
long * pointer = (long *)malloc(sizeof(long));
long data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printLongLine(data);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112323/CWE758_Undefined_Behavior__long_malloc_use_08.c | CWE758_Undefined_Behavior__long_malloc_use_08_bad |
void CWE758_Undefined_Behavior__long_malloc_use_08_bad(void)
{
undefined8 uVar1;
int iVar2;
undefined8 *puVar3;
iVar2 = staticReturnsTrue();
if (iVar2 != 0) {
puVar3 = (undefined8 *)func_0x00400ab0(8);
uVar1 = *puVar3;
func_0x00400a20(puVar3);
printLongLine(uVar1);
}
return;
}
| ['gcc'] |
9,403 | void CWE758_Undefined_Behavior__long_malloc_use_08_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112323/CWE758_Undefined_Behavior__long_malloc_use_08.c | CWE758_Undefined_Behavior__long_malloc_use_08_good |
void CWE758_Undefined_Behavior__long_malloc_use_08_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,404 | void CWE758_Undefined_Behavior__long_malloc_use_11_bad()
{
if(globalReturnsTrue())
{
{
long * pointer = (long *)malloc(sizeof(long));
long data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printLongLine(data);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112326/CWE758_Undefined_Behavior__long_malloc_use_11.c | CWE758_Undefined_Behavior__long_malloc_use_11_bad |
void CWE758_Undefined_Behavior__long_malloc_use_11_bad(void)
{
undefined8 uVar1;
int iVar2;
undefined8 *puVar3;
iVar2 = globalReturnsTrue();
if (iVar2 != 0) {
puVar3 = (undefined8 *)func_0x00400ab0(8);
uVar1 = *puVar3;
func_0x00400a20(puVar3);
printLongLine(uVar1);
}
return;
}
| ['gcc'] |
9,405 | void CWE758_Undefined_Behavior__long_malloc_use_11_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112326/CWE758_Undefined_Behavior__long_malloc_use_11.c | CWE758_Undefined_Behavior__long_malloc_use_11_good |
void CWE758_Undefined_Behavior__long_malloc_use_11_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,406 | void CWE758_Undefined_Behavior__long_malloc_use_12_bad()
{
if(globalReturnsTrueOrFalse())
{
{
long * pointer = (long *)malloc(sizeof(long));
long data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printLongLine(data);
}
}
else
{
{
long data;
long * pointer = (long *)malloc(sizeof(long));
data = 5L;
*pointer = data; /* FIX: Assign a value to the thing pointed to by pointer */
{
long data = *pointer;
printLongLine(data);
}
free(pointer);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */', '/* FIX: Assign a value to the thing pointed to by pointer */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112327/CWE758_Undefined_Behavior__long_malloc_use_12.c | CWE758_Undefined_Behavior__long_malloc_use_12_bad |
void CWE758_Undefined_Behavior__long_malloc_use_12_bad(void)
{
undefined8 uVar1;
int iVar2;
undefined8 *puVar3;
iVar2 = globalReturnsTrueOrFalse();
if (iVar2 == 0) {
puVar3 = (undefined8 *)func_0x00400ab0(8);
*puVar3 = 5;
printLongLine(*puVar3);
func_0x00400a20(puVar3);
}
else {
puVar3 = (undefined8 *)func_0x00400ab0(8);
uVar1 = *puVar3;
func_0x00400a20(puVar3);
printLongLine(uVar1);
}
return;
}
| ['gcc'] |
9,407 | void CWE758_Undefined_Behavior__long_malloc_use_12_good()
{
good1();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112327/CWE758_Undefined_Behavior__long_malloc_use_12.c | CWE758_Undefined_Behavior__long_malloc_use_12_good |
void CWE758_Undefined_Behavior__long_malloc_use_12_good(void)
{
good1();
return;
}
| ['gcc'] |
9,408 | void CWE758_Undefined_Behavior__long_malloc_use_17_bad()
{
int j;
for(j = 0; j < 1; j++)
{
{
long * pointer = (long *)malloc(sizeof(long));
long data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printLongLine(data);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112332/CWE758_Undefined_Behavior__long_malloc_use_17.c | CWE758_Undefined_Behavior__long_malloc_use_17_bad |
void CWE758_Undefined_Behavior__long_malloc_use_17_bad(void)
{
undefined8 uVar1;
undefined8 *puVar2;
int iStack_c;
for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) {
puVar2 = (undefined8 *)func_0x00400ab0(8);
uVar1 = *puVar2;
func_0x00400a20(puVar2);
printLongLine(uVar1);
}
return;
}
| ['gcc'] |
9,409 | void CWE758_Undefined_Behavior__long_malloc_use_17_good()
{
good1();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112332/CWE758_Undefined_Behavior__long_malloc_use_17.c | CWE758_Undefined_Behavior__long_malloc_use_17_good |
void CWE758_Undefined_Behavior__long_malloc_use_17_good(void)
{
good1();
return;
}
| ['gcc'] |
9,410 | void CWE758_Undefined_Behavior__struct_malloc_use_01_bad()
{
{
twoIntsStruct * pointer = (twoIntsStruct *)malloc(sizeof(twoIntsStruct));
twoIntsStruct data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printIntLine(data.intOne);
printIntLine(data.intTwo);
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112371/CWE758_Undefined_Behavior__struct_malloc_use_01.c | CWE758_Undefined_Behavior__struct_malloc_use_01_bad |
void CWE758_Undefined_Behavior__struct_malloc_use_01_bad(void)
{
ulong uVar1;
ulong *puVar2;
undefined4 uStack_14;
puVar2 = (ulong *)func_0x00400ab0(8);
uVar1 = *puVar2;
func_0x00400a20(puVar2);
printIntLine(uVar1 & 0xffffffff);
uStack_14 = (undefined4)(uVar1 >> 0x20);
printIntLine(uStack_14);
return;
}
| ['gcc'] |
9,411 | void CWE758_Undefined_Behavior__struct_malloc_use_01_good()
{
good1();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112371/CWE758_Undefined_Behavior__struct_malloc_use_01.c | CWE758_Undefined_Behavior__struct_malloc_use_01_good |
void CWE758_Undefined_Behavior__struct_malloc_use_01_good(void)
{
good1();
return;
}
| ['gcc'] |
9,412 | void CWE758_Undefined_Behavior__struct_malloc_use_02_bad()
{
if(1)
{
{
twoIntsStruct * pointer = (twoIntsStruct *)malloc(sizeof(twoIntsStruct));
twoIntsStruct data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printIntLine(data.intOne);
printIntLine(data.intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112372/CWE758_Undefined_Behavior__struct_malloc_use_02.c | CWE758_Undefined_Behavior__struct_malloc_use_02_bad |
void CWE758_Undefined_Behavior__struct_malloc_use_02_bad(void)
{
ulong uVar1;
ulong *puVar2;
undefined4 uStack_14;
puVar2 = (ulong *)func_0x00400ab0(8);
uVar1 = *puVar2;
func_0x00400a20(puVar2);
printIntLine(uVar1 & 0xffffffff);
uStack_14 = (undefined4)(uVar1 >> 0x20);
printIntLine(uStack_14);
return;
}
| ['gcc'] |
9,413 | void CWE758_Undefined_Behavior__struct_malloc_use_02_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112372/CWE758_Undefined_Behavior__struct_malloc_use_02.c | CWE758_Undefined_Behavior__struct_malloc_use_02_good |
void CWE758_Undefined_Behavior__struct_malloc_use_02_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,414 | void CWE758_Undefined_Behavior__struct_malloc_use_03_bad()
{
if(5==5)
{
{
twoIntsStruct * pointer = (twoIntsStruct *)malloc(sizeof(twoIntsStruct));
twoIntsStruct data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printIntLine(data.intOne);
printIntLine(data.intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112373/CWE758_Undefined_Behavior__struct_malloc_use_03.c | CWE758_Undefined_Behavior__struct_malloc_use_03_bad |
void CWE758_Undefined_Behavior__struct_malloc_use_03_bad(void)
{
ulong uVar1;
ulong *puVar2;
undefined4 uStack_14;
puVar2 = (ulong *)func_0x00400ab0(8);
uVar1 = *puVar2;
func_0x00400a20(puVar2);
printIntLine(uVar1 & 0xffffffff);
uStack_14 = (undefined4)(uVar1 >> 0x20);
printIntLine(uStack_14);
return;
}
| ['gcc'] |
9,415 | void CWE758_Undefined_Behavior__struct_malloc_use_03_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112373/CWE758_Undefined_Behavior__struct_malloc_use_03.c | CWE758_Undefined_Behavior__struct_malloc_use_03_good |
void CWE758_Undefined_Behavior__struct_malloc_use_03_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,416 | void CWE758_Undefined_Behavior__struct_malloc_use_04_bad()
{
if(STATIC_CONST_TRUE)
{
{
twoIntsStruct * pointer = (twoIntsStruct *)malloc(sizeof(twoIntsStruct));
twoIntsStruct data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printIntLine(data.intOne);
printIntLine(data.intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112374/CWE758_Undefined_Behavior__struct_malloc_use_04.c | CWE758_Undefined_Behavior__struct_malloc_use_04_bad |
void CWE758_Undefined_Behavior__struct_malloc_use_04_bad(void)
{
ulong uVar1;
ulong *puVar2;
undefined4 uStack_14;
puVar2 = (ulong *)func_0x00400ab0(8);
uVar1 = *puVar2;
func_0x00400a20(puVar2);
printIntLine(uVar1 & 0xffffffff);
uStack_14 = (undefined4)(uVar1 >> 0x20);
printIntLine(uStack_14);
return;
}
| ['gcc'] |
9,417 | void CWE758_Undefined_Behavior__struct_malloc_use_04_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112374/CWE758_Undefined_Behavior__struct_malloc_use_04.c | CWE758_Undefined_Behavior__struct_malloc_use_04_good |
void CWE758_Undefined_Behavior__struct_malloc_use_04_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,418 | void CWE758_Undefined_Behavior__struct_malloc_use_05_bad()
{
if(staticTrue)
{
{
twoIntsStruct * pointer = (twoIntsStruct *)malloc(sizeof(twoIntsStruct));
twoIntsStruct data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printIntLine(data.intOne);
printIntLine(data.intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112375/CWE758_Undefined_Behavior__struct_malloc_use_05.c | CWE758_Undefined_Behavior__struct_malloc_use_05_bad |
void CWE758_Undefined_Behavior__struct_malloc_use_05_bad(void)
{
ulong uVar1;
ulong *puVar2;
undefined4 uStack_14;
if (staticTrue != 0) {
puVar2 = (ulong *)func_0x00400ab0(8);
uVar1 = *puVar2;
func_0x00400a20(puVar2);
printIntLine(uVar1 & 0xffffffff);
uStack_14 = (undefined4)(uVar1 >> 0x20);
printIntLine(uStack_14);
}
return;
}
| ['gcc'] |
9,419 | void CWE758_Undefined_Behavior__struct_malloc_use_05_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112375/CWE758_Undefined_Behavior__struct_malloc_use_05.c | CWE758_Undefined_Behavior__struct_malloc_use_05_good |
void CWE758_Undefined_Behavior__struct_malloc_use_05_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,420 | void CWE758_Undefined_Behavior__struct_malloc_use_06_bad()
{
if(STATIC_CONST_FIVE==5)
{
{
twoIntsStruct * pointer = (twoIntsStruct *)malloc(sizeof(twoIntsStruct));
twoIntsStruct data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printIntLine(data.intOne);
printIntLine(data.intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112376/CWE758_Undefined_Behavior__struct_malloc_use_06.c | CWE758_Undefined_Behavior__struct_malloc_use_06_bad |
void CWE758_Undefined_Behavior__struct_malloc_use_06_bad(void)
{
ulong uVar1;
ulong *puVar2;
undefined4 uStack_14;
puVar2 = (ulong *)func_0x00400ab0(8);
uVar1 = *puVar2;
func_0x00400a20(puVar2);
printIntLine(uVar1 & 0xffffffff);
uStack_14 = (undefined4)(uVar1 >> 0x20);
printIntLine(uStack_14);
return;
}
| ['gcc'] |
9,421 | void CWE758_Undefined_Behavior__struct_malloc_use_06_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112376/CWE758_Undefined_Behavior__struct_malloc_use_06.c | CWE758_Undefined_Behavior__struct_malloc_use_06_good |
void CWE758_Undefined_Behavior__struct_malloc_use_06_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,422 | void CWE758_Undefined_Behavior__struct_malloc_use_07_bad()
{
if(staticFive==5)
{
{
twoIntsStruct * pointer = (twoIntsStruct *)malloc(sizeof(twoIntsStruct));
twoIntsStruct data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printIntLine(data.intOne);
printIntLine(data.intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112377/CWE758_Undefined_Behavior__struct_malloc_use_07.c | CWE758_Undefined_Behavior__struct_malloc_use_07_bad |
void CWE758_Undefined_Behavior__struct_malloc_use_07_bad(void)
{
ulong uVar1;
ulong *puVar2;
undefined4 uStack_14;
if (staticFive == 5) {
puVar2 = (ulong *)func_0x00400ab0(8);
uVar1 = *puVar2;
func_0x00400a20(puVar2);
printIntLine(uVar1 & 0xffffffff);
uStack_14 = (undefined4)(uVar1 >> 0x20);
printIntLine(uStack_14);
}
return;
}
| ['gcc'] |
9,423 | void CWE758_Undefined_Behavior__struct_malloc_use_07_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112377/CWE758_Undefined_Behavior__struct_malloc_use_07.c | CWE758_Undefined_Behavior__struct_malloc_use_07_good |
void CWE758_Undefined_Behavior__struct_malloc_use_07_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,424 | void CWE758_Undefined_Behavior__struct_malloc_use_08_bad()
{
if(staticReturnsTrue())
{
{
twoIntsStruct * pointer = (twoIntsStruct *)malloc(sizeof(twoIntsStruct));
twoIntsStruct data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printIntLine(data.intOne);
printIntLine(data.intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112378/CWE758_Undefined_Behavior__struct_malloc_use_08.c | CWE758_Undefined_Behavior__struct_malloc_use_08_bad |
void CWE758_Undefined_Behavior__struct_malloc_use_08_bad(void)
{
ulong uVar1;
int iVar2;
ulong *puVar3;
undefined4 uStack_14;
iVar2 = staticReturnsTrue();
if (iVar2 != 0) {
puVar3 = (ulong *)func_0x00400ab0(8);
uVar1 = *puVar3;
func_0x00400a20(puVar3);
printIntLine(uVar1 & 0xffffffff);
uStack_14 = (undefined4)(uVar1 >> 0x20);
printIntLine(uStack_14);
}
return;
}
| ['gcc'] |
9,425 | void CWE758_Undefined_Behavior__struct_malloc_use_08_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112378/CWE758_Undefined_Behavior__struct_malloc_use_08.c | CWE758_Undefined_Behavior__struct_malloc_use_08_good |
void CWE758_Undefined_Behavior__struct_malloc_use_08_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,426 | void CWE758_Undefined_Behavior__struct_malloc_use_09_bad()
{
if(GLOBAL_CONST_TRUE)
{
{
twoIntsStruct * pointer = (twoIntsStruct *)malloc(sizeof(twoIntsStruct));
twoIntsStruct data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printIntLine(data.intOne);
printIntLine(data.intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112379/CWE758_Undefined_Behavior__struct_malloc_use_09.c | CWE758_Undefined_Behavior__struct_malloc_use_09_bad |
void CWE758_Undefined_Behavior__struct_malloc_use_09_bad(void)
{
ulong uVar1;
ulong *puVar2;
undefined4 uStack_14;
if (GLOBAL_CONST_TRUE != 0) {
puVar2 = (ulong *)func_0x00400ab0(8);
uVar1 = *puVar2;
func_0x00400a20(puVar2);
printIntLine(uVar1 & 0xffffffff);
uStack_14 = (undefined4)(uVar1 >> 0x20);
printIntLine(uStack_14);
}
return;
}
| ['gcc'] |
9,427 | void CWE758_Undefined_Behavior__struct_malloc_use_09_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112379/CWE758_Undefined_Behavior__struct_malloc_use_09.c | CWE758_Undefined_Behavior__struct_malloc_use_09_good |
void CWE758_Undefined_Behavior__struct_malloc_use_09_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,428 | void CWE758_Undefined_Behavior__struct_malloc_use_10_bad()
{
if(globalTrue)
{
{
twoIntsStruct * pointer = (twoIntsStruct *)malloc(sizeof(twoIntsStruct));
twoIntsStruct data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printIntLine(data.intOne);
printIntLine(data.intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112380/CWE758_Undefined_Behavior__struct_malloc_use_10.c | CWE758_Undefined_Behavior__struct_malloc_use_10_bad |
void CWE758_Undefined_Behavior__struct_malloc_use_10_bad(void)
{
ulong uVar1;
ulong *puVar2;
undefined4 uStack_14;
if (globalTrue != 0) {
puVar2 = (ulong *)func_0x00400ab0(8);
uVar1 = *puVar2;
func_0x00400a20(puVar2);
printIntLine(uVar1 & 0xffffffff);
uStack_14 = (undefined4)(uVar1 >> 0x20);
printIntLine(uStack_14);
}
return;
}
| ['gcc'] |
9,429 | void CWE758_Undefined_Behavior__struct_malloc_use_10_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112380/CWE758_Undefined_Behavior__struct_malloc_use_10.c | CWE758_Undefined_Behavior__struct_malloc_use_10_good |
void CWE758_Undefined_Behavior__struct_malloc_use_10_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,430 | void CWE758_Undefined_Behavior__struct_malloc_use_11_bad()
{
if(globalReturnsTrue())
{
{
twoIntsStruct * pointer = (twoIntsStruct *)malloc(sizeof(twoIntsStruct));
twoIntsStruct data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printIntLine(data.intOne);
printIntLine(data.intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112381/CWE758_Undefined_Behavior__struct_malloc_use_11.c | CWE758_Undefined_Behavior__struct_malloc_use_11_bad |
void CWE758_Undefined_Behavior__struct_malloc_use_11_bad(void)
{
ulong uVar1;
int iVar2;
ulong *puVar3;
undefined4 uStack_14;
iVar2 = globalReturnsTrue();
if (iVar2 != 0) {
puVar3 = (ulong *)func_0x00400ab0(8);
uVar1 = *puVar3;
func_0x00400a20(puVar3);
printIntLine(uVar1 & 0xffffffff);
uStack_14 = (undefined4)(uVar1 >> 0x20);
printIntLine(uStack_14);
}
return;
}
| ['gcc'] |
9,431 | void CWE758_Undefined_Behavior__struct_malloc_use_11_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112381/CWE758_Undefined_Behavior__struct_malloc_use_11.c | CWE758_Undefined_Behavior__struct_malloc_use_11_good |
void CWE758_Undefined_Behavior__struct_malloc_use_11_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,432 | void CWE758_Undefined_Behavior__struct_malloc_use_12_bad()
{
if(globalReturnsTrueOrFalse())
{
{
twoIntsStruct * pointer = (twoIntsStruct *)malloc(sizeof(twoIntsStruct));
twoIntsStruct data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printIntLine(data.intOne);
printIntLine(data.intTwo);
}
}
else
{
{
twoIntsStruct data;
twoIntsStruct * pointer = (twoIntsStruct *)malloc(sizeof(twoIntsStruct));
data.intOne = 1;
data.intTwo = 2;
*pointer = data; /* FIX: Assign a value to the thing pointed to by pointer */
{
twoIntsStruct data = *pointer;
printIntLine(data.intOne);
printIntLine(data.intTwo);
}
free(pointer);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */', '/* FIX: Assign a value to the thing pointed to by pointer */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112382/CWE758_Undefined_Behavior__struct_malloc_use_12.c | CWE758_Undefined_Behavior__struct_malloc_use_12_bad |
void CWE758_Undefined_Behavior__struct_malloc_use_12_bad(void)
{
ulong uVar1;
int iVar2;
ulong *puVar3;
undefined4 uStack_2c;
undefined4 uStack_1c;
iVar2 = globalReturnsTrueOrFalse();
if (iVar2 == 0) {
puVar3 = (ulong *)func_0x00400ab0(8);
*puVar3 = 0x200000001;
uVar1 = *puVar3;
printIntLine(uVar1 & 0xffffffff);
uStack_2c = (undefined4)(uVar1 >> 0x20);
printIntLine(uStack_2c);
func_0x00400a20(puVar3);
}
else {
puVar3 = (ulong *)func_0x00400ab0(8);
uVar1 = *puVar3;
func_0x00400a20(puVar3);
printIntLine(uVar1 & 0xffffffff);
uStack_1c = (undefined4)(uVar1 >> 0x20);
printIntLine(uStack_1c);
}
return;
}
| ['gcc'] |
9,433 | void CWE758_Undefined_Behavior__struct_malloc_use_12_good()
{
good1();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112382/CWE758_Undefined_Behavior__struct_malloc_use_12.c | CWE758_Undefined_Behavior__struct_malloc_use_12_good |
void CWE758_Undefined_Behavior__struct_malloc_use_12_good(void)
{
good1();
return;
}
| ['gcc'] |
9,434 | void CWE758_Undefined_Behavior__struct_malloc_use_13_bad()
{
if(GLOBAL_CONST_FIVE==5)
{
{
twoIntsStruct * pointer = (twoIntsStruct *)malloc(sizeof(twoIntsStruct));
twoIntsStruct data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printIntLine(data.intOne);
printIntLine(data.intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112383/CWE758_Undefined_Behavior__struct_malloc_use_13.c | CWE758_Undefined_Behavior__struct_malloc_use_13_bad |
void CWE758_Undefined_Behavior__struct_malloc_use_13_bad(void)
{
ulong uVar1;
ulong *puVar2;
undefined4 uStack_14;
if (GLOBAL_CONST_FIVE == 5) {
puVar2 = (ulong *)func_0x00400ab0(8);
uVar1 = *puVar2;
func_0x00400a20(puVar2);
printIntLine(uVar1 & 0xffffffff);
uStack_14 = (undefined4)(uVar1 >> 0x20);
printIntLine(uStack_14);
}
return;
}
| ['gcc'] |
9,435 | void CWE758_Undefined_Behavior__struct_malloc_use_13_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112383/CWE758_Undefined_Behavior__struct_malloc_use_13.c | CWE758_Undefined_Behavior__struct_malloc_use_13_good |
void CWE758_Undefined_Behavior__struct_malloc_use_13_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,436 | void CWE758_Undefined_Behavior__struct_malloc_use_14_bad()
{
if(globalFive==5)
{
{
twoIntsStruct * pointer = (twoIntsStruct *)malloc(sizeof(twoIntsStruct));
twoIntsStruct data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printIntLine(data.intOne);
printIntLine(data.intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112384/CWE758_Undefined_Behavior__struct_malloc_use_14.c | CWE758_Undefined_Behavior__struct_malloc_use_14_bad |
void CWE758_Undefined_Behavior__struct_malloc_use_14_bad(void)
{
ulong uVar1;
ulong *puVar2;
undefined4 uStack_14;
if (globalFive == 5) {
puVar2 = (ulong *)func_0x00400ab0(8);
uVar1 = *puVar2;
func_0x00400a20(puVar2);
printIntLine(uVar1 & 0xffffffff);
uStack_14 = (undefined4)(uVar1 >> 0x20);
printIntLine(uStack_14);
}
return;
}
| ['gcc'] |
9,437 | void CWE758_Undefined_Behavior__struct_malloc_use_14_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112384/CWE758_Undefined_Behavior__struct_malloc_use_14.c | CWE758_Undefined_Behavior__struct_malloc_use_14_good |
void CWE758_Undefined_Behavior__struct_malloc_use_14_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,438 | void CWE758_Undefined_Behavior__struct_malloc_use_15_bad()
{
switch(6)
{
case 6:
{
twoIntsStruct * pointer = (twoIntsStruct *)malloc(sizeof(twoIntsStruct));
twoIntsStruct data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printIntLine(data.intOne);
printIntLine(data.intTwo);
}
break;
default:
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
break;
}
} | ['/* FLAW: the value pointed to by pointer is undefined */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112385/CWE758_Undefined_Behavior__struct_malloc_use_15.c | CWE758_Undefined_Behavior__struct_malloc_use_15_bad |
void CWE758_Undefined_Behavior__struct_malloc_use_15_bad(void)
{
ulong uVar1;
ulong *puVar2;
undefined4 uStack_14;
puVar2 = (ulong *)func_0x00400ab0(8);
uVar1 = *puVar2;
func_0x00400a20(puVar2);
printIntLine(uVar1 & 0xffffffff);
uStack_14 = (undefined4)(uVar1 >> 0x20);
printIntLine(uStack_14);
return;
}
| ['gcc'] |
9,439 | void CWE758_Undefined_Behavior__struct_malloc_use_15_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112385/CWE758_Undefined_Behavior__struct_malloc_use_15.c | CWE758_Undefined_Behavior__struct_malloc_use_15_good |
void CWE758_Undefined_Behavior__struct_malloc_use_15_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,440 | void CWE758_Undefined_Behavior__struct_malloc_use_16_bad()
{
while(1)
{
{
twoIntsStruct * pointer = (twoIntsStruct *)malloc(sizeof(twoIntsStruct));
twoIntsStruct data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printIntLine(data.intOne);
printIntLine(data.intTwo);
}
break;
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112386/CWE758_Undefined_Behavior__struct_malloc_use_16.c | CWE758_Undefined_Behavior__struct_malloc_use_16_bad |
void CWE758_Undefined_Behavior__struct_malloc_use_16_bad(void)
{
ulong uVar1;
ulong *puVar2;
undefined4 uStack_14;
puVar2 = (ulong *)func_0x00400ab0(8);
uVar1 = *puVar2;
func_0x00400a20(puVar2);
printIntLine(uVar1 & 0xffffffff);
uStack_14 = (undefined4)(uVar1 >> 0x20);
printIntLine(uStack_14);
return;
}
| ['gcc'] |
9,441 | void CWE758_Undefined_Behavior__struct_malloc_use_16_good()
{
good1();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112386/CWE758_Undefined_Behavior__struct_malloc_use_16.c | CWE758_Undefined_Behavior__struct_malloc_use_16_good |
void CWE758_Undefined_Behavior__struct_malloc_use_16_good(void)
{
good1();
return;
}
| ['gcc'] |
9,442 | void CWE758_Undefined_Behavior__struct_malloc_use_17_bad()
{
int j;
for(j = 0; j < 1; j++)
{
{
twoIntsStruct * pointer = (twoIntsStruct *)malloc(sizeof(twoIntsStruct));
twoIntsStruct data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printIntLine(data.intOne);
printIntLine(data.intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112387/CWE758_Undefined_Behavior__struct_malloc_use_17.c | CWE758_Undefined_Behavior__struct_malloc_use_17_bad |
void CWE758_Undefined_Behavior__struct_malloc_use_17_bad(void)
{
ulong uVar1;
ulong *puVar2;
undefined4 uStack_1c;
int iStack_c;
for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) {
puVar2 = (ulong *)func_0x00400ab0(8);
uVar1 = *puVar2;
func_0x00400a20(puVar2);
printIntLine(uVar1 & 0xffffffff);
uStack_1c = (undefined4)(uVar1 >> 0x20);
printIntLine(uStack_1c);
}
return;
}
| ['gcc'] |
9,443 | void CWE758_Undefined_Behavior__struct_malloc_use_17_good()
{
good1();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112387/CWE758_Undefined_Behavior__struct_malloc_use_17.c | CWE758_Undefined_Behavior__struct_malloc_use_17_good |
void CWE758_Undefined_Behavior__struct_malloc_use_17_good(void)
{
good1();
return;
}
| ['gcc'] |
9,444 | void CWE758_Undefined_Behavior__struct_malloc_use_18_bad()
{
goto sink;
sink:
{
twoIntsStruct * pointer = (twoIntsStruct *)malloc(sizeof(twoIntsStruct));
twoIntsStruct data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printIntLine(data.intOne);
printIntLine(data.intTwo);
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112388/CWE758_Undefined_Behavior__struct_malloc_use_18.c | CWE758_Undefined_Behavior__struct_malloc_use_18_bad |
void CWE758_Undefined_Behavior__struct_malloc_use_18_bad(void)
{
ulong uVar1;
ulong *puVar2;
undefined4 uStack_14;
puVar2 = (ulong *)func_0x00400ab0(8);
uVar1 = *puVar2;
func_0x00400a20(puVar2);
printIntLine(uVar1 & 0xffffffff);
uStack_14 = (undefined4)(uVar1 >> 0x20);
printIntLine(uStack_14);
return;
}
| ['gcc'] |
9,445 | void CWE758_Undefined_Behavior__struct_malloc_use_18_good()
{
good1();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112388/CWE758_Undefined_Behavior__struct_malloc_use_18.c | CWE758_Undefined_Behavior__struct_malloc_use_18_good |
void CWE758_Undefined_Behavior__struct_malloc_use_18_good(void)
{
good1();
return;
}
| ['gcc'] |
9,446 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_01_bad()
{
{
twoIntsStruct * * pointer = (twoIntsStruct * *)ALLOCA(sizeof(twoIntsStruct *));
twoIntsStruct * data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
printIntLine(data->intOne);
printIntLine(data->intTwo);
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112407/CWE758_Undefined_Behavior__struct_pointer_alloca_use_01.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_01_bad |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_01_bad
(undefined8 param_1,undefined8 param_2)
{
undefined4 *puStack_20;
undefined4 *puStack_18;
undefined4 **ppuStack_10;
ppuStack_10 = &puStack_20;
puStack_18 = puStack_20;
printIntLine(*puStack_20,param_2,0xf);
printIntLine(puStack_18[1]);
return;
}
| ['gcc'] |
9,447 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_01_good()
{
good1();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112407/CWE758_Undefined_Behavior__struct_pointer_alloca_use_01.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_01_good |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_01_good(void)
{
good1();
return;
}
| ['gcc'] |
9,448 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_02_bad()
{
if(1)
{
{
twoIntsStruct * * pointer = (twoIntsStruct * *)ALLOCA(sizeof(twoIntsStruct *));
twoIntsStruct * data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
printIntLine(data->intOne);
printIntLine(data->intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112408/CWE758_Undefined_Behavior__struct_pointer_alloca_use_02.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_02_bad |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_02_bad
(undefined8 param_1,undefined8 param_2)
{
undefined4 *puStack_20;
undefined4 *puStack_18;
undefined4 **ppuStack_10;
ppuStack_10 = &puStack_20;
puStack_18 = puStack_20;
printIntLine(*puStack_20,param_2,0xf);
printIntLine(puStack_18[1]);
return;
}
| ['gcc'] |
9,449 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_02_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112408/CWE758_Undefined_Behavior__struct_pointer_alloca_use_02.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_02_good |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_02_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,450 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_03_bad()
{
if(5==5)
{
{
twoIntsStruct * * pointer = (twoIntsStruct * *)ALLOCA(sizeof(twoIntsStruct *));
twoIntsStruct * data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
printIntLine(data->intOne);
printIntLine(data->intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112409/CWE758_Undefined_Behavior__struct_pointer_alloca_use_03.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_03_bad |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_03_bad
(undefined8 param_1,undefined8 param_2)
{
undefined4 *puStack_20;
undefined4 *puStack_18;
undefined4 **ppuStack_10;
ppuStack_10 = &puStack_20;
puStack_18 = puStack_20;
printIntLine(*puStack_20,param_2,0xf);
printIntLine(puStack_18[1]);
return;
}
| ['gcc'] |
9,451 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_03_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112409/CWE758_Undefined_Behavior__struct_pointer_alloca_use_03.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_03_good |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_03_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,452 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_04_bad()
{
if(STATIC_CONST_TRUE)
{
{
twoIntsStruct * * pointer = (twoIntsStruct * *)ALLOCA(sizeof(twoIntsStruct *));
twoIntsStruct * data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
printIntLine(data->intOne);
printIntLine(data->intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112410/CWE758_Undefined_Behavior__struct_pointer_alloca_use_04.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_04_bad |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_04_bad
(undefined8 param_1,undefined8 param_2)
{
undefined4 *puStack_20;
undefined4 *puStack_18;
undefined4 **ppuStack_10;
ppuStack_10 = &puStack_20;
puStack_18 = puStack_20;
printIntLine(*puStack_20,param_2,0xf);
printIntLine(puStack_18[1]);
return;
}
| ['gcc'] |
9,453 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_04_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112410/CWE758_Undefined_Behavior__struct_pointer_alloca_use_04.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_04_good |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_04_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,454 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_05_bad()
{
if(staticTrue)
{
{
twoIntsStruct * * pointer = (twoIntsStruct * *)ALLOCA(sizeof(twoIntsStruct *));
twoIntsStruct * data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
printIntLine(data->intOne);
printIntLine(data->intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112411/CWE758_Undefined_Behavior__struct_pointer_alloca_use_05.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_05_bad |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_05_bad
(undefined8 param_1,undefined8 param_2)
{
undefined4 *puStack_20;
undefined4 *puStack_18;
undefined4 **ppuStack_10;
if (staticTrue != 0) {
ppuStack_10 = &puStack_20;
puStack_18 = puStack_20;
printIntLine(*puStack_20,param_2,0xf);
printIntLine(puStack_18[1]);
}
return;
}
| ['gcc'] |
9,455 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_05_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112411/CWE758_Undefined_Behavior__struct_pointer_alloca_use_05.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_05_good |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_05_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,456 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_06_bad()
{
if(STATIC_CONST_FIVE==5)
{
{
twoIntsStruct * * pointer = (twoIntsStruct * *)ALLOCA(sizeof(twoIntsStruct *));
twoIntsStruct * data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
printIntLine(data->intOne);
printIntLine(data->intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112412/CWE758_Undefined_Behavior__struct_pointer_alloca_use_06.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_06_bad |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_06_bad
(undefined8 param_1,undefined8 param_2)
{
undefined4 *puStack_20;
undefined4 *puStack_18;
undefined4 **ppuStack_10;
ppuStack_10 = &puStack_20;
puStack_18 = puStack_20;
printIntLine(*puStack_20,param_2,0xf);
printIntLine(puStack_18[1]);
return;
}
| ['gcc'] |
9,457 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_06_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112412/CWE758_Undefined_Behavior__struct_pointer_alloca_use_06.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_06_good |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_06_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,458 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_07_bad()
{
if(staticFive==5)
{
{
twoIntsStruct * * pointer = (twoIntsStruct * *)ALLOCA(sizeof(twoIntsStruct *));
twoIntsStruct * data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
printIntLine(data->intOne);
printIntLine(data->intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112413/CWE758_Undefined_Behavior__struct_pointer_alloca_use_07.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_07_bad |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_07_bad
(undefined8 param_1,undefined8 param_2)
{
undefined4 *puStack_20;
undefined4 *puStack_18;
undefined4 **ppuStack_10;
if (staticFive == 5) {
ppuStack_10 = &puStack_20;
puStack_18 = puStack_20;
printIntLine(*puStack_20,param_2,0xf);
printIntLine(puStack_18[1]);
}
return;
}
| ['gcc'] |
9,459 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_07_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112413/CWE758_Undefined_Behavior__struct_pointer_alloca_use_07.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_07_good |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_07_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,460 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_08_bad()
{
if(staticReturnsTrue())
{
{
twoIntsStruct * * pointer = (twoIntsStruct * *)ALLOCA(sizeof(twoIntsStruct *));
twoIntsStruct * data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
printIntLine(data->intOne);
printIntLine(data->intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112414/CWE758_Undefined_Behavior__struct_pointer_alloca_use_08.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_08_bad |
/* WARNING: Restarted to delay deadcode elimination for space: stack */
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_08_bad
(undefined8 param_1,undefined8 param_2)
{
int iVar1;
undefined4 *puStack_20;
undefined4 *puStack_18;
undefined4 **ppuStack_10;
puStack_20 = (undefined4 *)&UNK_00400b5a;
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
ppuStack_10 = &puStack_20;
puStack_18 = puStack_20;
printIntLine(*puStack_20,param_2,0xf);
printIntLine(puStack_18[1]);
}
return;
}
| ['gcc'] |
9,461 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_08_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112414/CWE758_Undefined_Behavior__struct_pointer_alloca_use_08.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_08_good |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_08_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,462 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_09_bad()
{
if(GLOBAL_CONST_TRUE)
{
{
twoIntsStruct * * pointer = (twoIntsStruct * *)ALLOCA(sizeof(twoIntsStruct *));
twoIntsStruct * data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
printIntLine(data->intOne);
printIntLine(data->intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112415/CWE758_Undefined_Behavior__struct_pointer_alloca_use_09.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_09_bad |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_09_bad
(undefined8 param_1,undefined8 param_2)
{
undefined4 *puStack_20;
undefined4 *puStack_18;
undefined4 **ppuStack_10;
if (GLOBAL_CONST_TRUE != 0) {
ppuStack_10 = &puStack_20;
puStack_18 = puStack_20;
printIntLine(*puStack_20,param_2,0xf);
printIntLine(puStack_18[1]);
}
return;
}
| ['gcc'] |
9,463 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_09_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112415/CWE758_Undefined_Behavior__struct_pointer_alloca_use_09.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_09_good |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_09_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,464 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_10_bad()
{
if(globalTrue)
{
{
twoIntsStruct * * pointer = (twoIntsStruct * *)ALLOCA(sizeof(twoIntsStruct *));
twoIntsStruct * data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
printIntLine(data->intOne);
printIntLine(data->intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112416/CWE758_Undefined_Behavior__struct_pointer_alloca_use_10.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_10_bad |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_10_bad
(undefined8 param_1,undefined8 param_2)
{
undefined4 *puStack_20;
undefined4 *puStack_18;
undefined4 **ppuStack_10;
if (globalTrue != 0) {
ppuStack_10 = &puStack_20;
puStack_18 = puStack_20;
printIntLine(*puStack_20,param_2,0xf);
printIntLine(puStack_18[1]);
}
return;
}
| ['gcc'] |
9,465 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_10_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112416/CWE758_Undefined_Behavior__struct_pointer_alloca_use_10.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_10_good |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_10_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,466 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_11_bad()
{
if(globalReturnsTrue())
{
{
twoIntsStruct * * pointer = (twoIntsStruct * *)ALLOCA(sizeof(twoIntsStruct *));
twoIntsStruct * data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
printIntLine(data->intOne);
printIntLine(data->intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112417/CWE758_Undefined_Behavior__struct_pointer_alloca_use_11.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_11_bad |
/* WARNING: Restarted to delay deadcode elimination for space: stack */
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_11_bad
(undefined8 param_1,undefined8 param_2)
{
int iVar1;
undefined4 *puStack_20;
undefined4 *puStack_18;
undefined4 **ppuStack_10;
puStack_20 = (undefined4 *)&UNK_00400b44;
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
ppuStack_10 = &puStack_20;
puStack_18 = puStack_20;
printIntLine(*puStack_20,param_2,0xf);
printIntLine(puStack_18[1]);
}
return;
}
| ['gcc'] |
9,467 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_11_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112417/CWE758_Undefined_Behavior__struct_pointer_alloca_use_11.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_11_good |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_11_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,468 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_12_bad()
{
if(globalReturnsTrueOrFalse())
{
{
twoIntsStruct * * pointer = (twoIntsStruct * *)ALLOCA(sizeof(twoIntsStruct *));
twoIntsStruct * data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
printIntLine(data->intOne);
printIntLine(data->intTwo);
}
}
else
{
{
twoIntsStruct * data;
twoIntsStruct * * pointer = (twoIntsStruct * *)ALLOCA(sizeof(twoIntsStruct *));
/* initialize both the pointer and the data pointed to */
data = (twoIntsStruct *)malloc(sizeof(twoIntsStruct));
data->intOne = 5;
data->intTwo = 6;
*pointer = data; /* FIX: Assign a value to the thing pointed to by pointer */
{
twoIntsStruct * data = *pointer;
printIntLine(data->intOne);
printIntLine(data->intTwo);
}
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */', '/* initialize both the pointer and the data pointed to */', '/* FIX: Assign a value to the thing pointed to by pointer */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112418/CWE758_Undefined_Behavior__struct_pointer_alloca_use_12.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_12_bad |
/* WARNING: Restarted to delay deadcode elimination for space: stack */
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_12_bad(void)
{
int iVar1;
undefined4 *apuStack_40 [2];
undefined4 *puStack_30;
undefined4 **ppuStack_28;
undefined4 *puStack_20;
undefined4 *puStack_18;
undefined4 **ppuStack_10;
apuStack_40[0] = (undefined4 *)&UNK_00400b94;
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
ppuStack_10 = apuStack_40;
puStack_18 = (undefined4 *)func_0x00400a60(8,0x10,0xf);
*puStack_18 = 5;
puStack_18[1] = 6;
*ppuStack_10 = puStack_18;
puStack_20 = *ppuStack_10;
printIntLine(*puStack_20);
printIntLine(puStack_20[1]);
}
else {
ppuStack_28 = apuStack_40;
puStack_30 = apuStack_40[0];
printIntLine(*apuStack_40[0]);
printIntLine(puStack_30[1]);
}
return;
}
| ['gcc'] |
9,469 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_12_good()
{
good1();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112418/CWE758_Undefined_Behavior__struct_pointer_alloca_use_12.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_12_good |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_12_good(void)
{
good1();
return;
}
| ['gcc'] |
9,470 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_13_bad()
{
if(GLOBAL_CONST_FIVE==5)
{
{
twoIntsStruct * * pointer = (twoIntsStruct * *)ALLOCA(sizeof(twoIntsStruct *));
twoIntsStruct * data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
printIntLine(data->intOne);
printIntLine(data->intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112419/CWE758_Undefined_Behavior__struct_pointer_alloca_use_13.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_13_bad |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_13_bad
(undefined8 param_1,undefined8 param_2)
{
undefined4 *puStack_20;
undefined4 *puStack_18;
undefined4 **ppuStack_10;
if (GLOBAL_CONST_FIVE == 5) {
ppuStack_10 = &puStack_20;
puStack_18 = puStack_20;
printIntLine(*puStack_20,param_2,0xf);
printIntLine(puStack_18[1]);
}
return;
}
| ['gcc'] |
9,471 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_13_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112419/CWE758_Undefined_Behavior__struct_pointer_alloca_use_13.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_13_good |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_13_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,472 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_14_bad()
{
if(globalFive==5)
{
{
twoIntsStruct * * pointer = (twoIntsStruct * *)ALLOCA(sizeof(twoIntsStruct *));
twoIntsStruct * data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
printIntLine(data->intOne);
printIntLine(data->intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112420/CWE758_Undefined_Behavior__struct_pointer_alloca_use_14.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_14_bad |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_14_bad
(undefined8 param_1,undefined8 param_2)
{
undefined4 *puStack_20;
undefined4 *puStack_18;
undefined4 **ppuStack_10;
if (globalFive == 5) {
ppuStack_10 = &puStack_20;
puStack_18 = puStack_20;
printIntLine(*puStack_20,param_2,0xf);
printIntLine(puStack_18[1]);
}
return;
}
| ['gcc'] |
9,473 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_14_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112420/CWE758_Undefined_Behavior__struct_pointer_alloca_use_14.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_14_good |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_14_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,474 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_15_bad()
{
switch(6)
{
case 6:
{
twoIntsStruct * * pointer = (twoIntsStruct * *)ALLOCA(sizeof(twoIntsStruct *));
twoIntsStruct * data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
printIntLine(data->intOne);
printIntLine(data->intTwo);
}
break;
default:
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
break;
}
} | ['/* FLAW: the value pointed to by pointer is undefined */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112421/CWE758_Undefined_Behavior__struct_pointer_alloca_use_15.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_15_bad |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_15_bad
(undefined8 param_1,undefined8 param_2)
{
undefined4 *puStack_20;
undefined4 *puStack_18;
undefined4 **ppuStack_10;
ppuStack_10 = &puStack_20;
puStack_18 = puStack_20;
printIntLine(*puStack_20,param_2,0xf);
printIntLine(puStack_18[1]);
return;
}
| ['gcc'] |
9,475 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_15_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112421/CWE758_Undefined_Behavior__struct_pointer_alloca_use_15.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_15_good |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_15_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,476 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_16_bad()
{
while(1)
{
{
twoIntsStruct * * pointer = (twoIntsStruct * *)ALLOCA(sizeof(twoIntsStruct *));
twoIntsStruct * data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
printIntLine(data->intOne);
printIntLine(data->intTwo);
}
break;
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112422/CWE758_Undefined_Behavior__struct_pointer_alloca_use_16.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_16_bad |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_16_bad
(undefined8 param_1,undefined8 param_2)
{
undefined4 *puStack_20;
undefined4 *puStack_18;
undefined4 **ppuStack_10;
ppuStack_10 = &puStack_20;
puStack_18 = puStack_20;
printIntLine(*puStack_20,param_2,0xf);
printIntLine(puStack_18[1]);
return;
}
| ['gcc'] |
9,477 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_16_good()
{
good1();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112422/CWE758_Undefined_Behavior__struct_pointer_alloca_use_16.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_16_good |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_16_good(void)
{
good1();
return;
}
| ['gcc'] |
9,478 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_17_bad()
{
int j;
for(j = 0; j < 1; j++)
{
{
twoIntsStruct * * pointer = (twoIntsStruct * *)ALLOCA(sizeof(twoIntsStruct *));
twoIntsStruct * data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
printIntLine(data->intOne);
printIntLine(data->intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112423/CWE758_Undefined_Behavior__struct_pointer_alloca_use_17.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_17_bad |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_17_bad
(undefined8 param_1,undefined8 param_2)
{
undefined4 uVar1;
undefined *puVar2;
undefined8 auStack_40 [3];
undefined auStack_28 [8];
undefined4 *puStack_20;
undefined8 *puStack_18;
int iStack_c;
puVar2 = auStack_28;
for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) {
puStack_18 = (undefined8 *)((ulong)(puVar2 + -1) & 0xfffffffffffffff0);
puStack_20 = (undefined4 *)*puStack_18;
uVar1 = *puStack_20;
*(undefined **)(puVar2 + -0x18) = &UNK_00400b8f;
printIntLine(uVar1,param_2,0xf);
uVar1 = puStack_20[1];
*(undefined **)(puVar2 + -0x18) = &UNK_00400b9d;
printIntLine(uVar1);
puVar2 = puVar2 + -0x10;
}
return;
}
| ['gcc'] |
9,479 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_17_good()
{
good1();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112423/CWE758_Undefined_Behavior__struct_pointer_alloca_use_17.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_17_good |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_17_good(void)
{
good1();
return;
}
| ['gcc'] |
9,480 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_18_bad()
{
goto sink;
sink:
{
twoIntsStruct * * pointer = (twoIntsStruct * *)ALLOCA(sizeof(twoIntsStruct *));
twoIntsStruct * data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
printIntLine(data->intOne);
printIntLine(data->intTwo);
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112424/CWE758_Undefined_Behavior__struct_pointer_alloca_use_18.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_18_bad |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_18_bad
(undefined8 param_1,undefined8 param_2)
{
undefined4 *puStack_20;
undefined4 *puStack_18;
undefined4 **ppuStack_10;
ppuStack_10 = &puStack_20;
puStack_18 = puStack_20;
printIntLine(*puStack_20,param_2,0xf);
printIntLine(puStack_18[1]);
return;
}
| ['gcc'] |
9,481 | void CWE758_Undefined_Behavior__struct_pointer_alloca_use_18_good()
{
good1();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112424/CWE758_Undefined_Behavior__struct_pointer_alloca_use_18.c | CWE758_Undefined_Behavior__struct_pointer_alloca_use_18_good |
void CWE758_Undefined_Behavior__struct_pointer_alloca_use_18_good(void)
{
good1();
return;
}
| ['gcc'] |
9,482 | void CWE758_Undefined_Behavior__struct_pointer_malloc_use_01_bad()
{
{
twoIntsStruct * * pointer = (twoIntsStruct * *)malloc(sizeof(twoIntsStruct *));
twoIntsStruct * data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printIntLine(data->intOne);
printIntLine(data->intTwo);
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112425/CWE758_Undefined_Behavior__struct_pointer_malloc_use_01.c | CWE758_Undefined_Behavior__struct_pointer_malloc_use_01_bad |
void CWE758_Undefined_Behavior__struct_pointer_malloc_use_01_bad(void)
{
undefined4 *puVar1;
undefined8 *puVar2;
puVar2 = (undefined8 *)func_0x00400ab0(8);
puVar1 = (undefined4 *)*puVar2;
func_0x00400a20(puVar2);
printIntLine(*puVar1);
printIntLine(puVar1[1]);
return;
}
| ['gcc'] |
9,483 | void CWE758_Undefined_Behavior__struct_pointer_malloc_use_01_good()
{
good1();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112425/CWE758_Undefined_Behavior__struct_pointer_malloc_use_01.c | CWE758_Undefined_Behavior__struct_pointer_malloc_use_01_good |
void CWE758_Undefined_Behavior__struct_pointer_malloc_use_01_good(void)
{
good1();
return;
}
| ['gcc'] |
9,484 | void CWE758_Undefined_Behavior__struct_pointer_malloc_use_02_bad()
{
if(1)
{
{
twoIntsStruct * * pointer = (twoIntsStruct * *)malloc(sizeof(twoIntsStruct *));
twoIntsStruct * data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printIntLine(data->intOne);
printIntLine(data->intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112426/CWE758_Undefined_Behavior__struct_pointer_malloc_use_02.c | CWE758_Undefined_Behavior__struct_pointer_malloc_use_02_bad |
void CWE758_Undefined_Behavior__struct_pointer_malloc_use_02_bad(void)
{
undefined4 *puVar1;
undefined8 *puVar2;
puVar2 = (undefined8 *)func_0x00400ab0(8);
puVar1 = (undefined4 *)*puVar2;
func_0x00400a20(puVar2);
printIntLine(*puVar1);
printIntLine(puVar1[1]);
return;
}
| ['gcc'] |
9,485 | void CWE758_Undefined_Behavior__struct_pointer_malloc_use_02_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112426/CWE758_Undefined_Behavior__struct_pointer_malloc_use_02.c | CWE758_Undefined_Behavior__struct_pointer_malloc_use_02_good |
void CWE758_Undefined_Behavior__struct_pointer_malloc_use_02_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,486 | void CWE758_Undefined_Behavior__struct_pointer_malloc_use_03_bad()
{
if(5==5)
{
{
twoIntsStruct * * pointer = (twoIntsStruct * *)malloc(sizeof(twoIntsStruct *));
twoIntsStruct * data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printIntLine(data->intOne);
printIntLine(data->intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112427/CWE758_Undefined_Behavior__struct_pointer_malloc_use_03.c | CWE758_Undefined_Behavior__struct_pointer_malloc_use_03_bad |
void CWE758_Undefined_Behavior__struct_pointer_malloc_use_03_bad(void)
{
undefined4 *puVar1;
undefined8 *puVar2;
puVar2 = (undefined8 *)func_0x00400ab0(8);
puVar1 = (undefined4 *)*puVar2;
func_0x00400a20(puVar2);
printIntLine(*puVar1);
printIntLine(puVar1[1]);
return;
}
| ['gcc'] |
9,487 | void CWE758_Undefined_Behavior__struct_pointer_malloc_use_03_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112427/CWE758_Undefined_Behavior__struct_pointer_malloc_use_03.c | CWE758_Undefined_Behavior__struct_pointer_malloc_use_03_good |
void CWE758_Undefined_Behavior__struct_pointer_malloc_use_03_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,488 | void CWE758_Undefined_Behavior__struct_pointer_malloc_use_04_bad()
{
if(STATIC_CONST_TRUE)
{
{
twoIntsStruct * * pointer = (twoIntsStruct * *)malloc(sizeof(twoIntsStruct *));
twoIntsStruct * data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printIntLine(data->intOne);
printIntLine(data->intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112428/CWE758_Undefined_Behavior__struct_pointer_malloc_use_04.c | CWE758_Undefined_Behavior__struct_pointer_malloc_use_04_bad |
void CWE758_Undefined_Behavior__struct_pointer_malloc_use_04_bad(void)
{
undefined4 *puVar1;
undefined8 *puVar2;
puVar2 = (undefined8 *)func_0x00400ab0(8);
puVar1 = (undefined4 *)*puVar2;
func_0x00400a20(puVar2);
printIntLine(*puVar1);
printIntLine(puVar1[1]);
return;
}
| ['gcc'] |
9,489 | void CWE758_Undefined_Behavior__struct_pointer_malloc_use_04_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112428/CWE758_Undefined_Behavior__struct_pointer_malloc_use_04.c | CWE758_Undefined_Behavior__struct_pointer_malloc_use_04_good |
void CWE758_Undefined_Behavior__struct_pointer_malloc_use_04_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,490 | void CWE758_Undefined_Behavior__struct_pointer_malloc_use_05_bad()
{
if(staticTrue)
{
{
twoIntsStruct * * pointer = (twoIntsStruct * *)malloc(sizeof(twoIntsStruct *));
twoIntsStruct * data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printIntLine(data->intOne);
printIntLine(data->intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112429/CWE758_Undefined_Behavior__struct_pointer_malloc_use_05.c | CWE758_Undefined_Behavior__struct_pointer_malloc_use_05_bad |
void CWE758_Undefined_Behavior__struct_pointer_malloc_use_05_bad(void)
{
undefined4 *puVar1;
undefined8 *puVar2;
if (staticTrue != 0) {
puVar2 = (undefined8 *)func_0x00400ab0(8);
puVar1 = (undefined4 *)*puVar2;
func_0x00400a20(puVar2);
printIntLine(*puVar1);
printIntLine(puVar1[1]);
}
return;
}
| ['gcc'] |
9,491 | void CWE758_Undefined_Behavior__struct_pointer_malloc_use_05_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112429/CWE758_Undefined_Behavior__struct_pointer_malloc_use_05.c | CWE758_Undefined_Behavior__struct_pointer_malloc_use_05_good |
void CWE758_Undefined_Behavior__struct_pointer_malloc_use_05_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,492 | void CWE758_Undefined_Behavior__struct_pointer_malloc_use_06_bad()
{
if(STATIC_CONST_FIVE==5)
{
{
twoIntsStruct * * pointer = (twoIntsStruct * *)malloc(sizeof(twoIntsStruct *));
twoIntsStruct * data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printIntLine(data->intOne);
printIntLine(data->intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112430/CWE758_Undefined_Behavior__struct_pointer_malloc_use_06.c | CWE758_Undefined_Behavior__struct_pointer_malloc_use_06_bad |
void CWE758_Undefined_Behavior__struct_pointer_malloc_use_06_bad(void)
{
undefined4 *puVar1;
undefined8 *puVar2;
puVar2 = (undefined8 *)func_0x00400ab0(8);
puVar1 = (undefined4 *)*puVar2;
func_0x00400a20(puVar2);
printIntLine(*puVar1);
printIntLine(puVar1[1]);
return;
}
| ['gcc'] |
9,493 | void CWE758_Undefined_Behavior__struct_pointer_malloc_use_06_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112430/CWE758_Undefined_Behavior__struct_pointer_malloc_use_06.c | CWE758_Undefined_Behavior__struct_pointer_malloc_use_06_good |
void CWE758_Undefined_Behavior__struct_pointer_malloc_use_06_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,494 | void CWE758_Undefined_Behavior__struct_pointer_malloc_use_07_bad()
{
if(staticFive==5)
{
{
twoIntsStruct * * pointer = (twoIntsStruct * *)malloc(sizeof(twoIntsStruct *));
twoIntsStruct * data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printIntLine(data->intOne);
printIntLine(data->intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112431/CWE758_Undefined_Behavior__struct_pointer_malloc_use_07.c | CWE758_Undefined_Behavior__struct_pointer_malloc_use_07_bad |
void CWE758_Undefined_Behavior__struct_pointer_malloc_use_07_bad(void)
{
undefined4 *puVar1;
undefined8 *puVar2;
if (staticFive == 5) {
puVar2 = (undefined8 *)func_0x00400ab0(8);
puVar1 = (undefined4 *)*puVar2;
func_0x00400a20(puVar2);
printIntLine(*puVar1);
printIntLine(puVar1[1]);
}
return;
}
| ['gcc'] |
9,495 | void CWE758_Undefined_Behavior__struct_pointer_malloc_use_07_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112431/CWE758_Undefined_Behavior__struct_pointer_malloc_use_07.c | CWE758_Undefined_Behavior__struct_pointer_malloc_use_07_good |
void CWE758_Undefined_Behavior__struct_pointer_malloc_use_07_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,496 | void CWE758_Undefined_Behavior__struct_pointer_malloc_use_08_bad()
{
if(staticReturnsTrue())
{
{
twoIntsStruct * * pointer = (twoIntsStruct * *)malloc(sizeof(twoIntsStruct *));
twoIntsStruct * data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printIntLine(data->intOne);
printIntLine(data->intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112432/CWE758_Undefined_Behavior__struct_pointer_malloc_use_08.c | CWE758_Undefined_Behavior__struct_pointer_malloc_use_08_bad |
void CWE758_Undefined_Behavior__struct_pointer_malloc_use_08_bad(void)
{
undefined4 *puVar1;
int iVar2;
undefined8 *puVar3;
iVar2 = staticReturnsTrue();
if (iVar2 != 0) {
puVar3 = (undefined8 *)func_0x00400ab0(8);
puVar1 = (undefined4 *)*puVar3;
func_0x00400a20(puVar3);
printIntLine(*puVar1);
printIntLine(puVar1[1]);
}
return;
}
| ['gcc'] |
9,497 | void CWE758_Undefined_Behavior__struct_pointer_malloc_use_08_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112432/CWE758_Undefined_Behavior__struct_pointer_malloc_use_08.c | CWE758_Undefined_Behavior__struct_pointer_malloc_use_08_good |
void CWE758_Undefined_Behavior__struct_pointer_malloc_use_08_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
9,498 | void CWE758_Undefined_Behavior__struct_pointer_malloc_use_09_bad()
{
if(GLOBAL_CONST_TRUE)
{
{
twoIntsStruct * * pointer = (twoIntsStruct * *)malloc(sizeof(twoIntsStruct *));
twoIntsStruct * data = *pointer; /* FLAW: the value pointed to by pointer is undefined */
free(pointer);
printIntLine(data->intOne);
printIntLine(data->intTwo);
}
}
} | ['/* FLAW: the value pointed to by pointer is undefined */'] | ['CWE758'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112433/CWE758_Undefined_Behavior__struct_pointer_malloc_use_09.c | CWE758_Undefined_Behavior__struct_pointer_malloc_use_09_bad |
void CWE758_Undefined_Behavior__struct_pointer_malloc_use_09_bad(void)
{
undefined4 *puVar1;
undefined8 *puVar2;
if (GLOBAL_CONST_TRUE != 0) {
puVar2 = (undefined8 *)func_0x00400ab0(8);
puVar1 = (undefined4 *)*puVar2;
func_0x00400a20(puVar2);
printIntLine(*puVar1);
printIntLine(puVar1[1]);
}
return;
}
| ['gcc'] |
9,499 | void CWE758_Undefined_Behavior__struct_pointer_malloc_use_09_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/112433/CWE758_Undefined_Behavior__struct_pointer_malloc_use_09.c | CWE758_Undefined_Behavior__struct_pointer_malloc_use_09_good |
void CWE758_Undefined_Behavior__struct_pointer_malloc_use_09_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.