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 |
|---|---|---|---|---|---|---|---|---|
56,000 | void CWE401_Memory_Leak__malloc_realloc_wchar_t_17_bad()
{
int j;
for(j = 0; j < 1; j++)
{
{
wchar_t * data = (wchar_t *)malloc(100*sizeof(wchar_t));
/* Initialize and make use of data */
wcscpy(data, L"A String");
printWLine(data);
... | ['/* Initialize and make use of data */', '/* FLAW: If realloc() fails, the initial memory block will not be freed() */', '/* Reinitialize and make use of data */'] | ['CWE401'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99740/CWE401_Memory_Leak__malloc_realloc_wchar_t_17.c | CWE401_Memory_Leak__malloc_realloc_wchar_t_17_bad |
void CWE401_Memory_Leak__malloc_realloc_wchar_t_17_bad(void)
{
undefined8 uVar1;
long lVar2;
int iStack_c;
for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) {
uVar1 = func_0x00400b30(400);
func_0x00400b00(uVar1,&UNK_00401278);
printWLine(uVar1);
lVar2 = func_0x00400b60(uVar1,520000)... | ['gcc'] |
56,001 | void CWE401_Memory_Leak__malloc_realloc_wchar_t_17_good()
{
good1();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99740/CWE401_Memory_Leak__malloc_realloc_wchar_t_17.c | CWE401_Memory_Leak__malloc_realloc_wchar_t_17_good |
void CWE401_Memory_Leak__malloc_realloc_wchar_t_17_good(void)
{
good1();
return;
}
| ['gcc'] |
56,002 | void CWE401_Memory_Leak__malloc_realloc_wchar_t_18_bad()
{
goto sink;
sink:
{
wchar_t * data = (wchar_t *)malloc(100*sizeof(wchar_t));
/* Initialize and make use of data */
wcscpy(data, L"A String");
printWLine(data);
/* FLAW: If realloc() fails, the initial memo... | ['/* Initialize and make use of data */', '/* FLAW: If realloc() fails, the initial memory block will not be freed() */', '/* Reinitialize and make use of data */'] | ['CWE401'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99741/CWE401_Memory_Leak__malloc_realloc_wchar_t_18.c | CWE401_Memory_Leak__malloc_realloc_wchar_t_18_bad |
void CWE401_Memory_Leak__malloc_realloc_wchar_t_18_bad(void)
{
undefined8 uVar1;
long lVar2;
uVar1 = func_0x00400b30(400);
func_0x00400b00(uVar1,&UNK_00401268);
printWLine(uVar1);
lVar2 = func_0x00400b60(uVar1,520000);
if (lVar2 != 0) {
func_0x00400b00(lVar2,&UNK_00401290);
printWLine(lVar2);... | ['gcc'] |
56,003 | void CWE401_Memory_Leak__malloc_realloc_wchar_t_18_good()
{
good1();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99741/CWE401_Memory_Leak__malloc_realloc_wchar_t_18.c | CWE401_Memory_Leak__malloc_realloc_wchar_t_18_good |
void CWE401_Memory_Leak__malloc_realloc_wchar_t_18_good(void)
{
good1();
return;
}
| ['gcc'] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.