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 |
|---|---|---|---|---|---|---|---|---|
18,300 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_31_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64370/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_31.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_31_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_31_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,301 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_32_bad()
{
int64_t * data;
int64_t * *dataPtr1 = &data;
int64_t * *dataPtr2 = &data;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
{
int64_t * data = *dataPtr1;
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
*dataPtr1 = data;
}
{
int64_t * data = *dataPtr2;
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memcpy(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64371/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_32.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_32_bad |
/* WARNING: Heritage AFTER dead removal. Example location: s0xffffffffffffffc0 : 0x00400c4b */
/* WARNING: Restarted to delay deadcode elimination for space: stack */
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_32_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined auStack_830 [816];
undefined8 auStack_500 [51];
undefined8 auStack_368 [101];
undefined8 *puStack_40;
undefined8 *puStack_38;
undefined8 *puStack_30;
undefined *puStack_28;
undefined8 *puStack_20;
undefined8 **ppuStack_18;
undefined8 **ppuStack_10;
ppuStack_10 = &puStack_40;
ppuStack_18 = &puStack_40;
puStack_30 = auStack_500;
puStack_28 = auStack_830;
puStack_38 = puStack_40;
puVar2 = auStack_368;
puStack_20 = puStack_30;
puStack_40 = puStack_30;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a70(puStack_38,auStack_368,800);
printLongLongLine(*puStack_38);
return;
}
| ['gcc'] |
18,302 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_32_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64371/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_32.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_32_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_32_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,303 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_34_bad()
{
int64_t * data;
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_34_unionType myUnion;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
myUnion.unionFirst = data;
{
int64_t * data = myUnion.unionSecond;
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memcpy(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64373/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_34.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_34_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_34_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined auStack_820 [816];
undefined8 auStack_4f0 [51];
undefined8 auStack_358 [101];
undefined8 *puStack_30;
undefined8 *puStack_28;
undefined8 *puStack_20;
undefined *puStack_18;
undefined8 *puStack_10;
puStack_30 = auStack_4f0;
puStack_18 = auStack_820;
puVar2 = auStack_358;
puStack_28 = puStack_30;
puStack_20 = puStack_30;
puStack_10 = puStack_30;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a70(puStack_28,auStack_358,800);
printLongLongLine(*puStack_28);
return;
}
| ['gcc'] |
18,304 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_34_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64373/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_34.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_34_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_34_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,305 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_41_badSink(int64_t * data)
{
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memcpy(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64374/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_41_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_41_badSink
(undefined8 *param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 auStack_328 [100];
puVar2 = auStack_328;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a70(param_1,auStack_328,800);
printLongLongLine(*param_1);
return;
}
| ['gcc'] |
18,306 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_41_bad()
{
int64_t * data;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_41_badSink(data);
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64374/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_41_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_41_bad(void)
{
undefined auStack_4f0 [816];
undefined auStack_1c0 [416];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_1c0;
puStack_18 = auStack_4f0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_41_badSink(puStack_20,0x10,7);
return;
}
| ['gcc'] |
18,307 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_41_goodG2BSink(int64_t * data)
{
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memcpy(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64374/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_41_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_41_goodG2BSink
(undefined8 *param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 auStack_328 [100];
puVar2 = auStack_328;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a70(param_1,auStack_328,800);
printLongLongLine(*param_1);
return;
}
| ['gcc'] |
18,308 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_41_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64374/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_41_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_41_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,309 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_51_bad()
{
int64_t * data;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_51b_badSink(data);
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64377/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_51a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_51_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_51_bad(void)
{
undefined auStack_4f0 [816];
undefined auStack_1c0 [416];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_1c0;
puStack_18 = auStack_4f0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_51b_badSink(puStack_20,0x10,7);
return;
}
| ['gcc'] |
18,310 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_51_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64377/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_51a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_51_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_51_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,311 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_51b_badSink(int64_t * data)
{
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memcpy(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64377/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_51b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_51b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_51b_badSink
(undefined8 *param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 auStack_328 [100];
puVar2 = auStack_328;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a70(param_1,auStack_328,800);
printLongLongLine(*param_1);
return;
}
| ['gcc'] |
18,312 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_51b_goodG2BSink(int64_t * data)
{
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memcpy(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64377/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_51b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_51b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_51b_goodG2BSink
(undefined8 *param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 auStack_328 [100];
puVar2 = auStack_328;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a70(param_1,auStack_328,800);
printLongLongLine(*param_1);
return;
}
| ['gcc'] |
18,313 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52_bad()
{
int64_t * data;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52b_badSink(data);
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64378/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52_bad(void)
{
undefined auStack_4f0 [816];
undefined auStack_1c0 [416];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_1c0;
puStack_18 = auStack_4f0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52b_badSink(puStack_20,0x10,7);
return;
}
| ['gcc'] |
18,314 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64378/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,315 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52b_badSink(int64_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52c_badSink(data);
} | [] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64378/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52b_badSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52c_badSink(param_1);
return;
}
| ['gcc'] |
18,316 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52b_goodG2BSink(int64_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64378/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52b_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
18,317 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52c_badSink(int64_t * data)
{
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memcpy(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64378/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52c.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52c_badSink
(undefined8 *param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 auStack_328 [100];
puVar2 = auStack_328;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a70(param_1,auStack_328,800);
printLongLongLine(*param_1);
return;
}
| ['gcc'] |
18,318 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52c_goodG2BSink(int64_t * data)
{
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memcpy(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64378/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52c.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_52c_goodG2BSink
(undefined8 *param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 auStack_328 [100];
puVar2 = auStack_328;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a70(param_1,auStack_328,800);
printLongLongLine(*param_1);
return;
}
| ['gcc'] |
18,319 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53_bad()
{
int64_t * data;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53b_badSink(data);
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64379/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53_bad(void)
{
undefined auStack_4f0 [816];
undefined auStack_1c0 [416];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_1c0;
puStack_18 = auStack_4f0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53b_badSink(puStack_20,0x10,7);
return;
}
| ['gcc'] |
18,320 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64379/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,321 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53b_badSink(int64_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53c_badSink(data);
} | [] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64379/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53b_badSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53c_badSink(param_1);
return;
}
| ['gcc'] |
18,322 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53b_goodG2BSink(int64_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64379/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53b_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
18,323 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53c_badSink(int64_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53d_badSink(data);
} | [] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64379/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53c.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53c_badSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53d_badSink(param_1);
return;
}
| ['gcc'] |
18,324 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53c_goodG2BSink(int64_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64379/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53c.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53c_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
18,325 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53d_badSink(int64_t * data)
{
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memcpy(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64379/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53d.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53d_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53d_badSink
(undefined8 *param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 auStack_328 [100];
puVar2 = auStack_328;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a70(param_1,auStack_328,800);
printLongLongLine(*param_1);
return;
}
| ['gcc'] |
18,326 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53d_goodG2BSink(int64_t * data)
{
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memcpy(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64379/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53d.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53d_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_53d_goodG2BSink
(undefined8 *param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 auStack_328 [100];
puVar2 = auStack_328;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a70(param_1,auStack_328,800);
printLongLongLine(*param_1);
return;
}
| ['gcc'] |
18,327 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54_bad()
{
int64_t * data;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54b_badSink(data);
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64380/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54_bad(void)
{
undefined auStack_4f0 [816];
undefined auStack_1c0 [416];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_1c0;
puStack_18 = auStack_4f0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54b_badSink(puStack_20,0x10,7);
return;
}
| ['gcc'] |
18,328 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64380/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,329 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54b_badSink(int64_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54c_badSink(data);
} | [] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64380/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54b_badSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54c_badSink(param_1);
return;
}
| ['gcc'] |
18,330 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54b_goodG2BSink(int64_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64380/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54b_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
18,331 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54c_badSink(int64_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54d_badSink(data);
} | [] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64380/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54c.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54c_badSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54d_badSink(param_1);
return;
}
| ['gcc'] |
18,332 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54c_goodG2BSink(int64_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64380/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54c.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54c_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
18,333 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54d_badSink(int64_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54e_badSink(data);
} | [] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64380/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54d.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54d_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54d_badSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54e_badSink(param_1);
return;
}
| ['gcc'] |
18,334 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54d_goodG2BSink(int64_t * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54e_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64380/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54d.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54d_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54d_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54e_goodG2BSink(param_1);
return;
}
| ['gcc'] |
18,335 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54e_badSink(int64_t * data)
{
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memcpy(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64380/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54e.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54e_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54e_badSink
(undefined8 *param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 auStack_328 [100];
puVar2 = auStack_328;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a70(param_1,auStack_328,800);
printLongLongLine(*param_1);
return;
}
| ['gcc'] |
18,336 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54e_goodG2BSink(int64_t * data)
{
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memcpy(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64380/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54e.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54e_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_54e_goodG2BSink
(undefined8 *param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 auStack_328 [100];
puVar2 = auStack_328;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a70(param_1,auStack_328,800);
printLongLongLine(*param_1);
return;
}
| ['gcc'] |
18,337 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_63_bad()
{
int64_t * data;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_63b_badSink(&data);
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64381/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_63a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_63_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_63_bad(void)
{
undefined auStack_4f0 [816];
undefined auStack_1c0 [416];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_1c0;
puStack_18 = auStack_4f0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_63b_badSink(&puStack_20,0x10,7);
return;
}
| ['gcc'] |
18,338 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_63_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64381/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_63a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_63_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_63_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,339 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_63b_badSink(int64_t * * dataPtr)
{
int64_t * data = *dataPtr;
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memcpy(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64381/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_63b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_63b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_63b_badSink
(undefined8 *param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 auStack_338 [101];
undefined8 *puStack_10;
puStack_10 = (undefined8 *)*param_1;
puVar2 = auStack_338;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a70(puStack_10,auStack_338,800);
printLongLongLine(*puStack_10);
return;
}
| ['gcc'] |
18,340 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_63b_goodG2BSink(int64_t * * dataPtr)
{
int64_t * data = *dataPtr;
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memcpy(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64381/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_63b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_63b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_63b_goodG2BSink
(undefined8 *param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 auStack_338 [101];
undefined8 *puStack_10;
puStack_10 = (undefined8 *)*param_1;
puVar2 = auStack_338;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a70(puStack_10,auStack_338,800);
printLongLongLine(*puStack_10);
return;
}
| ['gcc'] |
18,341 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_64_bad()
{
int64_t * data;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_64b_badSink(&data);
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64382/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_64a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_64_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_64_bad(void)
{
undefined auStack_4f0 [816];
undefined auStack_1c0 [416];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_1c0;
puStack_18 = auStack_4f0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_64b_badSink(&puStack_20,0x10,7);
return;
}
| ['gcc'] |
18,342 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_64_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64382/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_64a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_64_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_64_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,343 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_64b_badSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
int64_t * * dataPtr = (int64_t * *)dataVoidPtr;
/* dereference dataPtr into data */
int64_t * data = (*dataPtr);
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memcpy(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64382/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_64b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_64b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_64b_badSink
(undefined8 *param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 auStack_338 [100];
undefined8 *puStack_18;
undefined8 *puStack_10;
puStack_18 = (undefined8 *)*param_1;
puVar2 = auStack_338;
puStack_10 = param_1;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a70(puStack_18,auStack_338,800);
printLongLongLine(*puStack_18);
return;
}
| ['gcc'] |
18,344 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_64b_goodG2BSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
int64_t * * dataPtr = (int64_t * *)dataVoidPtr;
/* dereference dataPtr into data */
int64_t * data = (*dataPtr);
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memcpy(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64382/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_64b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_64b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_64b_goodG2BSink
(undefined8 *param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 auStack_338 [100];
undefined8 *puStack_18;
undefined8 *puStack_10;
puStack_18 = (undefined8 *)*param_1;
puVar2 = auStack_338;
puStack_10 = param_1;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a70(puStack_18,auStack_338,800);
printLongLongLine(*puStack_18);
return;
}
| ['gcc'] |
18,345 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_66_bad()
{
int64_t * data;
int64_t * dataArray[5];
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
/* put data in array */
dataArray[2] = data;
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_66b_badSink(dataArray);
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* put data in array */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64384/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_66a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_66_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_66_bad(void)
{
undefined auStack_510 [816];
undefined auStack_1e0 [408];
undefined auStack_48 [16];
undefined *puStack_38;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_38 = auStack_1e0;
puStack_18 = auStack_510;
puStack_20 = puStack_38;
puStack_10 = puStack_38;
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_66b_badSink(auStack_48,0x10,7);
return;
}
| ['gcc'] |
18,346 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_66_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64384/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_66a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_66_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_66_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,347 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_66b_badSink(int64_t * dataArray[])
{
/* copy data out of dataArray */
int64_t * data = dataArray[2];
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memcpy(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ['/* copy data out of dataArray */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64384/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_66b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_66b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_66b_badSink(long param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 auStack_338 [101];
undefined8 *puStack_10;
puStack_10 = *(undefined8 **)(param_1 + 0x10);
puVar2 = auStack_338;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a70(puStack_10,auStack_338,800);
printLongLongLine(*puStack_10);
return;
}
| ['gcc'] |
18,348 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_66b_goodG2BSink(int64_t * dataArray[])
{
int64_t * data = dataArray[2];
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memcpy(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64384/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_66b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_66b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_66b_goodG2BSink(long param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 auStack_338 [101];
undefined8 *puStack_10;
puStack_10 = *(undefined8 **)(param_1 + 0x10);
puVar2 = auStack_338;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a70(puStack_10,auStack_338,800);
printLongLongLine(*puStack_10);
return;
}
| ['gcc'] |
18,349 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_67_bad()
{
int64_t * data;
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_67_structType myStruct;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
myStruct.structFirst = data;
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_67b_badSink(myStruct);
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64385/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_67a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_67_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_67_bad(void)
{
undefined auStack_4f0 [816];
undefined auStack_1c0 [408];
undefined *puStack_28;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_28 = auStack_1c0;
puStack_18 = auStack_4f0;
puStack_20 = puStack_28;
puStack_10 = puStack_28;
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_67b_badSink(puStack_28,0x10,7);
return;
}
| ['gcc'] |
18,350 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_67_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64385/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_67a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_67_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_67_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,351 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_67b_badSink(CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_67_structType myStruct)
{
int64_t * data = myStruct.structFirst;
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memcpy(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64385/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_67b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_67b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_67b_badSink
(undefined8 *param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 auStack_338 [101];
undefined8 *puStack_10;
puVar2 = auStack_338;
puStack_10 = param_1;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a70(puStack_10,auStack_338,800);
printLongLongLine(*puStack_10);
return;
}
| ['gcc'] |
18,352 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_67b_goodG2BSink(CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_67_structType myStruct)
{
int64_t * data = myStruct.structFirst;
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memcpy(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64385/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_67b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_67b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memcpy_67b_goodG2BSink
(undefined8 *param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 auStack_338 [101];
undefined8 *puStack_10;
puVar2 = auStack_338;
puStack_10 = param_1;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a70(puStack_10,auStack_338,800);
printLongLongLine(*puStack_10);
return;
}
| ['gcc'] |
18,353 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_02_bad()
{
int64_t * data;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
if(1)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
}
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memmove(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64393/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_02.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_02_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_02_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined auStack_810 [816];
undefined8 auStack_4e0 [51];
undefined8 auStack_348 [101];
undefined8 *puStack_20;
undefined *puStack_18;
undefined8 *puStack_10;
puStack_20 = auStack_4e0;
puStack_18 = auStack_810;
puVar2 = auStack_348;
puStack_10 = puStack_20;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a80(puStack_20,auStack_348,800);
printLongLongLine(*puStack_20);
return;
}
| ['gcc'] |
18,354 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_02_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64393/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_02.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_02_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_02_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
18,355 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_03_bad()
{
int64_t * data;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
if(5==5)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
}
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memmove(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64394/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_03.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_03_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_03_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined auStack_810 [816];
undefined8 auStack_4e0 [51];
undefined8 auStack_348 [101];
undefined8 *puStack_20;
undefined *puStack_18;
undefined8 *puStack_10;
puStack_20 = auStack_4e0;
puStack_18 = auStack_810;
puVar2 = auStack_348;
puStack_10 = puStack_20;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a80(puStack_20,auStack_348,800);
printLongLongLine(*puStack_20);
return;
}
| ['gcc'] |
18,356 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_03_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64394/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_03.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_03_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_03_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
18,357 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_04_bad()
{
int64_t * data;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
if(STATIC_CONST_TRUE)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
}
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memmove(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64395/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_04.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_04_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_04_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined auStack_810 [816];
undefined8 auStack_4e0 [51];
undefined8 auStack_348 [101];
undefined *puStack_20;
undefined8 *puStack_18;
undefined8 *puStack_10;
puStack_18 = auStack_4e0;
puStack_20 = auStack_810;
puVar2 = auStack_348;
puStack_10 = puStack_18;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a80(puStack_10,auStack_348,800);
printLongLongLine(*puStack_10);
return;
}
| ['gcc'] |
18,358 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_04_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64395/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_04.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_04_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_04_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
18,359 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_05_bad()
{
int64_t * data;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
if(staticTrue)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
}
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memmove(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64396/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_05.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_05_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_05_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined auStack_810 [816];
undefined8 auStack_4e0 [51];
undefined8 auStack_348 [101];
undefined *puStack_20;
undefined8 *puStack_18;
undefined8 *puStack_10;
puStack_18 = auStack_4e0;
puStack_20 = auStack_810;
if (staticTrue != 0) {
puStack_10 = puStack_18;
}
puVar2 = auStack_348;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a80(puStack_10,auStack_348,800);
printLongLongLine(*puStack_10);
return;
}
| ['gcc'] |
18,360 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_05_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64396/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_05.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_05_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_05_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
18,361 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_06_bad()
{
int64_t * data;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
if(STATIC_CONST_FIVE==5)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
}
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memmove(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64397/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_06.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_06_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_06_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined auStack_810 [816];
undefined8 auStack_4e0 [51];
undefined8 auStack_348 [101];
undefined *puStack_20;
undefined8 *puStack_18;
undefined8 *puStack_10;
puStack_18 = auStack_4e0;
puStack_20 = auStack_810;
puVar2 = auStack_348;
puStack_10 = puStack_18;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a80(puStack_10,auStack_348,800);
printLongLongLine(*puStack_10);
return;
}
| ['gcc'] |
18,362 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_06_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64397/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_06.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_06_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_06_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
18,363 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_07_bad()
{
int64_t * data;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
if(staticFive==5)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
}
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memmove(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64398/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_07.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_07_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_07_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined auStack_810 [816];
undefined8 auStack_4e0 [51];
undefined8 auStack_348 [101];
undefined *puStack_20;
undefined8 *puStack_18;
undefined8 *puStack_10;
puStack_18 = auStack_4e0;
puStack_20 = auStack_810;
if (staticFive == 5) {
puStack_10 = puStack_18;
}
puVar2 = auStack_348;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a80(puStack_10,auStack_348,800);
printLongLongLine(*puStack_10);
return;
}
| ['gcc'] |
18,364 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_07_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64398/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_07.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_07_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_07_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
18,365 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_08_bad()
{
int64_t * data;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
if(staticReturnsTrue())
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
}
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memmove(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64399/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_08.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_08_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_08_bad(undefined8 param_1)
{
int iVar1;
long lVar2;
undefined8 *puVar3;
byte bVar4;
undefined auStack_810 [816];
undefined8 auStack_4e0 [51];
undefined8 auStack_348 [101];
undefined *puStack_20;
undefined8 *puStack_18;
undefined8 *puStack_10;
bVar4 = 0;
puStack_18 = auStack_4e0;
puStack_20 = auStack_810;
iVar1 = staticReturnsTrue(param_1,0x10,7);
if (iVar1 != 0) {
puStack_10 = puStack_18;
}
puVar3 = auStack_348;
for (lVar2 = 100; lVar2 != 0; lVar2 = lVar2 + -1) {
*puVar3 = 0;
puVar3 = puVar3 + (ulong)bVar4 * -2 + 1;
}
func_0x00400a80(puStack_10,auStack_348,800);
printLongLongLine(*puStack_10);
return;
}
| ['gcc'] |
18,366 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_08_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64399/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_08.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_08_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_08_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
18,367 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_09_bad()
{
int64_t * data;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
if(GLOBAL_CONST_TRUE)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
}
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memmove(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64400/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_09.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_09_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_09_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined auStack_810 [816];
undefined8 auStack_4e0 [51];
undefined8 auStack_348 [101];
undefined *puStack_20;
undefined8 *puStack_18;
undefined8 *puStack_10;
puStack_18 = auStack_4e0;
puStack_20 = auStack_810;
if (GLOBAL_CONST_TRUE != 0) {
puStack_10 = puStack_18;
}
puVar2 = auStack_348;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a80(puStack_10,auStack_348,800);
printLongLongLine(*puStack_10);
return;
}
| ['gcc'] |
18,368 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_09_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64400/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_09.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_09_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_09_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
18,369 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_10_bad()
{
int64_t * data;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
if(globalTrue)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
}
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memmove(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64401/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_10.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_10_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_10_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined auStack_810 [816];
undefined8 auStack_4e0 [51];
undefined8 auStack_348 [101];
undefined *puStack_20;
undefined8 *puStack_18;
undefined8 *puStack_10;
puStack_18 = auStack_4e0;
puStack_20 = auStack_810;
if (globalTrue != 0) {
puStack_10 = puStack_18;
}
puVar2 = auStack_348;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a80(puStack_10,auStack_348,800);
printLongLongLine(*puStack_10);
return;
}
| ['gcc'] |
18,370 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_10_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64401/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_10.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_10_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_10_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
18,371 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_11_bad()
{
int64_t * data;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
if(globalReturnsTrue())
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
}
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memmove(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64402/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_11.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_11_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_11_bad(undefined8 param_1)
{
int iVar1;
long lVar2;
undefined8 *puVar3;
byte bVar4;
undefined auStack_810 [816];
undefined8 auStack_4e0 [51];
undefined8 auStack_348 [101];
undefined *puStack_20;
undefined8 *puStack_18;
undefined8 *puStack_10;
bVar4 = 0;
puStack_18 = auStack_4e0;
puStack_20 = auStack_810;
iVar1 = globalReturnsTrue(param_1,0x10,7);
if (iVar1 != 0) {
puStack_10 = puStack_18;
}
puVar3 = auStack_348;
for (lVar2 = 100; lVar2 != 0; lVar2 = lVar2 + -1) {
*puVar3 = 0;
puVar3 = puVar3 + (ulong)bVar4 * -2 + 1;
}
func_0x00400a80(puStack_10,auStack_348,800);
printLongLongLine(*puStack_10);
return;
}
| ['gcc'] |
18,372 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_11_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64402/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_11.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_11_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_11_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
18,373 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_12_bad()
{
int64_t * data;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
if(globalReturnsTrueOrFalse())
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
}
else
{
/* FIX: Set a pointer to a "large" buffer, thus avoiding buffer overflows in the sinks. */
data = dataGoodBuffer;
}
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memmove(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* FIX: Set a pointer to a "large" buffer, thus avoiding buffer overflows in the sinks. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64403/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_12.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_12_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_12_bad(undefined8 param_1)
{
int iVar1;
long lVar2;
undefined8 *puVar3;
byte bVar4;
undefined8 auStack_810 [102];
undefined8 auStack_4e0 [51];
undefined8 auStack_348 [101];
undefined8 *puStack_20;
undefined8 *puStack_18;
undefined8 *puStack_10;
bVar4 = 0;
puStack_18 = auStack_4e0;
puStack_20 = auStack_810;
iVar1 = globalReturnsTrueOrFalse(param_1,0x10,7);
if (iVar1 == 0) {
puStack_10 = puStack_20;
}
else {
puStack_10 = puStack_18;
}
puVar3 = auStack_348;
for (lVar2 = 100; lVar2 != 0; lVar2 = lVar2 + -1) {
*puVar3 = 0;
puVar3 = puVar3 + (ulong)bVar4 * -2 + 1;
}
func_0x00400a80(puStack_10,auStack_348,800);
printLongLongLine(*puStack_10);
return;
}
| ['gcc'] |
18,374 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_12_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64403/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_12.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_12_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_12_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,375 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_13_bad()
{
int64_t * data;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
if(GLOBAL_CONST_FIVE==5)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
}
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memmove(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64404/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_13.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_13_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_13_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined auStack_810 [816];
undefined8 auStack_4e0 [51];
undefined8 auStack_348 [101];
undefined *puStack_20;
undefined8 *puStack_18;
undefined8 *puStack_10;
puStack_18 = auStack_4e0;
puStack_20 = auStack_810;
if (GLOBAL_CONST_FIVE == 5) {
puStack_10 = puStack_18;
}
puVar2 = auStack_348;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a80(puStack_10,auStack_348,800);
printLongLongLine(*puStack_10);
return;
}
| ['gcc'] |
18,376 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_13_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64404/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_13.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_13_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_13_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
18,377 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_14_bad()
{
int64_t * data;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
if(globalFive==5)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
}
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memmove(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64405/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_14.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_14_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_14_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined auStack_810 [816];
undefined8 auStack_4e0 [51];
undefined8 auStack_348 [101];
undefined *puStack_20;
undefined8 *puStack_18;
undefined8 *puStack_10;
puStack_18 = auStack_4e0;
puStack_20 = auStack_810;
if (globalFive == 5) {
puStack_10 = puStack_18;
}
puVar2 = auStack_348;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a80(puStack_10,auStack_348,800);
printLongLongLine(*puStack_10);
return;
}
| ['gcc'] |
18,378 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_14_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64405/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_14.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_14_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_14_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
18,379 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_15_bad()
{
int64_t * data;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
switch(6)
{
case 6:
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
break;
default:
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
break;
}
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memmove(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64406/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_15.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_15_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_15_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined auStack_810 [816];
undefined8 auStack_4e0 [51];
undefined8 auStack_348 [101];
undefined8 *puStack_20;
undefined *puStack_18;
undefined8 *puStack_10;
puStack_20 = auStack_4e0;
puStack_18 = auStack_810;
puVar2 = auStack_348;
puStack_10 = puStack_20;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a80(puStack_20,auStack_348,800);
printLongLongLine(*puStack_20);
return;
}
| ['gcc'] |
18,380 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_15_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64406/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_15.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_15_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_15_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
18,381 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_16_bad()
{
int64_t * data;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
while(1)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
break;
}
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memmove(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64407/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_16.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_16_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_16_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined auStack_810 [816];
undefined8 auStack_4e0 [51];
undefined8 auStack_348 [101];
undefined8 *puStack_20;
undefined *puStack_18;
undefined8 *puStack_10;
puStack_20 = auStack_4e0;
puStack_18 = auStack_810;
puVar2 = auStack_348;
puStack_10 = puStack_20;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a80(puStack_20,auStack_348,800);
printLongLongLine(*puStack_20);
return;
}
| ['gcc'] |
18,382 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_16_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64407/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_16.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_16_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_16_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,383 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_17_bad()
{
int i;
int64_t * data;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
for(i = 0; i < 1; i++)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
}
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memmove(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64408/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_17.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_17_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_17_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined auStack_810 [816];
undefined8 auStack_4e0 [51];
undefined8 auStack_348 [100];
undefined *puStack_28;
undefined8 *puStack_20;
undefined8 *puStack_18;
int iStack_c;
puStack_20 = auStack_4e0;
puStack_28 = auStack_810;
for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) {
puStack_18 = puStack_20;
}
puVar2 = auStack_348;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a80(puStack_18,auStack_348,800);
printLongLongLine(*puStack_18);
return;
}
| ['gcc'] |
18,384 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_17_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64408/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_17.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_17_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_17_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,385 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_31_bad()
{
int64_t * data;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
{
int64_t * dataCopy = data;
int64_t * data = dataCopy;
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memmove(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64410/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_31.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_31_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_31_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined auStack_820 [816];
undefined8 auStack_4f0 [51];
undefined8 auStack_358 [101];
undefined8 *puStack_30;
undefined8 *puStack_28;
undefined8 *puStack_20;
undefined *puStack_18;
undefined8 *puStack_10;
puStack_30 = auStack_4f0;
puStack_18 = auStack_820;
puVar2 = auStack_358;
puStack_28 = puStack_30;
puStack_20 = puStack_30;
puStack_10 = puStack_30;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a80(puStack_30,auStack_358,800);
printLongLongLine(*puStack_30);
return;
}
| ['gcc'] |
18,386 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_31_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64410/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_31.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_31_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_31_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,387 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_32_bad()
{
int64_t * data;
int64_t * *dataPtr1 = &data;
int64_t * *dataPtr2 = &data;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
{
int64_t * data = *dataPtr1;
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
*dataPtr1 = data;
}
{
int64_t * data = *dataPtr2;
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memmove(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64411/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_32.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_32_bad |
/* WARNING: Heritage AFTER dead removal. Example location: s0xffffffffffffffc0 : 0x00400c2b */
/* WARNING: Restarted to delay deadcode elimination for space: stack */
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_32_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined auStack_830 [816];
undefined8 auStack_500 [51];
undefined8 auStack_368 [101];
undefined8 *puStack_40;
undefined8 *puStack_38;
undefined8 *puStack_30;
undefined *puStack_28;
undefined8 *puStack_20;
undefined8 **ppuStack_18;
undefined8 **ppuStack_10;
ppuStack_10 = &puStack_40;
ppuStack_18 = &puStack_40;
puStack_30 = auStack_500;
puStack_28 = auStack_830;
puStack_38 = puStack_40;
puVar2 = auStack_368;
puStack_20 = puStack_30;
puStack_40 = puStack_30;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a80(puStack_38,auStack_368,800);
printLongLongLine(*puStack_38);
return;
}
| ['gcc'] |
18,388 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_32_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64411/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_32.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_32_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_32_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,389 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_34_bad()
{
int64_t * data;
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_34_unionType myUnion;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
myUnion.unionFirst = data;
{
int64_t * data = myUnion.unionSecond;
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memmove(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', "/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64413/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_34.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_34_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_34_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined auStack_820 [816];
undefined8 auStack_4f0 [51];
undefined8 auStack_358 [101];
undefined8 *puStack_30;
undefined8 *puStack_28;
undefined8 *puStack_20;
undefined *puStack_18;
undefined8 *puStack_10;
puStack_30 = auStack_4f0;
puStack_18 = auStack_820;
puVar2 = auStack_358;
puStack_28 = puStack_30;
puStack_20 = puStack_30;
puStack_10 = puStack_30;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a80(puStack_28,auStack_358,800);
printLongLongLine(*puStack_28);
return;
}
| ['gcc'] |
18,390 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_34_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64413/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_34.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_34_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_34_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,391 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_41_badSink(int64_t * data)
{
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memmove(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64414/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_41_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_41_badSink
(undefined8 *param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 auStack_328 [100];
puVar2 = auStack_328;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a80(param_1,auStack_328,800);
printLongLongLine(*param_1);
return;
}
| ['gcc'] |
18,392 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_41_bad()
{
int64_t * data;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_41_badSink(data);
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64414/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_41_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_41_bad(void)
{
undefined auStack_4f0 [816];
undefined auStack_1c0 [416];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_1c0;
puStack_18 = auStack_4f0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_41_badSink(puStack_20,0x10,7);
return;
}
| ['gcc'] |
18,393 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_41_goodG2BSink(int64_t * data)
{
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memmove(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64414/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_41_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_41_goodG2BSink
(undefined8 *param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 auStack_328 [100];
puVar2 = auStack_328;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a80(param_1,auStack_328,800);
printLongLongLine(*param_1);
return;
}
| ['gcc'] |
18,394 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_41_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64414/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_41_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_41_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,395 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_51_bad()
{
int64_t * data;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_51b_badSink(data);
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64417/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_51a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_51_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_51_bad(void)
{
undefined auStack_4f0 [816];
undefined auStack_1c0 [416];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_1c0;
puStack_18 = auStack_4f0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_51b_badSink(puStack_20,0x10,7);
return;
}
| ['gcc'] |
18,396 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_51_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64417/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_51a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_51_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_51_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,397 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_51b_badSink(int64_t * data)
{
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memmove(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64417/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_51b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_51b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_51b_badSink
(undefined8 *param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 auStack_328 [100];
puVar2 = auStack_328;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a80(param_1,auStack_328,800);
printLongLongLine(*param_1);
return;
}
| ['gcc'] |
18,398 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_51b_goodG2BSink(int64_t * data)
{
{
int64_t source[100] = {0}; /* fill with 0's */
/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */
memmove(data, source, 100*sizeof(int64_t));
printLongLongLine(data[0]);
}
} | ["/* fill with 0's */", '/* POTENTIAL FLAW: Possible buffer overflow if data < 100 */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64417/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_51b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_51b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_51b_goodG2BSink
(undefined8 *param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 auStack_328 [100];
puVar2 = auStack_328;
for (lVar1 = 100; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400a80(param_1,auStack_328,800);
printLongLongLine(*param_1);
return;
}
| ['gcc'] |
18,399 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_52_bad()
{
int64_t * data;
int64_t * dataBadBuffer = (int64_t *)ALLOCA(50*sizeof(int64_t));
int64_t * dataGoodBuffer = (int64_t *)ALLOCA(100*sizeof(int64_t));
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_52b_badSink(data);
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64418/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_52a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_52_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_52_bad(void)
{
undefined auStack_4f0 [816];
undefined auStack_1c0 [416];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_1c0;
puStack_18 = auStack_4f0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_memmove_52b_badSink(puStack_20,0x10,7);
return;
}
| ['gcc'] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.