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 |
|---|---|---|---|---|---|---|---|---|
15,800 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_34_bad()
{
char * data;
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_34_unionType myUnion;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
myUnion.unionFirst = data;
{
char * data = myUnion.unionSecond;
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63017/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_34.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_34_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_34_bad(void)
{
undefined auStack_80 [32];
undefined auStack_60 [37];
undefined8 uStack_3b;
undefined2 uStack_33;
undefined uStack_31;
undefined *puStack_30;
undefined *puStack_28;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_30 = auStack_60;
puStack_18 = auStack_80;
auStack_60[0] = 0;
uStack_3b = 0x4141414141414141;
uStack_33 = 0x4141;
uStack_31 = 0;
puStack_28 = puStack_30;
puStack_20 = puStack_30;
puStack_10 = puStack_30;
func_0x004009e0(puStack_30,&uStack_3b);
printLine(puStack_28);
return;
}
| ['gcc'] |
15,801 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_34_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63017/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_34.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_34_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_34_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,802 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_41_badSink(char * data)
{
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63018/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_41_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_41_badSink(undefined8 param_1)
{
undefined8 uStack_13;
undefined2 uStack_b;
undefined uStack_9;
uStack_13 = 0x4141414141414141;
uStack_b = 0x4141;
uStack_9 = 0;
func_0x004009e0(param_1,&uStack_13);
printLine(param_1);
return;
}
| ['gcc'] |
15,803 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_41_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_41_badSink(data);
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63018/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_41_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_41_bad(void)
{
undefined auStack_60 [32];
undefined auStack_40 [32];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_40;
puStack_18 = auStack_60;
auStack_40[0] = 0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_41_badSink(puStack_20,0x10,2);
return;
}
| ['gcc'] |
15,804 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_41_goodG2BSink(char * data)
{
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* POTENTIAL FLAW: data may not have enough space to hold source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63018/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_41_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_41_goodG2BSink(undefined8 param_1)
{
undefined8 uStack_13;
undefined2 uStack_b;
undefined uStack_9;
uStack_13 = 0x4141414141414141;
uStack_b = 0x4141;
uStack_9 = 0;
func_0x004009e0(param_1,&uStack_13);
printLine(param_1);
return;
}
| ['gcc'] |
15,805 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_41_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63018/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_41_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_41_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,806 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_51_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_51b_badSink(data);
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63021/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_51a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_51_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_51_bad(void)
{
undefined auStack_60 [32];
undefined auStack_40 [32];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_40;
puStack_18 = auStack_60;
auStack_40[0] = 0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_51b_badSink(puStack_20,0x10,2);
return;
}
| ['gcc'] |
15,807 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_51_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63021/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_51a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_51_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_51_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,808 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_51b_badSink(char * data)
{
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63021/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_51b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_51b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_51b_badSink(undefined8 param_1)
{
undefined8 uStack_13;
undefined2 uStack_b;
undefined uStack_9;
uStack_13 = 0x4141414141414141;
uStack_b = 0x4141;
uStack_9 = 0;
func_0x004009e0(param_1,&uStack_13);
printLine(param_1);
return;
}
| ['gcc'] |
15,809 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_51b_goodG2BSink(char * data)
{
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* POTENTIAL FLAW: data may not have enough space to hold source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63021/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_51b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_51b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_51b_goodG2BSink(undefined8 param_1)
{
undefined8 uStack_13;
undefined2 uStack_b;
undefined uStack_9;
uStack_13 = 0x4141414141414141;
uStack_b = 0x4141;
uStack_9 = 0;
func_0x004009e0(param_1,&uStack_13);
printLine(param_1);
return;
}
| ['gcc'] |
15,810 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52b_badSink(data);
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63022/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52_bad(void)
{
undefined auStack_60 [32];
undefined auStack_40 [32];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_40;
puStack_18 = auStack_60;
auStack_40[0] = 0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52b_badSink(puStack_20,0x10,2);
return;
}
| ['gcc'] |
15,811 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63022/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,812 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52b_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52c_badSink(data);
} | [] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63022/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52b_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52c_badSink(param_1);
return;
}
| ['gcc'] |
15,813 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52b_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63022/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52b_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
15,814 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52c_badSink(char * data)
{
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63022/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52c.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52c_badSink(undefined8 param_1)
{
undefined8 uStack_13;
undefined2 uStack_b;
undefined uStack_9;
uStack_13 = 0x4141414141414141;
uStack_b = 0x4141;
uStack_9 = 0;
func_0x004009e0(param_1,&uStack_13);
printLine(param_1);
return;
}
| ['gcc'] |
15,815 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52c_goodG2BSink(char * data)
{
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* POTENTIAL FLAW: data may not have enough space to hold source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63022/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52c.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_52c_goodG2BSink(undefined8 param_1)
{
undefined8 uStack_13;
undefined2 uStack_b;
undefined uStack_9;
uStack_13 = 0x4141414141414141;
uStack_b = 0x4141;
uStack_9 = 0;
func_0x004009e0(param_1,&uStack_13);
printLine(param_1);
return;
}
| ['gcc'] |
15,816 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53b_badSink(data);
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63023/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53_bad(void)
{
undefined auStack_60 [32];
undefined auStack_40 [32];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_40;
puStack_18 = auStack_60;
auStack_40[0] = 0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53b_badSink(puStack_20,0x10,2);
return;
}
| ['gcc'] |
15,817 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63023/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,818 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53b_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53c_badSink(data);
} | [] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63023/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53b_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53c_badSink(param_1);
return;
}
| ['gcc'] |
15,819 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53b_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63023/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53b_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
15,820 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53c_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53d_badSink(data);
} | [] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63023/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53c.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53c_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53d_badSink(param_1);
return;
}
| ['gcc'] |
15,821 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53c_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63023/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53c.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53c_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
15,822 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53d_badSink(char * data)
{
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63023/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53d.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53d_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53d_badSink(undefined8 param_1)
{
undefined8 uStack_13;
undefined2 uStack_b;
undefined uStack_9;
uStack_13 = 0x4141414141414141;
uStack_b = 0x4141;
uStack_9 = 0;
func_0x004009e0(param_1,&uStack_13);
printLine(param_1);
return;
}
| ['gcc'] |
15,823 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53d_goodG2BSink(char * data)
{
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* POTENTIAL FLAW: data may not have enough space to hold source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63023/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53d.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53d_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_53d_goodG2BSink(undefined8 param_1)
{
undefined8 uStack_13;
undefined2 uStack_b;
undefined uStack_9;
uStack_13 = 0x4141414141414141;
uStack_b = 0x4141;
uStack_9 = 0;
func_0x004009e0(param_1,&uStack_13);
printLine(param_1);
return;
}
| ['gcc'] |
15,824 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54b_badSink(data);
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63024/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54_bad(void)
{
undefined auStack_60 [32];
undefined auStack_40 [32];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_40;
puStack_18 = auStack_60;
auStack_40[0] = 0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54b_badSink(puStack_20,0x10,2);
return;
}
| ['gcc'] |
15,825 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63024/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,826 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54b_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54c_badSink(data);
} | [] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63024/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54b_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54c_badSink(param_1);
return;
}
| ['gcc'] |
15,827 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54b_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63024/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54b_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
15,828 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54c_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54d_badSink(data);
} | [] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63024/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54c.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54c_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54d_badSink(param_1);
return;
}
| ['gcc'] |
15,829 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54c_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63024/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54c.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54c_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
15,830 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54d_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54e_badSink(data);
} | [] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63024/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54d.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54d_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54d_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54e_badSink(param_1);
return;
}
| ['gcc'] |
15,831 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54d_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54e_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63024/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54d.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54d_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54d_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54e_goodG2BSink(param_1);
return;
}
| ['gcc'] |
15,832 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54e_badSink(char * data)
{
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63024/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54e.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54e_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54e_badSink(undefined8 param_1)
{
undefined8 uStack_13;
undefined2 uStack_b;
undefined uStack_9;
uStack_13 = 0x4141414141414141;
uStack_b = 0x4141;
uStack_9 = 0;
func_0x004009e0(param_1,&uStack_13);
printLine(param_1);
return;
}
| ['gcc'] |
15,833 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54e_goodG2BSink(char * data)
{
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* POTENTIAL FLAW: data may not have enough space to hold source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63024/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54e.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54e_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_54e_goodG2BSink(undefined8 param_1)
{
undefined8 uStack_13;
undefined2 uStack_b;
undefined uStack_9;
uStack_13 = 0x4141414141414141;
uStack_b = 0x4141;
uStack_9 = 0;
func_0x004009e0(param_1,&uStack_13);
printLine(param_1);
return;
}
| ['gcc'] |
15,834 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_63_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_63b_badSink(&data);
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63025/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_63a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_63_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_63_bad(void)
{
undefined auStack_60 [32];
undefined auStack_40 [32];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_40;
puStack_18 = auStack_60;
auStack_40[0] = 0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_63b_badSink(&puStack_20,0x10,2);
return;
}
| ['gcc'] |
15,835 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_63_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63025/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_63a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_63_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_63_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,836 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_63b_badSink(char * * dataPtr)
{
char * data = *dataPtr;
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63025/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_63b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_63b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_63b_badSink(undefined8 *param_1)
{
undefined8 uStack_1b;
undefined2 uStack_13;
undefined uStack_11;
undefined8 uStack_10;
uStack_10 = *param_1;
uStack_1b = 0x4141414141414141;
uStack_13 = 0x4141;
uStack_11 = 0;
func_0x004009e0(uStack_10,&uStack_1b);
printLine(uStack_10);
return;
}
| ['gcc'] |
15,837 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_63b_goodG2BSink(char * * dataPtr)
{
char * data = *dataPtr;
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* POTENTIAL FLAW: data may not have enough space to hold source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63025/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_63b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_63b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_63b_goodG2BSink(undefined8 *param_1)
{
undefined8 uStack_1b;
undefined2 uStack_13;
undefined uStack_11;
undefined8 uStack_10;
uStack_10 = *param_1;
uStack_1b = 0x4141414141414141;
uStack_13 = 0x4141;
uStack_11 = 0;
func_0x004009e0(uStack_10,&uStack_1b);
printLine(uStack_10);
return;
}
| ['gcc'] |
15,838 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_64_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_64b_badSink(&data);
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63026/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_64a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_64_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_64_bad(void)
{
undefined auStack_60 [32];
undefined auStack_40 [32];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_40;
puStack_18 = auStack_60;
auStack_40[0] = 0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_64b_badSink(&puStack_20,0x10,2);
return;
}
| ['gcc'] |
15,839 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_64_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63026/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_64a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_64_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_64_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,840 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_64b_badSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
char * * dataPtr = (char * *)dataVoidPtr;
/* dereference dataPtr into data */
char * data = (*dataPtr);
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63026/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_64b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_64b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_64b_badSink(undefined8 *param_1)
{
undefined8 uStack_23;
undefined2 uStack_1b;
undefined uStack_19;
undefined8 uStack_18;
undefined8 *puStack_10;
uStack_18 = *param_1;
uStack_23 = 0x4141414141414141;
uStack_1b = 0x4141;
uStack_19 = 0;
puStack_10 = param_1;
func_0x004009e0(uStack_18,&uStack_23);
printLine(uStack_18);
return;
}
| ['gcc'] |
15,841 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_64b_goodG2BSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
char * * dataPtr = (char * *)dataVoidPtr;
/* dereference dataPtr into data */
char * data = (*dataPtr);
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63026/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_64b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_64b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_64b_goodG2BSink(undefined8 *param_1)
{
undefined8 uStack_23;
undefined2 uStack_1b;
undefined uStack_19;
undefined8 uStack_18;
undefined8 *puStack_10;
uStack_18 = *param_1;
uStack_23 = 0x4141414141414141;
uStack_1b = 0x4141;
uStack_19 = 0;
puStack_10 = param_1;
func_0x004009e0(uStack_18,&uStack_23);
printLine(uStack_18);
return;
}
| ['gcc'] |
15,842 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_66_bad()
{
char * data;
char * dataArray[5];
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
/* put data in array */
dataArray[2] = data;
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_66b_badSink(dataArray);
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* put data in array */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63028/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_66a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_66_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_66_bad(void)
{
undefined auStack_80 [32];
undefined auStack_60 [24];
undefined auStack_48 [16];
undefined *puStack_38;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_38 = auStack_60;
puStack_18 = auStack_80;
auStack_60[0] = 0;
puStack_20 = puStack_38;
puStack_10 = puStack_38;
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_66b_badSink(auStack_48,0x10,2);
return;
}
| ['gcc'] |
15,843 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_66_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63028/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_66a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_66_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_66_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,844 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_66b_badSink(char * dataArray[])
{
/* copy data out of dataArray */
char * data = dataArray[2];
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* copy data out of dataArray */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63028/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_66b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_66b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_66b_badSink(long param_1)
{
undefined8 uStack_1b;
undefined2 uStack_13;
undefined uStack_11;
undefined8 uStack_10;
uStack_10 = *(undefined8 *)(param_1 + 0x10);
uStack_1b = 0x4141414141414141;
uStack_13 = 0x4141;
uStack_11 = 0;
func_0x004009e0(uStack_10,&uStack_1b);
printLine(uStack_10);
return;
}
| ['gcc'] |
15,845 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_66b_goodG2BSink(char * dataArray[])
{
char * data = dataArray[2];
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* POTENTIAL FLAW: data may not have enough space to hold source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63028/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_66b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_66b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_66b_goodG2BSink(long param_1)
{
undefined8 uStack_1b;
undefined2 uStack_13;
undefined uStack_11;
undefined8 uStack_10;
uStack_10 = *(undefined8 *)(param_1 + 0x10);
uStack_1b = 0x4141414141414141;
uStack_13 = 0x4141;
uStack_11 = 0;
func_0x004009e0(uStack_10,&uStack_1b);
printLine(uStack_10);
return;
}
| ['gcc'] |
15,846 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_67_bad()
{
char * data;
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_67_structType myStruct;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
myStruct.structFirst = data;
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_67b_badSink(myStruct);
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63029/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_67a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_67_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_67_bad(void)
{
undefined auStack_60 [32];
undefined auStack_40 [24];
undefined *puStack_28;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_28 = auStack_40;
puStack_18 = auStack_60;
auStack_40[0] = 0;
puStack_20 = puStack_28;
puStack_10 = puStack_28;
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_67b_badSink(puStack_28,0x10,2);
return;
}
| ['gcc'] |
15,847 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_67_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63029/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_67a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_67_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_67_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,848 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_67b_badSink(CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_67_structType myStruct)
{
char * data = myStruct.structFirst;
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63029/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_67b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_67b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_67b_badSink(undefined8 param_1)
{
undefined8 uStack_1b;
undefined2 uStack_13;
undefined uStack_11;
undefined8 uStack_10;
uStack_1b = 0x4141414141414141;
uStack_13 = 0x4141;
uStack_11 = 0;
uStack_10 = param_1;
func_0x004009e0(param_1,&uStack_1b);
printLine(uStack_10);
return;
}
| ['gcc'] |
15,849 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_67b_goodG2BSink(CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_67_structType myStruct)
{
char * data = myStruct.structFirst;
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* POTENTIAL FLAW: data may not have enough space to hold source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63029/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_67b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_67b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_67b_goodG2BSink(undefined8 param_1)
{
undefined8 uStack_1b;
undefined2 uStack_13;
undefined uStack_11;
undefined8 uStack_10;
uStack_1b = 0x4141414141414141;
uStack_13 = 0x4141;
uStack_11 = 0;
uStack_10 = param_1;
func_0x004009e0(param_1,&uStack_1b);
printLine(uStack_10);
return;
}
| ['gcc'] |
15,850 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_01_bad()
{
{
charVoid structCharVoid;
structCharVoid.voidSecond = (void *)SRC_STR;
/* Print the initial block pointed to by structCharVoid.voidSecond */
printLine((char *)structCharVoid.voidSecond);
/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */
memcpy(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid));
structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */
printLine((char *)structCharVoid.charFirst);
printLine((char *)structCharVoid.voidSecond);
}
} | ['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */'] | ['CWE121'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63036/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_01.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_01_bad |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_01_bad(void)
{
undefined auStack_28 [15];
undefined uStack_19;
undefined *puStack_18;
puStack_18 = &UNK_00401174;
printLine(&UNK_00401174);
func_0x00400a70(auStack_28,&UNK_00401174,0x20);
uStack_19 = 0;
printLine(auStack_28);
printLine(puStack_18);
return;
}
| ['gcc'] |
15,851 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_01_good()
{
good1();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63036/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_01.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_01_good |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_01_good(void)
{
good1();
return;
}
| ['gcc'] |
15,852 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_02_bad()
{
if(1)
{
{
charVoid structCharVoid;
structCharVoid.voidSecond = (void *)SRC_STR;
/* Print the initial block pointed to by structCharVoid.voidSecond */
printLine((char *)structCharVoid.voidSecond);
/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */
memcpy(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid));
structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */
printLine((char *)structCharVoid.charFirst);
printLine((char *)structCharVoid.voidSecond);
}
}
} | ['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */'] | ['CWE121'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63037/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_02.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_02_bad |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_02_bad(void)
{
undefined auStack_28 [15];
undefined uStack_19;
undefined *puStack_18;
puStack_18 = &UNK_00401174;
printLine(&UNK_00401174);
func_0x00400a70(auStack_28,&UNK_00401174,0x20);
uStack_19 = 0;
printLine(auStack_28);
printLine(puStack_18);
return;
}
| ['gcc'] |
15,853 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_02_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63037/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_02.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_02_good |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_02_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
15,854 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_03_bad()
{
if(5==5)
{
{
charVoid structCharVoid;
structCharVoid.voidSecond = (void *)SRC_STR;
/* Print the initial block pointed to by structCharVoid.voidSecond */
printLine((char *)structCharVoid.voidSecond);
/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */
memcpy(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid));
structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */
printLine((char *)structCharVoid.charFirst);
printLine((char *)structCharVoid.voidSecond);
}
}
} | ['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */'] | ['CWE121'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63038/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_03.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_03_bad |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_03_bad(void)
{
undefined auStack_28 [15];
undefined uStack_19;
undefined *puStack_18;
puStack_18 = &UNK_00401174;
printLine(&UNK_00401174);
func_0x00400a70(auStack_28,&UNK_00401174,0x20);
uStack_19 = 0;
printLine(auStack_28);
printLine(puStack_18);
return;
}
| ['gcc'] |
15,855 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_03_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63038/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_03.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_03_good |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_03_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
15,856 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_04_bad()
{
if(STATIC_CONST_TRUE)
{
{
charVoid structCharVoid;
structCharVoid.voidSecond = (void *)SRC_STR;
/* Print the initial block pointed to by structCharVoid.voidSecond */
printLine((char *)structCharVoid.voidSecond);
/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */
memcpy(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid));
structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */
printLine((char *)structCharVoid.charFirst);
printLine((char *)structCharVoid.voidSecond);
}
}
} | ['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */'] | ['CWE121'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63039/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_04.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_04_bad |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_04_bad(void)
{
undefined auStack_28 [15];
undefined uStack_19;
undefined *puStack_18;
puStack_18 = &UNK_0040117c;
printLine(&UNK_0040117c);
func_0x00400a70(auStack_28,&UNK_0040117c,0x20);
uStack_19 = 0;
printLine(auStack_28);
printLine(puStack_18);
return;
}
| ['gcc'] |
15,857 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_04_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63039/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_04.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_04_good |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_04_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
15,858 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_05_bad()
{
if(staticTrue)
{
{
charVoid structCharVoid;
structCharVoid.voidSecond = (void *)SRC_STR;
/* Print the initial block pointed to by structCharVoid.voidSecond */
printLine((char *)structCharVoid.voidSecond);
/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */
memcpy(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid));
structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */
printLine((char *)structCharVoid.charFirst);
printLine((char *)structCharVoid.voidSecond);
}
}
} | ['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */'] | ['CWE121'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63040/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_05.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_05_bad |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_05_bad(void)
{
undefined auStack_28 [15];
undefined uStack_19;
undefined *puStack_18;
if (staticTrue != 0) {
puStack_18 = &UNK_00401174;
printLine(&UNK_00401174);
func_0x00400a70(auStack_28,&UNK_00401174,0x20);
uStack_19 = 0;
printLine(auStack_28);
printLine(puStack_18);
}
return;
}
| ['gcc'] |
15,859 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_05_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63040/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_05.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_05_good |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_05_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
15,860 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_06_bad()
{
if(STATIC_CONST_FIVE==5)
{
{
charVoid structCharVoid;
structCharVoid.voidSecond = (void *)SRC_STR;
/* Print the initial block pointed to by structCharVoid.voidSecond */
printLine((char *)structCharVoid.voidSecond);
/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */
memcpy(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid));
structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */
printLine((char *)structCharVoid.charFirst);
printLine((char *)structCharVoid.voidSecond);
}
}
} | ['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */'] | ['CWE121'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63041/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_06.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_06_bad |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_06_bad(void)
{
undefined auStack_28 [15];
undefined uStack_19;
undefined *puStack_18;
puStack_18 = &UNK_00401178;
printLine(&UNK_00401178);
func_0x00400a70(auStack_28,&UNK_00401178,0x20);
uStack_19 = 0;
printLine(auStack_28);
printLine(puStack_18);
return;
}
| ['gcc'] |
15,861 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_06_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63041/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_06.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_06_good |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_06_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
15,862 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_07_bad()
{
if(staticFive==5)
{
{
charVoid structCharVoid;
structCharVoid.voidSecond = (void *)SRC_STR;
/* Print the initial block pointed to by structCharVoid.voidSecond */
printLine((char *)structCharVoid.voidSecond);
/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */
memcpy(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid));
structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */
printLine((char *)structCharVoid.charFirst);
printLine((char *)structCharVoid.voidSecond);
}
}
} | ['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */'] | ['CWE121'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63042/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_07.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_07_bad |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_07_bad(void)
{
undefined auStack_28 [15];
undefined uStack_19;
undefined *puStack_18;
if (staticFive == 5) {
puStack_18 = &UNK_00401184;
printLine(&UNK_00401184);
func_0x00400a70(auStack_28,&UNK_00401184,0x20);
uStack_19 = 0;
printLine(auStack_28);
printLine(puStack_18);
}
return;
}
| ['gcc'] |
15,863 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_07_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63042/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_07.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_07_good |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_07_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
15,864 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_08_bad()
{
if(staticReturnsTrue())
{
{
charVoid structCharVoid;
structCharVoid.voidSecond = (void *)SRC_STR;
/* Print the initial block pointed to by structCharVoid.voidSecond */
printLine((char *)structCharVoid.voidSecond);
/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */
memcpy(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid));
structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */
printLine((char *)structCharVoid.charFirst);
printLine((char *)structCharVoid.voidSecond);
}
}
} | ['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */'] | ['CWE121'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63043/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_08.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_08_bad |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_08_bad(void)
{
int iVar1;
undefined auStack_28 [15];
undefined uStack_19;
undefined *puStack_18;
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
puStack_18 = &UNK_00401194;
printLine(&UNK_00401194);
func_0x00400a70(auStack_28,&UNK_00401194,0x20);
uStack_19 = 0;
printLine(auStack_28);
printLine(puStack_18);
}
return;
}
| ['gcc'] |
15,865 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_08_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63043/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_08.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_08_good |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_08_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
15,866 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_09_bad()
{
if(GLOBAL_CONST_TRUE)
{
{
charVoid structCharVoid;
structCharVoid.voidSecond = (void *)SRC_STR;
/* Print the initial block pointed to by structCharVoid.voidSecond */
printLine((char *)structCharVoid.voidSecond);
/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */
memcpy(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid));
structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */
printLine((char *)structCharVoid.charFirst);
printLine((char *)structCharVoid.voidSecond);
}
}
} | ['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */'] | ['CWE121'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63044/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_09.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_09_bad |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_09_bad(void)
{
undefined auStack_28 [15];
undefined uStack_19;
undefined *puStack_18;
if (GLOBAL_CONST_TRUE != 0) {
puStack_18 = &UNK_00401174;
printLine(&UNK_00401174);
func_0x00400a70(auStack_28,&UNK_00401174,0x20);
uStack_19 = 0;
printLine(auStack_28);
printLine(puStack_18);
}
return;
}
| ['gcc'] |
15,867 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_09_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63044/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_09.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_09_good |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_09_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
15,868 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_10_bad()
{
if(globalTrue)
{
{
charVoid structCharVoid;
structCharVoid.voidSecond = (void *)SRC_STR;
/* Print the initial block pointed to by structCharVoid.voidSecond */
printLine((char *)structCharVoid.voidSecond);
/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */
memcpy(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid));
structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */
printLine((char *)structCharVoid.charFirst);
printLine((char *)structCharVoid.voidSecond);
}
}
} | ['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */'] | ['CWE121'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63045/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_10.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_10_bad |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_10_bad(void)
{
undefined auStack_28 [15];
undefined uStack_19;
undefined *puStack_18;
if (globalTrue != 0) {
puStack_18 = &UNK_00401174;
printLine(&UNK_00401174);
func_0x00400a70(auStack_28,&UNK_00401174,0x20);
uStack_19 = 0;
printLine(auStack_28);
printLine(puStack_18);
}
return;
}
| ['gcc'] |
15,869 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_10_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63045/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_10.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_10_good |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_10_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
15,870 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_11_bad()
{
if(globalReturnsTrue())
{
{
charVoid structCharVoid;
structCharVoid.voidSecond = (void *)SRC_STR;
/* Print the initial block pointed to by structCharVoid.voidSecond */
printLine((char *)structCharVoid.voidSecond);
/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */
memcpy(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid));
structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */
printLine((char *)structCharVoid.charFirst);
printLine((char *)structCharVoid.voidSecond);
}
}
} | ['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */'] | ['CWE121'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63046/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_11.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_11_bad |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_11_bad(void)
{
int iVar1;
undefined auStack_28 [15];
undefined uStack_19;
undefined *puStack_18;
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
puStack_18 = &UNK_00401184;
printLine(&UNK_00401184);
func_0x00400a70(auStack_28,&UNK_00401184,0x20);
uStack_19 = 0;
printLine(auStack_28);
printLine(puStack_18);
}
return;
}
| ['gcc'] |
15,871 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_11_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63046/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_11.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_11_good |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_11_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
15,872 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_12_bad()
{
if(globalReturnsTrueOrFalse())
{
{
charVoid structCharVoid;
structCharVoid.voidSecond = (void *)SRC_STR;
/* Print the initial block pointed to by structCharVoid.voidSecond */
printLine((char *)structCharVoid.voidSecond);
/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */
memcpy(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid));
structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */
printLine((char *)structCharVoid.charFirst);
printLine((char *)structCharVoid.voidSecond);
}
}
else
{
{
charVoid structCharVoid;
structCharVoid.voidSecond = (void *)SRC_STR;
/* Print the initial block pointed to by structCharVoid.voidSecond */
printLine((char *)structCharVoid.voidSecond);
/* FIX: Use sizeof(structCharVoid.charFirst) to avoid overwriting the pointer voidSecond */
memcpy(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid.charFirst));
structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */
printLine((char *)structCharVoid.charFirst);
printLine((char *)structCharVoid.voidSecond);
}
}
} | ['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */', '/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FIX: Use sizeof(structCharVoid.charFirst) to avoid overwriting the pointer voidSecond */', '/* null terminate the string */'] | ['CWE121'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63047/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_12.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_12_bad |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_12_bad(void)
{
int iVar1;
undefined8 uStack_28;
ulong uStack_20;
undefined *puStack_18;
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
puStack_18 = &UNK_004011d4;
printLine(&UNK_004011d4);
uStack_28 = 0x3736353433323130;
uStack_20 = 0x65646362613938;
printLine(&uStack_28);
printLine(puStack_18);
}
else {
puStack_18 = &UNK_004011d4;
printLine(&UNK_004011d4);
func_0x00400a70(&uStack_28,&UNK_004011d4,0x20);
uStack_20 = uStack_20 & 0xffffffffffffff;
printLine(&uStack_28);
printLine(puStack_18);
}
return;
}
| ['gcc'] |
15,873 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_12_good()
{
good1();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63047/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_12.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_12_good |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_12_good(void)
{
good1();
return;
}
| ['gcc'] |
15,874 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_13_bad()
{
if(GLOBAL_CONST_FIVE==5)
{
{
charVoid structCharVoid;
structCharVoid.voidSecond = (void *)SRC_STR;
/* Print the initial block pointed to by structCharVoid.voidSecond */
printLine((char *)structCharVoid.voidSecond);
/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */
memcpy(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid));
structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */
printLine((char *)structCharVoid.charFirst);
printLine((char *)structCharVoid.voidSecond);
}
}
} | ['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */'] | ['CWE121'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63048/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_13.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_13_bad |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_13_bad(void)
{
undefined auStack_28 [15];
undefined uStack_19;
undefined *puStack_18;
if (GLOBAL_CONST_FIVE == 5) {
puStack_18 = &UNK_00401184;
printLine(&UNK_00401184);
func_0x00400a70(auStack_28,&UNK_00401184,0x20);
uStack_19 = 0;
printLine(auStack_28);
printLine(puStack_18);
}
return;
}
| ['gcc'] |
15,875 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_13_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63048/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_13.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_13_good |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_13_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
15,876 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_14_bad()
{
if(globalFive==5)
{
{
charVoid structCharVoid;
structCharVoid.voidSecond = (void *)SRC_STR;
/* Print the initial block pointed to by structCharVoid.voidSecond */
printLine((char *)structCharVoid.voidSecond);
/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */
memcpy(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid));
structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */
printLine((char *)structCharVoid.charFirst);
printLine((char *)structCharVoid.voidSecond);
}
}
} | ['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */'] | ['CWE121'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63049/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_14.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_14_bad |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_14_bad(void)
{
undefined auStack_28 [15];
undefined uStack_19;
undefined *puStack_18;
if (globalFive == 5) {
puStack_18 = &UNK_00401184;
printLine(&UNK_00401184);
func_0x00400a70(auStack_28,&UNK_00401184,0x20);
uStack_19 = 0;
printLine(auStack_28);
printLine(puStack_18);
}
return;
}
| ['gcc'] |
15,877 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_14_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63049/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_14.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_14_good |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_14_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
15,878 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_15_bad()
{
switch(6)
{
case 6:
{
charVoid structCharVoid;
structCharVoid.voidSecond = (void *)SRC_STR;
/* Print the initial block pointed to by structCharVoid.voidSecond */
printLine((char *)structCharVoid.voidSecond);
/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */
memcpy(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid));
structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */
printLine((char *)structCharVoid.charFirst);
printLine((char *)structCharVoid.voidSecond);
}
break;
default:
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
break;
}
} | ['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */'] | ['CWE121'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63050/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_15.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_15_bad |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_15_bad(void)
{
undefined auStack_28 [15];
undefined uStack_19;
undefined *puStack_18;
puStack_18 = &UNK_00401174;
printLine(&UNK_00401174);
func_0x00400a70(auStack_28,&UNK_00401174,0x20);
uStack_19 = 0;
printLine(auStack_28);
printLine(puStack_18);
return;
}
| ['gcc'] |
15,879 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_15_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63050/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_15.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_15_good |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_15_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
15,880 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_16_bad()
{
while(1)
{
{
charVoid structCharVoid;
structCharVoid.voidSecond = (void *)SRC_STR;
/* Print the initial block pointed to by structCharVoid.voidSecond */
printLine((char *)structCharVoid.voidSecond);
/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */
memcpy(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid));
structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */
printLine((char *)structCharVoid.charFirst);
printLine((char *)structCharVoid.voidSecond);
}
break;
}
} | ['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */'] | ['CWE121'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63051/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_16.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_16_bad |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_16_bad(void)
{
undefined auStack_28 [15];
undefined uStack_19;
undefined *puStack_18;
puStack_18 = &UNK_00401174;
printLine(&UNK_00401174);
func_0x00400a70(auStack_28,&UNK_00401174,0x20);
uStack_19 = 0;
printLine(auStack_28);
printLine(puStack_18);
return;
}
| ['gcc'] |
15,881 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_16_good()
{
good1();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63051/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_16.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_16_good |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_16_good(void)
{
good1();
return;
}
| ['gcc'] |
15,882 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_17_bad()
{
int j;
for(j = 0; j < 1; j++)
{
{
charVoid structCharVoid;
structCharVoid.voidSecond = (void *)SRC_STR;
/* Print the initial block pointed to by structCharVoid.voidSecond */
printLine((char *)structCharVoid.voidSecond);
/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */
memcpy(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid));
structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */
printLine((char *)structCharVoid.charFirst);
printLine((char *)structCharVoid.voidSecond);
}
}
} | ['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */'] | ['CWE121'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63052/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_17.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_17_bad |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_17_bad(void)
{
undefined auStack_38 [15];
undefined uStack_29;
undefined *puStack_28;
int iStack_c;
for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) {
puStack_28 = &UNK_00401184;
printLine(&UNK_00401184);
func_0x00400a70(auStack_38,&UNK_00401184,0x20);
uStack_29 = 0;
printLine(auStack_38);
printLine(puStack_28);
}
return;
}
| ['gcc'] |
15,883 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_17_good()
{
good1();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63052/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_17.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_17_good |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_17_good(void)
{
good1();
return;
}
| ['gcc'] |
15,884 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_18_bad()
{
goto sink;
sink:
{
charVoid structCharVoid;
structCharVoid.voidSecond = (void *)SRC_STR;
/* Print the initial block pointed to by structCharVoid.voidSecond */
printLine((char *)structCharVoid.voidSecond);
/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */
memcpy(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid));
structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */
printLine((char *)structCharVoid.charFirst);
printLine((char *)structCharVoid.voidSecond);
}
} | ['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */'] | ['CWE121'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63053/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_18.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_18_bad |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_18_bad(void)
{
undefined auStack_28 [15];
undefined uStack_19;
undefined *puStack_18;
puStack_18 = &UNK_00401174;
printLine(&UNK_00401174);
func_0x00400a70(auStack_28,&UNK_00401174,0x20);
uStack_19 = 0;
printLine(auStack_28);
printLine(puStack_18);
return;
}
| ['gcc'] |
15,885 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_18_good()
{
good1();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63053/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_18.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_18_good |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memcpy_18_good(void)
{
good1();
return;
}
| ['gcc'] |
15,886 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_01_bad()
{
{
charVoid structCharVoid;
structCharVoid.voidSecond = (void *)SRC_STR;
/* Print the initial block pointed to by structCharVoid.voidSecond */
printLine((char *)structCharVoid.voidSecond);
/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */
memmove(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid));
structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */
printLine((char *)structCharVoid.charFirst);
printLine((char *)structCharVoid.voidSecond);
}
} | ['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */'] | ['CWE121'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63054/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_01.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_01_bad |
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_01_bad(void)
{
undefined8 uStack_28;
ulong uStack_20;
undefined *puStack_18;
undefined8 uStack_10;
puStack_18 = &UNK_00401114;
printLine(&UNK_00401114);
uStack_28 = _UNK_00401114;
puStack_18 = (undefined *)_UNK_00401124;
uStack_10 = _UNK_0040112c;
uStack_20 = _UNK_0040111c & 0xffffffffffffff;
printLine(&uStack_28);
printLine(puStack_18);
return;
}
| ['gcc'] |
15,887 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_01_good()
{
good1();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63054/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_01.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_01_good |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_01_good(void)
{
good1();
return;
}
| ['gcc'] |
15,888 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_02_bad()
{
if(1)
{
{
charVoid structCharVoid;
structCharVoid.voidSecond = (void *)SRC_STR;
/* Print the initial block pointed to by structCharVoid.voidSecond */
printLine((char *)structCharVoid.voidSecond);
/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */
memmove(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid));
structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */
printLine((char *)structCharVoid.charFirst);
printLine((char *)structCharVoid.voidSecond);
}
}
} | ['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */'] | ['CWE121'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63055/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_02.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_02_bad |
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_02_bad(void)
{
undefined8 uStack_28;
ulong uStack_20;
undefined *puStack_18;
undefined8 uStack_10;
puStack_18 = &UNK_00401114;
printLine(&UNK_00401114);
uStack_28 = _UNK_00401114;
puStack_18 = (undefined *)_UNK_00401124;
uStack_10 = _UNK_0040112c;
uStack_20 = _UNK_0040111c & 0xffffffffffffff;
printLine(&uStack_28);
printLine(puStack_18);
return;
}
| ['gcc'] |
15,889 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_02_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63055/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_02.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_02_good |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_02_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
15,890 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_03_bad()
{
if(5==5)
{
{
charVoid structCharVoid;
structCharVoid.voidSecond = (void *)SRC_STR;
/* Print the initial block pointed to by structCharVoid.voidSecond */
printLine((char *)structCharVoid.voidSecond);
/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */
memmove(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid));
structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */
printLine((char *)structCharVoid.charFirst);
printLine((char *)structCharVoid.voidSecond);
}
}
} | ['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */'] | ['CWE121'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63056/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_03.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_03_bad |
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_03_bad(void)
{
undefined8 uStack_28;
ulong uStack_20;
undefined *puStack_18;
undefined8 uStack_10;
puStack_18 = &UNK_00401114;
printLine(&UNK_00401114);
uStack_28 = _UNK_00401114;
puStack_18 = (undefined *)_UNK_00401124;
uStack_10 = _UNK_0040112c;
uStack_20 = _UNK_0040111c & 0xffffffffffffff;
printLine(&uStack_28);
printLine(puStack_18);
return;
}
| ['gcc'] |
15,891 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_03_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63056/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_03.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_03_good |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_03_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
15,892 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_04_bad()
{
if(STATIC_CONST_TRUE)
{
{
charVoid structCharVoid;
structCharVoid.voidSecond = (void *)SRC_STR;
/* Print the initial block pointed to by structCharVoid.voidSecond */
printLine((char *)structCharVoid.voidSecond);
/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */
memmove(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid));
structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */
printLine((char *)structCharVoid.charFirst);
printLine((char *)structCharVoid.voidSecond);
}
}
} | ['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */'] | ['CWE121'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63057/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_04.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_04_bad |
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_04_bad(void)
{
undefined8 uStack_28;
ulong uStack_20;
undefined *puStack_18;
undefined8 uStack_10;
puStack_18 = &UNK_0040112c;
printLine(&UNK_0040112c);
uStack_28 = _UNK_0040112c;
puStack_18 = (undefined *)_UNK_0040113c;
uStack_10 = _UNK_00401144;
uStack_20 = _UNK_00401134 & 0xffffffffffffff;
printLine(&uStack_28);
printLine(puStack_18);
return;
}
| ['gcc'] |
15,893 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_04_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63057/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_04.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_04_good |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_04_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
15,894 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_05_bad()
{
if(staticTrue)
{
{
charVoid structCharVoid;
structCharVoid.voidSecond = (void *)SRC_STR;
/* Print the initial block pointed to by structCharVoid.voidSecond */
printLine((char *)structCharVoid.voidSecond);
/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */
memmove(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid));
structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */
printLine((char *)structCharVoid.charFirst);
printLine((char *)structCharVoid.voidSecond);
}
}
} | ['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */'] | ['CWE121'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63058/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_05.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_05_bad |
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_05_bad(void)
{
undefined8 uStack_28;
ulong uStack_20;
undefined *puStack_18;
undefined8 uStack_10;
if (staticTrue != 0) {
puStack_18 = &UNK_00401124;
printLine(&UNK_00401124);
uStack_28 = _UNK_00401124;
puStack_18 = (undefined *)_UNK_00401134;
uStack_10 = _UNK_0040113c;
uStack_20 = _UNK_0040112c & 0xffffffffffffff;
printLine(&uStack_28);
printLine(puStack_18);
}
return;
}
| ['gcc'] |
15,895 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_05_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63058/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_05.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_05_good |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_05_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
15,896 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_06_bad()
{
if(STATIC_CONST_FIVE==5)
{
{
charVoid structCharVoid;
structCharVoid.voidSecond = (void *)SRC_STR;
/* Print the initial block pointed to by structCharVoid.voidSecond */
printLine((char *)structCharVoid.voidSecond);
/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */
memmove(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid));
structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */
printLine((char *)structCharVoid.charFirst);
printLine((char *)structCharVoid.voidSecond);
}
}
} | ['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */'] | ['CWE121'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63059/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_06.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_06_bad |
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_06_bad(void)
{
undefined8 uStack_28;
ulong uStack_20;
undefined *puStack_18;
undefined8 uStack_10;
puStack_18 = &UNK_00401128;
printLine(&UNK_00401128);
uStack_28 = _UNK_00401128;
puStack_18 = (undefined *)_UNK_00401138;
uStack_10 = _UNK_00401140;
uStack_20 = _UNK_00401130 & 0xffffffffffffff;
printLine(&uStack_28);
printLine(puStack_18);
return;
}
| ['gcc'] |
15,897 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_06_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63059/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_06.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_06_good |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_06_good(void)
{
good1();
good2();
return;
}
| ['gcc'] |
15,898 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_07_bad()
{
if(staticFive==5)
{
{
charVoid structCharVoid;
structCharVoid.voidSecond = (void *)SRC_STR;
/* Print the initial block pointed to by structCharVoid.voidSecond */
printLine((char *)structCharVoid.voidSecond);
/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */
memmove(structCharVoid.charFirst, SRC_STR, sizeof(structCharVoid));
structCharVoid.charFirst[(sizeof(structCharVoid.charFirst)/sizeof(char))-1] = '\0'; /* null terminate the string */
printLine((char *)structCharVoid.charFirst);
printLine((char *)structCharVoid.voidSecond);
}
}
} | ['/* Print the initial block pointed to by structCharVoid.voidSecond */', '/* FLAW: Use the sizeof(structCharVoid) which will overwrite the pointer voidSecond */', '/* null terminate the string */'] | ['CWE121'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63060/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_07.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_07_bad |
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_07_bad(void)
{
undefined8 uStack_28;
ulong uStack_20;
undefined *puStack_18;
undefined8 uStack_10;
if (staticFive == 5) {
puStack_18 = &UNK_00401124;
printLine(&UNK_00401124);
uStack_28 = _UNK_00401124;
puStack_18 = (undefined *)_UNK_00401134;
uStack_10 = _UNK_0040113c;
uStack_20 = _UNK_0040112c & 0xffffffffffffff;
printLine(&uStack_28);
printLine(puStack_18);
}
return;
}
| ['gcc'] |
15,899 | void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_07_good()
{
good1();
good2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63060/CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_07.c | CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_07_good |
void CWE121_Stack_Based_Buffer_Overflow__char_type_overrun_memmove_07_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.