Unnamed: 0 int64 0 56k | source_code stringlengths 55 5.98k | comments stringlengths 2 1.76k | label stringclasses 68 values | dataset_name stringclasses 1 value | file_name stringlengths 208 265 | function stringlengths 27 87 | decompiled_code stringlengths 68 3.97k | compiler_options stringclasses 1 value |
|---|---|---|---|---|---|---|---|---|
15,700 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_52b_goodG2BSink(void * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_52c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62978/CWE121_Stack_Based_Buffer_Overflow__CWE135_52b.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_52b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_52b_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_52c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
15,701 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_52b_goodB2GSink(void * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_52c_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62978/CWE121_Stack_Based_Buffer_Overflow__CWE135_52b.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_52b_goodB2GSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_52b_goodB2GSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_52c_goodB2GSink(param_1);
return;
}
| ['gcc'] |
15,702 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_52c_badSink(void * data)
{
{
/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */
size_t dataLen = strlen((char *)data);
void * dest = (void *)calloc(dataLen+1, 1);
memcpy(dest, data, (dataLen+1));
printLine((char *)dest);
free(dest);
}
} | ['/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */'] | ['CWE121', 'CWE135'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62978/CWE121_Stack_Based_Buffer_Overflow__CWE135_52c.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_52c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_52c_badSink(undefined8 param_1)
{
long lVar1;
undefined8 uVar2;
lVar1 = func_0x00400ae0(param_1);
uVar2 = func_0x00400b30(lVar1 + 1,1);
func_0x00400b50(uVar2,param_1,lVar1 + 1);
printLine(uVar2);
func_0x00400ab0(uVar2);
return;
}
| ['gcc'] |
15,703 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_52c_goodG2BSink(void * data)
{
{
/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */
size_t dataLen = strlen((char *)data);
void * dest = (void *)calloc(dataLen+1, 1);
memcpy(dest, data, (dataLen+1));
printLine((char *)dest);
free(dest);
}
} | ['/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62978/CWE121_Stack_Based_Buffer_Overflow__CWE135_52c.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_52c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_52c_goodG2BSink(undefined8 param_1)
{
long lVar1;
undefined8 uVar2;
lVar1 = func_0x00400b60(param_1);
uVar2 = func_0x00400bc0(lVar1 + 1,1);
func_0x00400be0(uVar2,param_1,lVar1 + 1);
printLine(uVar2);
func_0x00400b30(uVar2);
return;
}
| ['gcc'] |
15,704 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_52c_goodB2GSink(void * data)
{
{
/* FIX: treating pointer like a wchar_t* */
size_t dataLen = wcslen((wchar_t *)data);
void * dest = (void *)calloc(dataLen+1, sizeof(wchar_t));
memcpy(dest, data, (dataLen+1)*sizeof(wchar_t));
printWLine((wchar_t *)dest);
free(dest);
}
} | ['/* FIX: treating pointer like a wchar_t* */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62978/CWE121_Stack_Based_Buffer_Overflow__CWE135_52c.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_52c_goodB2GSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_52c_goodB2GSink(undefined8 param_1)
{
long lVar1;
undefined8 uVar2;
lVar1 = func_0x00400b80(param_1);
uVar2 = func_0x00400bc0(lVar1 + 1,4);
func_0x00400be0(uVar2,param_1,(lVar1 + 1) * 4);
printWLine(uVar2);
func_0x00400b30(uVar2);
return;
}
| ['gcc'] |
15,705 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_53_bad()
{
void * data;
data = NULL;
/* POTENTIAL FLAW: Set data to point to a wide string */
data = (void *)WIDE_STRING;
CWE121_Stack_Based_Buffer_Overflow__CWE135_53b_badSink(data);
} | ['/* POTENTIAL FLAW: Set data to point to a wide string */'] | ['CWE121', 'CWE135'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62979/CWE121_Stack_Based_Buffer_Overflow__CWE135_53a.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_53_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_53_bad(void)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_53b_badSink(&UNK_004012c8);
return;
}
| ['gcc'] |
15,706 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_53_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62979/CWE121_Stack_Based_Buffer_Overflow__CWE135_53a.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_53_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_53_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
15,707 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_53b_badSink(void * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_53c_badSink(data);
} | [] | ['CWE121', 'CWE135'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62979/CWE121_Stack_Based_Buffer_Overflow__CWE135_53b.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_53b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_53b_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_53c_badSink(param_1);
return;
}
| ['gcc'] |
15,708 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_53b_goodG2BSink(void * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_53c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62979/CWE121_Stack_Based_Buffer_Overflow__CWE135_53b.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_53b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_53b_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_53c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
15,709 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_53b_goodB2GSink(void * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_53c_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62979/CWE121_Stack_Based_Buffer_Overflow__CWE135_53b.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_53b_goodB2GSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_53b_goodB2GSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_53c_goodB2GSink(param_1);
return;
}
| ['gcc'] |
15,710 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_53c_badSink(void * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_53d_badSink(data);
} | [] | ['CWE121', 'CWE135'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62979/CWE121_Stack_Based_Buffer_Overflow__CWE135_53c.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_53c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_53c_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_53d_badSink(param_1);
return;
}
| ['gcc'] |
15,711 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_53c_goodG2BSink(void * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_53d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62979/CWE121_Stack_Based_Buffer_Overflow__CWE135_53c.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_53c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_53c_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_53d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
15,712 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_53c_goodB2GSink(void * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_53d_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62979/CWE121_Stack_Based_Buffer_Overflow__CWE135_53c.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_53c_goodB2GSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_53c_goodB2GSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_53d_goodB2GSink(param_1);
return;
}
| ['gcc'] |
15,713 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_53d_badSink(void * data)
{
{
/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */
size_t dataLen = strlen((char *)data);
void * dest = (void *)calloc(dataLen+1, 1);
memcpy(dest, data, (dataLen+1));
printLine((char *)dest);
free(dest);
}
} | ['/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */'] | ['CWE121', 'CWE135'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62979/CWE121_Stack_Based_Buffer_Overflow__CWE135_53d.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_53d_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_53d_badSink(undefined8 param_1)
{
long lVar1;
undefined8 uVar2;
lVar1 = func_0x00400ae0(param_1);
uVar2 = func_0x00400b30(lVar1 + 1,1);
func_0x00400b50(uVar2,param_1,lVar1 + 1);
printLine(uVar2);
func_0x00400ab0(uVar2);
return;
}
| ['gcc'] |
15,714 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_53d_goodG2BSink(void * data)
{
{
/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */
size_t dataLen = strlen((char *)data);
void * dest = (void *)calloc(dataLen+1, 1);
memcpy(dest, data, (dataLen+1));
printLine((char *)dest);
free(dest);
}
} | ['/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62979/CWE121_Stack_Based_Buffer_Overflow__CWE135_53d.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_53d_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_53d_goodG2BSink(undefined8 param_1)
{
long lVar1;
undefined8 uVar2;
lVar1 = func_0x00400b60(param_1);
uVar2 = func_0x00400bc0(lVar1 + 1,1);
func_0x00400be0(uVar2,param_1,lVar1 + 1);
printLine(uVar2);
func_0x00400b30(uVar2);
return;
}
| ['gcc'] |
15,715 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_53d_goodB2GSink(void * data)
{
{
/* FIX: treating pointer like a wchar_t* */
size_t dataLen = wcslen((wchar_t *)data);
void * dest = (void *)calloc(dataLen+1, sizeof(wchar_t));
memcpy(dest, data, (dataLen+1)*sizeof(wchar_t));
printWLine((wchar_t *)dest);
free(dest);
}
} | ['/* FIX: treating pointer like a wchar_t* */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62979/CWE121_Stack_Based_Buffer_Overflow__CWE135_53d.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_53d_goodB2GSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_53d_goodB2GSink(undefined8 param_1)
{
long lVar1;
undefined8 uVar2;
lVar1 = func_0x00400b80(param_1);
uVar2 = func_0x00400bc0(lVar1 + 1,4);
func_0x00400be0(uVar2,param_1,(lVar1 + 1) * 4);
printWLine(uVar2);
func_0x00400b30(uVar2);
return;
}
| ['gcc'] |
15,716 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_54_bad()
{
void * data;
data = NULL;
/* POTENTIAL FLAW: Set data to point to a wide string */
data = (void *)WIDE_STRING;
CWE121_Stack_Based_Buffer_Overflow__CWE135_54b_badSink(data);
} | ['/* POTENTIAL FLAW: Set data to point to a wide string */'] | ['CWE121', 'CWE135'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62980/CWE121_Stack_Based_Buffer_Overflow__CWE135_54a.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_54_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_54_bad(void)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_54b_badSink(&UNK_004012e8);
return;
}
| ['gcc'] |
15,717 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_54_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62980/CWE121_Stack_Based_Buffer_Overflow__CWE135_54a.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_54_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_54_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
15,718 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_54b_badSink(void * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_54c_badSink(data);
} | [] | ['CWE121', 'CWE135'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62980/CWE121_Stack_Based_Buffer_Overflow__CWE135_54b.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_54b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_54b_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_54c_badSink(param_1);
return;
}
| ['gcc'] |
15,719 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_54b_goodG2BSink(void * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_54c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62980/CWE121_Stack_Based_Buffer_Overflow__CWE135_54b.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_54b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_54b_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_54c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
15,720 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_54b_goodB2GSink(void * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_54c_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62980/CWE121_Stack_Based_Buffer_Overflow__CWE135_54b.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_54b_goodB2GSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_54b_goodB2GSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_54c_goodB2GSink(param_1);
return;
}
| ['gcc'] |
15,721 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_54c_badSink(void * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_54d_badSink(data);
} | [] | ['CWE121', 'CWE135'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62980/CWE121_Stack_Based_Buffer_Overflow__CWE135_54c.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_54c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_54c_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_54d_badSink(param_1);
return;
}
| ['gcc'] |
15,722 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_54c_goodG2BSink(void * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_54d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62980/CWE121_Stack_Based_Buffer_Overflow__CWE135_54c.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_54c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_54c_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_54d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
15,723 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_54c_goodB2GSink(void * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_54d_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62980/CWE121_Stack_Based_Buffer_Overflow__CWE135_54c.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_54c_goodB2GSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_54c_goodB2GSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_54d_goodB2GSink(param_1);
return;
}
| ['gcc'] |
15,724 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_54d_badSink(void * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_54e_badSink(data);
} | [] | ['CWE121', 'CWE135'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62980/CWE121_Stack_Based_Buffer_Overflow__CWE135_54d.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_54d_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_54d_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_54e_badSink(param_1);
return;
}
| ['gcc'] |
15,725 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_54d_goodG2BSink(void * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_54e_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62980/CWE121_Stack_Based_Buffer_Overflow__CWE135_54d.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_54d_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_54d_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_54e_goodG2BSink(param_1);
return;
}
| ['gcc'] |
15,726 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_54d_goodB2GSink(void * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_54e_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62980/CWE121_Stack_Based_Buffer_Overflow__CWE135_54d.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_54d_goodB2GSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_54d_goodB2GSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_54e_goodB2GSink(param_1);
return;
}
| ['gcc'] |
15,727 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_54e_badSink(void * data)
{
{
/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */
size_t dataLen = strlen((char *)data);
void * dest = (void *)calloc(dataLen+1, 1);
memcpy(dest, data, (dataLen+1));
printLine((char *)dest);
free(dest);
}
} | ['/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */'] | ['CWE121', 'CWE135'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62980/CWE121_Stack_Based_Buffer_Overflow__CWE135_54e.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_54e_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_54e_badSink(undefined8 param_1)
{
long lVar1;
undefined8 uVar2;
lVar1 = func_0x00400ae0(param_1);
uVar2 = func_0x00400b30(lVar1 + 1,1);
func_0x00400b50(uVar2,param_1,lVar1 + 1);
printLine(uVar2);
func_0x00400ab0(uVar2);
return;
}
| ['gcc'] |
15,728 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_54e_goodG2BSink(void * data)
{
{
/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */
size_t dataLen = strlen((char *)data);
void * dest = (void *)calloc(dataLen+1, 1);
memcpy(dest, data, (dataLen+1));
printLine((char *)dest);
free(dest);
}
} | ['/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62980/CWE121_Stack_Based_Buffer_Overflow__CWE135_54e.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_54e_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_54e_goodG2BSink(undefined8 param_1)
{
long lVar1;
undefined8 uVar2;
lVar1 = func_0x00400b60(param_1);
uVar2 = func_0x00400bc0(lVar1 + 1,1);
func_0x00400be0(uVar2,param_1,lVar1 + 1);
printLine(uVar2);
func_0x00400b30(uVar2);
return;
}
| ['gcc'] |
15,729 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_54e_goodB2GSink(void * data)
{
{
/* FIX: treating pointer like a wchar_t* */
size_t dataLen = wcslen((wchar_t *)data);
void * dest = (void *)calloc(dataLen+1, sizeof(wchar_t));
memcpy(dest, data, (dataLen+1)*sizeof(wchar_t));
printWLine((wchar_t *)dest);
free(dest);
}
} | ['/* FIX: treating pointer like a wchar_t* */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62980/CWE121_Stack_Based_Buffer_Overflow__CWE135_54e.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_54e_goodB2GSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_54e_goodB2GSink(undefined8 param_1)
{
long lVar1;
undefined8 uVar2;
lVar1 = func_0x00400b80(param_1);
uVar2 = func_0x00400bc0(lVar1 + 1,4);
func_0x00400be0(uVar2,param_1,(lVar1 + 1) * 4);
printWLine(uVar2);
func_0x00400b30(uVar2);
return;
}
| ['gcc'] |
15,730 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_61_bad()
{
void * data;
data = NULL;
data = CWE121_Stack_Based_Buffer_Overflow__CWE135_61b_badSource(data);
{
/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */
size_t dataLen = strlen((char *)data);
void * dest = (void *)calloc(dataLen+1, 1);
memcpy(dest, data, (dataLen+1));
printLine((char *)dest);
free(dest);
}
} | ['/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */'] | ['CWE121', 'CWE135'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62981/CWE121_Stack_Based_Buffer_Overflow__CWE135_61a.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_61_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_61_bad(void)
{
undefined8 uVar1;
long lVar2;
undefined8 uVar3;
uVar1 = CWE121_Stack_Based_Buffer_Overflow__CWE135_61b_badSource(0);
lVar2 = func_0x00400ae0(uVar1);
uVar3 = func_0x00400b30(lVar2 + 1,1);
func_0x00400b50(uVar3,uVar1,lVar2 + 1);
printLine(uVar3);
func_0x00400ab0(uVar3);
return;
}
| ['gcc'] |
15,731 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_61_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62981/CWE121_Stack_Based_Buffer_Overflow__CWE135_61a.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_61_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_61_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
15,732 | void * CWE121_Stack_Based_Buffer_Overflow__CWE135_61b_badSource(void * data)
{
/* POTENTIAL FLAW: Set data to point to a wide string */
data = (void *)WIDE_STRING;
return data;
} | ['/* POTENTIAL FLAW: Set data to point to a wide string */'] | ['CWE121', 'CWE135'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62981/CWE121_Stack_Based_Buffer_Overflow__CWE135_61b.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_61b_badSource |
undefined * CWE121_Stack_Based_Buffer_Overflow__CWE135_61b_badSource(void)
{
return &UNK_00401298;
}
| ['gcc'] |
15,733 | void * CWE121_Stack_Based_Buffer_Overflow__CWE135_61b_goodG2BSource(void * data)
{
/* FIX: Set data to point to a char string */
data = (void *)CHAR_STRING;
return data;
} | ['/* FIX: Set data to point to a char string */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62981/CWE121_Stack_Based_Buffer_Overflow__CWE135_61b.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_61b_goodG2BSource |
undefined * CWE121_Stack_Based_Buffer_Overflow__CWE135_61b_goodG2BSource(void)
{
return &UNK_004013e8;
}
| ['gcc'] |
15,734 | void * CWE121_Stack_Based_Buffer_Overflow__CWE135_61b_goodB2GSource(void * data)
{
/* POTENTIAL FLAW: Set data to point to a wide string */
data = (void *)WIDE_STRING;
return data;
} | ['/* POTENTIAL FLAW: Set data to point to a wide string */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62981/CWE121_Stack_Based_Buffer_Overflow__CWE135_61b.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_61b_goodB2GSource |
undefined * CWE121_Stack_Based_Buffer_Overflow__CWE135_61b_goodB2GSource(void)
{
return &UNK_00401418;
}
| ['gcc'] |
15,735 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_63_bad()
{
void * data;
data = NULL;
/* POTENTIAL FLAW: Set data to point to a wide string */
data = (void *)WIDE_STRING;
CWE121_Stack_Based_Buffer_Overflow__CWE135_63b_badSink(&data);
} | ['/* POTENTIAL FLAW: Set data to point to a wide string */'] | ['CWE121', 'CWE135'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62983/CWE121_Stack_Based_Buffer_Overflow__CWE135_63a.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_63_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_63_bad(void)
{
undefined *puStack_10;
puStack_10 = &UNK_004012a8;
CWE121_Stack_Based_Buffer_Overflow__CWE135_63b_badSink(&puStack_10);
return;
}
| ['gcc'] |
15,736 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_63_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62983/CWE121_Stack_Based_Buffer_Overflow__CWE135_63a.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_63_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_63_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
15,737 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_63b_badSink(void * * dataPtr)
{
void * data = *dataPtr;
{
/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */
size_t dataLen = strlen((char *)data);
void * dest = (void *)calloc(dataLen+1, 1);
memcpy(dest, data, (dataLen+1));
printLine((char *)dest);
free(dest);
}
} | ['/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */'] | ['CWE121', 'CWE135'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62983/CWE121_Stack_Based_Buffer_Overflow__CWE135_63b.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_63b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_63b_badSink(undefined8 *param_1)
{
undefined8 uVar1;
long lVar2;
undefined8 uVar3;
uVar1 = *param_1;
lVar2 = func_0x00400ae0(uVar1);
uVar3 = func_0x00400b30(lVar2 + 1,1);
func_0x00400b50(uVar3,uVar1,lVar2 + 1);
printLine(uVar3);
func_0x00400ab0(uVar3);
return;
}
| ['gcc'] |
15,738 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_63b_goodG2BSink(void * * dataPtr)
{
void * data = *dataPtr;
{
/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */
size_t dataLen = strlen((char *)data);
void * dest = (void *)calloc(dataLen+1, 1);
memcpy(dest, data, (dataLen+1));
printLine((char *)dest);
free(dest);
}
} | ['/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62983/CWE121_Stack_Based_Buffer_Overflow__CWE135_63b.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_63b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_63b_goodG2BSink(undefined8 *param_1)
{
undefined8 uVar1;
long lVar2;
undefined8 uVar3;
uVar1 = *param_1;
lVar2 = func_0x00400b60(uVar1);
uVar3 = func_0x00400bc0(lVar2 + 1,1);
func_0x00400be0(uVar3,uVar1,lVar2 + 1);
printLine(uVar3);
func_0x00400b30(uVar3);
return;
}
| ['gcc'] |
15,739 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_63b_goodB2GSink(void * * dataPtr)
{
void * data = *dataPtr;
{
/* FIX: treating pointer like a wchar_t* */
size_t dataLen = wcslen((wchar_t *)data);
void * dest = (void *)calloc(dataLen+1, sizeof(wchar_t));
memcpy(dest, data, (dataLen+1)*sizeof(wchar_t));
printWLine((wchar_t *)dest);
free(dest);
}
} | ['/* FIX: treating pointer like a wchar_t* */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62983/CWE121_Stack_Based_Buffer_Overflow__CWE135_63b.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_63b_goodB2GSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_63b_goodB2GSink(undefined8 *param_1)
{
undefined8 uVar1;
long lVar2;
undefined8 uVar3;
uVar1 = *param_1;
lVar2 = func_0x00400b80(uVar1);
uVar3 = func_0x00400bc0(lVar2 + 1,4);
func_0x00400be0(uVar3,uVar1,(lVar2 + 1) * 4);
printWLine(uVar3);
func_0x00400b30(uVar3);
return;
}
| ['gcc'] |
15,740 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_64_bad()
{
void * data;
data = NULL;
/* POTENTIAL FLAW: Set data to point to a wide string */
data = (void *)WIDE_STRING;
CWE121_Stack_Based_Buffer_Overflow__CWE135_64b_badSink(&data);
} | ['/* POTENTIAL FLAW: Set data to point to a wide string */'] | ['CWE121', 'CWE135'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62984/CWE121_Stack_Based_Buffer_Overflow__CWE135_64a.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_64_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_64_bad(void)
{
undefined *puStack_10;
puStack_10 = &UNK_004012a8;
CWE121_Stack_Based_Buffer_Overflow__CWE135_64b_badSink(&puStack_10);
return;
}
| ['gcc'] |
15,741 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_64_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62984/CWE121_Stack_Based_Buffer_Overflow__CWE135_64a.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_64_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_64_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
15,742 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_64b_badSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
void * * dataPtr = (void * *)dataVoidPtr;
/* dereference dataPtr into data */
void * data = (*dataPtr);
{
/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */
size_t dataLen = strlen((char *)data);
void * dest = (void *)calloc(dataLen+1, 1);
memcpy(dest, data, (dataLen+1));
printLine((char *)dest);
free(dest);
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */'] | ['CWE121', 'CWE135'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62984/CWE121_Stack_Based_Buffer_Overflow__CWE135_64b.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_64b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_64b_badSink(undefined8 *param_1)
{
undefined8 uVar1;
long lVar2;
undefined8 uVar3;
uVar1 = *param_1;
lVar2 = func_0x00400ae0(uVar1);
uVar3 = func_0x00400b30(lVar2 + 1,1);
func_0x00400b50(uVar3,uVar1,lVar2 + 1);
printLine(uVar3);
func_0x00400ab0(uVar3);
return;
}
| ['gcc'] |
15,743 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_64b_goodG2BSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
void * * dataPtr = (void * *)dataVoidPtr;
/* dereference dataPtr into data */
void * data = (*dataPtr);
{
/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */
size_t dataLen = strlen((char *)data);
void * dest = (void *)calloc(dataLen+1, 1);
memcpy(dest, data, (dataLen+1));
printLine((char *)dest);
free(dest);
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62984/CWE121_Stack_Based_Buffer_Overflow__CWE135_64b.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_64b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_64b_goodG2BSink(undefined8 *param_1)
{
undefined8 uVar1;
long lVar2;
undefined8 uVar3;
uVar1 = *param_1;
lVar2 = func_0x00400b60(uVar1);
uVar3 = func_0x00400bc0(lVar2 + 1,1);
func_0x00400be0(uVar3,uVar1,lVar2 + 1);
printLine(uVar3);
func_0x00400b30(uVar3);
return;
}
| ['gcc'] |
15,744 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_64b_goodB2GSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
void * * dataPtr = (void * *)dataVoidPtr;
/* dereference dataPtr into data */
void * data = (*dataPtr);
{
/* FIX: treating pointer like a wchar_t* */
size_t dataLen = wcslen((wchar_t *)data);
void * dest = (void *)calloc(dataLen+1, sizeof(wchar_t));
memcpy(dest, data, (dataLen+1)*sizeof(wchar_t));
printWLine((wchar_t *)dest);
free(dest);
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* FIX: treating pointer like a wchar_t* */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62984/CWE121_Stack_Based_Buffer_Overflow__CWE135_64b.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_64b_goodB2GSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_64b_goodB2GSink(undefined8 *param_1)
{
undefined8 uVar1;
long lVar2;
undefined8 uVar3;
uVar1 = *param_1;
lVar2 = func_0x00400b80(uVar1);
uVar3 = func_0x00400bc0(lVar2 + 1,4);
func_0x00400be0(uVar3,uVar1,(lVar2 + 1) * 4);
printWLine(uVar3);
func_0x00400b30(uVar3);
return;
}
| ['gcc'] |
15,745 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_66_bad()
{
void * data;
void * dataArray[5];
data = NULL;
/* POTENTIAL FLAW: Set data to point to a wide string */
data = (void *)WIDE_STRING;
/* put data in array */
dataArray[2] = data;
CWE121_Stack_Based_Buffer_Overflow__CWE135_66b_badSink(dataArray);
} | ['/* POTENTIAL FLAW: Set data to point to a wide string */', '/* put data in array */'] | ['CWE121', 'CWE135'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62986/CWE121_Stack_Based_Buffer_Overflow__CWE135_66a.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_66_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_66_bad(void)
{
undefined auStack_38 [16];
undefined *puStack_28;
undefined *puStack_10;
puStack_10 = &UNK_004012a8;
puStack_28 = &UNK_004012a8;
CWE121_Stack_Based_Buffer_Overflow__CWE135_66b_badSink(auStack_38);
return;
}
| ['gcc'] |
15,746 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_66_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62986/CWE121_Stack_Based_Buffer_Overflow__CWE135_66a.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_66_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_66_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
15,747 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_66b_badSink(void * dataArray[])
{
/* copy data out of dataArray */
void * data = dataArray[2];
{
/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */
size_t dataLen = strlen((char *)data);
void * dest = (void *)calloc(dataLen+1, 1);
memcpy(dest, data, (dataLen+1));
printLine((char *)dest);
free(dest);
}
} | ['/* copy data out of dataArray */', '/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */'] | ['CWE121', 'CWE135'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62986/CWE121_Stack_Based_Buffer_Overflow__CWE135_66b.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_66b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_66b_badSink(long param_1)
{
undefined8 uVar1;
long lVar2;
undefined8 uVar3;
uVar1 = *(undefined8 *)(param_1 + 0x10);
lVar2 = func_0x00400ae0(uVar1);
uVar3 = func_0x00400b30(lVar2 + 1,1);
func_0x00400b50(uVar3,uVar1,lVar2 + 1);
printLine(uVar3);
func_0x00400ab0(uVar3);
return;
}
| ['gcc'] |
15,748 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_66b_goodG2BSink(void * dataArray[])
{
void * data = dataArray[2];
{
/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */
size_t dataLen = strlen((char *)data);
void * dest = (void *)calloc(dataLen+1, 1);
memcpy(dest, data, (dataLen+1));
printLine((char *)dest);
free(dest);
}
} | ['/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62986/CWE121_Stack_Based_Buffer_Overflow__CWE135_66b.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_66b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_66b_goodG2BSink(long param_1)
{
undefined8 uVar1;
long lVar2;
undefined8 uVar3;
uVar1 = *(undefined8 *)(param_1 + 0x10);
lVar2 = func_0x00400b60(uVar1);
uVar3 = func_0x00400bc0(lVar2 + 1,1);
func_0x00400be0(uVar3,uVar1,lVar2 + 1);
printLine(uVar3);
func_0x00400b30(uVar3);
return;
}
| ['gcc'] |
15,749 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_66b_goodB2GSink(void * dataArray[])
{
void * data = dataArray[2];
{
/* FIX: treating pointer like a wchar_t* */
size_t dataLen = wcslen((wchar_t *)data);
void * dest = (void *)calloc(dataLen+1, sizeof(wchar_t));
memcpy(dest, data, (dataLen+1)*sizeof(wchar_t));
printWLine((wchar_t *)dest);
free(dest);
}
} | ['/* FIX: treating pointer like a wchar_t* */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62986/CWE121_Stack_Based_Buffer_Overflow__CWE135_66b.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_66b_goodB2GSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_66b_goodB2GSink(long param_1)
{
undefined8 uVar1;
long lVar2;
undefined8 uVar3;
uVar1 = *(undefined8 *)(param_1 + 0x10);
lVar2 = func_0x00400b80(uVar1);
uVar3 = func_0x00400bc0(lVar2 + 1,4);
func_0x00400be0(uVar3,uVar1,(lVar2 + 1) * 4);
printWLine(uVar3);
func_0x00400b30(uVar3);
return;
}
| ['gcc'] |
15,750 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_67_bad()
{
void * data;
CWE121_Stack_Based_Buffer_Overflow__CWE135_67_structType myStruct;
data = NULL;
/* POTENTIAL FLAW: Set data to point to a wide string */
data = (void *)WIDE_STRING;
myStruct.structFirst = data;
CWE121_Stack_Based_Buffer_Overflow__CWE135_67b_badSink(myStruct);
} | ['/* POTENTIAL FLAW: Set data to point to a wide string */'] | ['CWE121', 'CWE135'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62987/CWE121_Stack_Based_Buffer_Overflow__CWE135_67a.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_67_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_67_bad(void)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_67b_badSink(&UNK_004012a8);
return;
}
| ['gcc'] |
15,751 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_67_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62987/CWE121_Stack_Based_Buffer_Overflow__CWE135_67a.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_67_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_67_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
15,752 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_67b_badSink(CWE121_Stack_Based_Buffer_Overflow__CWE135_67_structType myStruct)
{
void * data = myStruct.structFirst;
{
/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */
size_t dataLen = strlen((char *)data);
void * dest = (void *)calloc(dataLen+1, 1);
memcpy(dest, data, (dataLen+1));
printLine((char *)dest);
free(dest);
}
} | ['/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */'] | ['CWE121', 'CWE135'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62987/CWE121_Stack_Based_Buffer_Overflow__CWE135_67b.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_67b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_67b_badSink(undefined8 param_1)
{
long lVar1;
undefined8 uVar2;
lVar1 = func_0x00400ae0(param_1);
uVar2 = func_0x00400b30(lVar1 + 1,1);
func_0x00400b50(uVar2,param_1,lVar1 + 1);
printLine(uVar2);
func_0x00400ab0(uVar2);
return;
}
| ['gcc'] |
15,753 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_67b_goodG2BSink(CWE121_Stack_Based_Buffer_Overflow__CWE135_67_structType myStruct)
{
void * data = myStruct.structFirst;
{
/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */
size_t dataLen = strlen((char *)data);
void * dest = (void *)calloc(dataLen+1, 1);
memcpy(dest, data, (dataLen+1));
printLine((char *)dest);
free(dest);
}
} | ['/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62987/CWE121_Stack_Based_Buffer_Overflow__CWE135_67b.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_67b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_67b_goodG2BSink(undefined8 param_1)
{
long lVar1;
undefined8 uVar2;
lVar1 = func_0x00400b60(param_1);
uVar2 = func_0x00400bc0(lVar1 + 1,1);
func_0x00400be0(uVar2,param_1,lVar1 + 1);
printLine(uVar2);
func_0x00400b30(uVar2);
return;
}
| ['gcc'] |
15,754 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_67b_goodB2GSink(CWE121_Stack_Based_Buffer_Overflow__CWE135_67_structType myStruct)
{
void * data = myStruct.structFirst;
{
/* FIX: treating pointer like a wchar_t* */
size_t dataLen = wcslen((wchar_t *)data);
void * dest = (void *)calloc(dataLen+1, sizeof(wchar_t));
memcpy(dest, data, (dataLen+1)*sizeof(wchar_t));
printWLine((wchar_t *)dest);
free(dest);
}
} | ['/* FIX: treating pointer like a wchar_t* */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62987/CWE121_Stack_Based_Buffer_Overflow__CWE135_67b.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_67b_goodB2GSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_67b_goodB2GSink(undefined8 param_1)
{
long lVar1;
undefined8 uVar2;
lVar1 = func_0x00400b80(param_1);
uVar2 = func_0x00400bc0(lVar1 + 1,4);
func_0x00400be0(uVar2,param_1,(lVar1 + 1) * 4);
printWLine(uVar2);
func_0x00400b30(uVar2);
return;
}
| ['gcc'] |
15,755 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_68_bad()
{
void * data;
data = NULL;
/* POTENTIAL FLAW: Set data to point to a wide string */
data = (void *)WIDE_STRING;
CWE121_Stack_Based_Buffer_Overflow__CWE135_68_badData = data;
CWE121_Stack_Based_Buffer_Overflow__CWE135_68b_badSink();
} | ['/* POTENTIAL FLAW: Set data to point to a wide string */'] | ['CWE121', 'CWE135'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62988/CWE121_Stack_Based_Buffer_Overflow__CWE135_68a.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_68_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_68_bad(void)
{
CWE121_Stack_Based_Buffer_Overflow__CWE135_68_badData = &UNK_004012a8;
CWE121_Stack_Based_Buffer_Overflow__CWE135_68b_badSink();
return;
}
| ['gcc'] |
15,756 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_68_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62988/CWE121_Stack_Based_Buffer_Overflow__CWE135_68a.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_68_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_68_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
15,757 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_68b_badSink()
{
void * data = CWE121_Stack_Based_Buffer_Overflow__CWE135_68_badData;
{
/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */
size_t dataLen = strlen((char *)data);
void * dest = (void *)calloc(dataLen+1, 1);
memcpy(dest, data, (dataLen+1));
printLine((char *)dest);
free(dest);
}
} | ['/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */'] | ['CWE121', 'CWE135'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62988/CWE121_Stack_Based_Buffer_Overflow__CWE135_68b.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_68b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_68b_badSink(void)
{
undefined8 uVar1;
long lVar2;
undefined8 uVar3;
uVar1 = CWE121_Stack_Based_Buffer_Overflow__CWE135_68_badData;
lVar2 = func_0x00400ae0(CWE121_Stack_Based_Buffer_Overflow__CWE135_68_badData);
uVar3 = func_0x00400b30(lVar2 + 1,1);
func_0x00400b50(uVar3,uVar1,lVar2 + 1);
printLine(uVar3);
func_0x00400ab0(uVar3);
return;
}
| ['gcc'] |
15,758 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_68b_goodG2BSink()
{
void * data = CWE121_Stack_Based_Buffer_Overflow__CWE135_68_goodG2BData;
{
/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */
size_t dataLen = strlen((char *)data);
void * dest = (void *)calloc(dataLen+1, 1);
memcpy(dest, data, (dataLen+1));
printLine((char *)dest);
free(dest);
}
} | ['/* POTENTIAL FLAW: treating pointer as a char* when it may point to a wide string */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62988/CWE121_Stack_Based_Buffer_Overflow__CWE135_68b.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_68b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_68b_goodG2BSink(void)
{
undefined8 uVar1;
long lVar2;
undefined8 uVar3;
uVar1 = CWE121_Stack_Based_Buffer_Overflow__CWE135_68_goodG2BData;
lVar2 = func_0x00400b60(CWE121_Stack_Based_Buffer_Overflow__CWE135_68_goodG2BData);
uVar3 = func_0x00400bc0(lVar2 + 1,1);
func_0x00400be0(uVar3,uVar1,lVar2 + 1);
printLine(uVar3);
func_0x00400b30(uVar3);
return;
}
| ['gcc'] |
15,759 | void CWE121_Stack_Based_Buffer_Overflow__CWE135_68b_goodB2GSink()
{
void * data = CWE121_Stack_Based_Buffer_Overflow__CWE135_68_goodB2GData;
{
/* FIX: treating pointer like a wchar_t* */
size_t dataLen = wcslen((wchar_t *)data);
void * dest = (void *)calloc(dataLen+1, sizeof(wchar_t));
memcpy(dest, data, (dataLen+1)*sizeof(wchar_t));
printWLine((wchar_t *)dest);
free(dest);
}
} | ['/* FIX: treating pointer like a wchar_t* */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62988/CWE121_Stack_Based_Buffer_Overflow__CWE135_68b.c | CWE121_Stack_Based_Buffer_Overflow__CWE135_68b_goodB2GSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE135_68b_goodB2GSink(void)
{
undefined8 uVar1;
long lVar2;
undefined8 uVar3;
uVar1 = CWE121_Stack_Based_Buffer_Overflow__CWE135_68_goodB2GData;
lVar2 = func_0x00400b80(CWE121_Stack_Based_Buffer_Overflow__CWE135_68_goodB2GData);
uVar3 = func_0x00400bc0(lVar2 + 1,4);
func_0x00400be0(uVar3,uVar1,(lVar2 + 1) * 4);
printWLine(uVar3);
func_0x00400b30(uVar3);
return;
}
| ['gcc'] |
15,760 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_01_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62996/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_01.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_01_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_01_bad(void)
{
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_50;
puStack_18 = auStack_70;
auStack_50[0] = 0;
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
puStack_10 = puStack_20;
func_0x004009e0(puStack_20,&uStack_2b);
printLine(puStack_20);
return;
}
| ['gcc'] |
15,761 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_01_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62996/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_01.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_01_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_01_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,762 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_02_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
if(1)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62997/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_02.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_02_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_02_bad(void)
{
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_50;
puStack_18 = auStack_70;
auStack_50[0] = 0;
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
puStack_10 = puStack_20;
func_0x004009e0(puStack_20,&uStack_2b);
printLine(puStack_20);
return;
}
| ['gcc'] |
15,763 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_02_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62997/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_02.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_02_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_02_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
15,764 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_03_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
if(5==5)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62998/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_03.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_03_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_03_bad(void)
{
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_50;
puStack_18 = auStack_70;
auStack_50[0] = 0;
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
puStack_10 = puStack_20;
func_0x004009e0(puStack_20,&uStack_2b);
printLine(puStack_20);
return;
}
| ['gcc'] |
15,765 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_03_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62998/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_03.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_03_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_03_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
15,766 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_04_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
if(STATIC_CONST_TRUE)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62999/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_04.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_04_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_04_bad(void)
{
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_18 = auStack_50;
puStack_20 = auStack_70;
auStack_50[0] = 0;
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
puStack_10 = puStack_18;
func_0x004009e0(puStack_18,&uStack_2b);
printLine(puStack_10);
return;
}
| ['gcc'] |
15,767 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_04_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/62999/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_04.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_04_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_04_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
15,768 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_05_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
if(staticTrue)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63000/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_05.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_05_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_05_bad(void)
{
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_18 = auStack_50;
puStack_20 = auStack_70;
if (staticTrue != 0) {
auStack_50[0] = 0;
puStack_10 = puStack_18;
}
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
func_0x004009e0(puStack_10,&uStack_2b);
printLine(puStack_10);
return;
}
| ['gcc'] |
15,769 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_05_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63000/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_05.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_05_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_05_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
15,770 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_06_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
if(STATIC_CONST_FIVE==5)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63001/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_06.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_06_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_06_bad(void)
{
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_18 = auStack_50;
puStack_20 = auStack_70;
auStack_50[0] = 0;
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
puStack_10 = puStack_18;
func_0x004009e0(puStack_18,&uStack_2b);
printLine(puStack_10);
return;
}
| ['gcc'] |
15,771 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_06_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63001/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_06.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_06_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_06_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
15,772 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_07_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
if(staticFive==5)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63002/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_07.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_07_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_07_bad(void)
{
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_18 = auStack_50;
puStack_20 = auStack_70;
if (staticFive == 5) {
auStack_50[0] = 0;
puStack_10 = puStack_18;
}
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
func_0x004009e0(puStack_10,&uStack_2b);
printLine(puStack_10);
return;
}
| ['gcc'] |
15,773 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_07_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63002/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_07.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_07_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_07_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
15,774 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_08_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
if(staticReturnsTrue())
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63003/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_08.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_08_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_08_bad(undefined8 param_1)
{
int iVar1;
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_18 = auStack_50;
puStack_20 = auStack_70;
iVar1 = staticReturnsTrue(param_1,0x10,2);
if (iVar1 != 0) {
puStack_10 = puStack_18;
*puStack_18 = 0;
}
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
func_0x004009e0(puStack_10,&uStack_2b);
printLine(puStack_10);
return;
}
| ['gcc'] |
15,775 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_08_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63003/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_08.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_08_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_08_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
15,776 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_09_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
if(GLOBAL_CONST_TRUE)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63004/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_09.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_09_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_09_bad(void)
{
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_18 = auStack_50;
puStack_20 = auStack_70;
if (GLOBAL_CONST_TRUE != 0) {
auStack_50[0] = 0;
puStack_10 = puStack_18;
}
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
func_0x004009e0(puStack_10,&uStack_2b);
printLine(puStack_10);
return;
}
| ['gcc'] |
15,777 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_09_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63004/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_09.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_09_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_09_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
15,778 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_10_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
if(globalTrue)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63005/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_10.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_10_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_10_bad(void)
{
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_18 = auStack_50;
puStack_20 = auStack_70;
if (globalTrue != 0) {
auStack_50[0] = 0;
puStack_10 = puStack_18;
}
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
func_0x004009e0(puStack_10,&uStack_2b);
printLine(puStack_10);
return;
}
| ['gcc'] |
15,779 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_10_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63005/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_10.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_10_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_10_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
15,780 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_11_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
if(globalReturnsTrue())
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63006/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_11.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_11_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_11_bad(undefined8 param_1)
{
int iVar1;
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_18 = auStack_50;
puStack_20 = auStack_70;
iVar1 = globalReturnsTrue(param_1,0x10,2);
if (iVar1 != 0) {
puStack_10 = puStack_18;
*puStack_18 = 0;
}
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
func_0x004009e0(puStack_10,&uStack_2b);
printLine(puStack_10);
return;
}
| ['gcc'] |
15,781 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_11_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63006/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_11.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_11_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_11_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
15,782 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_12_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
if(globalReturnsTrueOrFalse())
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
else
{
/* FIX: Set a pointer to a buffer that leaves room for a NULL terminator when performing
* string copies in the sinks */
data = dataGoodBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* FIX: Set a pointer to a buffer that leaves room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63007/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_12.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_12_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_12_bad(undefined8 param_1)
{
int iVar1;
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_18 = auStack_50;
puStack_20 = auStack_70;
iVar1 = globalReturnsTrueOrFalse(param_1,0x10,2);
if (iVar1 == 0) {
puStack_10 = puStack_20;
*puStack_20 = 0;
}
else {
puStack_10 = puStack_18;
*puStack_18 = 0;
}
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
func_0x004009e0(puStack_10,&uStack_2b);
printLine(puStack_10);
return;
}
| ['gcc'] |
15,783 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_12_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63007/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_12.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_12_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_12_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,784 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_13_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
if(GLOBAL_CONST_FIVE==5)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63008/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_13.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_13_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_13_bad(void)
{
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_18 = auStack_50;
puStack_20 = auStack_70;
if (GLOBAL_CONST_FIVE == 5) {
auStack_50[0] = 0;
puStack_10 = puStack_18;
}
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
func_0x004009e0(puStack_10,&uStack_2b);
printLine(puStack_10);
return;
}
| ['gcc'] |
15,785 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_13_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63008/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_13.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_13_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_13_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
15,786 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_14_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
if(globalFive==5)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63009/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_14.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_14_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_14_bad(void)
{
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_18 = auStack_50;
puStack_20 = auStack_70;
if (globalFive == 5) {
auStack_50[0] = 0;
puStack_10 = puStack_18;
}
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
func_0x004009e0(puStack_10,&uStack_2b);
printLine(puStack_10);
return;
}
| ['gcc'] |
15,787 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_14_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63009/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_14.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_14_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_14_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
15,788 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_15_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
switch(6)
{
case 6:
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
break;
default:
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
break;
}
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63010/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_15.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_15_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_15_bad(void)
{
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_50;
puStack_18 = auStack_70;
auStack_50[0] = 0;
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
puStack_10 = puStack_20;
func_0x004009e0(puStack_20,&uStack_2b);
printLine(puStack_20);
return;
}
| ['gcc'] |
15,789 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_15_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63010/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_15.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_15_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_15_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
15,790 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_16_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
while(1)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
break;
}
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63011/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_16.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_16_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_16_bad(void)
{
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_50;
puStack_18 = auStack_70;
auStack_50[0] = 0;
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
puStack_10 = puStack_20;
func_0x004009e0(puStack_20,&uStack_2b);
printLine(puStack_20);
return;
}
| ['gcc'] |
15,791 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_16_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63011/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_16.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_16_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_16_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,792 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_17_bad()
{
int i;
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
for(i = 0; i < 1; i++)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63012/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_17.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_17_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_17_bad(void)
{
undefined auStack_70 [32];
undefined auStack_50 [29];
undefined8 uStack_33;
undefined2 uStack_2b;
undefined uStack_29;
undefined *puStack_28;
undefined *puStack_20;
undefined *puStack_18;
int iStack_c;
puStack_20 = auStack_50;
puStack_28 = auStack_70;
for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) {
puStack_18 = puStack_20;
*puStack_20 = 0;
}
uStack_33 = 0x4141414141414141;
uStack_2b = 0x4141;
uStack_29 = 0;
func_0x004009e0(puStack_18,&uStack_33);
printLine(puStack_18);
return;
}
| ['gcc'] |
15,793 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_17_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63012/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_17.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_17_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_17_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,794 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_18_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
goto source;
source:
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63013/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_18.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_18_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_18_bad(void)
{
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_50;
puStack_18 = auStack_70;
auStack_50[0] = 0;
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
puStack_10 = puStack_20;
func_0x004009e0(puStack_20,&uStack_2b);
printLine(puStack_20);
return;
}
| ['gcc'] |
15,795 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_18_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63013/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_18.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_18_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_18_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,796 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_31_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
{
char * dataCopy = data;
char * data = dataCopy;
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63014/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_31.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_31_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_31_bad(void)
{
undefined auStack_80 [32];
undefined auStack_60 [37];
undefined8 uStack_3b;
undefined2 uStack_33;
undefined uStack_31;
undefined *puStack_30;
undefined *puStack_28;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_30 = auStack_60;
puStack_18 = auStack_80;
auStack_60[0] = 0;
uStack_3b = 0x4141414141414141;
uStack_33 = 0x4141;
uStack_31 = 0;
puStack_28 = puStack_30;
puStack_20 = puStack_30;
puStack_10 = puStack_30;
func_0x004009e0(puStack_30,&uStack_3b);
printLine(puStack_30);
return;
}
| ['gcc'] |
15,797 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_31_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63014/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_31.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_31_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_31_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
15,798 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_32_bad()
{
char * data;
char * *dataPtr1 = &data;
char * *dataPtr2 = &data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
{
char * data = *dataPtr1;
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
*dataPtr1 = data;
}
{
char * data = *dataPtr2;
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63015/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_32.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_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__CWE193_char_alloca_cpy_32_bad(void)
{
undefined auStack_90 [32];
undefined auStack_70 [37];
undefined8 uStack_4b;
undefined2 uStack_43;
undefined uStack_41;
undefined8 uStack_40;
undefined8 uStack_38;
undefined *puStack_30;
undefined *puStack_28;
undefined *puStack_20;
undefined8 *puStack_18;
undefined8 *puStack_10;
puStack_10 = &uStack_40;
puStack_18 = &uStack_40;
puStack_30 = auStack_70;
puStack_28 = auStack_90;
auStack_70[0] = 0;
uStack_38 = uStack_40;
uStack_4b = 0x4141414141414141;
uStack_43 = 0x4141;
uStack_41 = 0;
puStack_20 = puStack_30;
func_0x004009e0(uStack_40,&uStack_4b);
printLine(uStack_38);
return;
}
| ['gcc'] |
15,799 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_32_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63015/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_32.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_32_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_cpy_32_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.