Dataset Viewer
Auto-converted to Parquet Duplicate
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
0
void CWE401_Memory_Leak__strdup_char_02_bad() { char * data; data = NULL; if(1) { { char myString[] = "myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = strdup(myString); /* Use data */ printLine(data); } } if(1) { /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */', '/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100331/CWE401_Memory_Leak__strdup_char_02.c
CWE401_Memory_Leak__strdup_char_02_bad
void CWE401_Memory_Leak__strdup_char_02_bad(void) { undefined8 uStack_19; undefined uStack_11; undefined8 uStack_10; uStack_10 = 0; uStack_19 = 0x676e69727453796d; uStack_11 = 0; uStack_10 = func_0x00400a80(&uStack_19); printLine(uStack_10); return; }
['gcc']
1
void CWE401_Memory_Leak__strdup_char_02_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100331/CWE401_Memory_Leak__strdup_char_02.c
CWE401_Memory_Leak__strdup_char_02_good
void CWE401_Memory_Leak__strdup_char_02_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
2
void CWE401_Memory_Leak__strdup_char_03_bad() { char * data; data = NULL; if(5==5) { { char myString[] = "myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = strdup(myString); /* Use data */ printLine(data); } } if(5==5) { /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */', '/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100332/CWE401_Memory_Leak__strdup_char_03.c
CWE401_Memory_Leak__strdup_char_03_bad
void CWE401_Memory_Leak__strdup_char_03_bad(void) { undefined8 uStack_19; undefined uStack_11; undefined8 uStack_10; uStack_10 = 0; uStack_19 = 0x676e69727453796d; uStack_11 = 0; uStack_10 = func_0x00400a80(&uStack_19); printLine(uStack_10); return; }
['gcc']
3
void CWE401_Memory_Leak__strdup_char_03_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100332/CWE401_Memory_Leak__strdup_char_03.c
CWE401_Memory_Leak__strdup_char_03_good
void CWE401_Memory_Leak__strdup_char_03_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
4
void CWE401_Memory_Leak__strdup_char_04_bad() { char * data; data = NULL; if(STATIC_CONST_TRUE) { { char myString[] = "myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = strdup(myString); /* Use data */ printLine(data); } } if(STATIC_CONST_TRUE) { /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */', '/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100333/CWE401_Memory_Leak__strdup_char_04.c
CWE401_Memory_Leak__strdup_char_04_bad
void CWE401_Memory_Leak__strdup_char_04_bad(void) { undefined8 uStack_19; undefined uStack_11; undefined8 uStack_10; uStack_10 = 0; uStack_19 = 0x676e69727453796d; uStack_11 = 0; uStack_10 = func_0x00400a80(&uStack_19); printLine(uStack_10); return; }
['gcc']
5
void CWE401_Memory_Leak__strdup_char_04_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100333/CWE401_Memory_Leak__strdup_char_04.c
CWE401_Memory_Leak__strdup_char_04_good
void CWE401_Memory_Leak__strdup_char_04_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
6
void CWE401_Memory_Leak__strdup_char_05_bad() { char * data; data = NULL; if(staticTrue) { { char myString[] = "myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = strdup(myString); /* Use data */ printLine(data); } } if(staticTrue) { /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */', '/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100334/CWE401_Memory_Leak__strdup_char_05.c
CWE401_Memory_Leak__strdup_char_05_bad
void CWE401_Memory_Leak__strdup_char_05_bad(void) { undefined8 uStack_19; undefined uStack_11; undefined8 uStack_10; uStack_10 = 0; if (staticTrue != 0) { uStack_19 = 0x676e69727453796d; uStack_11 = 0; uStack_10 = func_0x00400a80(&uStack_19); printLine(uStack_10); } return; }
['gcc']
7
void CWE401_Memory_Leak__strdup_char_05_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100334/CWE401_Memory_Leak__strdup_char_05.c
CWE401_Memory_Leak__strdup_char_05_good
void CWE401_Memory_Leak__strdup_char_05_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
8
void CWE401_Memory_Leak__strdup_char_06_bad() { char * data; data = NULL; if(STATIC_CONST_FIVE==5) { { char myString[] = "myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = strdup(myString); /* Use data */ printLine(data); } } if(STATIC_CONST_FIVE==5) { /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */', '/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100335/CWE401_Memory_Leak__strdup_char_06.c
CWE401_Memory_Leak__strdup_char_06_bad
void CWE401_Memory_Leak__strdup_char_06_bad(void) { undefined8 uStack_19; undefined uStack_11; undefined8 uStack_10; uStack_10 = 0; uStack_19 = 0x676e69727453796d; uStack_11 = 0; uStack_10 = func_0x00400a80(&uStack_19); printLine(uStack_10); return; }
['gcc']
9
void CWE401_Memory_Leak__strdup_char_06_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100335/CWE401_Memory_Leak__strdup_char_06.c
CWE401_Memory_Leak__strdup_char_06_good
void CWE401_Memory_Leak__strdup_char_06_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
10
void CWE401_Memory_Leak__strdup_char_07_bad() { char * data; data = NULL; if(staticFive==5) { { char myString[] = "myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = strdup(myString); /* Use data */ printLine(data); } } if(staticFive==5) { /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */', '/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100336/CWE401_Memory_Leak__strdup_char_07.c
CWE401_Memory_Leak__strdup_char_07_bad
void CWE401_Memory_Leak__strdup_char_07_bad(void) { undefined8 uStack_19; undefined uStack_11; undefined8 uStack_10; uStack_10 = 0; if (staticFive == 5) { uStack_19 = 0x676e69727453796d; uStack_11 = 0; uStack_10 = func_0x00400a80(&uStack_19); printLine(uStack_10); } return; }
['gcc']
11
void CWE401_Memory_Leak__strdup_char_07_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100336/CWE401_Memory_Leak__strdup_char_07.c
CWE401_Memory_Leak__strdup_char_07_good
void CWE401_Memory_Leak__strdup_char_07_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
12
void CWE401_Memory_Leak__strdup_char_08_bad() { char * data; data = NULL; if(staticReturnsTrue()) { { char myString[] = "myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = strdup(myString); /* Use data */ printLine(data); } } if(staticReturnsTrue()) { /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */', '/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100337/CWE401_Memory_Leak__strdup_char_08.c
CWE401_Memory_Leak__strdup_char_08_bad
void CWE401_Memory_Leak__strdup_char_08_bad(void) { int iVar1; undefined8 uStack_19; undefined uStack_11; undefined8 uStack_10; uStack_10 = 0; iVar1 = staticReturnsTrue(); if (iVar1 != 0) { uStack_19 = 0x676e69727453796d; uStack_11 = 0; uStack_10 = func_0x00400a80(&uStack_19); printLine(uStack_10); } staticReturnsTrue(); return; }
['gcc']
13
void CWE401_Memory_Leak__strdup_char_08_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100337/CWE401_Memory_Leak__strdup_char_08.c
CWE401_Memory_Leak__strdup_char_08_good
void CWE401_Memory_Leak__strdup_char_08_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
14
void CWE401_Memory_Leak__strdup_char_09_bad() { char * data; data = NULL; if(GLOBAL_CONST_TRUE) { { char myString[] = "myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = strdup(myString); /* Use data */ printLine(data); } } if(GLOBAL_CONST_TRUE) { /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */', '/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100338/CWE401_Memory_Leak__strdup_char_09.c
CWE401_Memory_Leak__strdup_char_09_bad
void CWE401_Memory_Leak__strdup_char_09_bad(void) { undefined8 uStack_19; undefined uStack_11; undefined8 uStack_10; uStack_10 = 0; if (GLOBAL_CONST_TRUE != 0) { uStack_19 = 0x676e69727453796d; uStack_11 = 0; uStack_10 = func_0x00400a80(&uStack_19); printLine(uStack_10); } return; }
['gcc']
15
void CWE401_Memory_Leak__strdup_char_09_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100338/CWE401_Memory_Leak__strdup_char_09.c
CWE401_Memory_Leak__strdup_char_09_good
void CWE401_Memory_Leak__strdup_char_09_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
16
void CWE401_Memory_Leak__strdup_char_10_bad() { char * data; data = NULL; if(globalTrue) { { char myString[] = "myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = strdup(myString); /* Use data */ printLine(data); } } if(globalTrue) { /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */', '/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100339/CWE401_Memory_Leak__strdup_char_10.c
CWE401_Memory_Leak__strdup_char_10_bad
void CWE401_Memory_Leak__strdup_char_10_bad(void) { undefined8 uStack_19; undefined uStack_11; undefined8 uStack_10; uStack_10 = 0; if (globalTrue != 0) { uStack_19 = 0x676e69727453796d; uStack_11 = 0; uStack_10 = func_0x00400a80(&uStack_19); printLine(uStack_10); } return; }
['gcc']
17
void CWE401_Memory_Leak__strdup_char_10_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100339/CWE401_Memory_Leak__strdup_char_10.c
CWE401_Memory_Leak__strdup_char_10_good
void CWE401_Memory_Leak__strdup_char_10_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
18
void CWE401_Memory_Leak__strdup_char_11_bad() { char * data; data = NULL; if(globalReturnsTrue()) { { char myString[] = "myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = strdup(myString); /* Use data */ printLine(data); } } if(globalReturnsTrue()) { /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */', '/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100340/CWE401_Memory_Leak__strdup_char_11.c
CWE401_Memory_Leak__strdup_char_11_bad
void CWE401_Memory_Leak__strdup_char_11_bad(void) { int iVar1; undefined8 uStack_19; undefined uStack_11; undefined8 uStack_10; uStack_10 = 0; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { uStack_19 = 0x676e69727453796d; uStack_11 = 0; uStack_10 = func_0x00400a80(&uStack_19); printLine(uStack_10); } globalReturnsTrue(); return; }
['gcc']
19
void CWE401_Memory_Leak__strdup_char_11_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100340/CWE401_Memory_Leak__strdup_char_11.c
CWE401_Memory_Leak__strdup_char_11_good
void CWE401_Memory_Leak__strdup_char_11_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
20
void CWE401_Memory_Leak__strdup_char_12_bad() { char * data; data = NULL; if(globalReturnsTrueOrFalse()) { { char myString[] = "myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = strdup(myString); /* Use data */ printLine(data); } } else { /* FIX: Use memory allocated on the stack with ALLOCA */ data = (char *)ALLOCA(100*sizeof(char)); /* Initialize then use data */ strcpy(data, "a string"); printLine(data); } if(globalReturnsTrueOrFalse()) { /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ } else { /* FIX: Deallocate memory initialized in the source */ free(data); } }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */', '/* FIX: Use memory allocated on the stack with ALLOCA */', '/* Initialize then use data */', '/* POTENTIAL FLAW: No deallocation of memory */', '/* no deallocation */', '/* empty statement needed for some flow variants */', '/* FIX: Deallocate memory initialized in the source */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100341/CWE401_Memory_Leak__strdup_char_12.c
CWE401_Memory_Leak__strdup_char_12_bad
void CWE401_Memory_Leak__strdup_char_12_bad(void) { int iVar1; undefined *puVar2; undefined auStack_98 [8]; undefined8 uStack_90; undefined uStack_88; undefined *puStack_30; undefined auStack_28 [15]; undefined8 uStack_19; undefined uStack_11; undefined8 *puStack_10; puVar2 = auStack_28; puStack_10 = (undefined8 *)0x0; puStack_30 = &UNK_00400bec; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { puVar2 = auStack_98; puStack_10 = &uStack_90; uStack_90 = 0x676e697274732061; uStack_88 = 0; printLine(puStack_10,0x10,0xb); } else { uStack_19 = 0x676e69727453796d; uStack_11 = 0; puStack_30 = &UNK_00400c0e; puStack_10 = (undefined8 *)func_0x00400ad0(&uStack_19); puStack_30 = &UNK_00400c1e; printLine(puStack_10); } *(undefined **)(puVar2 + -8) = &UNK_00400c7f; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { *(undefined **)(puVar2 + -8) = &UNK_00400c8f; func_0x00400a20(puStack_10); } return; }
['gcc']
21
void CWE401_Memory_Leak__strdup_char_12_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100341/CWE401_Memory_Leak__strdup_char_12.c
CWE401_Memory_Leak__strdup_char_12_good
void CWE401_Memory_Leak__strdup_char_12_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
22
void CWE401_Memory_Leak__strdup_char_13_bad() { char * data; data = NULL; if(GLOBAL_CONST_FIVE==5) { { char myString[] = "myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = strdup(myString); /* Use data */ printLine(data); } } if(GLOBAL_CONST_FIVE==5) { /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */', '/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100342/CWE401_Memory_Leak__strdup_char_13.c
CWE401_Memory_Leak__strdup_char_13_bad
void CWE401_Memory_Leak__strdup_char_13_bad(void) { undefined8 uStack_19; undefined uStack_11; undefined8 uStack_10; uStack_10 = 0; if (GLOBAL_CONST_FIVE == 5) { uStack_19 = 0x676e69727453796d; uStack_11 = 0; uStack_10 = func_0x00400a80(&uStack_19); printLine(uStack_10); } return; }
['gcc']
23
void CWE401_Memory_Leak__strdup_char_13_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100342/CWE401_Memory_Leak__strdup_char_13.c
CWE401_Memory_Leak__strdup_char_13_good
void CWE401_Memory_Leak__strdup_char_13_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
24
void CWE401_Memory_Leak__strdup_char_14_bad() { char * data; data = NULL; if(globalFive==5) { { char myString[] = "myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = strdup(myString); /* Use data */ printLine(data); } } if(globalFive==5) { /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */', '/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100343/CWE401_Memory_Leak__strdup_char_14.c
CWE401_Memory_Leak__strdup_char_14_bad
void CWE401_Memory_Leak__strdup_char_14_bad(void) { undefined8 uStack_19; undefined uStack_11; undefined8 uStack_10; uStack_10 = 0; if (globalFive == 5) { uStack_19 = 0x676e69727453796d; uStack_11 = 0; uStack_10 = func_0x00400a80(&uStack_19); printLine(uStack_10); } return; }
['gcc']
25
void CWE401_Memory_Leak__strdup_char_14_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100343/CWE401_Memory_Leak__strdup_char_14.c
CWE401_Memory_Leak__strdup_char_14_good
void CWE401_Memory_Leak__strdup_char_14_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
26
void CWE401_Memory_Leak__strdup_char_15_bad() { char * data; data = NULL; switch(6) { case 6: { char myString[] = "myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = strdup(myString); /* Use data */ printLine(data); } break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } switch(7) { case 7: /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ break; default: /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); break; } }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* POTENTIAL FLAW: No deallocation of memory */', '/* no deallocation */', '/* empty statement needed for some flow variants */', '/* 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/100344/CWE401_Memory_Leak__strdup_char_15.c
CWE401_Memory_Leak__strdup_char_15_bad
void CWE401_Memory_Leak__strdup_char_15_bad(void) { undefined8 uStack_19; undefined uStack_11; undefined8 uStack_10; uStack_10 = 0; uStack_19 = 0x676e69727453796d; uStack_11 = 0; uStack_10 = func_0x00400a80(&uStack_19); printLine(uStack_10); return; }
['gcc']
27
void CWE401_Memory_Leak__strdup_char_15_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100344/CWE401_Memory_Leak__strdup_char_15.c
CWE401_Memory_Leak__strdup_char_15_good
void CWE401_Memory_Leak__strdup_char_15_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
28
void CWE401_Memory_Leak__strdup_char_16_bad() { char * data; data = NULL; while(1) { { char myString[] = "myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = strdup(myString); /* Use data */ printLine(data); } break; } while(1) { /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ break; } }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */', '/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100345/CWE401_Memory_Leak__strdup_char_16.c
CWE401_Memory_Leak__strdup_char_16_bad
void CWE401_Memory_Leak__strdup_char_16_bad(void) { undefined8 uStack_19; undefined uStack_11; undefined8 uStack_10; uStack_10 = 0; uStack_19 = 0x676e69727453796d; uStack_11 = 0; uStack_10 = func_0x00400a80(&uStack_19); printLine(uStack_10); return; }
['gcc']
29
void CWE401_Memory_Leak__strdup_char_16_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100345/CWE401_Memory_Leak__strdup_char_16.c
CWE401_Memory_Leak__strdup_char_16_good
void CWE401_Memory_Leak__strdup_char_16_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
30
void CWE401_Memory_Leak__strdup_char_17_bad() { int i,j; char * data; data = NULL; for(i = 0; i < 1; i++) { { char myString[] = "myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = strdup(myString); /* Use data */ printLine(data); } } for(j = 0; j < 1; j++) { /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */', '/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100346/CWE401_Memory_Leak__strdup_char_17.c
CWE401_Memory_Leak__strdup_char_17_bad
void CWE401_Memory_Leak__strdup_char_17_bad(void) { undefined8 uStack_21; undefined uStack_19; undefined8 uStack_18; int iStack_10; int iStack_c; uStack_18 = 0; for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) { uStack_21 = 0x676e69727453796d; uStack_19 = 0; uStack_18 = func_0x00400a80(&uStack_21); printLine(uStack_18); } for (iStack_10 = 0; iStack_10 < 1; iStack_10 = iStack_10 + 1) { } return; }
['gcc']
31
void CWE401_Memory_Leak__strdup_char_17_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100346/CWE401_Memory_Leak__strdup_char_17.c
CWE401_Memory_Leak__strdup_char_17_good
void CWE401_Memory_Leak__strdup_char_17_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
32
void CWE401_Memory_Leak__strdup_char_21_bad() { char * data; data = NULL; { char myString[] = "myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = strdup(myString); /* Use data */ printLine(data); } badStatic = 1; /* true */ badSink(data); }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */', '/* true */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100348/CWE401_Memory_Leak__strdup_char_21.c
CWE401_Memory_Leak__strdup_char_21_bad
void CWE401_Memory_Leak__strdup_char_21_bad(void) { undefined8 uStack_19; undefined uStack_11; undefined8 uStack_10; uStack_10 = 0; uStack_19 = 0x676e69727453796d; uStack_11 = 0; uStack_10 = func_0x00400a80(&uStack_19); printLine(uStack_10); badStatic = 1; badSink(uStack_10); return; }
['gcc']
33
void CWE401_Memory_Leak__strdup_char_22_bad() { char * data; data = NULL; { char myString[] = "myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = strdup(myString); /* Use data */ printLine(data); } CWE401_Memory_Leak__strdup_char_22_badGlobal = 1; /* true */ CWE401_Memory_Leak__strdup_char_22_badSink(data); }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */', '/* true */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100349/CWE401_Memory_Leak__strdup_char_22a.c
CWE401_Memory_Leak__strdup_char_22_bad
void CWE401_Memory_Leak__strdup_char_22_bad(void) { undefined8 uStack_19; undefined uStack_11; undefined8 uStack_10; uStack_10 = 0; uStack_19 = 0x676e69727453796d; uStack_11 = 0; uStack_10 = func_0x00400a80(&uStack_19); printLine(uStack_10); CWE401_Memory_Leak__strdup_char_22_badGlobal = 1; CWE401_Memory_Leak__strdup_char_22_badSink(uStack_10); return; }
['gcc']
34
void CWE401_Memory_Leak__strdup_char_22_good() { goodB2G1(); goodB2G2(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100349/CWE401_Memory_Leak__strdup_char_22a.c
CWE401_Memory_Leak__strdup_char_22_good
void CWE401_Memory_Leak__strdup_char_22_good(void) { goodB2G1(); goodB2G2(); goodG2B(); return; }
['gcc']
35
void CWE401_Memory_Leak__strdup_char_22_badSink(char * data) { if(CWE401_Memory_Leak__strdup_char_22_badGlobal) { /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100349/CWE401_Memory_Leak__strdup_char_22b.c
CWE401_Memory_Leak__strdup_char_22_badSink
void CWE401_Memory_Leak__strdup_char_22_badSink(void) { return; }
['gcc']
36
void CWE401_Memory_Leak__strdup_char_22_goodB2G1Sink(char * data) { if(CWE401_Memory_Leak__strdup_char_22_goodB2G1Global) { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); } else { /* FIX: Deallocate memory initialized in the source */ free(data); } }
['/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* FIX: Deallocate memory initialized in the source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100349/CWE401_Memory_Leak__strdup_char_22b.c
CWE401_Memory_Leak__strdup_char_22_goodB2G1Sink
void CWE401_Memory_Leak__strdup_char_22_goodB2G1Sink(undefined8 param_1) { if (CWE401_Memory_Leak__strdup_char_22_goodB2G1Global == 0) { func_0x00400a20(param_1); } else { printLine(&UNK_00401304); } return; }
['gcc']
37
void CWE401_Memory_Leak__strdup_char_22_goodB2G2Sink(char * data) { if(CWE401_Memory_Leak__strdup_char_22_goodB2G2Global) { /* FIX: Deallocate memory initialized in the source */ free(data); } }
['/* FIX: Deallocate memory initialized in the source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100349/CWE401_Memory_Leak__strdup_char_22b.c
CWE401_Memory_Leak__strdup_char_22_goodB2G2Sink
void CWE401_Memory_Leak__strdup_char_22_goodB2G2Sink(undefined8 param_1) { if (CWE401_Memory_Leak__strdup_char_22_goodB2G2Global != 0) { func_0x00400a20(param_1); } return; }
['gcc']
38
void CWE401_Memory_Leak__strdup_char_22_goodG2BSink(char * data) { if(CWE401_Memory_Leak__strdup_char_22_goodG2BGlobal) { /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100349/CWE401_Memory_Leak__strdup_char_22b.c
CWE401_Memory_Leak__strdup_char_22_goodG2BSink
void CWE401_Memory_Leak__strdup_char_22_goodG2BSink(void) { return; }
['gcc']
39
void CWE401_Memory_Leak__strdup_char_31_bad() { char * data; data = NULL; { char myString[] = "myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = strdup(myString); /* Use data */ printLine(data); } { char * dataCopy = data; char * data = dataCopy; /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */', '/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100350/CWE401_Memory_Leak__strdup_char_31.c
CWE401_Memory_Leak__strdup_char_31_bad
void CWE401_Memory_Leak__strdup_char_31_bad(void) { undefined8 uStack_29; undefined uStack_21; undefined8 uStack_10; uStack_10 = 0; uStack_29 = 0x676e69727453796d; uStack_21 = 0; uStack_10 = func_0x00400a80(&uStack_29); printLine(uStack_10); return; }
['gcc']
40
void CWE401_Memory_Leak__strdup_char_31_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100350/CWE401_Memory_Leak__strdup_char_31.c
CWE401_Memory_Leak__strdup_char_31_good
void CWE401_Memory_Leak__strdup_char_31_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
41
void CWE401_Memory_Leak__strdup_char_32_bad() { char * data; char * *dataPtr1 = &data; char * *dataPtr2 = &data; data = NULL; { char * data = *dataPtr1; { char myString[] = "myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = strdup(myString); /* Use data */ printLine(data); } *dataPtr1 = data; } { char * data = *dataPtr2; /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */', '/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100351/CWE401_Memory_Leak__strdup_char_32.c
CWE401_Memory_Leak__strdup_char_32_bad
/* WARNING: Restarted to delay deadcode elimination for space: stack */ void CWE401_Memory_Leak__strdup_char_32_bad(void) { undefined8 uStack_39; undefined uStack_31; undefined8 auStack_30 [2]; undefined8 uStack_20; undefined8 *puStack_18; undefined8 *puStack_10; puStack_10 = auStack_30; puStack_18 = auStack_30; auStack_30[0] = 0; uStack_20 = 0; uStack_39 = 0x676e69727453796d; uStack_31 = 0; uStack_20 = func_0x00400a80(&uStack_39); printLine(uStack_20); *puStack_10 = uStack_20; return; }
['gcc']
42
void CWE401_Memory_Leak__strdup_char_32_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100351/CWE401_Memory_Leak__strdup_char_32.c
CWE401_Memory_Leak__strdup_char_32_good
void CWE401_Memory_Leak__strdup_char_32_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
43
void CWE401_Memory_Leak__strdup_char_34_bad() { char * data; CWE401_Memory_Leak__strdup_char_34_unionType myUnion; data = NULL; { char myString[] = "myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = strdup(myString); /* Use data */ printLine(data); } myUnion.unionFirst = data; { char * data = myUnion.unionSecond; /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */', '/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100353/CWE401_Memory_Leak__strdup_char_34.c
CWE401_Memory_Leak__strdup_char_34_bad
void CWE401_Memory_Leak__strdup_char_34_bad(void) { undefined8 uStack_29; undefined uStack_21; undefined8 uStack_10; uStack_10 = 0; uStack_29 = 0x676e69727453796d; uStack_21 = 0; uStack_10 = func_0x00400a80(&uStack_29); printLine(uStack_10); return; }
['gcc']
44
void CWE401_Memory_Leak__strdup_char_34_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100353/CWE401_Memory_Leak__strdup_char_34.c
CWE401_Memory_Leak__strdup_char_34_good
void CWE401_Memory_Leak__strdup_char_34_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
45
void CWE401_Memory_Leak__strdup_char_41_bad() { char * data; data = NULL; { char myString[] = "myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = strdup(myString); /* Use data */ printLine(data); } badSink(data); }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100354/CWE401_Memory_Leak__strdup_char_41.c
CWE401_Memory_Leak__strdup_char_41_bad
void CWE401_Memory_Leak__strdup_char_41_bad(void) { undefined8 uStack_19; undefined uStack_11; undefined8 uStack_10; uStack_10 = 0; uStack_19 = 0x676e69727453796d; uStack_11 = 0; uStack_10 = func_0x00400a80(&uStack_19); printLine(uStack_10); badSink(uStack_10); return; }
['gcc']
46
void CWE401_Memory_Leak__strdup_char_41_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100354/CWE401_Memory_Leak__strdup_char_41.c
CWE401_Memory_Leak__strdup_char_41_good
void CWE401_Memory_Leak__strdup_char_41_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
47
void CWE401_Memory_Leak__strdup_char_42_bad() { char * data; data = NULL; data = badSource(data); /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ }
['/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100355/CWE401_Memory_Leak__strdup_char_42.c
CWE401_Memory_Leak__strdup_char_42_bad
void CWE401_Memory_Leak__strdup_char_42_bad(void) { badSource(0); return; }
['gcc']
48
void CWE401_Memory_Leak__strdup_char_42_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100355/CWE401_Memory_Leak__strdup_char_42.c
CWE401_Memory_Leak__strdup_char_42_good
void CWE401_Memory_Leak__strdup_char_42_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
49
void CWE401_Memory_Leak__strdup_char_44_bad() { char * data; /* define a function pointer */ void (*funcPtr) (char *) = badSink; data = NULL; { char myString[] = "myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = strdup(myString); /* Use data */ printLine(data); } /* use the function pointer */ funcPtr(data); }
['/* define a function pointer */', '/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */', '/* use the function pointer */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100357/CWE401_Memory_Leak__strdup_char_44.c
CWE401_Memory_Leak__strdup_char_44_bad
void CWE401_Memory_Leak__strdup_char_44_bad(void) { undefined8 uStack_21; undefined uStack_19; undefined8 uStack_18; code *pcStack_10; pcStack_10 = badSink; uStack_18 = 0; uStack_21 = 0x676e69727453796d; uStack_19 = 0; uStack_18 = func_0x00400a80(&uStack_21); printLine(uStack_18); (*pcStack_10)(uStack_18); return; }
['gcc']
50
void CWE401_Memory_Leak__strdup_char_44_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100357/CWE401_Memory_Leak__strdup_char_44.c
CWE401_Memory_Leak__strdup_char_44_good
void CWE401_Memory_Leak__strdup_char_44_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
51
void CWE401_Memory_Leak__strdup_char_45_bad() { char * data; data = NULL; { char myString[] = "myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = strdup(myString); /* Use data */ printLine(data); } CWE401_Memory_Leak__strdup_char_45_badData = data; badSink(); }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100358/CWE401_Memory_Leak__strdup_char_45.c
CWE401_Memory_Leak__strdup_char_45_bad
void CWE401_Memory_Leak__strdup_char_45_bad(void) { undefined8 uStack_19; undefined uStack_11; undefined8 uStack_10; uStack_10 = 0; uStack_19 = 0x676e69727453796d; uStack_11 = 0; uStack_10 = func_0x00400a80(&uStack_19); printLine(uStack_10); CWE401_Memory_Leak__strdup_char_45_badData = uStack_10; badSink(); return; }
['gcc']
52
void CWE401_Memory_Leak__strdup_char_45_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100358/CWE401_Memory_Leak__strdup_char_45.c
CWE401_Memory_Leak__strdup_char_45_good
void CWE401_Memory_Leak__strdup_char_45_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
53
void CWE401_Memory_Leak__strdup_char_51_bad() { char * data; data = NULL; { char myString[] = "myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = strdup(myString); /* Use data */ printLine(data); } CWE401_Memory_Leak__strdup_char_51b_badSink(data); }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100359/CWE401_Memory_Leak__strdup_char_51a.c
CWE401_Memory_Leak__strdup_char_51_bad
void CWE401_Memory_Leak__strdup_char_51_bad(void) { undefined8 uStack_19; undefined uStack_11; undefined8 uStack_10; uStack_10 = 0; uStack_19 = 0x676e69727453796d; uStack_11 = 0; uStack_10 = func_0x00400a80(&uStack_19); printLine(uStack_10); CWE401_Memory_Leak__strdup_char_51b_badSink(uStack_10); return; }
['gcc']
54
void CWE401_Memory_Leak__strdup_char_51_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100359/CWE401_Memory_Leak__strdup_char_51a.c
CWE401_Memory_Leak__strdup_char_51_good
void CWE401_Memory_Leak__strdup_char_51_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
55
void CWE401_Memory_Leak__strdup_char_51b_badSink(char * data) { /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ }
['/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100359/CWE401_Memory_Leak__strdup_char_51b.c
CWE401_Memory_Leak__strdup_char_51b_badSink
void CWE401_Memory_Leak__strdup_char_51b_badSink(void) { return; }
['gcc']
56
void CWE401_Memory_Leak__strdup_char_51b_goodG2BSink(char * data) { /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ }
['/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100359/CWE401_Memory_Leak__strdup_char_51b.c
CWE401_Memory_Leak__strdup_char_51b_goodG2BSink
void CWE401_Memory_Leak__strdup_char_51b_goodG2BSink(void) { return; }
['gcc']
57
void CWE401_Memory_Leak__strdup_char_51b_goodB2GSink(char * data) { /* FIX: Deallocate memory initialized in the source */ free(data); }
['/* FIX: Deallocate memory initialized in the source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100359/CWE401_Memory_Leak__strdup_char_51b.c
CWE401_Memory_Leak__strdup_char_51b_goodB2GSink
void CWE401_Memory_Leak__strdup_char_51b_goodB2GSink(undefined8 param_1) { func_0x00400a20(param_1); return; }
['gcc']
58
void CWE401_Memory_Leak__strdup_char_68_bad() { char * data; data = NULL; { char myString[] = "myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = strdup(myString); /* Use data */ printLine(data); } CWE401_Memory_Leak__strdup_char_68_badData = data; CWE401_Memory_Leak__strdup_char_68b_badSink(); }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100370/CWE401_Memory_Leak__strdup_char_68a.c
CWE401_Memory_Leak__strdup_char_68_bad
void CWE401_Memory_Leak__strdup_char_68_bad(void) { undefined8 uStack_19; undefined uStack_11; undefined8 uStack_10; uStack_10 = 0; uStack_19 = 0x676e69727453796d; uStack_11 = 0; uStack_10 = func_0x00400a80(&uStack_19); printLine(uStack_10); CWE401_Memory_Leak__strdup_char_68_badData = uStack_10; CWE401_Memory_Leak__strdup_char_68b_badSink(); return; }
['gcc']
59
void CWE401_Memory_Leak__strdup_char_68_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100370/CWE401_Memory_Leak__strdup_char_68a.c
CWE401_Memory_Leak__strdup_char_68_good
void CWE401_Memory_Leak__strdup_char_68_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
60
void CWE401_Memory_Leak__strdup_char_68b_badSink() { char * data = CWE401_Memory_Leak__strdup_char_68_badData; /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ }
['/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100370/CWE401_Memory_Leak__strdup_char_68b.c
CWE401_Memory_Leak__strdup_char_68b_badSink
void CWE401_Memory_Leak__strdup_char_68b_badSink(void) { return; }
['gcc']
61
void CWE401_Memory_Leak__strdup_char_68b_goodG2BSink() { char * data = CWE401_Memory_Leak__strdup_char_68_goodG2BData; /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ }
['/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100370/CWE401_Memory_Leak__strdup_char_68b.c
CWE401_Memory_Leak__strdup_char_68b_goodG2BSink
void CWE401_Memory_Leak__strdup_char_68b_goodG2BSink(void) { return; }
['gcc']
62
void CWE401_Memory_Leak__strdup_char_68b_goodB2GSink() { char * data = CWE401_Memory_Leak__strdup_char_68_goodB2GData; /* FIX: Deallocate memory initialized in the source */ free(data); }
['/* FIX: Deallocate memory initialized in the source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100370/CWE401_Memory_Leak__strdup_char_68b.c
CWE401_Memory_Leak__strdup_char_68b_goodB2GSink
void CWE401_Memory_Leak__strdup_char_68b_goodB2GSink(void) { func_0x00400a20(CWE401_Memory_Leak__strdup_char_68_goodB2GData); return; }
['gcc']
63
void CWE401_Memory_Leak__strdup_wchar_t_08_bad() { wchar_t * data; data = NULL; if(staticReturnsTrue()) { { wchar_t myString[] = L"myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = wcsdup(myString); /* Use data */ printWLine(data); } } if(staticReturnsTrue()) { /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */', '/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100385/CWE401_Memory_Leak__strdup_wchar_t_08.c
CWE401_Memory_Leak__strdup_wchar_t_08_bad
void CWE401_Memory_Leak__strdup_wchar_t_08_bad(void) { int iVar1; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined8 uStack_10; uStack_10 = 0; iVar1 = staticReturnsTrue(); if (iVar1 != 0) { uStack_38 = 0x790000006d; uStack_30 = 0x7400000053; uStack_28 = 0x6900000072; uStack_20 = 0x670000006e; uStack_18 = 0; uStack_10 = func_0x00400a80(&uStack_38); printWLine(uStack_10); } staticReturnsTrue(); return; }
['gcc']
64
void CWE401_Memory_Leak__strdup_wchar_t_08_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100385/CWE401_Memory_Leak__strdup_wchar_t_08.c
CWE401_Memory_Leak__strdup_wchar_t_08_good
void CWE401_Memory_Leak__strdup_wchar_t_08_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
65
void CWE401_Memory_Leak__strdup_wchar_t_11_bad() { wchar_t * data; data = NULL; if(globalReturnsTrue()) { { wchar_t myString[] = L"myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = wcsdup(myString); /* Use data */ printWLine(data); } } if(globalReturnsTrue()) { /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ } }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */', '/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100388/CWE401_Memory_Leak__strdup_wchar_t_11.c
CWE401_Memory_Leak__strdup_wchar_t_11_bad
void CWE401_Memory_Leak__strdup_wchar_t_11_bad(void) { int iVar1; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined8 uStack_10; uStack_10 = 0; iVar1 = globalReturnsTrue(); if (iVar1 != 0) { uStack_38 = 0x790000006d; uStack_30 = 0x7400000053; uStack_28 = 0x6900000072; uStack_20 = 0x670000006e; uStack_18 = 0; uStack_10 = func_0x00400a80(&uStack_38); printWLine(uStack_10); } globalReturnsTrue(); return; }
['gcc']
66
void CWE401_Memory_Leak__strdup_wchar_t_11_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100388/CWE401_Memory_Leak__strdup_wchar_t_11.c
CWE401_Memory_Leak__strdup_wchar_t_11_good
void CWE401_Memory_Leak__strdup_wchar_t_11_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
67
void CWE401_Memory_Leak__strdup_wchar_t_12_bad() { wchar_t * data; data = NULL; if(globalReturnsTrueOrFalse()) { { wchar_t myString[] = L"myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = wcsdup(myString); /* Use data */ printWLine(data); } } else { /* FIX: Use memory allocated on the stack with ALLOCA */ data = (wchar_t *)ALLOCA(100*sizeof(wchar_t)); /* Initialize then use data */ wcscpy(data, L"a string"); printWLine(data); } if(globalReturnsTrueOrFalse()) { /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ } else { /* FIX: Deallocate memory initialized in the source */ free(data); } }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */', '/* FIX: Use memory allocated on the stack with ALLOCA */', '/* Initialize then use data */', '/* POTENTIAL FLAW: No deallocation of memory */', '/* no deallocation */', '/* empty statement needed for some flow variants */', '/* FIX: Deallocate memory initialized in the source */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100389/CWE401_Memory_Leak__strdup_wchar_t_12.c
CWE401_Memory_Leak__strdup_wchar_t_12_bad
void CWE401_Memory_Leak__strdup_wchar_t_12_bad(void) { int iVar1; undefined8 *puVar2; undefined auStack_1d8 [8]; undefined auStack_1d0 [400]; undefined *puStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined *puStack_10; puVar2 = &uStack_38; puStack_10 = (undefined *)0x0; puStack_40 = &UNK_00400c3c; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { puVar2 = (undefined8 *)auStack_1d8; puStack_10 = auStack_1d0; func_0x00400ad0(puStack_10,&UNK_00401288,7); printWLine(puStack_10); } else { uStack_38 = 0x790000006d; uStack_30 = 0x7400000053; uStack_28 = 0x6900000072; uStack_20 = 0x670000006e; uStack_18 = 0; puStack_40 = &UNK_00400c8b; puStack_10 = (undefined *)func_0x00400b20(&uStack_38); puStack_40 = &UNK_00400c9b; printWLine(puStack_10); } *(undefined **)((long)puVar2 + -8) = &UNK_00400cfa; iVar1 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { *(undefined **)((long)puVar2 + -8) = &UNK_00400d0a; func_0x00400a60(puStack_10); } return; }
['gcc']
68
void CWE401_Memory_Leak__strdup_wchar_t_12_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100389/CWE401_Memory_Leak__strdup_wchar_t_12.c
CWE401_Memory_Leak__strdup_wchar_t_12_good
void CWE401_Memory_Leak__strdup_wchar_t_12_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
69
void CWE401_Memory_Leak__strdup_wchar_t_52_bad() { wchar_t * data; data = NULL; { wchar_t myString[] = L"myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = wcsdup(myString); /* Use data */ printWLine(data); } CWE401_Memory_Leak__strdup_wchar_t_52b_badSink(data); }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100408/CWE401_Memory_Leak__strdup_wchar_t_52a.c
CWE401_Memory_Leak__strdup_wchar_t_52_bad
void CWE401_Memory_Leak__strdup_wchar_t_52_bad(void) { undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined8 uStack_10; uStack_10 = 0; uStack_38 = 0x790000006d; uStack_30 = 0x7400000053; uStack_28 = 0x6900000072; uStack_20 = 0x670000006e; uStack_18 = 0; uStack_10 = func_0x00400a80(&uStack_38); printWLine(uStack_10); CWE401_Memory_Leak__strdup_wchar_t_52b_badSink(uStack_10); return; }
['gcc']
70
void CWE401_Memory_Leak__strdup_wchar_t_52_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100408/CWE401_Memory_Leak__strdup_wchar_t_52a.c
CWE401_Memory_Leak__strdup_wchar_t_52_good
void CWE401_Memory_Leak__strdup_wchar_t_52_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
71
void CWE401_Memory_Leak__strdup_wchar_t_52b_badSink(wchar_t * data) { CWE401_Memory_Leak__strdup_wchar_t_52c_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100408/CWE401_Memory_Leak__strdup_wchar_t_52b.c
CWE401_Memory_Leak__strdup_wchar_t_52b_badSink
void CWE401_Memory_Leak__strdup_wchar_t_52b_badSink(undefined8 param_1) { CWE401_Memory_Leak__strdup_wchar_t_52c_badSink(param_1); return; }
['gcc']
72
void CWE401_Memory_Leak__strdup_wchar_t_52b_goodG2BSink(wchar_t * data) { CWE401_Memory_Leak__strdup_wchar_t_52c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100408/CWE401_Memory_Leak__strdup_wchar_t_52b.c
CWE401_Memory_Leak__strdup_wchar_t_52b_goodG2BSink
void CWE401_Memory_Leak__strdup_wchar_t_52b_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__strdup_wchar_t_52c_goodG2BSink(param_1); return; }
['gcc']
73
void CWE401_Memory_Leak__strdup_wchar_t_52b_goodB2GSink(wchar_t * data) { CWE401_Memory_Leak__strdup_wchar_t_52c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100408/CWE401_Memory_Leak__strdup_wchar_t_52b.c
CWE401_Memory_Leak__strdup_wchar_t_52b_goodB2GSink
void CWE401_Memory_Leak__strdup_wchar_t_52b_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__strdup_wchar_t_52c_goodB2GSink(param_1); return; }
['gcc']
74
void CWE401_Memory_Leak__strdup_wchar_t_52c_badSink(wchar_t * data) { /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ }
['/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100408/CWE401_Memory_Leak__strdup_wchar_t_52c.c
CWE401_Memory_Leak__strdup_wchar_t_52c_badSink
void CWE401_Memory_Leak__strdup_wchar_t_52c_badSink(void) { return; }
['gcc']
75
void CWE401_Memory_Leak__strdup_wchar_t_52c_goodG2BSink(wchar_t * data) { /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ }
['/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100408/CWE401_Memory_Leak__strdup_wchar_t_52c.c
CWE401_Memory_Leak__strdup_wchar_t_52c_goodG2BSink
void CWE401_Memory_Leak__strdup_wchar_t_52c_goodG2BSink(void) { return; }
['gcc']
76
void CWE401_Memory_Leak__strdup_wchar_t_52c_goodB2GSink(wchar_t * data) { /* FIX: Deallocate memory initialized in the source */ free(data); }
['/* FIX: Deallocate memory initialized in the source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100408/CWE401_Memory_Leak__strdup_wchar_t_52c.c
CWE401_Memory_Leak__strdup_wchar_t_52c_goodB2GSink
void CWE401_Memory_Leak__strdup_wchar_t_52c_goodB2GSink(undefined8 param_1) { func_0x00400a60(param_1); return; }
['gcc']
77
void CWE401_Memory_Leak__strdup_wchar_t_53_bad() { wchar_t * data; data = NULL; { wchar_t myString[] = L"myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = wcsdup(myString); /* Use data */ printWLine(data); } CWE401_Memory_Leak__strdup_wchar_t_53b_badSink(data); }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100409/CWE401_Memory_Leak__strdup_wchar_t_53a.c
CWE401_Memory_Leak__strdup_wchar_t_53_bad
void CWE401_Memory_Leak__strdup_wchar_t_53_bad(void) { undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined8 uStack_10; uStack_10 = 0; uStack_38 = 0x790000006d; uStack_30 = 0x7400000053; uStack_28 = 0x6900000072; uStack_20 = 0x670000006e; uStack_18 = 0; uStack_10 = func_0x00400a80(&uStack_38); printWLine(uStack_10); CWE401_Memory_Leak__strdup_wchar_t_53b_badSink(uStack_10); return; }
['gcc']
78
void CWE401_Memory_Leak__strdup_wchar_t_53_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100409/CWE401_Memory_Leak__strdup_wchar_t_53a.c
CWE401_Memory_Leak__strdup_wchar_t_53_good
void CWE401_Memory_Leak__strdup_wchar_t_53_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
79
void CWE401_Memory_Leak__strdup_wchar_t_53b_badSink(wchar_t * data) { CWE401_Memory_Leak__strdup_wchar_t_53c_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100409/CWE401_Memory_Leak__strdup_wchar_t_53b.c
CWE401_Memory_Leak__strdup_wchar_t_53b_badSink
void CWE401_Memory_Leak__strdup_wchar_t_53b_badSink(undefined8 param_1) { CWE401_Memory_Leak__strdup_wchar_t_53c_badSink(param_1); return; }
['gcc']
80
void CWE401_Memory_Leak__strdup_wchar_t_53b_goodG2BSink(wchar_t * data) { CWE401_Memory_Leak__strdup_wchar_t_53c_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100409/CWE401_Memory_Leak__strdup_wchar_t_53b.c
CWE401_Memory_Leak__strdup_wchar_t_53b_goodG2BSink
void CWE401_Memory_Leak__strdup_wchar_t_53b_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__strdup_wchar_t_53c_goodG2BSink(param_1); return; }
['gcc']
81
void CWE401_Memory_Leak__strdup_wchar_t_53b_goodB2GSink(wchar_t * data) { CWE401_Memory_Leak__strdup_wchar_t_53c_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100409/CWE401_Memory_Leak__strdup_wchar_t_53b.c
CWE401_Memory_Leak__strdup_wchar_t_53b_goodB2GSink
void CWE401_Memory_Leak__strdup_wchar_t_53b_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__strdup_wchar_t_53c_goodB2GSink(param_1); return; }
['gcc']
82
void CWE401_Memory_Leak__strdup_wchar_t_53c_badSink(wchar_t * data) { CWE401_Memory_Leak__strdup_wchar_t_53d_badSink(data); }
[]
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100409/CWE401_Memory_Leak__strdup_wchar_t_53c.c
CWE401_Memory_Leak__strdup_wchar_t_53c_badSink
void CWE401_Memory_Leak__strdup_wchar_t_53c_badSink(undefined8 param_1) { CWE401_Memory_Leak__strdup_wchar_t_53d_badSink(param_1); return; }
['gcc']
83
void CWE401_Memory_Leak__strdup_wchar_t_53c_goodG2BSink(wchar_t * data) { CWE401_Memory_Leak__strdup_wchar_t_53d_goodG2BSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100409/CWE401_Memory_Leak__strdup_wchar_t_53c.c
CWE401_Memory_Leak__strdup_wchar_t_53c_goodG2BSink
void CWE401_Memory_Leak__strdup_wchar_t_53c_goodG2BSink(undefined8 param_1) { CWE401_Memory_Leak__strdup_wchar_t_53d_goodG2BSink(param_1); return; }
['gcc']
84
void CWE401_Memory_Leak__strdup_wchar_t_53c_goodB2GSink(wchar_t * data) { CWE401_Memory_Leak__strdup_wchar_t_53d_goodB2GSink(data); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100409/CWE401_Memory_Leak__strdup_wchar_t_53c.c
CWE401_Memory_Leak__strdup_wchar_t_53c_goodB2GSink
void CWE401_Memory_Leak__strdup_wchar_t_53c_goodB2GSink(undefined8 param_1) { CWE401_Memory_Leak__strdup_wchar_t_53d_goodB2GSink(param_1); return; }
['gcc']
85
void CWE401_Memory_Leak__strdup_wchar_t_53d_badSink(wchar_t * data) { /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ }
['/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100409/CWE401_Memory_Leak__strdup_wchar_t_53d.c
CWE401_Memory_Leak__strdup_wchar_t_53d_badSink
void CWE401_Memory_Leak__strdup_wchar_t_53d_badSink(void) { return; }
['gcc']
86
void CWE401_Memory_Leak__strdup_wchar_t_53d_goodG2BSink(wchar_t * data) { /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ }
['/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100409/CWE401_Memory_Leak__strdup_wchar_t_53d.c
CWE401_Memory_Leak__strdup_wchar_t_53d_goodG2BSink
void CWE401_Memory_Leak__strdup_wchar_t_53d_goodG2BSink(void) { return; }
['gcc']
87
void CWE401_Memory_Leak__strdup_wchar_t_53d_goodB2GSink(wchar_t * data) { /* FIX: Deallocate memory initialized in the source */ free(data); }
['/* FIX: Deallocate memory initialized in the source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100409/CWE401_Memory_Leak__strdup_wchar_t_53d.c
CWE401_Memory_Leak__strdup_wchar_t_53d_goodB2GSink
void CWE401_Memory_Leak__strdup_wchar_t_53d_goodB2GSink(undefined8 param_1) { func_0x00400a60(param_1); return; }
['gcc']
88
void CWE401_Memory_Leak__strdup_wchar_t_64_bad() { wchar_t * data; data = NULL; { wchar_t myString[] = L"myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = wcsdup(myString); /* Use data */ printWLine(data); } CWE401_Memory_Leak__strdup_wchar_t_64b_badSink(&data); }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100414/CWE401_Memory_Leak__strdup_wchar_t_64a.c
CWE401_Memory_Leak__strdup_wchar_t_64_bad
void CWE401_Memory_Leak__strdup_wchar_t_64_bad(void) { undefined8 uStack_38; undefined8 uStack_30; undefined8 uStack_28; undefined8 uStack_20; undefined4 uStack_18; undefined8 uStack_10; uStack_10 = 0; uStack_38 = 0x790000006d; uStack_30 = 0x7400000053; uStack_28 = 0x6900000072; uStack_20 = 0x670000006e; uStack_18 = 0; uStack_10 = func_0x00400a80(&uStack_38); printWLine(uStack_10); CWE401_Memory_Leak__strdup_wchar_t_64b_badSink(&uStack_10); return; }
['gcc']
89
void CWE401_Memory_Leak__strdup_wchar_t_64_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100414/CWE401_Memory_Leak__strdup_wchar_t_64a.c
CWE401_Memory_Leak__strdup_wchar_t_64_good
void CWE401_Memory_Leak__strdup_wchar_t_64_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
90
void CWE401_Memory_Leak__strdup_wchar_t_64b_badSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ wchar_t * * dataPtr = (wchar_t * *)dataVoidPtr; /* dereference dataPtr into data */ wchar_t * data = (*dataPtr); /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100414/CWE401_Memory_Leak__strdup_wchar_t_64b.c
CWE401_Memory_Leak__strdup_wchar_t_64b_badSink
void CWE401_Memory_Leak__strdup_wchar_t_64b_badSink(void) { return; }
['gcc']
91
void CWE401_Memory_Leak__strdup_wchar_t_64b_goodG2BSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ wchar_t * * dataPtr = (wchar_t * *)dataVoidPtr; /* dereference dataPtr into data */ wchar_t * data = (*dataPtr); /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100414/CWE401_Memory_Leak__strdup_wchar_t_64b.c
CWE401_Memory_Leak__strdup_wchar_t_64b_goodG2BSink
void CWE401_Memory_Leak__strdup_wchar_t_64b_goodG2BSink(void) { return; }
['gcc']
92
void CWE401_Memory_Leak__strdup_wchar_t_64b_goodB2GSink(void * dataVoidPtr) { /* cast void pointer to a pointer of the appropriate type */ wchar_t * * dataPtr = (wchar_t * *)dataVoidPtr; /* dereference dataPtr into data */ wchar_t * data = (*dataPtr); /* FIX: Deallocate memory initialized in the source */ free(data); }
['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* FIX: Deallocate memory initialized in the source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100414/CWE401_Memory_Leak__strdup_wchar_t_64b.c
CWE401_Memory_Leak__strdup_wchar_t_64b_goodB2GSink
void CWE401_Memory_Leak__strdup_wchar_t_64b_goodB2GSink(undefined8 *param_1) { func_0x00400a60(*param_1); return; }
['gcc']
93
void CWE401_Memory_Leak__strdup_wchar_t_66_bad() { wchar_t * data; wchar_t * dataArray[5]; data = NULL; { wchar_t myString[] = L"myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = wcsdup(myString); /* Use data */ printWLine(data); } /* put data in array */ dataArray[2] = data; CWE401_Memory_Leak__strdup_wchar_t_66b_badSink(dataArray); }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */', '/* put data in array */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100416/CWE401_Memory_Leak__strdup_wchar_t_66a.c
CWE401_Memory_Leak__strdup_wchar_t_66_bad
void CWE401_Memory_Leak__strdup_wchar_t_66_bad(void) { undefined8 uStack_68; undefined8 uStack_60; undefined8 uStack_58; undefined8 uStack_50; undefined4 uStack_48; undefined auStack_38 [16]; undefined8 uStack_28; undefined8 uStack_10; uStack_10 = 0; uStack_68 = 0x790000006d; uStack_60 = 0x7400000053; uStack_58 = 0x6900000072; uStack_50 = 0x670000006e; uStack_48 = 0; uStack_10 = func_0x00400a80(&uStack_68); printWLine(uStack_10); uStack_28 = uStack_10; CWE401_Memory_Leak__strdup_wchar_t_66b_badSink(auStack_38); return; }
['gcc']
94
void CWE401_Memory_Leak__strdup_wchar_t_66_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100416/CWE401_Memory_Leak__strdup_wchar_t_66a.c
CWE401_Memory_Leak__strdup_wchar_t_66_good
void CWE401_Memory_Leak__strdup_wchar_t_66_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
95
void CWE401_Memory_Leak__strdup_wchar_t_66b_badSink(wchar_t * dataArray[]) { /* copy data out of dataArray */ wchar_t * data = dataArray[2]; /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ }
['/* copy data out of dataArray */', '/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100416/CWE401_Memory_Leak__strdup_wchar_t_66b.c
CWE401_Memory_Leak__strdup_wchar_t_66b_badSink
void CWE401_Memory_Leak__strdup_wchar_t_66b_badSink(void) { return; }
['gcc']
96
void CWE401_Memory_Leak__strdup_wchar_t_66b_goodG2BSink(wchar_t * dataArray[]) { wchar_t * data = dataArray[2]; /* POTENTIAL FLAW: No deallocation of memory */ /* no deallocation */ ; /* empty statement needed for some flow variants */ }
['/* POTENTIAL FLAW: No deallocation of memory */', '/* 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/100416/CWE401_Memory_Leak__strdup_wchar_t_66b.c
CWE401_Memory_Leak__strdup_wchar_t_66b_goodG2BSink
void CWE401_Memory_Leak__strdup_wchar_t_66b_goodG2BSink(void) { return; }
['gcc']
97
void CWE401_Memory_Leak__strdup_wchar_t_66b_goodB2GSink(wchar_t * dataArray[]) { wchar_t * data = dataArray[2]; /* FIX: Deallocate memory initialized in the source */ free(data); }
['/* FIX: Deallocate memory initialized in the source */']
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100416/CWE401_Memory_Leak__strdup_wchar_t_66b.c
CWE401_Memory_Leak__strdup_wchar_t_66b_goodB2GSink
void CWE401_Memory_Leak__strdup_wchar_t_66b_goodB2GSink(long param_1) { func_0x00400a60(*(undefined8 *)(param_1 + 0x10)); return; }
['gcc']
98
void CWE401_Memory_Leak__strdup_wchar_t_67_bad() { wchar_t * data; CWE401_Memory_Leak__strdup_wchar_t_67_structType myStruct; data = NULL; { wchar_t myString[] = L"myString"; /* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */ data = wcsdup(myString); /* Use data */ printWLine(data); } myStruct.structFirst = data; CWE401_Memory_Leak__strdup_wchar_t_67b_badSink(myStruct); }
['/* POTENTIAL FLAW: Allocate memory from the heap using a function that requires free() for deallocation */', '/* Use data */']
['CWE401']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100417/CWE401_Memory_Leak__strdup_wchar_t_67a.c
CWE401_Memory_Leak__strdup_wchar_t_67_bad
void CWE401_Memory_Leak__strdup_wchar_t_67_bad(void) { undefined8 uStack_48; undefined8 uStack_40; undefined8 uStack_38; undefined8 uStack_30; undefined4 uStack_28; undefined8 uStack_18; undefined8 uStack_10; uStack_10 = 0; uStack_48 = 0x790000006d; uStack_40 = 0x7400000053; uStack_38 = 0x6900000072; uStack_30 = 0x670000006e; uStack_28 = 0; uStack_10 = func_0x00400a80(&uStack_48); printWLine(uStack_10); uStack_18 = uStack_10; CWE401_Memory_Leak__strdup_wchar_t_67b_badSink(uStack_10); return; }
['gcc']
99
void CWE401_Memory_Leak__strdup_wchar_t_67_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/100417/CWE401_Memory_Leak__strdup_wchar_t_67a.c
CWE401_Memory_Leak__strdup_wchar_t_67_good
void CWE401_Memory_Leak__strdup_wchar_t_67_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
End of preview. Expand in Data Studio

arxiv.org/abs/2411.04981

Downloads last month
-

Paper for dmanuel99/decompiled-mvd