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 |
|---|---|---|---|---|---|---|---|---|
18,100 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_16_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64207/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_16.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_16_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_16_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,101 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_17_bad()
{
int i;
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
for(i = 0; i < 1; i++)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */
strncat(data, source, 100);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64208/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_17.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_17_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_17_bad(void)
{
undefined auStack_138 [99];
undefined uStack_d5;
undefined auStack_58 [64];
undefined *puStack_18;
int iStack_c;
for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) {
puStack_18 = auStack_58;
auStack_58[0] = 0;
}
func_0x00400a50(auStack_138,0x43,99);
uStack_d5 = 0;
func_0x00400a60(puStack_18,auStack_138,100);
printLine(puStack_18);
return;
}
| ['gcc'] |
18,102 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_17_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64208/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_17.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_17_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_17_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,103 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_18_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
goto source;
source:
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */
strncat(data, source, 100);
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64209/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_18.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_18_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_18_bad(void)
{
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
func_0x00400a50(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400a60(puStack_10,auStack_128,100);
printLine(puStack_10);
return;
}
| ['gcc'] |
18,104 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_18_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64209/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_18.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_18_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_18_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,105 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_31_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
{
char * dataCopy = data;
char * data = dataCopy;
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */
strncat(data, source, 100);
printLine(data);
}
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64210/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_31.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_31_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_31_bad(void)
{
undefined auStack_138 [99];
undefined uStack_d5;
undefined auStack_58 [56];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_58;
auStack_58[0] = 0;
puStack_18 = puStack_20;
puStack_10 = puStack_20;
func_0x00400a50(auStack_138,0x43,99);
uStack_d5 = 0;
func_0x00400a60(puStack_20,auStack_138,100);
printLine(puStack_20);
return;
}
| ['gcc'] |
18,106 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_31_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64210/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_31.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_31_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_31_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,107 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_32_bad()
{
char * data;
char * *dataPtr1 = &data;
char * *dataPtr2 = &data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
{
char * data = *dataPtr1;
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
*dataPtr1 = data;
}
{
char * data = *dataPtr2;
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */
strncat(data, source, 100);
printLine(data);
}
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64211/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_32.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_32_bad |
/* WARNING: Heritage AFTER dead removal. Example location: s0xffffffffffffffd0 : 0x00400c16 */
/* WARNING: Restarted to delay deadcode elimination for space: stack */
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_32_bad(void)
{
undefined auStack_148 [99];
undefined uStack_e5;
undefined auStack_68 [56];
undefined8 uStack_30;
undefined8 uStack_28;
undefined *puStack_20;
undefined8 *puStack_18;
undefined8 *puStack_10;
puStack_10 = &uStack_30;
puStack_18 = &uStack_30;
puStack_20 = auStack_68;
auStack_68[0] = 0;
uStack_28 = uStack_30;
func_0x00400a50(auStack_148,0x43,99);
uStack_e5 = 0;
func_0x00400a60(uStack_28,auStack_148,100);
printLine(uStack_28);
return;
}
| ['gcc'] |
18,108 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_32_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64211/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_32.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_32_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_32_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,109 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_34_bad()
{
char * data;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_34_unionType myUnion;
char dataBadBuffer[50];
char dataGoodBuffer[100];
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
myUnion.unionFirst = data;
{
char * data = myUnion.unionSecond;
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */
strncat(data, source, 100);
printLine(data);
}
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64213/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_34.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_34_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_34_bad(void)
{
undefined auStack_138 [99];
undefined uStack_d5;
undefined auStack_58 [56];
undefined *puStack_20;
undefined *puStack_18;
undefined *puStack_10;
puStack_20 = auStack_58;
auStack_58[0] = 0;
puStack_18 = puStack_20;
puStack_10 = puStack_20;
func_0x00400a50(auStack_138,0x43,99);
uStack_d5 = 0;
func_0x00400a60(puStack_18,auStack_138,100);
printLine(puStack_18);
return;
}
| ['gcc'] |
18,110 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_34_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64213/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_34.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_34_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_34_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,111 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_41_badSink(char * data)
{
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */
strncat(data, source, 100);
printLine(data);
}
} | ["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64214/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_41_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_41_badSink(undefined8 param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
func_0x00400a50(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a60(param_1,auStack_78,100);
printLine(param_1);
return;
}
| ['gcc'] |
18,112 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_41_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_41_badSink(data);
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64214/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_41_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_41_bad(void)
{
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_41_badSink(puStack_10);
return;
}
| ['gcc'] |
18,113 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_41_goodG2BSink(char * data)
{
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */
strncat(data, source, 100);
printLine(data);
}
} | ["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64214/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_41_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_41_goodG2BSink(undefined8 param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
func_0x00400a50(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a60(param_1,auStack_78,100);
printLine(param_1);
return;
}
| ['gcc'] |
18,114 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_41_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64214/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_41.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_41_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_41_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,115 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_45_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_45_badData = data;
badSink();
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64216/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_45.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_45_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_45_bad(void)
{
undefined auStack_48 [56];
undefined *puStack_10;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_45_badData = auStack_48;
auStack_48[0] = 0;
puStack_10 = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_45_badData;
badSink();
return;
}
| ['gcc'] |
18,116 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_45_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64216/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_45.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_45_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_45_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,117 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_51_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_51b_badSink(data);
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64217/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_51a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_51_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_51_bad(void)
{
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_51b_badSink(puStack_10);
return;
}
| ['gcc'] |
18,118 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_51_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64217/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_51a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_51_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_51_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,119 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_51b_badSink(char * data)
{
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */
strncat(data, source, 100);
printLine(data);
}
} | ["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64217/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_51b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_51b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_51b_badSink(undefined8 param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
func_0x00400a50(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a60(param_1,auStack_78,100);
printLine(param_1);
return;
}
| ['gcc'] |
18,120 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_51b_goodG2BSink(char * data)
{
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */
strncat(data, source, 100);
printLine(data);
}
} | ["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64217/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_51b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_51b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_51b_goodG2BSink
(undefined8 param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
func_0x00400a50(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a60(param_1,auStack_78,100);
printLine(param_1);
return;
}
| ['gcc'] |
18,121 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52b_badSink(data);
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64218/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52_bad(void)
{
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52b_badSink(puStack_10);
return;
}
| ['gcc'] |
18,122 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64218/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,123 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52b_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52c_badSink(data);
} | [] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64218/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52b_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52c_badSink(param_1);
return;
}
| ['gcc'] |
18,124 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52b_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64218/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52b_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
18,125 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52c_badSink(char * data)
{
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */
strncat(data, source, 100);
printLine(data);
}
} | ["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64218/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52c.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52c_badSink(undefined8 param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
func_0x00400a50(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a60(param_1,auStack_78,100);
printLine(param_1);
return;
}
| ['gcc'] |
18,126 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52c_goodG2BSink(char * data)
{
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */
strncat(data, source, 100);
printLine(data);
}
} | ["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64218/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52c.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_52c_goodG2BSink
(undefined8 param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
func_0x00400a50(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a60(param_1,auStack_78,100);
printLine(param_1);
return;
}
| ['gcc'] |
18,127 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53b_badSink(data);
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64219/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53_bad(void)
{
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53b_badSink(puStack_10);
return;
}
| ['gcc'] |
18,128 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64219/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,129 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53b_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53c_badSink(data);
} | [] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64219/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53b_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53c_badSink(param_1);
return;
}
| ['gcc'] |
18,130 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53b_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64219/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53b_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
18,131 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53c_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53d_badSink(data);
} | [] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64219/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53c.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53c_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53d_badSink(param_1);
return;
}
| ['gcc'] |
18,132 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53c_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64219/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53c.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53c_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
18,133 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53d_badSink(char * data)
{
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */
strncat(data, source, 100);
printLine(data);
}
} | ["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64219/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53d.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53d_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53d_badSink(undefined8 param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
func_0x00400a50(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a60(param_1,auStack_78,100);
printLine(param_1);
return;
}
| ['gcc'] |
18,134 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53d_goodG2BSink(char * data)
{
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */
strncat(data, source, 100);
printLine(data);
}
} | ["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64219/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53d.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53d_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_53d_goodG2BSink
(undefined8 param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
func_0x00400a50(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a60(param_1,auStack_78,100);
printLine(param_1);
return;
}
| ['gcc'] |
18,135 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54b_badSink(data);
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64220/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54_bad(void)
{
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54b_badSink(puStack_10);
return;
}
| ['gcc'] |
18,136 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64220/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,137 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54b_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54c_badSink(data);
} | [] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64220/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54b_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54c_badSink(param_1);
return;
}
| ['gcc'] |
18,138 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54b_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64220/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54b_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
18,139 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54c_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54d_badSink(data);
} | [] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64220/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54c.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54c_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54c_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54d_badSink(param_1);
return;
}
| ['gcc'] |
18,140 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54c_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64220/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54c.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54c_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54c_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
18,141 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54d_badSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54e_badSink(data);
} | [] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64220/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54d.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54d_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54d_badSink(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54e_badSink(param_1);
return;
}
| ['gcc'] |
18,142 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54d_goodG2BSink(char * data)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54e_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64220/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54d.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54d_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54d_goodG2BSink
(undefined8 param_1)
{
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54e_goodG2BSink(param_1);
return;
}
| ['gcc'] |
18,143 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54e_badSink(char * data)
{
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */
strncat(data, source, 100);
printLine(data);
}
} | ["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64220/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54e.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54e_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54e_badSink(undefined8 param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
func_0x00400a50(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a60(param_1,auStack_78,100);
printLine(param_1);
return;
}
| ['gcc'] |
18,144 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54e_goodG2BSink(char * data)
{
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */
strncat(data, source, 100);
printLine(data);
}
} | ["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64220/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54e.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54e_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_54e_goodG2BSink
(undefined8 param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
func_0x00400a50(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a60(param_1,auStack_78,100);
printLine(param_1);
return;
}
| ['gcc'] |
18,145 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_63_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_63b_badSink(&data);
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64221/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_63a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_63_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_63_bad(void)
{
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_63b_badSink(&puStack_10);
return;
}
| ['gcc'] |
18,146 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_63_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64221/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_63a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_63_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_63_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,147 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_63b_badSink(char * * dataPtr)
{
char * data = *dataPtr;
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */
strncat(data, source, 100);
printLine(data);
}
} | ["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64221/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_63b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_63b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_63b_badSink(undefined8 *param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
undefined8 uStack_10;
uStack_10 = *param_1;
func_0x00400a50(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a60(uStack_10,auStack_78,100);
printLine(uStack_10);
return;
}
| ['gcc'] |
18,148 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_63b_goodG2BSink(char * * dataPtr)
{
char * data = *dataPtr;
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */
strncat(data, source, 100);
printLine(data);
}
} | ["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64221/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_63b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_63b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_63b_goodG2BSink
(undefined8 *param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
undefined8 uStack_10;
uStack_10 = *param_1;
func_0x00400a50(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a60(uStack_10,auStack_78,100);
printLine(uStack_10);
return;
}
| ['gcc'] |
18,149 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_64_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_64b_badSink(&data);
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64222/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_64a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_64_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_64_bad(void)
{
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_64b_badSink(&puStack_10);
return;
}
| ['gcc'] |
18,150 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_64_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64222/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_64a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_64_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_64_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,151 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_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[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */
strncat(data, source, 100);
printLine(data);
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64222/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_64b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_64b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_64b_badSink(undefined8 *param_1)
{
undefined auStack_88 [99];
undefined uStack_25;
undefined8 uStack_18;
undefined8 *puStack_10;
uStack_18 = *param_1;
puStack_10 = param_1;
func_0x00400a50(auStack_88,0x43,99);
uStack_25 = 0;
func_0x00400a60(uStack_18,auStack_88,100);
printLine(uStack_18);
return;
}
| ['gcc'] |
18,152 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_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[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */
strncat(data, source, 100);
printLine(data);
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64222/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_64b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_64b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_64b_goodG2BSink
(undefined8 *param_1)
{
undefined auStack_88 [99];
undefined uStack_25;
undefined8 uStack_18;
undefined8 *puStack_10;
uStack_18 = *param_1;
puStack_10 = param_1;
func_0x00400a50(auStack_88,0x43,99);
uStack_25 = 0;
func_0x00400a60(uStack_18,auStack_88,100);
printLine(uStack_18);
return;
}
| ['gcc'] |
18,153 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_66_bad()
{
char * data;
char * dataArray[5];
char dataBadBuffer[50];
char dataGoodBuffer[100];
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
/* put data in array */
dataArray[2] = data;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_66b_badSink(dataArray);
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', '/* put data in array */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64224/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_66a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_66_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_66_bad(void)
{
undefined auStack_78 [64];
undefined auStack_38 [16];
undefined *puStack_28;
undefined *puStack_10;
puStack_28 = auStack_78;
auStack_78[0] = 0;
puStack_10 = puStack_28;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_66b_badSink(auStack_38);
return;
}
| ['gcc'] |
18,154 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_66_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64224/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_66a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_66_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_66_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,155 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_66b_badSink(char * dataArray[])
{
/* copy data out of dataArray */
char * data = dataArray[2];
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */
strncat(data, source, 100);
printLine(data);
}
} | ['/* copy data out of dataArray */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64224/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_66b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_66b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_66b_badSink(long param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
undefined8 uStack_10;
uStack_10 = *(undefined8 *)(param_1 + 0x10);
func_0x00400a50(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a60(uStack_10,auStack_78,100);
printLine(uStack_10);
return;
}
| ['gcc'] |
18,156 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_66b_goodG2BSink(char * dataArray[])
{
char * data = dataArray[2];
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */
strncat(data, source, 100);
printLine(data);
}
} | ["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64224/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_66b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_66b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_66b_goodG2BSink(long param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
undefined8 uStack_10;
uStack_10 = *(undefined8 *)(param_1 + 0x10);
func_0x00400a50(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a60(uStack_10,auStack_78,100);
printLine(uStack_10);
return;
}
| ['gcc'] |
18,157 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_67_bad()
{
char * data;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_67_structType myStruct;
char dataBadBuffer[50];
char dataGoodBuffer[100];
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
myStruct.structFirst = data;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_67b_badSink(myStruct);
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64225/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_67a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_67_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_67_bad(void)
{
undefined auStack_58 [64];
undefined *puStack_18;
undefined *puStack_10;
puStack_18 = auStack_58;
auStack_58[0] = 0;
puStack_10 = puStack_18;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_67b_badSink(puStack_18);
return;
}
| ['gcc'] |
18,158 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_67_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64225/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_67a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_67_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_67_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,159 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_67b_badSink(CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_67_structType myStruct)
{
char * data = myStruct.structFirst;
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */
strncat(data, source, 100);
printLine(data);
}
} | ["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64225/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_67b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_67b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_67b_badSink(undefined8 param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
undefined8 uStack_10;
uStack_10 = param_1;
func_0x00400a50(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a60(uStack_10,auStack_78,100);
printLine(uStack_10);
return;
}
| ['gcc'] |
18,160 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_67b_goodG2BSink(CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_67_structType myStruct)
{
char * data = myStruct.structFirst;
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */
strncat(data, source, 100);
printLine(data);
}
} | ["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64225/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_67b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_67b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_67b_goodG2BSink
(undefined8 param_1)
{
undefined auStack_78 [99];
undefined uStack_15;
undefined8 uStack_10;
uStack_10 = param_1;
func_0x00400a50(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a60(uStack_10,auStack_78,100);
printLine(uStack_10);
return;
}
| ['gcc'] |
18,161 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_68_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_68_badData = data;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_68b_badSink();
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64226/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_68a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_68_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_68_bad(void)
{
undefined auStack_48 [56];
undefined *puStack_10;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_68_badData = auStack_48;
auStack_48[0] = 0;
puStack_10 = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_68_badData;
CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_68b_badSink();
return;
}
| ['gcc'] |
18,162 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_68_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64226/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_68a.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_68_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_68_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,163 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_68b_badSink()
{
char * data = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_68_badData;
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */
strncat(data, source, 100);
printLine(data);
}
} | ["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64226/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_68b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_68b_badSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_68b_badSink(void)
{
undefined auStack_78 [99];
undefined uStack_15;
undefined8 uStack_10;
uStack_10 = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_68_badData;
func_0x00400a50(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a60(uStack_10,auStack_78,100);
printLine(uStack_10);
return;
}
| ['gcc'] |
18,164 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_68b_goodG2BSink()
{
char * data = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_68_goodG2BData;
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */
strncat(data, source, 100);
printLine(data);
}
} | ["/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the sizeof(data)-strlen(data) is less than the length of source */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64226/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_68b.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_68b_goodG2BSink |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_68b_goodG2BSink(void)
{
undefined auStack_78 [99];
undefined uStack_15;
undefined8 uStack_10;
uStack_10 = CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_68_goodG2BData;
func_0x00400a50(auStack_78,0x43,99);
uStack_15 = 0;
func_0x00400a60(uStack_10,auStack_78,100);
printLine(uStack_10);
return;
}
| ['gcc'] |
18,165 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_01_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64232/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_01.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_01_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_01_bad(void)
{
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
func_0x00400a60(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400a20(puStack_10,auStack_128,99);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
18,166 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_01_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64232/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_01.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_01_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_01_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,167 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_02_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
if(1)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64233/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_02.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_02_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_02_bad(void)
{
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
func_0x00400a60(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400a20(puStack_10,auStack_128,99);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
18,168 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_02_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64233/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_02.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_02_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_02_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
18,169 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_03_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
if(5==5)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64234/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_03.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_03_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_03_bad(void)
{
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
func_0x00400a60(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400a20(puStack_10,auStack_128,99);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
18,170 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_03_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64234/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_03.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_03_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_03_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
18,171 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_04_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
if(STATIC_CONST_TRUE)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64235/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_04.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_04_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_04_bad(void)
{
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
func_0x00400a60(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400a20(puStack_10,auStack_128,99);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
18,172 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_04_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64235/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_04.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_04_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_04_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
18,173 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_05_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
if(staticTrue)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64236/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_05.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_05_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_05_bad(void)
{
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
if (staticTrue != 0) {
puStack_10 = auStack_48;
auStack_48[0] = 0;
}
func_0x00400a60(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400a20(puStack_10,auStack_128,99);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
18,174 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_05_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64236/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_05.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_05_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_05_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
18,175 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_06_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
if(STATIC_CONST_FIVE==5)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64237/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_06.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_06_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_06_bad(void)
{
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
func_0x00400a60(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400a20(puStack_10,auStack_128,99);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
18,176 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_06_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64237/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_06.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_06_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_06_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
18,177 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_07_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
if(staticFive==5)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64238/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_07.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_07_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_07_bad(void)
{
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
if (staticFive == 5) {
puStack_10 = auStack_48;
auStack_48[0] = 0;
}
func_0x00400a60(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400a20(puStack_10,auStack_128,99);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
18,178 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_07_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64238/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_07.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_07_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_07_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
18,179 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_08_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
if(staticReturnsTrue())
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64239/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_08.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_08_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_08_bad(void)
{
int iVar1;
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
puStack_10 = auStack_48;
auStack_48[0] = 0;
}
func_0x00400a60(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400a20(puStack_10,auStack_128,99);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
18,180 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_08_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64239/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_08.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_08_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_08_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
18,181 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_09_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
if(GLOBAL_CONST_TRUE)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64240/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_09.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_09_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_09_bad(void)
{
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
if (GLOBAL_CONST_TRUE != 0) {
puStack_10 = auStack_48;
auStack_48[0] = 0;
}
func_0x00400a60(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400a20(puStack_10,auStack_128,99);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
18,182 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_09_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64240/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_09.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_09_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_09_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
18,183 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_10_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
if(globalTrue)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64241/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_10.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_10_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_10_bad(void)
{
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
if (globalTrue != 0) {
puStack_10 = auStack_48;
auStack_48[0] = 0;
}
func_0x00400a60(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400a20(puStack_10,auStack_128,99);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
18,184 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_10_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64241/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_10.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_10_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_10_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
18,185 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_11_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
if(globalReturnsTrue())
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64242/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_11.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_11_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_11_bad(void)
{
int iVar1;
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
puStack_10 = auStack_48;
auStack_48[0] = 0;
}
func_0x00400a60(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400a20(puStack_10,auStack_128,99);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
18,186 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_11_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64242/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_11.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_11_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_11_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
18,187 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_12_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
if(globalReturnsTrueOrFalse())
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
else
{
/* FIX: Set a pointer to a "large" buffer, thus avoiding buffer overflows in the sinks. */
data = dataGoodBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', '/* FIX: Set a pointer to a "large" buffer, thus avoiding buffer overflows in the sinks. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64243/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_12.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_12_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_12_bad(void)
{
int iVar1;
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_b8 [112];
undefined auStack_48 [56];
undefined *puStack_10;
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
puStack_10 = auStack_b8;
auStack_b8[0] = 0;
}
else {
puStack_10 = auStack_48;
auStack_48[0] = 0;
}
func_0x00400a60(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400a20(puStack_10,auStack_128,99);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
18,188 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_12_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64243/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_12.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_12_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_12_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,189 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_13_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
if(GLOBAL_CONST_FIVE==5)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64244/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_13.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_13_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_13_bad(void)
{
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
if (GLOBAL_CONST_FIVE == 5) {
puStack_10 = auStack_48;
auStack_48[0] = 0;
}
func_0x00400a60(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400a20(puStack_10,auStack_128,99);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
18,190 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_13_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64244/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_13.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_13_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_13_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
18,191 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_14_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
if(globalFive==5)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64245/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_14.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_14_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_14_bad(void)
{
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
if (globalFive == 5) {
puStack_10 = auStack_48;
auStack_48[0] = 0;
}
func_0x00400a60(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400a20(puStack_10,auStack_128,99);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
18,192 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_14_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64245/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_14.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_14_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_14_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
18,193 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_15_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
switch(6)
{
case 6:
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
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[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64246/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_15.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_15_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_15_bad(void)
{
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
func_0x00400a60(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400a20(puStack_10,auStack_128,99);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
18,194 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_15_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64246/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_15.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_15_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_15_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
18,195 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_16_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
while(1)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
break;
}
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64247/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_16.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_16_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_16_bad(void)
{
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
func_0x00400a60(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400a20(puStack_10,auStack_128,99);
puStack_10[99] = 0;
printLine(puStack_10);
return;
}
| ['gcc'] |
18,196 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_16_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64247/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_16.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_16_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_16_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,197 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_17_bad()
{
int i;
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
for(i = 0; i < 1; i++)
{
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
}
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64248/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_17.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_17_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_17_bad(void)
{
undefined auStack_138 [99];
undefined uStack_d5;
undefined auStack_58 [64];
undefined *puStack_18;
int iStack_c;
for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) {
puStack_18 = auStack_58;
auStack_58[0] = 0;
}
func_0x00400a60(auStack_138,0x43,99);
uStack_d5 = 0;
func_0x00400a20(puStack_18,auStack_138,99);
puStack_18[99] = 0;
printLine(puStack_18);
return;
}
| ['gcc'] |
18,198 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_17_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64248/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_17.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_17_good |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_17_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
18,199 | void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_18_bad()
{
char * data;
char dataBadBuffer[50];
char dataGoodBuffer[100];
goto source;
source:
/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination
* buffer in various memory copying functions using a "large" source buffer. */
data = dataBadBuffer;
data[0] = '\0'; /* null terminate */
{
char source[100];
memset(source, 'C', 100-1); /* fill with 'C's */
source[100-1] = '\0'; /* null terminate */
/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */
strncpy(data, source, 100-1);
data[100-1] = '\0'; /* Ensure the destination buffer is null terminated */
printLine(data);
}
} | ['/* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination\r\n * buffer in various memory copying functions using a "large" source buffer. */', '/* null terminate */', "/* fill with 'C's */", '/* null terminate */', '/* POTENTIAL FLAW: Possible buffer overflow if the size of data is less than the length of source */', '/* Ensure the destination buffer is null terminated */'] | ['CWE121', 'CWE805'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/64249/CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_18.c | CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_18_bad |
void CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncpy_18_bad(void)
{
undefined auStack_128 [99];
undefined uStack_c5;
undefined auStack_48 [56];
undefined *puStack_10;
puStack_10 = auStack_48;
auStack_48[0] = 0;
func_0x00400a60(auStack_128,0x43,99);
uStack_c5 = 0;
func_0x00400a20(puStack_10,auStack_128,99);
puStack_10[99] = 0;
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.