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
55,800
void CWE401_Memory_Leak__int_realloc_66b_goodB2GSink(int * dataArray[]) { int * data = dataArray[2]; /* FIX: Deallocate memory */ free(data); }
['/* FIX: Deallocate memory */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99624/CWE401_Memory_Leak__int_realloc_66b.c
CWE401_Memory_Leak__int_realloc_66b_goodB2GSink
void CWE401_Memory_Leak__int_realloc_66b_goodB2GSink(long param_1) { func_0x00400a20(*(undefined8 *)(param_1 + 0x10)); return; }
['gcc']
55,801
void CWE401_Memory_Leak__int_realloc_67_bad() { int * data; CWE401_Memory_Leak__int_realloc_67_structType myStruct; data = NULL; /* POTENTIAL FLAW: Allocate memory on the heap */ data = (int *)realloc(data, 100*sizeof(int)); /* Initialize and make use of data */ data[0] = 5; printIntLine(data[0]); myStruct.structFirst = data; CWE401_Memory_Leak__int_realloc_67b_badSink(myStruct); }
['/* POTENTIAL FLAW: Allocate memory on the heap */', '/* Initialize and make use of data */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99625/CWE401_Memory_Leak__int_realloc_67a.c
CWE401_Memory_Leak__int_realloc_67_bad
void CWE401_Memory_Leak__int_realloc_67_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400a80(0,400); *puVar1 = 5; printIntLine(*puVar1); CWE401_Memory_Leak__int_realloc_67b_badSink(puVar1); return; }
['gcc']
55,802
void CWE401_Memory_Leak__int_realloc_67_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99625/CWE401_Memory_Leak__int_realloc_67a.c
CWE401_Memory_Leak__int_realloc_67_good
void CWE401_Memory_Leak__int_realloc_67_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
55,803
void CWE401_Memory_Leak__int_realloc_67b_badSink(CWE401_Memory_Leak__int_realloc_67_structType myStruct) { int * data = myStruct.structFirst; /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ }
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99625/CWE401_Memory_Leak__int_realloc_67b.c
CWE401_Memory_Leak__int_realloc_67b_badSink
void CWE401_Memory_Leak__int_realloc_67b_badSink(void) { return; }
['gcc']
55,804
void CWE401_Memory_Leak__int_realloc_67b_goodG2BSink(CWE401_Memory_Leak__int_realloc_67_structType myStruct) { int * data = myStruct.structFirst; /* POTENTIAL FLAW: No deallocation */ ; /* empty statement needed for some flow variants */ }
['/* POTENTIAL FLAW: No deallocation */', '/* empty statement needed for some flow variants */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99625/CWE401_Memory_Leak__int_realloc_67b.c
CWE401_Memory_Leak__int_realloc_67b_goodG2BSink
void CWE401_Memory_Leak__int_realloc_67b_goodG2BSink(void) { return; }
['gcc']
55,805
void CWE401_Memory_Leak__int_realloc_67b_goodB2GSink(CWE401_Memory_Leak__int_realloc_67_structType myStruct) { int * data = myStruct.structFirst; /* FIX: Deallocate memory */ free(data); }
['/* FIX: Deallocate memory */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99625/CWE401_Memory_Leak__int_realloc_67b.c
CWE401_Memory_Leak__int_realloc_67b_goodB2GSink
void CWE401_Memory_Leak__int_realloc_67b_goodB2GSink(undefined8 param_1) { func_0x00400a20(param_1); return; }
['gcc']
55,806
void CWE401_Memory_Leak__malloc_realloc_char_01_bad() { { char * data = (char *)malloc(100*sizeof(char)); /* Initialize and make use of data */ strcpy(data, "A String"); printLine(data); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (char *)realloc(data, (130000)*sizeof(char)); if (data != NULL) { /* Reinitialize and make use of data */ strcpy(data, "New String"); printLine(data); free(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/99634/CWE401_Memory_Leak__malloc_realloc_char_01.c
CWE401_Memory_Leak__malloc_realloc_char_01_bad
void CWE401_Memory_Leak__malloc_realloc_char_01_bad(void) { undefined8 *puVar1; puVar1 = (undefined8 *)func_0x00400af0(100); *puVar1 = 0x676e697274532041; *(undefined *)(puVar1 + 1) = 0; printLine(puVar1); puVar1 = (undefined8 *)func_0x00400b20(puVar1,130000); if (puVar1 != (undefined8 *)0x0) { *puVar1 = 0x697274532077654e; *(undefined2 *)(puVar1 + 1) = 0x676e; *(undefined *)((long)puVar1 + 10) = 0; printLine(puVar1); func_0x00400a60(puVar1); } return; }
['gcc']
55,807
void CWE401_Memory_Leak__malloc_realloc_char_01_good() { good1(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99634/CWE401_Memory_Leak__malloc_realloc_char_01.c
CWE401_Memory_Leak__malloc_realloc_char_01_good
void CWE401_Memory_Leak__malloc_realloc_char_01_good(void) { good1(); return; }
['gcc']
55,808
void CWE401_Memory_Leak__malloc_realloc_char_02_bad() { if(1) { { char * data = (char *)malloc(100*sizeof(char)); /* Initialize and make use of data */ strcpy(data, "A String"); printLine(data); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (char *)realloc(data, (130000)*sizeof(char)); if (data != NULL) { /* Reinitialize and make use of data */ strcpy(data, "New String"); printLine(data); free(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/99635/CWE401_Memory_Leak__malloc_realloc_char_02.c
CWE401_Memory_Leak__malloc_realloc_char_02_bad
void CWE401_Memory_Leak__malloc_realloc_char_02_bad(void) { undefined8 *puVar1; puVar1 = (undefined8 *)func_0x00400af0(100); *puVar1 = 0x676e697274532041; *(undefined *)(puVar1 + 1) = 0; printLine(puVar1); puVar1 = (undefined8 *)func_0x00400b20(puVar1,130000); if (puVar1 != (undefined8 *)0x0) { *puVar1 = 0x697274532077654e; *(undefined2 *)(puVar1 + 1) = 0x676e; *(undefined *)((long)puVar1 + 10) = 0; printLine(puVar1); func_0x00400a60(puVar1); } return; }
['gcc']
55,809
void CWE401_Memory_Leak__malloc_realloc_char_02_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99635/CWE401_Memory_Leak__malloc_realloc_char_02.c
CWE401_Memory_Leak__malloc_realloc_char_02_good
void CWE401_Memory_Leak__malloc_realloc_char_02_good(void) { good1(); good2(); return; }
['gcc']
55,810
void CWE401_Memory_Leak__malloc_realloc_char_03_bad() { if(5==5) { { char * data = (char *)malloc(100*sizeof(char)); /* Initialize and make use of data */ strcpy(data, "A String"); printLine(data); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (char *)realloc(data, (130000)*sizeof(char)); if (data != NULL) { /* Reinitialize and make use of data */ strcpy(data, "New String"); printLine(data); free(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/99636/CWE401_Memory_Leak__malloc_realloc_char_03.c
CWE401_Memory_Leak__malloc_realloc_char_03_bad
void CWE401_Memory_Leak__malloc_realloc_char_03_bad(void) { undefined8 *puVar1; puVar1 = (undefined8 *)func_0x00400af0(100); *puVar1 = 0x676e697274532041; *(undefined *)(puVar1 + 1) = 0; printLine(puVar1); puVar1 = (undefined8 *)func_0x00400b20(puVar1,130000); if (puVar1 != (undefined8 *)0x0) { *puVar1 = 0x697274532077654e; *(undefined2 *)(puVar1 + 1) = 0x676e; *(undefined *)((long)puVar1 + 10) = 0; printLine(puVar1); func_0x00400a60(puVar1); } return; }
['gcc']
55,811
void CWE401_Memory_Leak__malloc_realloc_char_03_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99636/CWE401_Memory_Leak__malloc_realloc_char_03.c
CWE401_Memory_Leak__malloc_realloc_char_03_good
void CWE401_Memory_Leak__malloc_realloc_char_03_good(void) { good1(); good2(); return; }
['gcc']
55,812
void CWE401_Memory_Leak__malloc_realloc_char_04_bad() { if(STATIC_CONST_TRUE) { { char * data = (char *)malloc(100*sizeof(char)); /* Initialize and make use of data */ strcpy(data, "A String"); printLine(data); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (char *)realloc(data, (130000)*sizeof(char)); if (data != NULL) { /* Reinitialize and make use of data */ strcpy(data, "New String"); printLine(data); free(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/99637/CWE401_Memory_Leak__malloc_realloc_char_04.c
CWE401_Memory_Leak__malloc_realloc_char_04_bad
void CWE401_Memory_Leak__malloc_realloc_char_04_bad(void) { undefined8 *puVar1; puVar1 = (undefined8 *)func_0x00400af0(100); *puVar1 = 0x676e697274532041; *(undefined *)(puVar1 + 1) = 0; printLine(puVar1); puVar1 = (undefined8 *)func_0x00400b20(puVar1,130000); if (puVar1 != (undefined8 *)0x0) { *puVar1 = 0x697274532077654e; *(undefined2 *)(puVar1 + 1) = 0x676e; *(undefined *)((long)puVar1 + 10) = 0; printLine(puVar1); func_0x00400a60(puVar1); } return; }
['gcc']
55,813
void CWE401_Memory_Leak__malloc_realloc_char_04_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99637/CWE401_Memory_Leak__malloc_realloc_char_04.c
CWE401_Memory_Leak__malloc_realloc_char_04_good
void CWE401_Memory_Leak__malloc_realloc_char_04_good(void) { good1(); good2(); return; }
['gcc']
55,814
void CWE401_Memory_Leak__malloc_realloc_char_05_bad() { if(staticTrue) { { char * data = (char *)malloc(100*sizeof(char)); /* Initialize and make use of data */ strcpy(data, "A String"); printLine(data); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (char *)realloc(data, (130000)*sizeof(char)); if (data != NULL) { /* Reinitialize and make use of data */ strcpy(data, "New String"); printLine(data); free(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/99638/CWE401_Memory_Leak__malloc_realloc_char_05.c
CWE401_Memory_Leak__malloc_realloc_char_05_bad
void CWE401_Memory_Leak__malloc_realloc_char_05_bad(void) { undefined8 *puVar1; if (staticTrue != 0) { puVar1 = (undefined8 *)func_0x00400af0(100); *puVar1 = 0x676e697274532041; *(undefined *)(puVar1 + 1) = 0; printLine(puVar1); puVar1 = (undefined8 *)func_0x00400b20(puVar1,130000); if (puVar1 != (undefined8 *)0x0) { *puVar1 = 0x697274532077654e; *(undefined2 *)(puVar1 + 1) = 0x676e; *(undefined *)((long)puVar1 + 10) = 0; printLine(puVar1); func_0x00400a60(puVar1); } } return; }
['gcc']
55,815
void CWE401_Memory_Leak__malloc_realloc_char_05_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99638/CWE401_Memory_Leak__malloc_realloc_char_05.c
CWE401_Memory_Leak__malloc_realloc_char_05_good
void CWE401_Memory_Leak__malloc_realloc_char_05_good(void) { good1(); good2(); return; }
['gcc']
55,816
void CWE401_Memory_Leak__malloc_realloc_char_06_bad() { if(STATIC_CONST_FIVE==5) { { char * data = (char *)malloc(100*sizeof(char)); /* Initialize and make use of data */ strcpy(data, "A String"); printLine(data); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (char *)realloc(data, (130000)*sizeof(char)); if (data != NULL) { /* Reinitialize and make use of data */ strcpy(data, "New String"); printLine(data); free(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/99639/CWE401_Memory_Leak__malloc_realloc_char_06.c
CWE401_Memory_Leak__malloc_realloc_char_06_bad
void CWE401_Memory_Leak__malloc_realloc_char_06_bad(void) { undefined8 *puVar1; puVar1 = (undefined8 *)func_0x00400af0(100); *puVar1 = 0x676e697274532041; *(undefined *)(puVar1 + 1) = 0; printLine(puVar1); puVar1 = (undefined8 *)func_0x00400b20(puVar1,130000); if (puVar1 != (undefined8 *)0x0) { *puVar1 = 0x697274532077654e; *(undefined2 *)(puVar1 + 1) = 0x676e; *(undefined *)((long)puVar1 + 10) = 0; printLine(puVar1); func_0x00400a60(puVar1); } return; }
['gcc']
55,817
void CWE401_Memory_Leak__malloc_realloc_char_06_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99639/CWE401_Memory_Leak__malloc_realloc_char_06.c
CWE401_Memory_Leak__malloc_realloc_char_06_good
void CWE401_Memory_Leak__malloc_realloc_char_06_good(void) { good1(); good2(); return; }
['gcc']
55,818
void CWE401_Memory_Leak__malloc_realloc_char_07_bad() { if(staticFive==5) { { char * data = (char *)malloc(100*sizeof(char)); /* Initialize and make use of data */ strcpy(data, "A String"); printLine(data); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (char *)realloc(data, (130000)*sizeof(char)); if (data != NULL) { /* Reinitialize and make use of data */ strcpy(data, "New String"); printLine(data); free(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/99640/CWE401_Memory_Leak__malloc_realloc_char_07.c
CWE401_Memory_Leak__malloc_realloc_char_07_bad
void CWE401_Memory_Leak__malloc_realloc_char_07_bad(void) { undefined8 *puVar1; if (staticFive == 5) { puVar1 = (undefined8 *)func_0x00400af0(100); *puVar1 = 0x676e697274532041; *(undefined *)(puVar1 + 1) = 0; printLine(puVar1); puVar1 = (undefined8 *)func_0x00400b20(puVar1,130000); if (puVar1 != (undefined8 *)0x0) { *puVar1 = 0x697274532077654e; *(undefined2 *)(puVar1 + 1) = 0x676e; *(undefined *)((long)puVar1 + 10) = 0; printLine(puVar1); func_0x00400a60(puVar1); } } return; }
['gcc']
55,819
void CWE401_Memory_Leak__malloc_realloc_char_07_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99640/CWE401_Memory_Leak__malloc_realloc_char_07.c
CWE401_Memory_Leak__malloc_realloc_char_07_good
void CWE401_Memory_Leak__malloc_realloc_char_07_good(void) { good1(); good2(); return; }
['gcc']
55,820
void CWE401_Memory_Leak__malloc_realloc_char_08_bad() { if(staticReturnsTrue()) { { char * data = (char *)malloc(100*sizeof(char)); /* Initialize and make use of data */ strcpy(data, "A String"); printLine(data); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (char *)realloc(data, (130000)*sizeof(char)); if (data != NULL) { /* Reinitialize and make use of data */ strcpy(data, "New String"); printLine(data); free(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/99641/CWE401_Memory_Leak__malloc_realloc_char_08.c
CWE401_Memory_Leak__malloc_realloc_char_08_bad
void CWE401_Memory_Leak__malloc_realloc_char_08_bad(void) { int iVar1; undefined8 *puVar2; iVar1 = staticReturnsTrue(); if (iVar1 != 0) { puVar2 = (undefined8 *)func_0x00400af0(100); *puVar2 = 0x676e697274532041; *(undefined *)(puVar2 + 1) = 0; printLine(puVar2); puVar2 = (undefined8 *)func_0x00400b20(puVar2,130000); if (puVar2 != (undefined8 *)0x0) { *puVar2 = 0x697274532077654e; *(undefined2 *)(puVar2 + 1) = 0x676e; *(undefined *)((long)puVar2 + 10) = 0; printLine(puVar2); func_0x00400a60(puVar2); } } return; }
['gcc']
55,821
void CWE401_Memory_Leak__malloc_realloc_char_08_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99641/CWE401_Memory_Leak__malloc_realloc_char_08.c
CWE401_Memory_Leak__malloc_realloc_char_08_good
void CWE401_Memory_Leak__malloc_realloc_char_08_good(void) { good1(); good2(); return; }
['gcc']
55,822
void CWE401_Memory_Leak__malloc_realloc_char_09_bad() { if(GLOBAL_CONST_TRUE) { { char * data = (char *)malloc(100*sizeof(char)); /* Initialize and make use of data */ strcpy(data, "A String"); printLine(data); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (char *)realloc(data, (130000)*sizeof(char)); if (data != NULL) { /* Reinitialize and make use of data */ strcpy(data, "New String"); printLine(data); free(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/99642/CWE401_Memory_Leak__malloc_realloc_char_09.c
CWE401_Memory_Leak__malloc_realloc_char_09_bad
void CWE401_Memory_Leak__malloc_realloc_char_09_bad(void) { undefined8 *puVar1; if (GLOBAL_CONST_TRUE != 0) { puVar1 = (undefined8 *)func_0x00400af0(100); *puVar1 = 0x676e697274532041; *(undefined *)(puVar1 + 1) = 0; printLine(puVar1); puVar1 = (undefined8 *)func_0x00400b20(puVar1,130000); if (puVar1 != (undefined8 *)0x0) { *puVar1 = 0x697274532077654e; *(undefined2 *)(puVar1 + 1) = 0x676e; *(undefined *)((long)puVar1 + 10) = 0; printLine(puVar1); func_0x00400a60(puVar1); } } return; }
['gcc']
55,823
void CWE401_Memory_Leak__malloc_realloc_char_09_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99642/CWE401_Memory_Leak__malloc_realloc_char_09.c
CWE401_Memory_Leak__malloc_realloc_char_09_good
void CWE401_Memory_Leak__malloc_realloc_char_09_good(void) { good1(); good2(); return; }
['gcc']
55,824
void CWE401_Memory_Leak__malloc_realloc_char_10_bad() { if(globalTrue) { { char * data = (char *)malloc(100*sizeof(char)); /* Initialize and make use of data */ strcpy(data, "A String"); printLine(data); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (char *)realloc(data, (130000)*sizeof(char)); if (data != NULL) { /* Reinitialize and make use of data */ strcpy(data, "New String"); printLine(data); free(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/99643/CWE401_Memory_Leak__malloc_realloc_char_10.c
CWE401_Memory_Leak__malloc_realloc_char_10_bad
void CWE401_Memory_Leak__malloc_realloc_char_10_bad(void) { undefined8 *puVar1; if (globalTrue != 0) { puVar1 = (undefined8 *)func_0x00400af0(100); *puVar1 = 0x676e697274532041; *(undefined *)(puVar1 + 1) = 0; printLine(puVar1); puVar1 = (undefined8 *)func_0x00400b20(puVar1,130000); if (puVar1 != (undefined8 *)0x0) { *puVar1 = 0x697274532077654e; *(undefined2 *)(puVar1 + 1) = 0x676e; *(undefined *)((long)puVar1 + 10) = 0; printLine(puVar1); func_0x00400a60(puVar1); } } return; }
['gcc']
55,825
void CWE401_Memory_Leak__malloc_realloc_char_10_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99643/CWE401_Memory_Leak__malloc_realloc_char_10.c
CWE401_Memory_Leak__malloc_realloc_char_10_good
void CWE401_Memory_Leak__malloc_realloc_char_10_good(void) { good1(); good2(); return; }
['gcc']
55,826
void CWE401_Memory_Leak__malloc_realloc_char_11_bad() { if(globalReturnsTrue()) { { char * data = (char *)malloc(100*sizeof(char)); /* Initialize and make use of data */ strcpy(data, "A String"); printLine(data); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (char *)realloc(data, (130000)*sizeof(char)); if (data != NULL) { /* Reinitialize and make use of data */ strcpy(data, "New String"); printLine(data); free(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/99644/CWE401_Memory_Leak__malloc_realloc_char_11.c
CWE401_Memory_Leak__malloc_realloc_char_11_bad
void CWE401_Memory_Leak__malloc_realloc_char_11_bad(void) { int iVar1; undefined8 *puVar2; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { puVar2 = (undefined8 *)func_0x00400af0(100); *puVar2 = 0x676e697274532041; *(undefined *)(puVar2 + 1) = 0; printLine(puVar2); puVar2 = (undefined8 *)func_0x00400b20(puVar2,130000); if (puVar2 != (undefined8 *)0x0) { *puVar2 = 0x697274532077654e; *(undefined2 *)(puVar2 + 1) = 0x676e; *(undefined *)((long)puVar2 + 10) = 0; printLine(puVar2); func_0x00400a60(puVar2); } } return; }
['gcc']
55,827
void CWE401_Memory_Leak__malloc_realloc_char_11_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99644/CWE401_Memory_Leak__malloc_realloc_char_11.c
CWE401_Memory_Leak__malloc_realloc_char_11_good
void CWE401_Memory_Leak__malloc_realloc_char_11_good(void) { good1(); good2(); return; }
['gcc']
55,828
void CWE401_Memory_Leak__malloc_realloc_char_12_bad() { if(globalReturnsTrueOrFalse()) { { char * data = (char *)malloc(100*sizeof(char)); /* Initialize and make use of data */ strcpy(data, "A String"); printLine(data); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (char *)realloc(data, (130000)*sizeof(char)); if (data != NULL) { /* Reinitialize and make use of data */ strcpy(data, "New String"); printLine(data); free(data); } } } else { { char * data = (char *)malloc(100*sizeof(char)); char * tmpData; /* Initialize and make use of data */ strcpy(data, "A String"); printLine(data); tmpData = (char *)realloc(data, (130000)*sizeof(char)); /* FIX: Ensure realloc() was successful before assigning data to the memory block * allocated with realloc() */ if (tmpData != NULL) { data = tmpData; /* Reinitialize and make use of data */ strcpy(data, "New String"); printLine(data); } free(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 */', '/* Initialize and make use of data */', '/* FIX: Ensure realloc() was successful before assigning data to the memory block\r\n * allocated with realloc() */', '/* Reinitialize and make use of data */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99645/CWE401_Memory_Leak__malloc_realloc_char_12.c
CWE401_Memory_Leak__malloc_realloc_char_12_bad
void CWE401_Memory_Leak__malloc_realloc_char_12_bad(void) { int iVar1; undefined8 *puVar2; undefined8 *puStack_10; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { puStack_10 = (undefined8 *)func_0x00400af0(100); *puStack_10 = 0x676e697274532041; *(undefined *)(puStack_10 + 1) = 0; printLine(puStack_10); puVar2 = (undefined8 *)func_0x00400b20(puStack_10,130000); if (puVar2 != (undefined8 *)0x0) { *puVar2 = 0x697274532077654e; *(undefined2 *)(puVar2 + 1) = 0x676e; *(undefined *)((long)puVar2 + 10) = 0; printLine(puVar2); puStack_10 = puVar2; } func_0x00400a60(puStack_10); } else { puVar2 = (undefined8 *)func_0x00400af0(100); *puVar2 = 0x676e697274532041; *(undefined *)(puVar2 + 1) = 0; printLine(puVar2); puVar2 = (undefined8 *)func_0x00400b20(puVar2,130000); if (puVar2 != (undefined8 *)0x0) { *puVar2 = 0x697274532077654e; *(undefined2 *)(puVar2 + 1) = 0x676e; *(undefined *)((long)puVar2 + 10) = 0; printLine(puVar2); func_0x00400a60(puVar2); } } return; }
['gcc']
55,829
void CWE401_Memory_Leak__malloc_realloc_char_12_good() { good1(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99645/CWE401_Memory_Leak__malloc_realloc_char_12.c
CWE401_Memory_Leak__malloc_realloc_char_12_good
void CWE401_Memory_Leak__malloc_realloc_char_12_good(void) { good1(); return; }
['gcc']
55,830
void CWE401_Memory_Leak__malloc_realloc_char_13_bad() { if(GLOBAL_CONST_FIVE==5) { { char * data = (char *)malloc(100*sizeof(char)); /* Initialize and make use of data */ strcpy(data, "A String"); printLine(data); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (char *)realloc(data, (130000)*sizeof(char)); if (data != NULL) { /* Reinitialize and make use of data */ strcpy(data, "New String"); printLine(data); free(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/99646/CWE401_Memory_Leak__malloc_realloc_char_13.c
CWE401_Memory_Leak__malloc_realloc_char_13_bad
void CWE401_Memory_Leak__malloc_realloc_char_13_bad(void) { undefined8 *puVar1; if (GLOBAL_CONST_FIVE == 5) { puVar1 = (undefined8 *)func_0x00400af0(100); *puVar1 = 0x676e697274532041; *(undefined *)(puVar1 + 1) = 0; printLine(puVar1); puVar1 = (undefined8 *)func_0x00400b20(puVar1,130000); if (puVar1 != (undefined8 *)0x0) { *puVar1 = 0x697274532077654e; *(undefined2 *)(puVar1 + 1) = 0x676e; *(undefined *)((long)puVar1 + 10) = 0; printLine(puVar1); func_0x00400a60(puVar1); } } return; }
['gcc']
55,831
void CWE401_Memory_Leak__malloc_realloc_char_13_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99646/CWE401_Memory_Leak__malloc_realloc_char_13.c
CWE401_Memory_Leak__malloc_realloc_char_13_good
void CWE401_Memory_Leak__malloc_realloc_char_13_good(void) { good1(); good2(); return; }
['gcc']
55,832
void CWE401_Memory_Leak__malloc_realloc_char_14_bad() { if(globalFive==5) { { char * data = (char *)malloc(100*sizeof(char)); /* Initialize and make use of data */ strcpy(data, "A String"); printLine(data); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (char *)realloc(data, (130000)*sizeof(char)); if (data != NULL) { /* Reinitialize and make use of data */ strcpy(data, "New String"); printLine(data); free(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/99647/CWE401_Memory_Leak__malloc_realloc_char_14.c
CWE401_Memory_Leak__malloc_realloc_char_14_bad
void CWE401_Memory_Leak__malloc_realloc_char_14_bad(void) { undefined8 *puVar1; if (globalFive == 5) { puVar1 = (undefined8 *)func_0x00400af0(100); *puVar1 = 0x676e697274532041; *(undefined *)(puVar1 + 1) = 0; printLine(puVar1); puVar1 = (undefined8 *)func_0x00400b20(puVar1,130000); if (puVar1 != (undefined8 *)0x0) { *puVar1 = 0x697274532077654e; *(undefined2 *)(puVar1 + 1) = 0x676e; *(undefined *)((long)puVar1 + 10) = 0; printLine(puVar1); func_0x00400a60(puVar1); } } return; }
['gcc']
55,833
void CWE401_Memory_Leak__malloc_realloc_char_14_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99647/CWE401_Memory_Leak__malloc_realloc_char_14.c
CWE401_Memory_Leak__malloc_realloc_char_14_good
void CWE401_Memory_Leak__malloc_realloc_char_14_good(void) { good1(); good2(); return; }
['gcc']
55,834
void CWE401_Memory_Leak__malloc_realloc_char_15_bad() { switch(6) { case 6: { char * data = (char *)malloc(100*sizeof(char)); /* Initialize and make use of data */ strcpy(data, "A String"); printLine(data); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (char *)realloc(data, (130000)*sizeof(char)); if (data != NULL) { /* Reinitialize and make use of data */ strcpy(data, "New String"); printLine(data); free(data); } } break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } }
['/* Initialize and make use of data */', '/* FLAW: If realloc() fails, the initial memory block will not be freed() */', '/* Reinitialize and make use of data */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99648/CWE401_Memory_Leak__malloc_realloc_char_15.c
CWE401_Memory_Leak__malloc_realloc_char_15_bad
void CWE401_Memory_Leak__malloc_realloc_char_15_bad(void) { undefined8 *puVar1; puVar1 = (undefined8 *)func_0x00400af0(100); *puVar1 = 0x676e697274532041; *(undefined *)(puVar1 + 1) = 0; printLine(puVar1); puVar1 = (undefined8 *)func_0x00400b20(puVar1,130000); if (puVar1 != (undefined8 *)0x0) { *puVar1 = 0x697274532077654e; *(undefined2 *)(puVar1 + 1) = 0x676e; *(undefined *)((long)puVar1 + 10) = 0; printLine(puVar1); func_0x00400a60(puVar1); } return; }
['gcc']
55,835
void CWE401_Memory_Leak__malloc_realloc_char_15_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99648/CWE401_Memory_Leak__malloc_realloc_char_15.c
CWE401_Memory_Leak__malloc_realloc_char_15_good
void CWE401_Memory_Leak__malloc_realloc_char_15_good(void) { good1(); good2(); return; }
['gcc']
55,836
void CWE401_Memory_Leak__malloc_realloc_char_16_bad() { while(1) { { char * data = (char *)malloc(100*sizeof(char)); /* Initialize and make use of data */ strcpy(data, "A String"); printLine(data); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (char *)realloc(data, (130000)*sizeof(char)); if (data != NULL) { /* Reinitialize and make use of data */ strcpy(data, "New String"); printLine(data); free(data); } } break; } }
['/* 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/99649/CWE401_Memory_Leak__malloc_realloc_char_16.c
CWE401_Memory_Leak__malloc_realloc_char_16_bad
void CWE401_Memory_Leak__malloc_realloc_char_16_bad(void) { undefined8 *puVar1; puVar1 = (undefined8 *)func_0x00400af0(100); *puVar1 = 0x676e697274532041; *(undefined *)(puVar1 + 1) = 0; printLine(puVar1); puVar1 = (undefined8 *)func_0x00400b20(puVar1,130000); if (puVar1 != (undefined8 *)0x0) { *puVar1 = 0x697274532077654e; *(undefined2 *)(puVar1 + 1) = 0x676e; *(undefined *)((long)puVar1 + 10) = 0; printLine(puVar1); func_0x00400a60(puVar1); } return; }
['gcc']
55,837
void CWE401_Memory_Leak__malloc_realloc_char_16_good() { good1(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99649/CWE401_Memory_Leak__malloc_realloc_char_16.c
CWE401_Memory_Leak__malloc_realloc_char_16_good
void CWE401_Memory_Leak__malloc_realloc_char_16_good(void) { good1(); return; }
['gcc']
55,838
void CWE401_Memory_Leak__malloc_realloc_char_17_bad() { int j; for(j = 0; j < 1; j++) { { char * data = (char *)malloc(100*sizeof(char)); /* Initialize and make use of data */ strcpy(data, "A String"); printLine(data); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (char *)realloc(data, (130000)*sizeof(char)); if (data != NULL) { /* Reinitialize and make use of data */ strcpy(data, "New String"); printLine(data); free(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/99650/CWE401_Memory_Leak__malloc_realloc_char_17.c
CWE401_Memory_Leak__malloc_realloc_char_17_bad
void CWE401_Memory_Leak__malloc_realloc_char_17_bad(void) { undefined8 *puVar1; int iStack_c; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { puVar1 = (undefined8 *)func_0x00400af0(100); *puVar1 = 0x676e697274532041; *(undefined *)(puVar1 + 1) = 0; printLine(puVar1); puVar1 = (undefined8 *)func_0x00400b20(puVar1,130000); if (puVar1 != (undefined8 *)0x0) { *puVar1 = 0x697274532077654e; *(undefined2 *)(puVar1 + 1) = 0x676e; *(undefined *)((long)puVar1 + 10) = 0; printLine(puVar1); func_0x00400a60(puVar1); } } return; }
['gcc']
55,839
void CWE401_Memory_Leak__malloc_realloc_char_17_good() { good1(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99650/CWE401_Memory_Leak__malloc_realloc_char_17.c
CWE401_Memory_Leak__malloc_realloc_char_17_good
void CWE401_Memory_Leak__malloc_realloc_char_17_good(void) { good1(); return; }
['gcc']
55,840
void CWE401_Memory_Leak__malloc_realloc_char_18_bad() { goto sink; sink: { char * data = (char *)malloc(100*sizeof(char)); /* Initialize and make use of data */ strcpy(data, "A String"); printLine(data); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (char *)realloc(data, (130000)*sizeof(char)); if (data != NULL) { /* Reinitialize and make use of data */ strcpy(data, "New String"); printLine(data); free(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/99651/CWE401_Memory_Leak__malloc_realloc_char_18.c
CWE401_Memory_Leak__malloc_realloc_char_18_bad
void CWE401_Memory_Leak__malloc_realloc_char_18_bad(void) { undefined8 *puVar1; puVar1 = (undefined8 *)func_0x00400af0(100); *puVar1 = 0x676e697274532041; *(undefined *)(puVar1 + 1) = 0; printLine(puVar1); puVar1 = (undefined8 *)func_0x00400b20(puVar1,130000); if (puVar1 != (undefined8 *)0x0) { *puVar1 = 0x697274532077654e; *(undefined2 *)(puVar1 + 1) = 0x676e; *(undefined *)((long)puVar1 + 10) = 0; printLine(puVar1); func_0x00400a60(puVar1); } return; }
['gcc']
55,841
void CWE401_Memory_Leak__malloc_realloc_char_18_good() { good1(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99651/CWE401_Memory_Leak__malloc_realloc_char_18.c
CWE401_Memory_Leak__malloc_realloc_char_18_good
void CWE401_Memory_Leak__malloc_realloc_char_18_good(void) { good1(); return; }
['gcc']
55,842
void CWE401_Memory_Leak__malloc_realloc_int64_t_01_bad() { { int64_t * data = (int64_t *)malloc(100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (int64_t *)realloc(data, (130000)*sizeof(int64_t)); if (data != NULL) { /* Reinitialize and make use of data */ data[0] = 10LL; printLongLongLine(data[0]); free(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/99652/CWE401_Memory_Leak__malloc_realloc_int64_t_01.c
CWE401_Memory_Leak__malloc_realloc_int64_t_01_bad
void CWE401_Memory_Leak__malloc_realloc_int64_t_01_bad(void) { undefined8 *puVar1; puVar1 = (undefined8 *)func_0x00400af0(800); *puVar1 = 5; printLongLongLine(*puVar1); puVar1 = (undefined8 *)func_0x00400b20(puVar1,0xfde80); if (puVar1 != (undefined8 *)0x0) { *puVar1 = 10; printLongLongLine(*puVar1); func_0x00400a60(puVar1); } return; }
['gcc']
55,843
void CWE401_Memory_Leak__malloc_realloc_int64_t_01_good() { good1(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99652/CWE401_Memory_Leak__malloc_realloc_int64_t_01.c
CWE401_Memory_Leak__malloc_realloc_int64_t_01_good
void CWE401_Memory_Leak__malloc_realloc_int64_t_01_good(void) { good1(); return; }
['gcc']
55,844
void CWE401_Memory_Leak__malloc_realloc_int64_t_02_bad() { if(1) { { int64_t * data = (int64_t *)malloc(100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (int64_t *)realloc(data, (130000)*sizeof(int64_t)); if (data != NULL) { /* Reinitialize and make use of data */ data[0] = 10LL; printLongLongLine(data[0]); free(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/99653/CWE401_Memory_Leak__malloc_realloc_int64_t_02.c
CWE401_Memory_Leak__malloc_realloc_int64_t_02_bad
void CWE401_Memory_Leak__malloc_realloc_int64_t_02_bad(void) { undefined8 *puVar1; puVar1 = (undefined8 *)func_0x00400af0(800); *puVar1 = 5; printLongLongLine(*puVar1); puVar1 = (undefined8 *)func_0x00400b20(puVar1,0xfde80); if (puVar1 != (undefined8 *)0x0) { *puVar1 = 10; printLongLongLine(*puVar1); func_0x00400a60(puVar1); } return; }
['gcc']
55,845
void CWE401_Memory_Leak__malloc_realloc_int64_t_02_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99653/CWE401_Memory_Leak__malloc_realloc_int64_t_02.c
CWE401_Memory_Leak__malloc_realloc_int64_t_02_good
void CWE401_Memory_Leak__malloc_realloc_int64_t_02_good(void) { good1(); good2(); return; }
['gcc']
55,846
void CWE401_Memory_Leak__malloc_realloc_int64_t_05_bad() { if(staticTrue) { { int64_t * data = (int64_t *)malloc(100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (int64_t *)realloc(data, (130000)*sizeof(int64_t)); if (data != NULL) { /* Reinitialize and make use of data */ data[0] = 10LL; printLongLongLine(data[0]); free(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/99656/CWE401_Memory_Leak__malloc_realloc_int64_t_05.c
CWE401_Memory_Leak__malloc_realloc_int64_t_05_bad
void CWE401_Memory_Leak__malloc_realloc_int64_t_05_bad(void) { undefined8 *puVar1; if (staticTrue != 0) { puVar1 = (undefined8 *)func_0x00400af0(800); *puVar1 = 5; printLongLongLine(*puVar1); puVar1 = (undefined8 *)func_0x00400b20(puVar1,0xfde80); if (puVar1 != (undefined8 *)0x0) { *puVar1 = 10; printLongLongLine(*puVar1); func_0x00400a60(puVar1); } } return; }
['gcc']
55,847
void CWE401_Memory_Leak__malloc_realloc_int64_t_05_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99656/CWE401_Memory_Leak__malloc_realloc_int64_t_05.c
CWE401_Memory_Leak__malloc_realloc_int64_t_05_good
void CWE401_Memory_Leak__malloc_realloc_int64_t_05_good(void) { good1(); good2(); return; }
['gcc']
55,848
void CWE401_Memory_Leak__malloc_realloc_int64_t_06_bad() { if(STATIC_CONST_FIVE==5) { { int64_t * data = (int64_t *)malloc(100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (int64_t *)realloc(data, (130000)*sizeof(int64_t)); if (data != NULL) { /* Reinitialize and make use of data */ data[0] = 10LL; printLongLongLine(data[0]); free(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/99657/CWE401_Memory_Leak__malloc_realloc_int64_t_06.c
CWE401_Memory_Leak__malloc_realloc_int64_t_06_bad
void CWE401_Memory_Leak__malloc_realloc_int64_t_06_bad(void) { undefined8 *puVar1; puVar1 = (undefined8 *)func_0x00400af0(800); *puVar1 = 5; printLongLongLine(*puVar1); puVar1 = (undefined8 *)func_0x00400b20(puVar1,0xfde80); if (puVar1 != (undefined8 *)0x0) { *puVar1 = 10; printLongLongLine(*puVar1); func_0x00400a60(puVar1); } return; }
['gcc']
55,849
void CWE401_Memory_Leak__malloc_realloc_int64_t_06_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99657/CWE401_Memory_Leak__malloc_realloc_int64_t_06.c
CWE401_Memory_Leak__malloc_realloc_int64_t_06_good
void CWE401_Memory_Leak__malloc_realloc_int64_t_06_good(void) { good1(); good2(); return; }
['gcc']
55,850
void CWE401_Memory_Leak__malloc_realloc_int64_t_09_bad() { if(GLOBAL_CONST_TRUE) { { int64_t * data = (int64_t *)malloc(100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (int64_t *)realloc(data, (130000)*sizeof(int64_t)); if (data != NULL) { /* Reinitialize and make use of data */ data[0] = 10LL; printLongLongLine(data[0]); free(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/99660/CWE401_Memory_Leak__malloc_realloc_int64_t_09.c
CWE401_Memory_Leak__malloc_realloc_int64_t_09_bad
void CWE401_Memory_Leak__malloc_realloc_int64_t_09_bad(void) { undefined8 *puVar1; if (GLOBAL_CONST_TRUE != 0) { puVar1 = (undefined8 *)func_0x00400af0(800); *puVar1 = 5; printLongLongLine(*puVar1); puVar1 = (undefined8 *)func_0x00400b20(puVar1,0xfde80); if (puVar1 != (undefined8 *)0x0) { *puVar1 = 10; printLongLongLine(*puVar1); func_0x00400a60(puVar1); } } return; }
['gcc']
55,851
void CWE401_Memory_Leak__malloc_realloc_int64_t_09_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99660/CWE401_Memory_Leak__malloc_realloc_int64_t_09.c
CWE401_Memory_Leak__malloc_realloc_int64_t_09_good
void CWE401_Memory_Leak__malloc_realloc_int64_t_09_good(void) { good1(); good2(); return; }
['gcc']
55,852
void CWE401_Memory_Leak__malloc_realloc_int64_t_10_bad() { if(globalTrue) { { int64_t * data = (int64_t *)malloc(100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (int64_t *)realloc(data, (130000)*sizeof(int64_t)); if (data != NULL) { /* Reinitialize and make use of data */ data[0] = 10LL; printLongLongLine(data[0]); free(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/99661/CWE401_Memory_Leak__malloc_realloc_int64_t_10.c
CWE401_Memory_Leak__malloc_realloc_int64_t_10_bad
void CWE401_Memory_Leak__malloc_realloc_int64_t_10_bad(void) { undefined8 *puVar1; if (globalTrue != 0) { puVar1 = (undefined8 *)func_0x00400af0(800); *puVar1 = 5; printLongLongLine(*puVar1); puVar1 = (undefined8 *)func_0x00400b20(puVar1,0xfde80); if (puVar1 != (undefined8 *)0x0) { *puVar1 = 10; printLongLongLine(*puVar1); func_0x00400a60(puVar1); } } return; }
['gcc']
55,853
void CWE401_Memory_Leak__malloc_realloc_int64_t_10_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99661/CWE401_Memory_Leak__malloc_realloc_int64_t_10.c
CWE401_Memory_Leak__malloc_realloc_int64_t_10_good
void CWE401_Memory_Leak__malloc_realloc_int64_t_10_good(void) { good1(); good2(); return; }
['gcc']
55,854
void CWE401_Memory_Leak__malloc_realloc_int64_t_11_bad() { if(globalReturnsTrue()) { { int64_t * data = (int64_t *)malloc(100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (int64_t *)realloc(data, (130000)*sizeof(int64_t)); if (data != NULL) { /* Reinitialize and make use of data */ data[0] = 10LL; printLongLongLine(data[0]); free(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/99662/CWE401_Memory_Leak__malloc_realloc_int64_t_11.c
CWE401_Memory_Leak__malloc_realloc_int64_t_11_bad
void CWE401_Memory_Leak__malloc_realloc_int64_t_11_bad(void) { int iVar1; undefined8 *puVar2; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { puVar2 = (undefined8 *)func_0x00400af0(800); *puVar2 = 5; printLongLongLine(*puVar2); puVar2 = (undefined8 *)func_0x00400b20(puVar2,0xfde80); if (puVar2 != (undefined8 *)0x0) { *puVar2 = 10; printLongLongLine(*puVar2); func_0x00400a60(puVar2); } } return; }
['gcc']
55,855
void CWE401_Memory_Leak__malloc_realloc_int64_t_11_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99662/CWE401_Memory_Leak__malloc_realloc_int64_t_11.c
CWE401_Memory_Leak__malloc_realloc_int64_t_11_good
void CWE401_Memory_Leak__malloc_realloc_int64_t_11_good(void) { good1(); good2(); return; }
['gcc']
55,856
void CWE401_Memory_Leak__malloc_realloc_int64_t_12_bad() { if(globalReturnsTrueOrFalse()) { { int64_t * data = (int64_t *)malloc(100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (int64_t *)realloc(data, (130000)*sizeof(int64_t)); if (data != NULL) { /* Reinitialize and make use of data */ data[0] = 10LL; printLongLongLine(data[0]); free(data); } } } else { { int64_t * data = (int64_t *)malloc(100*sizeof(int64_t)); int64_t * tmpData; /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); tmpData = (int64_t *)realloc(data, (130000)*sizeof(int64_t)); /* FIX: Ensure realloc() was successful before assigning data to the memory block * allocated with realloc() */ if (tmpData != NULL) { data = tmpData; /* Reinitialize and make use of data */ data[0] = 10LL; printLongLongLine(data[0]); } free(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 */', '/* Initialize and make use of data */', '/* FIX: Ensure realloc() was successful before assigning data to the memory block\r\n * allocated with realloc() */', '/* Reinitialize and make use of data */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99663/CWE401_Memory_Leak__malloc_realloc_int64_t_12.c
CWE401_Memory_Leak__malloc_realloc_int64_t_12_bad
void CWE401_Memory_Leak__malloc_realloc_int64_t_12_bad(void) { int iVar1; undefined8 *puVar2; undefined8 *puStack_10; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { puStack_10 = (undefined8 *)func_0x00400af0(800); *puStack_10 = 5; printLongLongLine(*puStack_10); puVar2 = (undefined8 *)func_0x00400b20(puStack_10,0xfde80); if (puVar2 != (undefined8 *)0x0) { *puVar2 = 10; printLongLongLine(*puVar2); puStack_10 = puVar2; } func_0x00400a60(puStack_10); } else { puVar2 = (undefined8 *)func_0x00400af0(800); *puVar2 = 5; printLongLongLine(*puVar2); puVar2 = (undefined8 *)func_0x00400b20(puVar2,0xfde80); if (puVar2 != (undefined8 *)0x0) { *puVar2 = 10; printLongLongLine(*puVar2); func_0x00400a60(puVar2); } } return; }
['gcc']
55,857
void CWE401_Memory_Leak__malloc_realloc_int64_t_12_good() { good1(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99663/CWE401_Memory_Leak__malloc_realloc_int64_t_12.c
CWE401_Memory_Leak__malloc_realloc_int64_t_12_good
void CWE401_Memory_Leak__malloc_realloc_int64_t_12_good(void) { good1(); return; }
['gcc']
55,858
void CWE401_Memory_Leak__malloc_realloc_int64_t_13_bad() { if(GLOBAL_CONST_FIVE==5) { { int64_t * data = (int64_t *)malloc(100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (int64_t *)realloc(data, (130000)*sizeof(int64_t)); if (data != NULL) { /* Reinitialize and make use of data */ data[0] = 10LL; printLongLongLine(data[0]); free(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/99664/CWE401_Memory_Leak__malloc_realloc_int64_t_13.c
CWE401_Memory_Leak__malloc_realloc_int64_t_13_bad
void CWE401_Memory_Leak__malloc_realloc_int64_t_13_bad(void) { undefined8 *puVar1; if (GLOBAL_CONST_FIVE == 5) { puVar1 = (undefined8 *)func_0x00400af0(800); *puVar1 = 5; printLongLongLine(*puVar1); puVar1 = (undefined8 *)func_0x00400b20(puVar1,0xfde80); if (puVar1 != (undefined8 *)0x0) { *puVar1 = 10; printLongLongLine(*puVar1); func_0x00400a60(puVar1); } } return; }
['gcc']
55,859
void CWE401_Memory_Leak__malloc_realloc_int64_t_13_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99664/CWE401_Memory_Leak__malloc_realloc_int64_t_13.c
CWE401_Memory_Leak__malloc_realloc_int64_t_13_good
void CWE401_Memory_Leak__malloc_realloc_int64_t_13_good(void) { good1(); good2(); return; }
['gcc']
55,860
void CWE401_Memory_Leak__malloc_realloc_int64_t_14_bad() { if(globalFive==5) { { int64_t * data = (int64_t *)malloc(100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (int64_t *)realloc(data, (130000)*sizeof(int64_t)); if (data != NULL) { /* Reinitialize and make use of data */ data[0] = 10LL; printLongLongLine(data[0]); free(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/99665/CWE401_Memory_Leak__malloc_realloc_int64_t_14.c
CWE401_Memory_Leak__malloc_realloc_int64_t_14_bad
void CWE401_Memory_Leak__malloc_realloc_int64_t_14_bad(void) { undefined8 *puVar1; if (globalFive == 5) { puVar1 = (undefined8 *)func_0x00400af0(800); *puVar1 = 5; printLongLongLine(*puVar1); puVar1 = (undefined8 *)func_0x00400b20(puVar1,0xfde80); if (puVar1 != (undefined8 *)0x0) { *puVar1 = 10; printLongLongLine(*puVar1); func_0x00400a60(puVar1); } } return; }
['gcc']
55,861
void CWE401_Memory_Leak__malloc_realloc_int64_t_14_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99665/CWE401_Memory_Leak__malloc_realloc_int64_t_14.c
CWE401_Memory_Leak__malloc_realloc_int64_t_14_good
void CWE401_Memory_Leak__malloc_realloc_int64_t_14_good(void) { good1(); good2(); return; }
['gcc']
55,862
void CWE401_Memory_Leak__malloc_realloc_int64_t_15_bad() { switch(6) { case 6: { int64_t * data = (int64_t *)malloc(100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (int64_t *)realloc(data, (130000)*sizeof(int64_t)); if (data != NULL) { /* Reinitialize and make use of data */ data[0] = 10LL; printLongLongLine(data[0]); free(data); } } break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } }
['/* Initialize and make use of data */', '/* FLAW: If realloc() fails, the initial memory block will not be freed() */', '/* Reinitialize and make use of data */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99666/CWE401_Memory_Leak__malloc_realloc_int64_t_15.c
CWE401_Memory_Leak__malloc_realloc_int64_t_15_bad
void CWE401_Memory_Leak__malloc_realloc_int64_t_15_bad(void) { undefined8 *puVar1; puVar1 = (undefined8 *)func_0x00400af0(800); *puVar1 = 5; printLongLongLine(*puVar1); puVar1 = (undefined8 *)func_0x00400b20(puVar1,0xfde80); if (puVar1 != (undefined8 *)0x0) { *puVar1 = 10; printLongLongLine(*puVar1); func_0x00400a60(puVar1); } return; }
['gcc']
55,863
void CWE401_Memory_Leak__malloc_realloc_int64_t_15_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99666/CWE401_Memory_Leak__malloc_realloc_int64_t_15.c
CWE401_Memory_Leak__malloc_realloc_int64_t_15_good
void CWE401_Memory_Leak__malloc_realloc_int64_t_15_good(void) { good1(); good2(); return; }
['gcc']
55,864
void CWE401_Memory_Leak__malloc_realloc_int64_t_16_bad() { while(1) { { int64_t * data = (int64_t *)malloc(100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (int64_t *)realloc(data, (130000)*sizeof(int64_t)); if (data != NULL) { /* Reinitialize and make use of data */ data[0] = 10LL; printLongLongLine(data[0]); free(data); } } break; } }
['/* 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/99667/CWE401_Memory_Leak__malloc_realloc_int64_t_16.c
CWE401_Memory_Leak__malloc_realloc_int64_t_16_bad
void CWE401_Memory_Leak__malloc_realloc_int64_t_16_bad(void) { undefined8 *puVar1; puVar1 = (undefined8 *)func_0x00400af0(800); *puVar1 = 5; printLongLongLine(*puVar1); puVar1 = (undefined8 *)func_0x00400b20(puVar1,0xfde80); if (puVar1 != (undefined8 *)0x0) { *puVar1 = 10; printLongLongLine(*puVar1); func_0x00400a60(puVar1); } return; }
['gcc']
55,865
void CWE401_Memory_Leak__malloc_realloc_int64_t_16_good() { good1(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99667/CWE401_Memory_Leak__malloc_realloc_int64_t_16.c
CWE401_Memory_Leak__malloc_realloc_int64_t_16_good
void CWE401_Memory_Leak__malloc_realloc_int64_t_16_good(void) { good1(); return; }
['gcc']
55,866
void CWE401_Memory_Leak__malloc_realloc_int64_t_17_bad() { int j; for(j = 0; j < 1; j++) { { int64_t * data = (int64_t *)malloc(100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (int64_t *)realloc(data, (130000)*sizeof(int64_t)); if (data != NULL) { /* Reinitialize and make use of data */ data[0] = 10LL; printLongLongLine(data[0]); free(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/99668/CWE401_Memory_Leak__malloc_realloc_int64_t_17.c
CWE401_Memory_Leak__malloc_realloc_int64_t_17_bad
void CWE401_Memory_Leak__malloc_realloc_int64_t_17_bad(void) { undefined8 *puVar1; int iStack_c; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { puVar1 = (undefined8 *)func_0x00400af0(800); *puVar1 = 5; printLongLongLine(*puVar1); puVar1 = (undefined8 *)func_0x00400b20(puVar1,0xfde80); if (puVar1 != (undefined8 *)0x0) { *puVar1 = 10; printLongLongLine(*puVar1); func_0x00400a60(puVar1); } } return; }
['gcc']
55,867
void CWE401_Memory_Leak__malloc_realloc_int64_t_17_good() { good1(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99668/CWE401_Memory_Leak__malloc_realloc_int64_t_17.c
CWE401_Memory_Leak__malloc_realloc_int64_t_17_good
void CWE401_Memory_Leak__malloc_realloc_int64_t_17_good(void) { good1(); return; }
['gcc']
55,868
void CWE401_Memory_Leak__malloc_realloc_int64_t_18_bad() { goto sink; sink: { int64_t * data = (int64_t *)malloc(100*sizeof(int64_t)); /* Initialize and make use of data */ data[0] = 5LL; printLongLongLine(data[0]); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (int64_t *)realloc(data, (130000)*sizeof(int64_t)); if (data != NULL) { /* Reinitialize and make use of data */ data[0] = 10LL; printLongLongLine(data[0]); free(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/99669/CWE401_Memory_Leak__malloc_realloc_int64_t_18.c
CWE401_Memory_Leak__malloc_realloc_int64_t_18_bad
void CWE401_Memory_Leak__malloc_realloc_int64_t_18_bad(void) { undefined8 *puVar1; puVar1 = (undefined8 *)func_0x00400af0(800); *puVar1 = 5; printLongLongLine(*puVar1); puVar1 = (undefined8 *)func_0x00400b20(puVar1,0xfde80); if (puVar1 != (undefined8 *)0x0) { *puVar1 = 10; printLongLongLine(*puVar1); func_0x00400a60(puVar1); } return; }
['gcc']
55,869
void CWE401_Memory_Leak__malloc_realloc_int64_t_18_good() { good1(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99669/CWE401_Memory_Leak__malloc_realloc_int64_t_18.c
CWE401_Memory_Leak__malloc_realloc_int64_t_18_good
void CWE401_Memory_Leak__malloc_realloc_int64_t_18_good(void) { good1(); return; }
['gcc']
55,870
void CWE401_Memory_Leak__malloc_realloc_int_01_bad() { { int * data = (int *)malloc(100*sizeof(int)); /* Initialize and make use of data */ data[0] = 5; printIntLine(data[0]); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (int *)realloc(data, (130000)*sizeof(int)); if (data != NULL) { /* Reinitialize and make use of data */ data[0] = 10; printIntLine(data[0]); free(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/99670/CWE401_Memory_Leak__malloc_realloc_int_01.c
CWE401_Memory_Leak__malloc_realloc_int_01_bad
void CWE401_Memory_Leak__malloc_realloc_int_01_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400af0(400); *puVar1 = 5; printIntLine(*puVar1); puVar1 = (undefined4 *)func_0x00400b20(puVar1,520000); if (puVar1 != (undefined4 *)0x0) { *puVar1 = 10; printIntLine(*puVar1); func_0x00400a60(puVar1); } return; }
['gcc']
55,871
void CWE401_Memory_Leak__malloc_realloc_int_01_good() { good1(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99670/CWE401_Memory_Leak__malloc_realloc_int_01.c
CWE401_Memory_Leak__malloc_realloc_int_01_good
void CWE401_Memory_Leak__malloc_realloc_int_01_good(void) { good1(); return; }
['gcc']
55,872
void CWE401_Memory_Leak__malloc_realloc_int_02_bad() { if(1) { { int * data = (int *)malloc(100*sizeof(int)); /* Initialize and make use of data */ data[0] = 5; printIntLine(data[0]); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (int *)realloc(data, (130000)*sizeof(int)); if (data != NULL) { /* Reinitialize and make use of data */ data[0] = 10; printIntLine(data[0]); free(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/99671/CWE401_Memory_Leak__malloc_realloc_int_02.c
CWE401_Memory_Leak__malloc_realloc_int_02_bad
void CWE401_Memory_Leak__malloc_realloc_int_02_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400af0(400); *puVar1 = 5; printIntLine(*puVar1); puVar1 = (undefined4 *)func_0x00400b20(puVar1,520000); if (puVar1 != (undefined4 *)0x0) { *puVar1 = 10; printIntLine(*puVar1); func_0x00400a60(puVar1); } return; }
['gcc']
55,873
void CWE401_Memory_Leak__malloc_realloc_int_02_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99671/CWE401_Memory_Leak__malloc_realloc_int_02.c
CWE401_Memory_Leak__malloc_realloc_int_02_good
void CWE401_Memory_Leak__malloc_realloc_int_02_good(void) { good1(); good2(); return; }
['gcc']
55,874
void CWE401_Memory_Leak__malloc_realloc_int_03_bad() { if(5==5) { { int * data = (int *)malloc(100*sizeof(int)); /* Initialize and make use of data */ data[0] = 5; printIntLine(data[0]); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (int *)realloc(data, (130000)*sizeof(int)); if (data != NULL) { /* Reinitialize and make use of data */ data[0] = 10; printIntLine(data[0]); free(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/99672/CWE401_Memory_Leak__malloc_realloc_int_03.c
CWE401_Memory_Leak__malloc_realloc_int_03_bad
void CWE401_Memory_Leak__malloc_realloc_int_03_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400af0(400); *puVar1 = 5; printIntLine(*puVar1); puVar1 = (undefined4 *)func_0x00400b20(puVar1,520000); if (puVar1 != (undefined4 *)0x0) { *puVar1 = 10; printIntLine(*puVar1); func_0x00400a60(puVar1); } return; }
['gcc']
55,875
void CWE401_Memory_Leak__malloc_realloc_int_03_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99672/CWE401_Memory_Leak__malloc_realloc_int_03.c
CWE401_Memory_Leak__malloc_realloc_int_03_good
void CWE401_Memory_Leak__malloc_realloc_int_03_good(void) { good1(); good2(); return; }
['gcc']
55,876
void CWE401_Memory_Leak__malloc_realloc_int_04_bad() { if(STATIC_CONST_TRUE) { { int * data = (int *)malloc(100*sizeof(int)); /* Initialize and make use of data */ data[0] = 5; printIntLine(data[0]); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (int *)realloc(data, (130000)*sizeof(int)); if (data != NULL) { /* Reinitialize and make use of data */ data[0] = 10; printIntLine(data[0]); free(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/99673/CWE401_Memory_Leak__malloc_realloc_int_04.c
CWE401_Memory_Leak__malloc_realloc_int_04_bad
void CWE401_Memory_Leak__malloc_realloc_int_04_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400af0(400); *puVar1 = 5; printIntLine(*puVar1); puVar1 = (undefined4 *)func_0x00400b20(puVar1,520000); if (puVar1 != (undefined4 *)0x0) { *puVar1 = 10; printIntLine(*puVar1); func_0x00400a60(puVar1); } return; }
['gcc']
55,877
void CWE401_Memory_Leak__malloc_realloc_int_04_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99673/CWE401_Memory_Leak__malloc_realloc_int_04.c
CWE401_Memory_Leak__malloc_realloc_int_04_good
void CWE401_Memory_Leak__malloc_realloc_int_04_good(void) { good1(); good2(); return; }
['gcc']
55,878
void CWE401_Memory_Leak__malloc_realloc_int_05_bad() { if(staticTrue) { { int * data = (int *)malloc(100*sizeof(int)); /* Initialize and make use of data */ data[0] = 5; printIntLine(data[0]); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (int *)realloc(data, (130000)*sizeof(int)); if (data != NULL) { /* Reinitialize and make use of data */ data[0] = 10; printIntLine(data[0]); free(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/99674/CWE401_Memory_Leak__malloc_realloc_int_05.c
CWE401_Memory_Leak__malloc_realloc_int_05_bad
void CWE401_Memory_Leak__malloc_realloc_int_05_bad(void) { undefined4 *puVar1; if (staticTrue != 0) { puVar1 = (undefined4 *)func_0x00400af0(400); *puVar1 = 5; printIntLine(*puVar1); puVar1 = (undefined4 *)func_0x00400b20(puVar1,520000); if (puVar1 != (undefined4 *)0x0) { *puVar1 = 10; printIntLine(*puVar1); func_0x00400a60(puVar1); } } return; }
['gcc']
55,879
void CWE401_Memory_Leak__malloc_realloc_int_05_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99674/CWE401_Memory_Leak__malloc_realloc_int_05.c
CWE401_Memory_Leak__malloc_realloc_int_05_good
void CWE401_Memory_Leak__malloc_realloc_int_05_good(void) { good1(); good2(); return; }
['gcc']
55,880
void CWE401_Memory_Leak__malloc_realloc_int_06_bad() { if(STATIC_CONST_FIVE==5) { { int * data = (int *)malloc(100*sizeof(int)); /* Initialize and make use of data */ data[0] = 5; printIntLine(data[0]); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (int *)realloc(data, (130000)*sizeof(int)); if (data != NULL) { /* Reinitialize and make use of data */ data[0] = 10; printIntLine(data[0]); free(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/99675/CWE401_Memory_Leak__malloc_realloc_int_06.c
CWE401_Memory_Leak__malloc_realloc_int_06_bad
void CWE401_Memory_Leak__malloc_realloc_int_06_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400af0(400); *puVar1 = 5; printIntLine(*puVar1); puVar1 = (undefined4 *)func_0x00400b20(puVar1,520000); if (puVar1 != (undefined4 *)0x0) { *puVar1 = 10; printIntLine(*puVar1); func_0x00400a60(puVar1); } return; }
['gcc']
55,881
void CWE401_Memory_Leak__malloc_realloc_int_06_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99675/CWE401_Memory_Leak__malloc_realloc_int_06.c
CWE401_Memory_Leak__malloc_realloc_int_06_good
void CWE401_Memory_Leak__malloc_realloc_int_06_good(void) { good1(); good2(); return; }
['gcc']
55,882
void CWE401_Memory_Leak__malloc_realloc_int_07_bad() { if(staticFive==5) { { int * data = (int *)malloc(100*sizeof(int)); /* Initialize and make use of data */ data[0] = 5; printIntLine(data[0]); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (int *)realloc(data, (130000)*sizeof(int)); if (data != NULL) { /* Reinitialize and make use of data */ data[0] = 10; printIntLine(data[0]); free(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/99676/CWE401_Memory_Leak__malloc_realloc_int_07.c
CWE401_Memory_Leak__malloc_realloc_int_07_bad
void CWE401_Memory_Leak__malloc_realloc_int_07_bad(void) { undefined4 *puVar1; if (staticFive == 5) { puVar1 = (undefined4 *)func_0x00400af0(400); *puVar1 = 5; printIntLine(*puVar1); puVar1 = (undefined4 *)func_0x00400b20(puVar1,520000); if (puVar1 != (undefined4 *)0x0) { *puVar1 = 10; printIntLine(*puVar1); func_0x00400a60(puVar1); } } return; }
['gcc']
55,883
void CWE401_Memory_Leak__malloc_realloc_int_07_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99676/CWE401_Memory_Leak__malloc_realloc_int_07.c
CWE401_Memory_Leak__malloc_realloc_int_07_good
void CWE401_Memory_Leak__malloc_realloc_int_07_good(void) { good1(); good2(); return; }
['gcc']
55,884
void CWE401_Memory_Leak__malloc_realloc_int_08_bad() { if(staticReturnsTrue()) { { int * data = (int *)malloc(100*sizeof(int)); /* Initialize and make use of data */ data[0] = 5; printIntLine(data[0]); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (int *)realloc(data, (130000)*sizeof(int)); if (data != NULL) { /* Reinitialize and make use of data */ data[0] = 10; printIntLine(data[0]); free(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/99677/CWE401_Memory_Leak__malloc_realloc_int_08.c
CWE401_Memory_Leak__malloc_realloc_int_08_bad
void CWE401_Memory_Leak__malloc_realloc_int_08_bad(void) { int iVar1; undefined4 *puVar2; iVar1 = staticReturnsTrue(); if (iVar1 != 0) { puVar2 = (undefined4 *)func_0x00400af0(400); *puVar2 = 5; printIntLine(*puVar2); puVar2 = (undefined4 *)func_0x00400b20(puVar2,520000); if (puVar2 != (undefined4 *)0x0) { *puVar2 = 10; printIntLine(*puVar2); func_0x00400a60(puVar2); } } return; }
['gcc']
55,885
void CWE401_Memory_Leak__malloc_realloc_int_08_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99677/CWE401_Memory_Leak__malloc_realloc_int_08.c
CWE401_Memory_Leak__malloc_realloc_int_08_good
void CWE401_Memory_Leak__malloc_realloc_int_08_good(void) { good1(); good2(); return; }
['gcc']
55,886
void CWE401_Memory_Leak__malloc_realloc_int_09_bad() { if(GLOBAL_CONST_TRUE) { { int * data = (int *)malloc(100*sizeof(int)); /* Initialize and make use of data */ data[0] = 5; printIntLine(data[0]); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (int *)realloc(data, (130000)*sizeof(int)); if (data != NULL) { /* Reinitialize and make use of data */ data[0] = 10; printIntLine(data[0]); free(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/99678/CWE401_Memory_Leak__malloc_realloc_int_09.c
CWE401_Memory_Leak__malloc_realloc_int_09_bad
void CWE401_Memory_Leak__malloc_realloc_int_09_bad(void) { undefined4 *puVar1; if (GLOBAL_CONST_TRUE != 0) { puVar1 = (undefined4 *)func_0x00400af0(400); *puVar1 = 5; printIntLine(*puVar1); puVar1 = (undefined4 *)func_0x00400b20(puVar1,520000); if (puVar1 != (undefined4 *)0x0) { *puVar1 = 10; printIntLine(*puVar1); func_0x00400a60(puVar1); } } return; }
['gcc']
55,887
void CWE401_Memory_Leak__malloc_realloc_int_09_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99678/CWE401_Memory_Leak__malloc_realloc_int_09.c
CWE401_Memory_Leak__malloc_realloc_int_09_good
void CWE401_Memory_Leak__malloc_realloc_int_09_good(void) { good1(); good2(); return; }
['gcc']
55,888
void CWE401_Memory_Leak__malloc_realloc_int_10_bad() { if(globalTrue) { { int * data = (int *)malloc(100*sizeof(int)); /* Initialize and make use of data */ data[0] = 5; printIntLine(data[0]); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (int *)realloc(data, (130000)*sizeof(int)); if (data != NULL) { /* Reinitialize and make use of data */ data[0] = 10; printIntLine(data[0]); free(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/99679/CWE401_Memory_Leak__malloc_realloc_int_10.c
CWE401_Memory_Leak__malloc_realloc_int_10_bad
void CWE401_Memory_Leak__malloc_realloc_int_10_bad(void) { undefined4 *puVar1; if (globalTrue != 0) { puVar1 = (undefined4 *)func_0x00400af0(400); *puVar1 = 5; printIntLine(*puVar1); puVar1 = (undefined4 *)func_0x00400b20(puVar1,520000); if (puVar1 != (undefined4 *)0x0) { *puVar1 = 10; printIntLine(*puVar1); func_0x00400a60(puVar1); } } return; }
['gcc']
55,889
void CWE401_Memory_Leak__malloc_realloc_int_10_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99679/CWE401_Memory_Leak__malloc_realloc_int_10.c
CWE401_Memory_Leak__malloc_realloc_int_10_good
void CWE401_Memory_Leak__malloc_realloc_int_10_good(void) { good1(); good2(); return; }
['gcc']
55,890
void CWE401_Memory_Leak__malloc_realloc_int_11_bad() { if(globalReturnsTrue()) { { int * data = (int *)malloc(100*sizeof(int)); /* Initialize and make use of data */ data[0] = 5; printIntLine(data[0]); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (int *)realloc(data, (130000)*sizeof(int)); if (data != NULL) { /* Reinitialize and make use of data */ data[0] = 10; printIntLine(data[0]); free(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/99680/CWE401_Memory_Leak__malloc_realloc_int_11.c
CWE401_Memory_Leak__malloc_realloc_int_11_bad
void CWE401_Memory_Leak__malloc_realloc_int_11_bad(void) { int iVar1; undefined4 *puVar2; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { puVar2 = (undefined4 *)func_0x00400af0(400); *puVar2 = 5; printIntLine(*puVar2); puVar2 = (undefined4 *)func_0x00400b20(puVar2,520000); if (puVar2 != (undefined4 *)0x0) { *puVar2 = 10; printIntLine(*puVar2); func_0x00400a60(puVar2); } } return; }
['gcc']
55,891
void CWE401_Memory_Leak__malloc_realloc_int_11_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99680/CWE401_Memory_Leak__malloc_realloc_int_11.c
CWE401_Memory_Leak__malloc_realloc_int_11_good
void CWE401_Memory_Leak__malloc_realloc_int_11_good(void) { good1(); good2(); return; }
['gcc']
55,892
void CWE401_Memory_Leak__malloc_realloc_int_12_bad() { if(globalReturnsTrueOrFalse()) { { int * data = (int *)malloc(100*sizeof(int)); /* Initialize and make use of data */ data[0] = 5; printIntLine(data[0]); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (int *)realloc(data, (130000)*sizeof(int)); if (data != NULL) { /* Reinitialize and make use of data */ data[0] = 10; printIntLine(data[0]); free(data); } } } else { { int * data = (int *)malloc(100*sizeof(int)); int * tmpData; /* Initialize and make use of data */ data[0] = 5; printIntLine(data[0]); tmpData = (int *)realloc(data, (130000)*sizeof(int)); /* FIX: Ensure realloc() was successful before assigning data to the memory block * allocated with realloc() */ if (tmpData != NULL) { data = tmpData; /* Reinitialize and make use of data */ data[0] = 10; printIntLine(data[0]); } free(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 */', '/* Initialize and make use of data */', '/* FIX: Ensure realloc() was successful before assigning data to the memory block\r\n * allocated with realloc() */', '/* Reinitialize and make use of data */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99681/CWE401_Memory_Leak__malloc_realloc_int_12.c
CWE401_Memory_Leak__malloc_realloc_int_12_bad
void CWE401_Memory_Leak__malloc_realloc_int_12_bad(void) { int iVar1; undefined4 *puVar2; undefined4 *puStack_10; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { puStack_10 = (undefined4 *)func_0x00400af0(400); *puStack_10 = 5; printIntLine(*puStack_10); puVar2 = (undefined4 *)func_0x00400b20(puStack_10,520000); if (puVar2 != (undefined4 *)0x0) { *puVar2 = 10; printIntLine(*puVar2); puStack_10 = puVar2; } func_0x00400a60(puStack_10); } else { puVar2 = (undefined4 *)func_0x00400af0(400); *puVar2 = 5; printIntLine(*puVar2); puVar2 = (undefined4 *)func_0x00400b20(puVar2,520000); if (puVar2 != (undefined4 *)0x0) { *puVar2 = 10; printIntLine(*puVar2); func_0x00400a60(puVar2); } } return; }
['gcc']
55,893
void CWE401_Memory_Leak__malloc_realloc_int_12_good() { good1(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99681/CWE401_Memory_Leak__malloc_realloc_int_12.c
CWE401_Memory_Leak__malloc_realloc_int_12_good
void CWE401_Memory_Leak__malloc_realloc_int_12_good(void) { good1(); return; }
['gcc']
55,894
void CWE401_Memory_Leak__malloc_realloc_int_13_bad() { if(GLOBAL_CONST_FIVE==5) { { int * data = (int *)malloc(100*sizeof(int)); /* Initialize and make use of data */ data[0] = 5; printIntLine(data[0]); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (int *)realloc(data, (130000)*sizeof(int)); if (data != NULL) { /* Reinitialize and make use of data */ data[0] = 10; printIntLine(data[0]); free(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/99682/CWE401_Memory_Leak__malloc_realloc_int_13.c
CWE401_Memory_Leak__malloc_realloc_int_13_bad
void CWE401_Memory_Leak__malloc_realloc_int_13_bad(void) { undefined4 *puVar1; if (GLOBAL_CONST_FIVE == 5) { puVar1 = (undefined4 *)func_0x00400af0(400); *puVar1 = 5; printIntLine(*puVar1); puVar1 = (undefined4 *)func_0x00400b20(puVar1,520000); if (puVar1 != (undefined4 *)0x0) { *puVar1 = 10; printIntLine(*puVar1); func_0x00400a60(puVar1); } } return; }
['gcc']
55,895
void CWE401_Memory_Leak__malloc_realloc_int_13_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99682/CWE401_Memory_Leak__malloc_realloc_int_13.c
CWE401_Memory_Leak__malloc_realloc_int_13_good
void CWE401_Memory_Leak__malloc_realloc_int_13_good(void) { good1(); good2(); return; }
['gcc']
55,896
void CWE401_Memory_Leak__malloc_realloc_int_14_bad() { if(globalFive==5) { { int * data = (int *)malloc(100*sizeof(int)); /* Initialize and make use of data */ data[0] = 5; printIntLine(data[0]); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (int *)realloc(data, (130000)*sizeof(int)); if (data != NULL) { /* Reinitialize and make use of data */ data[0] = 10; printIntLine(data[0]); free(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/99683/CWE401_Memory_Leak__malloc_realloc_int_14.c
CWE401_Memory_Leak__malloc_realloc_int_14_bad
void CWE401_Memory_Leak__malloc_realloc_int_14_bad(void) { undefined4 *puVar1; if (globalFive == 5) { puVar1 = (undefined4 *)func_0x00400af0(400); *puVar1 = 5; printIntLine(*puVar1); puVar1 = (undefined4 *)func_0x00400b20(puVar1,520000); if (puVar1 != (undefined4 *)0x0) { *puVar1 = 10; printIntLine(*puVar1); func_0x00400a60(puVar1); } } return; }
['gcc']
55,897
void CWE401_Memory_Leak__malloc_realloc_int_14_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99683/CWE401_Memory_Leak__malloc_realloc_int_14.c
CWE401_Memory_Leak__malloc_realloc_int_14_good
void CWE401_Memory_Leak__malloc_realloc_int_14_good(void) { good1(); good2(); return; }
['gcc']
55,898
void CWE401_Memory_Leak__malloc_realloc_int_15_bad() { switch(6) { case 6: { int * data = (int *)malloc(100*sizeof(int)); /* Initialize and make use of data */ data[0] = 5; printIntLine(data[0]); /* FLAW: If realloc() fails, the initial memory block will not be freed() */ data = (int *)realloc(data, (130000)*sizeof(int)); if (data != NULL) { /* Reinitialize and make use of data */ data[0] = 10; printIntLine(data[0]); free(data); } } break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } }
['/* Initialize and make use of data */', '/* FLAW: If realloc() fails, the initial memory block will not be freed() */', '/* Reinitialize and make use of data */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99684/CWE401_Memory_Leak__malloc_realloc_int_15.c
CWE401_Memory_Leak__malloc_realloc_int_15_bad
void CWE401_Memory_Leak__malloc_realloc_int_15_bad(void) { undefined4 *puVar1; puVar1 = (undefined4 *)func_0x00400af0(400); *puVar1 = 5; printIntLine(*puVar1); puVar1 = (undefined4 *)func_0x00400b20(puVar1,520000); if (puVar1 != (undefined4 *)0x0) { *puVar1 = 10; printIntLine(*puVar1); func_0x00400a60(puVar1); } return; }
['gcc']
55,899
void CWE401_Memory_Leak__malloc_realloc_int_15_good() { good1(); good2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/99684/CWE401_Memory_Leak__malloc_realloc_int_15.c
CWE401_Memory_Leak__malloc_realloc_int_15_good
void CWE401_Memory_Leak__malloc_realloc_int_15_good(void) { good1(); good2(); return; }
['gcc']