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 |
|---|---|---|---|---|---|---|---|---|
16,100 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_67b_goodG2BSink(CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_67_structType myStruct)
{
char * data = myStruct.structFirst;
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
memmove(data, source, (strlen(source) + 1) * sizeof(char));
printLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63185/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_67b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_67b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_memmove_67b_goodG2BSink
(undefined8 param_1)
{
long lVar1;
undefined8 uStack_1b;
undefined2 uStack_13;
undefined uStack_11;
undefined8 uStack_10;
uStack_1b = 0x4141414141414141;
uStack_13 = 0x4141;
uStack_11 = 0;
uStack_10 = param_1;
lVar1 = func_0x00400a40(&uStack_1b);
func_0x00400ad0(uStack_10,&uStack_1b,lVar1 + 1);
printLine(uStack_10);
return;
}
| ['gcc'] |
16,101 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_01_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63192/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_01.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_01_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_01_bad(void)
{
long lVar1;
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_50;
puStack_18 = auStack_70;
auStack_50[0] = 0;
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
puStack_10 = puStack_20;
lVar1 = func_0x00400a50(&uStack_2b,0x10,2);
func_0x00400a20(puStack_20,&uStack_2b,lVar1 + 1);
printLine(puStack_20);
return;
}
| ['gcc'] |
16,102 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_01_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63192/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_01.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_01_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_01_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,103 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_02_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
if(1)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63193/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_02.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_02_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_02_bad(void)
{
long lVar1;
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_50;
puStack_18 = auStack_70;
auStack_50[0] = 0;
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
puStack_10 = puStack_20;
lVar1 = func_0x00400a50(&uStack_2b,0x10,2);
func_0x00400a20(puStack_20,&uStack_2b,lVar1 + 1);
printLine(puStack_20);
return;
}
| ['gcc'] |
16,104 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_02_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63193/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_02.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_02_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_02_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
16,105 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_03_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
if(5==5)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63194/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_03.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_03_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_03_bad(void)
{
long lVar1;
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_50;
puStack_18 = auStack_70;
auStack_50[0] = 0;
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
puStack_10 = puStack_20;
lVar1 = func_0x00400a50(&uStack_2b,0x10,2);
func_0x00400a20(puStack_20,&uStack_2b,lVar1 + 1);
printLine(puStack_20);
return;
}
| ['gcc'] |
16,106 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_03_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63194/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_03.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_03_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_03_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
16,107 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_04_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
if(STATIC_CONST_TRUE)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63195/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_04.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_04_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_04_bad(void)
{
long lVar1;
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_18 = auStack_50;
puStack_20 = auStack_70;
auStack_50[0] = 0;
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
puStack_10 = puStack_18;
lVar1 = func_0x00400a50(&uStack_2b,0x10,2);
func_0x00400a20(puStack_10,&uStack_2b,lVar1 + 1);
printLine(puStack_10);
return;
}
| ['gcc'] |
16,108 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_04_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63195/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_04.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_04_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_04_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
16,109 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_05_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
if(staticTrue)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63196/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_05.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_05_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_05_bad(void)
{
long lVar1;
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_18 = auStack_50;
puStack_20 = auStack_70;
if (staticTrue != 0) {
auStack_50[0] = 0;
puStack_10 = puStack_18;
}
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
lVar1 = func_0x00400a50(&uStack_2b,0x10,2);
func_0x00400a20(puStack_10,&uStack_2b,lVar1 + 1);
printLine(puStack_10);
return;
}
| ['gcc'] |
16,110 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_05_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63196/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_05.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_05_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_05_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
16,111 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_06_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
if(STATIC_CONST_FIVE==5)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63197/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_06.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_06_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_06_bad(void)
{
long lVar1;
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_18 = auStack_50;
puStack_20 = auStack_70;
auStack_50[0] = 0;
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
puStack_10 = puStack_18;
lVar1 = func_0x00400a50(&uStack_2b,0x10,2);
func_0x00400a20(puStack_10,&uStack_2b,lVar1 + 1);
printLine(puStack_10);
return;
}
| ['gcc'] |
16,112 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_06_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63197/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_06.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_06_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_06_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
16,113 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_07_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
if(staticFive==5)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63198/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_07.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_07_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_07_bad(void)
{
long lVar1;
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_18 = auStack_50;
puStack_20 = auStack_70;
if (staticFive == 5) {
auStack_50[0] = 0;
puStack_10 = puStack_18;
}
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
lVar1 = func_0x00400a50(&uStack_2b,0x10,2);
func_0x00400a20(puStack_10,&uStack_2b,lVar1 + 1);
printLine(puStack_10);
return;
}
| ['gcc'] |
16,114 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_07_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63198/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_07.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_07_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_07_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
16,115 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_08_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
if(staticReturnsTrue())
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63199/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_08.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_08_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_08_bad(undefined8 param_1)
{
int iVar1;
long lVar2;
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_18 = auStack_50;
puStack_20 = auStack_70;
iVar1 = staticReturnsTrue(param_1,0x10,2);
if (iVar1 != 0) {
puStack_10 = puStack_18;
*puStack_18 = 0;
}
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
lVar2 = func_0x00400a50(&uStack_2b);
func_0x00400a20(puStack_10,&uStack_2b,lVar2 + 1);
printLine(puStack_10);
return;
}
| ['gcc'] |
16,116 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_08_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63199/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_08.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_08_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_08_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
16,117 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_09_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
if(GLOBAL_CONST_TRUE)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63200/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_09.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_09_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_09_bad(void)
{
long lVar1;
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_18 = auStack_50;
puStack_20 = auStack_70;
if (GLOBAL_CONST_TRUE != 0) {
auStack_50[0] = 0;
puStack_10 = puStack_18;
}
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
lVar1 = func_0x00400a50(&uStack_2b,0x10,2);
func_0x00400a20(puStack_10,&uStack_2b,lVar1 + 1);
printLine(puStack_10);
return;
}
| ['gcc'] |
16,118 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_09_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63200/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_09.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_09_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_09_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
16,119 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_10_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
if(globalTrue)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63201/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_10.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_10_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_10_bad(void)
{
long lVar1;
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_18 = auStack_50;
puStack_20 = auStack_70;
if (globalTrue != 0) {
auStack_50[0] = 0;
puStack_10 = puStack_18;
}
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
lVar1 = func_0x00400a50(&uStack_2b,0x10,2);
func_0x00400a20(puStack_10,&uStack_2b,lVar1 + 1);
printLine(puStack_10);
return;
}
| ['gcc'] |
16,120 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_10_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63201/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_10.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_10_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_10_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
16,121 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_11_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
if(globalReturnsTrue())
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63202/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_11.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_11_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_11_bad(undefined8 param_1)
{
int iVar1;
long lVar2;
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_18 = auStack_50;
puStack_20 = auStack_70;
iVar1 = globalReturnsTrue(param_1,0x10,2);
if (iVar1 != 0) {
puStack_10 = puStack_18;
*puStack_18 = 0;
}
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
lVar2 = func_0x00400a50(&uStack_2b);
func_0x00400a20(puStack_10,&uStack_2b,lVar2 + 1);
printLine(puStack_10);
return;
}
| ['gcc'] |
16,122 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_11_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63202/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_11.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_11_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_11_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
16,123 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_12_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
if(globalReturnsTrueOrFalse())
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
else
{
/* FIX: Set a pointer to a buffer that leaves room for a NULL terminator when performing
* string copies in the sinks */
data = dataGoodBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* FIX: Set a pointer to a buffer that leaves room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63203/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_12.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_12_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_12_bad(undefined8 param_1)
{
int iVar1;
long lVar2;
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_18 = auStack_50;
puStack_20 = auStack_70;
iVar1 = globalReturnsTrueOrFalse(param_1,0x10,2);
if (iVar1 == 0) {
puStack_10 = puStack_20;
*puStack_20 = 0;
}
else {
puStack_10 = puStack_18;
*puStack_18 = 0;
}
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
lVar2 = func_0x00400a50(&uStack_2b);
func_0x00400a20(puStack_10,&uStack_2b,lVar2 + 1);
printLine(puStack_10);
return;
}
| ['gcc'] |
16,124 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_12_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63203/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_12.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_12_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_12_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,125 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_13_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
if(GLOBAL_CONST_FIVE==5)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63204/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_13.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_13_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_13_bad(void)
{
long lVar1;
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_18 = auStack_50;
puStack_20 = auStack_70;
if (GLOBAL_CONST_FIVE == 5) {
auStack_50[0] = 0;
puStack_10 = puStack_18;
}
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
lVar1 = func_0x00400a50(&uStack_2b,0x10,2);
func_0x00400a20(puStack_10,&uStack_2b,lVar1 + 1);
printLine(puStack_10);
return;
}
| ['gcc'] |
16,126 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_13_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63204/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_13.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_13_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_13_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
16,127 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_14_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
if(globalFive==5)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63205/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_14.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_14_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_14_bad(void)
{
long lVar1;
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_18 = auStack_50;
puStack_20 = auStack_70;
if (globalFive == 5) {
auStack_50[0] = 0;
puStack_10 = puStack_18;
}
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
lVar1 = func_0x00400a50(&uStack_2b,0x10,2);
func_0x00400a20(puStack_10,&uStack_2b,lVar1 + 1);
printLine(puStack_10);
return;
}
| ['gcc'] |
16,128 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_14_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63205/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_14.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_14_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_14_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
16,129 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_15_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
switch(6)
{
case 6:
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
break;
default:
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
break;
}
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63206/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_15.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_15_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_15_bad(void)
{
long lVar1;
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_50;
puStack_18 = auStack_70;
auStack_50[0] = 0;
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
puStack_10 = puStack_20;
lVar1 = func_0x00400a50(&uStack_2b,0x10,2);
func_0x00400a20(puStack_20,&uStack_2b,lVar1 + 1);
printLine(puStack_20);
return;
}
| ['gcc'] |
16,130 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_15_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63206/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_15.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_15_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_15_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
16,131 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_16_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
while(1)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
break;
}
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63207/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_16.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_16_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_16_bad(void)
{
long lVar1;
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_50;
puStack_18 = auStack_70;
auStack_50[0] = 0;
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
puStack_10 = puStack_20;
lVar1 = func_0x00400a50(&uStack_2b,0x10,2);
func_0x00400a20(puStack_20,&uStack_2b,lVar1 + 1);
printLine(puStack_20);
return;
}
| ['gcc'] |
16,132 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_16_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63207/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_16.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_16_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_16_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,133 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_17_bad()
{
int i;
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
for(i = 0; i < 1; i++)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63208/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_17.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_17_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_17_bad(void)
{
long lVar1;
undefined auStack_70 [32];
undefined auStack_50 [29];
undefined8 uStack_33;
undefined2 uStack_2b;
undefined uStack_29;
undefined *puStack_28;
undefined *puStack_20;
undefined *puStack_18;
int iStack_c;
puStack_20 = auStack_50;
puStack_28 = auStack_70;
for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) {
puStack_18 = puStack_20;
*puStack_20 = 0;
}
uStack_33 = 0x4141414141414141;
uStack_2b = 0x4141;
uStack_29 = 0;
lVar1 = func_0x00400a50(&uStack_33,0x10,2);
func_0x00400a20(puStack_18,&uStack_33,lVar1 + 1);
printLine(puStack_18);
return;
}
| ['gcc'] |
16,134 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_17_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63208/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_17.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_17_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_17_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,135 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_18_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
goto source;
source:
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63209/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_18.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_18_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_18_bad(void)
{
long lVar1;
undefined auStack_70 [32];
undefined auStack_50 [37];
undefined8 uStack_2b;
undefined2 uStack_23;
undefined uStack_21;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_50;
puStack_18 = auStack_70;
auStack_50[0] = 0;
uStack_2b = 0x4141414141414141;
uStack_23 = 0x4141;
uStack_21 = 0;
puStack_10 = puStack_20;
lVar1 = func_0x00400a50(&uStack_2b,0x10,2);
func_0x00400a20(puStack_20,&uStack_2b,lVar1 + 1);
printLine(puStack_20);
return;
}
| ['gcc'] |
16,136 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_18_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63209/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_18.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_18_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_18_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,137 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_31_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
{
char * dataCopy = data;
char * data = dataCopy;
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63210/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_31.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_31_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_31_bad(void)
{
long lVar1;
undefined auStack_80 [32];
undefined auStack_60 [37];
undefined8 uStack_3b;
undefined2 uStack_33;
undefined uStack_31;
undefined *puStack_30;
undefined *puStack_28;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_30 = auStack_60;
puStack_18 = auStack_80;
auStack_60[0] = 0;
uStack_3b = 0x4141414141414141;
uStack_33 = 0x4141;
uStack_31 = 0;
puStack_28 = puStack_30;
puStack_20 = puStack_30;
puStack_10 = puStack_30;
lVar1 = func_0x00400a50(&uStack_3b,0x10,2);
func_0x00400a20(puStack_30,&uStack_3b,lVar1 + 1);
printLine(puStack_30);
return;
}
| ['gcc'] |
16,138 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_31_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63210/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_31.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_31_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_31_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,139 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_32_bad()
{
char * data;
char * *dataPtr1 = &data;
char * *dataPtr2 = &data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
{
char * data = *dataPtr1;
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
*dataPtr1 = data;
}
{
char * data = *dataPtr2;
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63211/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_32.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_32_bad |
/* WARNING: Heritage AFTER dead removal. Example location: s0xffffffffffffffc0 : 0x00400c7b */
/* WARNING: Restarted to delay deadcode elimination for space: stack */
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_32_bad(void)
{
long lVar1;
undefined auStack_90 [32];
undefined auStack_70 [37];
undefined8 uStack_4b;
undefined2 uStack_43;
undefined uStack_41;
undefined8 uStack_40;
undefined8 uStack_38;
undefined *puStack_30;
undefined *puStack_28;
undefined *puStack_20;
undefined8 *puStack_18;
undefined8 *puStack_10;
puStack_10 = &uStack_40;
puStack_18 = &uStack_40;
puStack_30 = auStack_70;
puStack_28 = auStack_90;
auStack_70[0] = 0;
uStack_38 = uStack_40;
uStack_4b = 0x4141414141414141;
uStack_43 = 0x4141;
uStack_41 = 0;
puStack_20 = puStack_30;
lVar1 = func_0x00400a50(&uStack_4b);
func_0x00400a20(uStack_38,&uStack_4b,lVar1 + 1);
printLine(uStack_38);
return;
}
| ['gcc'] |
16,140 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_32_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63211/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_32.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_32_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_32_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,141 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_34_bad()
{
char * data;
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_34_unionType myUnion;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
myUnion.unionFirst = data;
{
char * data = myUnion.unionSecond;
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63213/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_34.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_34_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_34_bad(void)
{
long lVar1;
undefined auStack_80 [32];
undefined auStack_60 [37];
undefined8 uStack_3b;
undefined2 uStack_33;
undefined uStack_31;
undefined *puStack_30;
undefined *puStack_28;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_30 = auStack_60;
puStack_18 = auStack_80;
auStack_60[0] = 0;
uStack_3b = 0x4141414141414141;
uStack_33 = 0x4141;
uStack_31 = 0;
puStack_28 = puStack_30;
puStack_20 = puStack_30;
puStack_10 = puStack_30;
lVar1 = func_0x00400a50(&uStack_3b,0x10,2);
func_0x00400a20(puStack_28,&uStack_3b,lVar1 + 1);
printLine(puStack_28);
return;
}
| ['gcc'] |
16,142 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_34_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63213/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_34.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_34_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_34_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,143 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_41_badSink(char * data)
{
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63214/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_41_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_41_badSink(undefined8 param_1)
{
long lVar1;
undefined8 uStack_13;
undefined2 uStack_b;
undefined uStack_9;
uStack_13 = 0x4141414141414141;
uStack_b = 0x4141;
uStack_9 = 0;
lVar1 = func_0x00400a50(&uStack_13);
func_0x00400a20(param_1,&uStack_13,lVar1 + 1);
printLine(param_1);
return;
}
| ['gcc'] |
16,144 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_41_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_41_badSink(data);
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63214/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_41_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_41_bad(void)
{
undefined auStack_60 [32];
undefined auStack_40 [32];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_40;
puStack_18 = auStack_60;
auStack_40[0] = 0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_41_badSink(puStack_20,0x10,2);
return;
}
| ['gcc'] |
16,145 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_41_goodG2BSink(char * data)
{
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63214/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_41_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_41_goodG2BSink(undefined8 param_1)
{
long lVar1;
undefined8 uStack_13;
undefined2 uStack_b;
undefined uStack_9;
uStack_13 = 0x4141414141414141;
uStack_b = 0x4141;
uStack_9 = 0;
lVar1 = func_0x00400a50(&uStack_13);
func_0x00400a20(param_1,&uStack_13,lVar1 + 1);
printLine(param_1);
return;
}
| ['gcc'] |
16,146 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_41_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63214/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_41_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_41_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,147 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_51_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_51b_badSink(data);
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63217/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_51a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_51_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_51_bad(void)
{
undefined auStack_60 [32];
undefined auStack_40 [32];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_40;
puStack_18 = auStack_60;
auStack_40[0] = 0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_51b_badSink(puStack_20,0x10,2);
return;
}
| ['gcc'] |
16,148 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_51_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63217/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_51a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_51_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_51_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,149 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_51b_badSink(char * data)
{
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63217/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_51b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_51b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_51b_badSink(undefined8 param_1)
{
long lVar1;
undefined8 uStack_13;
undefined2 uStack_b;
undefined uStack_9;
uStack_13 = 0x4141414141414141;
uStack_b = 0x4141;
uStack_9 = 0;
lVar1 = func_0x00400a50(&uStack_13);
func_0x00400a20(param_1,&uStack_13,lVar1 + 1);
printLine(param_1);
return;
}
| ['gcc'] |
16,150 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_51b_goodG2BSink(char * data)
{
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63217/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_51b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_51b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_51b_goodG2BSink(undefined8 param_1)
{
long lVar1;
undefined8 uStack_13;
undefined2 uStack_b;
undefined uStack_9;
uStack_13 = 0x4141414141414141;
uStack_b = 0x4141;
uStack_9 = 0;
lVar1 = func_0x00400a50(&uStack_13);
func_0x00400a20(param_1,&uStack_13,lVar1 + 1);
printLine(param_1);
return;
}
| ['gcc'] |
16,151 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52b_badSink(data);
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63218/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52_bad(void)
{
undefined auStack_60 [32];
undefined auStack_40 [32];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_40;
puStack_18 = auStack_60;
auStack_40[0] = 0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52b_badSink(puStack_20,0x10,2);
return;
}
| ['gcc'] |
16,152 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63218/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,153 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52b_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52c_badSink(data);
} | [] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63218/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52b_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52c_badSink(param_1);
return;
}
| ['gcc'] |
16,154 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52b_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63218/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52b_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
16,155 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52c_badSink(char * data)
{
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63218/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52c.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52c_badSink(undefined8 param_1)
{
long lVar1;
undefined8 uStack_13;
undefined2 uStack_b;
undefined uStack_9;
uStack_13 = 0x4141414141414141;
uStack_b = 0x4141;
uStack_9 = 0;
lVar1 = func_0x00400a50(&uStack_13);
func_0x00400a20(param_1,&uStack_13,lVar1 + 1);
printLine(param_1);
return;
}
| ['gcc'] |
16,156 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52c_goodG2BSink(char * data)
{
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63218/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52c.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_52c_goodG2BSink(undefined8 param_1)
{
long lVar1;
undefined8 uStack_13;
undefined2 uStack_b;
undefined uStack_9;
uStack_13 = 0x4141414141414141;
uStack_b = 0x4141;
uStack_9 = 0;
lVar1 = func_0x00400a50(&uStack_13);
func_0x00400a20(param_1,&uStack_13,lVar1 + 1);
printLine(param_1);
return;
}
| ['gcc'] |
16,157 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53b_badSink(data);
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63219/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53_bad(void)
{
undefined auStack_60 [32];
undefined auStack_40 [32];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_40;
puStack_18 = auStack_60;
auStack_40[0] = 0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53b_badSink(puStack_20,0x10,2);
return;
}
| ['gcc'] |
16,158 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63219/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,159 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53b_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53c_badSink(data);
} | [] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63219/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53b_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53c_badSink(param_1);
return;
}
| ['gcc'] |
16,160 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53b_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63219/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53b_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
16,161 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53c_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53d_badSink(data);
} | [] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63219/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53c.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53c_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53d_badSink(param_1);
return;
}
| ['gcc'] |
16,162 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53c_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63219/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53c.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53c_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
16,163 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53d_badSink(char * data)
{
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63219/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53d.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53d_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53d_badSink(undefined8 param_1)
{
long lVar1;
undefined8 uStack_13;
undefined2 uStack_b;
undefined uStack_9;
uStack_13 = 0x4141414141414141;
uStack_b = 0x4141;
uStack_9 = 0;
lVar1 = func_0x00400a50(&uStack_13);
func_0x00400a20(param_1,&uStack_13,lVar1 + 1);
printLine(param_1);
return;
}
| ['gcc'] |
16,164 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53d_goodG2BSink(char * data)
{
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63219/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53d.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53d_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_53d_goodG2BSink(undefined8 param_1)
{
long lVar1;
undefined8 uStack_13;
undefined2 uStack_b;
undefined uStack_9;
uStack_13 = 0x4141414141414141;
uStack_b = 0x4141;
uStack_9 = 0;
lVar1 = func_0x00400a50(&uStack_13);
func_0x00400a20(param_1,&uStack_13,lVar1 + 1);
printLine(param_1);
return;
}
| ['gcc'] |
16,165 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54b_badSink(data);
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63220/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54_bad(void)
{
undefined auStack_60 [32];
undefined auStack_40 [32];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_40;
puStack_18 = auStack_60;
auStack_40[0] = 0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54b_badSink(puStack_20,0x10,2);
return;
}
| ['gcc'] |
16,166 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63220/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,167 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54b_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54c_badSink(data);
} | [] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63220/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54b_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54c_badSink(param_1);
return;
}
| ['gcc'] |
16,168 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54b_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63220/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54b_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
16,169 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54c_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54d_badSink(data);
} | [] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63220/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54c.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54c_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54d_badSink(param_1);
return;
}
| ['gcc'] |
16,170 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54c_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63220/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54c.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54c_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
16,171 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54d_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54e_badSink(data);
} | [] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63220/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54d.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54d_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54d_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54e_badSink(param_1);
return;
}
| ['gcc'] |
16,172 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54d_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54e_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63220/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54d.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54d_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54d_goodG2BSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54e_goodG2BSink(param_1);
return;
}
| ['gcc'] |
16,173 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54e_badSink(char * data)
{
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63220/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54e.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54e_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54e_badSink(undefined8 param_1)
{
long lVar1;
undefined8 uStack_13;
undefined2 uStack_b;
undefined uStack_9;
uStack_13 = 0x4141414141414141;
uStack_b = 0x4141;
uStack_9 = 0;
lVar1 = func_0x00400a50(&uStack_13);
func_0x00400a20(param_1,&uStack_13,lVar1 + 1);
printLine(param_1);
return;
}
| ['gcc'] |
16,174 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54e_goodG2BSink(char * data)
{
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63220/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54e.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54e_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_54e_goodG2BSink(undefined8 param_1)
{
long lVar1;
undefined8 uStack_13;
undefined2 uStack_b;
undefined uStack_9;
uStack_13 = 0x4141414141414141;
uStack_b = 0x4141;
uStack_9 = 0;
lVar1 = func_0x00400a50(&uStack_13);
func_0x00400a20(param_1,&uStack_13,lVar1 + 1);
printLine(param_1);
return;
}
| ['gcc'] |
16,175 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_63_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_63b_badSink(&data);
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63221/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_63a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_63_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_63_bad(void)
{
undefined auStack_60 [32];
undefined auStack_40 [32];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_40;
puStack_18 = auStack_60;
auStack_40[0] = 0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_63b_badSink(&puStack_20,0x10,2);
return;
}
| ['gcc'] |
16,176 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_63_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63221/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_63a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_63_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_63_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,177 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_63b_badSink(char * * dataPtr)
{
char * data = *dataPtr;
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63221/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_63b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_63b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_63b_badSink(undefined8 *param_1)
{
long lVar1;
undefined8 uStack_1b;
undefined2 uStack_13;
undefined uStack_11;
undefined8 uStack_10;
uStack_10 = *param_1;
uStack_1b = 0x4141414141414141;
uStack_13 = 0x4141;
uStack_11 = 0;
lVar1 = func_0x00400a50(&uStack_1b);
func_0x00400a20(uStack_10,&uStack_1b,lVar1 + 1);
printLine(uStack_10);
return;
}
| ['gcc'] |
16,178 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_63b_goodG2BSink(char * * dataPtr)
{
char * data = *dataPtr;
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63221/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_63b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_63b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_63b_goodG2BSink
(undefined8 *param_1)
{
long lVar1;
undefined8 uStack_1b;
undefined2 uStack_13;
undefined uStack_11;
undefined8 uStack_10;
uStack_10 = *param_1;
uStack_1b = 0x4141414141414141;
uStack_13 = 0x4141;
uStack_11 = 0;
lVar1 = func_0x00400a50(&uStack_1b);
func_0x00400a20(uStack_10,&uStack_1b,lVar1 + 1);
printLine(uStack_10);
return;
}
| ['gcc'] |
16,179 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_64_bad()
{
char * data;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_64b_badSink(&data);
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63222/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_64a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_64_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_64_bad(void)
{
undefined auStack_60 [32];
undefined auStack_40 [32];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_40;
puStack_18 = auStack_60;
auStack_40[0] = 0;
puStack_10 = puStack_20;
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_64b_badSink(&puStack_20,0x10,2);
return;
}
| ['gcc'] |
16,180 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_64_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63222/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_64a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_64_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_64_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,181 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_64b_badSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
char * * dataPtr = (char * *)dataVoidPtr;
/* dereference dataPtr into data */
char * data = (*dataPtr);
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63222/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_64b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_64b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_64b_badSink(undefined8 *param_1)
{
long lVar1;
undefined8 uStack_23;
undefined2 uStack_1b;
undefined uStack_19;
undefined8 uStack_18;
undefined8 *puStack_10;
uStack_18 = *param_1;
uStack_23 = 0x4141414141414141;
uStack_1b = 0x4141;
uStack_19 = 0;
puStack_10 = param_1;
lVar1 = func_0x00400a50(&uStack_23);
func_0x00400a20(uStack_18,&uStack_23,lVar1 + 1);
printLine(uStack_18);
return;
}
| ['gcc'] |
16,182 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_64b_goodG2BSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
char * * dataPtr = (char * *)dataVoidPtr;
/* dereference dataPtr into data */
char * data = (*dataPtr);
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63222/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_64b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_64b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_64b_goodG2BSink
(undefined8 *param_1)
{
long lVar1;
undefined8 uStack_23;
undefined2 uStack_1b;
undefined uStack_19;
undefined8 uStack_18;
undefined8 *puStack_10;
uStack_18 = *param_1;
uStack_23 = 0x4141414141414141;
uStack_1b = 0x4141;
uStack_19 = 0;
puStack_10 = param_1;
lVar1 = func_0x00400a50(&uStack_23);
func_0x00400a20(uStack_18,&uStack_23,lVar1 + 1);
printLine(uStack_18);
return;
}
| ['gcc'] |
16,183 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_66_bad()
{
char * data;
char * dataArray[5];
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
/* put data in array */
dataArray[2] = data;
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_66b_badSink(dataArray);
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* put data in array */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63224/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_66a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_66_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_66_bad(void)
{
undefined auStack_80 [32];
undefined auStack_60 [24];
undefined auStack_48 [16];
undefined *puStack_38;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_38 = auStack_60;
puStack_18 = auStack_80;
auStack_60[0] = 0;
puStack_20 = puStack_38;
puStack_10 = puStack_38;
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_66b_badSink(auStack_48,0x10,2);
return;
}
| ['gcc'] |
16,184 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_66_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63224/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_66a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_66_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_66_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,185 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_66b_badSink(char * dataArray[])
{
/* copy data out of dataArray */
char * data = dataArray[2];
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* copy data out of dataArray */', '/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63224/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_66b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_66b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_66b_badSink(long param_1)
{
long lVar1;
undefined8 uStack_1b;
undefined2 uStack_13;
undefined uStack_11;
undefined8 uStack_10;
uStack_10 = *(undefined8 *)(param_1 + 0x10);
uStack_1b = 0x4141414141414141;
uStack_13 = 0x4141;
uStack_11 = 0;
lVar1 = func_0x00400a50(&uStack_1b);
func_0x00400a20(uStack_10,&uStack_1b,lVar1 + 1);
printLine(uStack_10);
return;
}
| ['gcc'] |
16,186 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_66b_goodG2BSink(char * dataArray[])
{
char * data = dataArray[2];
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63224/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_66b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_66b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_66b_goodG2BSink(long param_1)
{
long lVar1;
undefined8 uStack_1b;
undefined2 uStack_13;
undefined uStack_11;
undefined8 uStack_10;
uStack_10 = *(undefined8 *)(param_1 + 0x10);
uStack_1b = 0x4141414141414141;
uStack_13 = 0x4141;
uStack_11 = 0;
lVar1 = func_0x00400a50(&uStack_1b);
func_0x00400a20(uStack_10,&uStack_1b,lVar1 + 1);
printLine(uStack_10);
return;
}
| ['gcc'] |
16,187 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_67_bad()
{
char * data;
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_67_structType myStruct;
char * dataBadBuffer = (char *)ALLOCA((10)*sizeof(char));
char * dataGoodBuffer = (char *)ALLOCA((10+1)*sizeof(char));
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
myStruct.structFirst = data;
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_67b_badSink(myStruct);
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63225/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_67a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_67_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_67_bad(void)
{
undefined auStack_60 [32];
undefined auStack_40 [24];
undefined *puStack_28;
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_28 = auStack_40;
puStack_18 = auStack_60;
auStack_40[0] = 0;
puStack_20 = puStack_28;
puStack_10 = puStack_28;
CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_67b_badSink(puStack_28,0x10,2);
return;
}
| ['gcc'] |
16,188 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_67_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63225/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_67a.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_67_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_67_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,189 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_67b_badSink(CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_67_structType myStruct)
{
char * data = myStruct.structFirst;
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63225/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_67b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_67b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_67b_badSink(undefined8 param_1)
{
long lVar1;
undefined8 uStack_1b;
undefined2 uStack_13;
undefined uStack_11;
undefined8 uStack_10;
uStack_1b = 0x4141414141414141;
uStack_13 = 0x4141;
uStack_11 = 0;
uStack_10 = param_1;
lVar1 = func_0x00400a50(&uStack_1b);
func_0x00400a20(uStack_10,&uStack_1b,lVar1 + 1);
printLine(uStack_10);
return;
}
| ['gcc'] |
16,190 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_67b_goodG2BSink(CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_67_structType myStruct)
{
char * data = myStruct.structFirst;
{
char source[10+1] = SRC_STRING;
/* Copy length + 1 to include NUL terminator from source */
/* POTENTIAL FLAW: data may not have enough space to hold source */
strncpy(data, source, strlen(source) + 1);
printLine(data);
}
} | ['/* Copy length + 1 to include NUL terminator from source */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63225/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_67b.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_67b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_alloca_ncpy_67b_goodG2BSink(undefined8 param_1)
{
long lVar1;
undefined8 uStack_1b;
undefined2 uStack_13;
undefined uStack_11;
undefined8 uStack_10;
uStack_1b = 0x4141414141414141;
uStack_13 = 0x4141;
uStack_11 = 0;
uStack_10 = param_1;
lVar1 = func_0x00400a50(&uStack_1b);
func_0x00400a20(uStack_10,&uStack_1b,lVar1 + 1);
printLine(uStack_10);
return;
}
| ['gcc'] |
16,191 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_01_bad()
{
char * data;
char dataBadBuffer[10];
char dataGoodBuffer[10+1];
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63232/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_01.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_01_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_01_bad(void)
{
undefined8 uStack_30;
undefined2 uStack_28;
undefined uStack_26;
undefined auStack_1a [10];
undefined *puStack_10;
puStack_10 = auStack_1a;
auStack_1a[0] = 0;
uStack_30 = 0x4141414141414141;
uStack_28 = 0x4141;
uStack_26 = 0;
func_0x004009e0(puStack_10,&uStack_30);
printLine(puStack_10);
return;
}
| ['gcc'] |
16,192 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_01_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63232/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_01.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_01_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_01_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
16,193 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_02_bad()
{
char * data;
char dataBadBuffer[10];
char dataGoodBuffer[10+1];
if(1)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63233/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_02.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_02_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_02_bad(void)
{
undefined8 uStack_30;
undefined2 uStack_28;
undefined uStack_26;
undefined auStack_1a [10];
undefined *puStack_10;
puStack_10 = auStack_1a;
auStack_1a[0] = 0;
uStack_30 = 0x4141414141414141;
uStack_28 = 0x4141;
uStack_26 = 0;
func_0x004009e0(puStack_10,&uStack_30);
printLine(puStack_10);
return;
}
| ['gcc'] |
16,194 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_02_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63233/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_02.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_02_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_02_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
16,195 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_03_bad()
{
char * data;
char dataBadBuffer[10];
char dataGoodBuffer[10+1];
if(5==5)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63234/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_03.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_03_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_03_bad(void)
{
undefined8 uStack_30;
undefined2 uStack_28;
undefined uStack_26;
undefined auStack_1a [10];
undefined *puStack_10;
puStack_10 = auStack_1a;
auStack_1a[0] = 0;
uStack_30 = 0x4141414141414141;
uStack_28 = 0x4141;
uStack_26 = 0;
func_0x004009e0(puStack_10,&uStack_30);
printLine(puStack_10);
return;
}
| ['gcc'] |
16,196 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_03_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63234/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_03.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_03_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_03_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
16,197 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_04_bad()
{
char * data;
char dataBadBuffer[10];
char dataGoodBuffer[10+1];
if(STATIC_CONST_TRUE)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63235/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_04.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_04_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_04_bad(void)
{
undefined8 uStack_30;
undefined2 uStack_28;
undefined uStack_26;
undefined auStack_1a [10];
undefined *puStack_10;
puStack_10 = auStack_1a;
auStack_1a[0] = 0;
uStack_30 = 0x4141414141414141;
uStack_28 = 0x4141;
uStack_26 = 0;
func_0x004009e0(puStack_10,&uStack_30);
printLine(puStack_10);
return;
}
| ['gcc'] |
16,198 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_04_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63235/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_04.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_04_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_04_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
16,199 | void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_05_bad()
{
char * data;
char dataBadBuffer[10];
char dataGoodBuffer[10+1];
if(staticTrue)
{
/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing
* string copies in the sinks */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[10+1] = SRC_STRING;
/* POTENTIAL FLAW: data may not have enough space to hold source */
strcpy(data, source);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing\r\n * string copies in the sinks */', '/* null terminate */', '/* POTENTIAL FLAW: data may not have enough space to hold source */'] | ['CWE121', 'CWE193'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/63236/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_05.c | CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_05_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_cpy_05_bad(void)
{
undefined8 uStack_30;
undefined2 uStack_28;
undefined uStack_26;
undefined auStack_1a [10];
undefined *puStack_10;
if (staticTrue != 0) {
puStack_10 = auStack_1a;
auStack_1a[0] = 0;
}
uStack_30 = 0x4141414141414141;
uStack_28 = 0x4141;
uStack_26 = 0;
func_0x004009e0(puStack_10,&uStack_30);
printLine(puStack_10);
return;
}
| ['gcc'] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.