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 |
|---|---|---|---|---|---|---|---|---|
47,600 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_51_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86699/CWE194_Unexpected_Sign_Extension__fscanf_malloc_51a.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_51_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_51_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,601 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_51b_badSink(short data)
{
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86699/CWE194_Unexpected_Sign_Extension__fscanf_malloc_51b.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_51b_badSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_51b_badSink(short param_1)
{
long lVar1;
if (param_1 < 100) {
lVar1 = func_0x00400bc0((long)param_1);
func_0x00400b60(lVar1,0x41,(long)(param_1 + -1));
*(undefined *)(lVar1 + (long)param_1 + -1) = 0;
printLine(lVar1);
func_0x00400b10(lVar1);
}
return;
}
| ['gcc'] |
47,602 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_51b_goodG2BSink(short data)
{
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86699/CWE194_Unexpected_Sign_Extension__fscanf_malloc_51b.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_51b_goodG2BSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_51b_goodG2BSink(short param_1)
{
long lVar1;
if (param_1 < 100) {
lVar1 = func_0x00400b00((long)param_1);
func_0x00400aa0(lVar1,0x41,(long)(param_1 + -1));
*(undefined *)(lVar1 + (long)param_1 + -1) = 0;
printLine(lVar1);
func_0x00400a60(lVar1);
}
return;
}
| ['gcc'] |
47,603 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_52_bad()
{
short data;
/* Initialize data */
data = 0;
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
CWE194_Unexpected_Sign_Extension__fscanf_malloc_52b_badSink(data);
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86700/CWE194_Unexpected_Sign_Extension__fscanf_malloc_52a.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_52_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_52_bad(void)
{
short sStack_a;
sStack_a = 0;
func_0x00400b20(stdin,&UNK_00401324,&sStack_a);
CWE194_Unexpected_Sign_Extension__fscanf_malloc_52b_badSink((int)sStack_a);
return;
}
| ['gcc'] |
47,604 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_52_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86700/CWE194_Unexpected_Sign_Extension__fscanf_malloc_52a.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_52_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_52_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,605 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_52b_badSink(short data)
{
CWE194_Unexpected_Sign_Extension__fscanf_malloc_52c_badSink(data);
} | [] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86700/CWE194_Unexpected_Sign_Extension__fscanf_malloc_52b.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_52b_badSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_52b_badSink(short param_1)
{
CWE194_Unexpected_Sign_Extension__fscanf_malloc_52c_badSink((int)param_1);
return;
}
| ['gcc'] |
47,606 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_52b_goodG2BSink(short data)
{
CWE194_Unexpected_Sign_Extension__fscanf_malloc_52c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86700/CWE194_Unexpected_Sign_Extension__fscanf_malloc_52b.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_52b_goodG2BSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_52b_goodG2BSink(short param_1)
{
CWE194_Unexpected_Sign_Extension__fscanf_malloc_52c_goodG2BSink((int)param_1);
return;
}
| ['gcc'] |
47,607 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_52c_badSink(short data)
{
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86700/CWE194_Unexpected_Sign_Extension__fscanf_malloc_52c.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_52c_badSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_52c_badSink(short param_1)
{
long lVar1;
if (param_1 < 100) {
lVar1 = func_0x00400bc0((long)param_1);
func_0x00400b60(lVar1,0x41,(long)(param_1 + -1));
*(undefined *)(lVar1 + (long)param_1 + -1) = 0;
printLine(lVar1);
func_0x00400b10(lVar1);
}
return;
}
| ['gcc'] |
47,608 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_52c_goodG2BSink(short data)
{
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86700/CWE194_Unexpected_Sign_Extension__fscanf_malloc_52c.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_52c_goodG2BSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_52c_goodG2BSink(short param_1)
{
long lVar1;
if (param_1 < 100) {
lVar1 = func_0x00400b00((long)param_1);
func_0x00400aa0(lVar1,0x41,(long)(param_1 + -1));
*(undefined *)(lVar1 + (long)param_1 + -1) = 0;
printLine(lVar1);
func_0x00400a60(lVar1);
}
return;
}
| ['gcc'] |
47,609 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_53_bad()
{
short data;
/* Initialize data */
data = 0;
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
CWE194_Unexpected_Sign_Extension__fscanf_malloc_53b_badSink(data);
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86701/CWE194_Unexpected_Sign_Extension__fscanf_malloc_53a.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_53_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_53_bad(void)
{
short sStack_a;
sStack_a = 0;
func_0x00400b20(stdin,&UNK_00401344,&sStack_a);
CWE194_Unexpected_Sign_Extension__fscanf_malloc_53b_badSink((int)sStack_a);
return;
}
| ['gcc'] |
47,610 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_53_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86701/CWE194_Unexpected_Sign_Extension__fscanf_malloc_53a.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_53_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_53_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,611 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_53b_badSink(short data)
{
CWE194_Unexpected_Sign_Extension__fscanf_malloc_53c_badSink(data);
} | [] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86701/CWE194_Unexpected_Sign_Extension__fscanf_malloc_53b.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_53b_badSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_53b_badSink(short param_1)
{
CWE194_Unexpected_Sign_Extension__fscanf_malloc_53c_badSink((int)param_1);
return;
}
| ['gcc'] |
47,612 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_53b_goodG2BSink(short data)
{
CWE194_Unexpected_Sign_Extension__fscanf_malloc_53c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86701/CWE194_Unexpected_Sign_Extension__fscanf_malloc_53b.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_53b_goodG2BSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_53b_goodG2BSink(short param_1)
{
CWE194_Unexpected_Sign_Extension__fscanf_malloc_53c_goodG2BSink((int)param_1);
return;
}
| ['gcc'] |
47,613 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_53c_badSink(short data)
{
CWE194_Unexpected_Sign_Extension__fscanf_malloc_53d_badSink(data);
} | [] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86701/CWE194_Unexpected_Sign_Extension__fscanf_malloc_53c.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_53c_badSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_53c_badSink(short param_1)
{
CWE194_Unexpected_Sign_Extension__fscanf_malloc_53d_badSink((int)param_1);
return;
}
| ['gcc'] |
47,614 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_53c_goodG2BSink(short data)
{
CWE194_Unexpected_Sign_Extension__fscanf_malloc_53d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86701/CWE194_Unexpected_Sign_Extension__fscanf_malloc_53c.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_53c_goodG2BSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_53c_goodG2BSink(short param_1)
{
CWE194_Unexpected_Sign_Extension__fscanf_malloc_53d_goodG2BSink((int)param_1);
return;
}
| ['gcc'] |
47,615 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_53d_badSink(short data)
{
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86701/CWE194_Unexpected_Sign_Extension__fscanf_malloc_53d.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_53d_badSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_53d_badSink(short param_1)
{
long lVar1;
if (param_1 < 100) {
lVar1 = func_0x00400bc0((long)param_1);
func_0x00400b60(lVar1,0x41,(long)(param_1 + -1));
*(undefined *)(lVar1 + (long)param_1 + -1) = 0;
printLine(lVar1);
func_0x00400b10(lVar1);
}
return;
}
| ['gcc'] |
47,616 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_53d_goodG2BSink(short data)
{
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86701/CWE194_Unexpected_Sign_Extension__fscanf_malloc_53d.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_53d_goodG2BSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_53d_goodG2BSink(short param_1)
{
long lVar1;
if (param_1 < 100) {
lVar1 = func_0x00400b00((long)param_1);
func_0x00400aa0(lVar1,0x41,(long)(param_1 + -1));
*(undefined *)(lVar1 + (long)param_1 + -1) = 0;
printLine(lVar1);
func_0x00400a60(lVar1);
}
return;
}
| ['gcc'] |
47,617 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_54_bad()
{
short data;
/* Initialize data */
data = 0;
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
CWE194_Unexpected_Sign_Extension__fscanf_malloc_54b_badSink(data);
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86702/CWE194_Unexpected_Sign_Extension__fscanf_malloc_54a.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_54_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_54_bad(void)
{
short sStack_a;
sStack_a = 0;
func_0x00400b20(stdin,&UNK_00401364,&sStack_a);
CWE194_Unexpected_Sign_Extension__fscanf_malloc_54b_badSink((int)sStack_a);
return;
}
| ['gcc'] |
47,618 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_54_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86702/CWE194_Unexpected_Sign_Extension__fscanf_malloc_54a.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_54_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_54_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,619 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_54b_badSink(short data)
{
CWE194_Unexpected_Sign_Extension__fscanf_malloc_54c_badSink(data);
} | [] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86702/CWE194_Unexpected_Sign_Extension__fscanf_malloc_54b.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_54b_badSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_54b_badSink(short param_1)
{
CWE194_Unexpected_Sign_Extension__fscanf_malloc_54c_badSink((int)param_1);
return;
}
| ['gcc'] |
47,620 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_54b_goodG2BSink(short data)
{
CWE194_Unexpected_Sign_Extension__fscanf_malloc_54c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86702/CWE194_Unexpected_Sign_Extension__fscanf_malloc_54b.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_54b_goodG2BSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_54b_goodG2BSink(short param_1)
{
CWE194_Unexpected_Sign_Extension__fscanf_malloc_54c_goodG2BSink((int)param_1);
return;
}
| ['gcc'] |
47,621 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_54c_badSink(short data)
{
CWE194_Unexpected_Sign_Extension__fscanf_malloc_54d_badSink(data);
} | [] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86702/CWE194_Unexpected_Sign_Extension__fscanf_malloc_54c.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_54c_badSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_54c_badSink(short param_1)
{
CWE194_Unexpected_Sign_Extension__fscanf_malloc_54d_badSink((int)param_1);
return;
}
| ['gcc'] |
47,622 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_54c_goodG2BSink(short data)
{
CWE194_Unexpected_Sign_Extension__fscanf_malloc_54d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86702/CWE194_Unexpected_Sign_Extension__fscanf_malloc_54c.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_54c_goodG2BSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_54c_goodG2BSink(short param_1)
{
CWE194_Unexpected_Sign_Extension__fscanf_malloc_54d_goodG2BSink((int)param_1);
return;
}
| ['gcc'] |
47,623 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_54d_badSink(short data)
{
CWE194_Unexpected_Sign_Extension__fscanf_malloc_54e_badSink(data);
} | [] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86702/CWE194_Unexpected_Sign_Extension__fscanf_malloc_54d.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_54d_badSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_54d_badSink(short param_1)
{
CWE194_Unexpected_Sign_Extension__fscanf_malloc_54e_badSink((int)param_1);
return;
}
| ['gcc'] |
47,624 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_54d_goodG2BSink(short data)
{
CWE194_Unexpected_Sign_Extension__fscanf_malloc_54e_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86702/CWE194_Unexpected_Sign_Extension__fscanf_malloc_54d.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_54d_goodG2BSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_54d_goodG2BSink(short param_1)
{
CWE194_Unexpected_Sign_Extension__fscanf_malloc_54e_goodG2BSink((int)param_1);
return;
}
| ['gcc'] |
47,625 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_54e_badSink(short data)
{
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86702/CWE194_Unexpected_Sign_Extension__fscanf_malloc_54e.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_54e_badSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_54e_badSink(short param_1)
{
long lVar1;
if (param_1 < 100) {
lVar1 = func_0x00400bc0((long)param_1);
func_0x00400b60(lVar1,0x41,(long)(param_1 + -1));
*(undefined *)(lVar1 + (long)param_1 + -1) = 0;
printLine(lVar1);
func_0x00400b10(lVar1);
}
return;
}
| ['gcc'] |
47,626 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_54e_goodG2BSink(short data)
{
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86702/CWE194_Unexpected_Sign_Extension__fscanf_malloc_54e.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_54e_goodG2BSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_54e_goodG2BSink(short param_1)
{
long lVar1;
if (param_1 < 100) {
lVar1 = func_0x00400b00((long)param_1);
func_0x00400aa0(lVar1,0x41,(long)(param_1 + -1));
*(undefined *)(lVar1 + (long)param_1 + -1) = 0;
printLine(lVar1);
func_0x00400a60(lVar1);
}
return;
}
| ['gcc'] |
47,627 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_61_bad()
{
short data;
/* Initialize data */
data = 0;
data = CWE194_Unexpected_Sign_Extension__fscanf_malloc_61b_badSource(data);
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Initialize data */', '/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86703/CWE194_Unexpected_Sign_Extension__fscanf_malloc_61a.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_61_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_61_bad(void)
{
short sVar1;
long lVar2;
sVar1 = CWE194_Unexpected_Sign_Extension__fscanf_malloc_61b_badSource(0);
if (sVar1 < 100) {
lVar2 = func_0x00400bc0((long)sVar1);
func_0x00400b60(lVar2,0x41,(long)(sVar1 + -1));
*(undefined *)(lVar2 + (long)sVar1 + -1) = 0;
printLine(lVar2);
func_0x00400b10(lVar2);
}
return;
}
| ['gcc'] |
47,628 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_61_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86703/CWE194_Unexpected_Sign_Extension__fscanf_malloc_61a.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_61_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_61_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,629 | short CWE194_Unexpected_Sign_Extension__fscanf_malloc_61b_badSource(short data)
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
return data;
} | ['/* FLAW: Use a value input from the console using fscanf() */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86703/CWE194_Unexpected_Sign_Extension__fscanf_malloc_61b.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_61b_badSource |
undefined2 CWE194_Unexpected_Sign_Extension__fscanf_malloc_61b_badSource(undefined2 param_1)
{
undefined2 auStack_c [2];
auStack_c[0] = param_1;
func_0x00400b20(stdin,&UNK_00401314,auStack_c);
return auStack_c[0];
}
| ['gcc'] |
47,630 | short CWE194_Unexpected_Sign_Extension__fscanf_malloc_61b_goodG2BSource(short data)
{
/* FIX: Use a positive integer less than &InitialDataSize&*/
data = 100-1;
return data;
} | ['/* FIX: Use a positive integer less than &InitialDataSize&*/'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86703/CWE194_Unexpected_Sign_Extension__fscanf_malloc_61b.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_61b_goodG2BSource |
undefined2 CWE194_Unexpected_Sign_Extension__fscanf_malloc_61b_goodG2BSource(void)
{
return 99;
}
| ['gcc'] |
47,631 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_63_bad()
{
short data;
/* Initialize data */
data = 0;
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
CWE194_Unexpected_Sign_Extension__fscanf_malloc_63b_badSink(&data);
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86705/CWE194_Unexpected_Sign_Extension__fscanf_malloc_63a.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_63_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_63_bad(void)
{
undefined2 uStack_a;
uStack_a = 0;
func_0x00400b20(stdin,&UNK_00401314,&uStack_a);
CWE194_Unexpected_Sign_Extension__fscanf_malloc_63b_badSink(&uStack_a);
return;
}
| ['gcc'] |
47,632 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_63_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86705/CWE194_Unexpected_Sign_Extension__fscanf_malloc_63a.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_63_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_63_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,633 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_63b_badSink(short * dataPtr)
{
short data = *dataPtr;
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86705/CWE194_Unexpected_Sign_Extension__fscanf_malloc_63b.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_63b_badSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_63b_badSink(short *param_1)
{
short sVar1;
long lVar2;
sVar1 = *param_1;
if (sVar1 < 100) {
lVar2 = func_0x00400bc0((long)sVar1);
func_0x00400b60(lVar2,0x41,(long)(sVar1 + -1));
*(undefined *)(lVar2 + (long)sVar1 + -1) = 0;
printLine(lVar2);
func_0x00400b10(lVar2);
}
return;
}
| ['gcc'] |
47,634 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_63b_goodG2BSink(short * dataPtr)
{
short data = *dataPtr;
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86705/CWE194_Unexpected_Sign_Extension__fscanf_malloc_63b.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_63b_goodG2BSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_63b_goodG2BSink(short *param_1)
{
short sVar1;
long lVar2;
sVar1 = *param_1;
if (sVar1 < 100) {
lVar2 = func_0x00400b00((long)sVar1);
func_0x00400aa0(lVar2,0x41,(long)(sVar1 + -1));
*(undefined *)(lVar2 + (long)sVar1 + -1) = 0;
printLine(lVar2);
func_0x00400a60(lVar2);
}
return;
}
| ['gcc'] |
47,635 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_64_bad()
{
short data;
/* Initialize data */
data = 0;
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
CWE194_Unexpected_Sign_Extension__fscanf_malloc_64b_badSink(&data);
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86706/CWE194_Unexpected_Sign_Extension__fscanf_malloc_64a.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_64_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_64_bad(void)
{
undefined2 uStack_a;
uStack_a = 0;
func_0x00400b20(stdin,&UNK_00401314,&uStack_a);
CWE194_Unexpected_Sign_Extension__fscanf_malloc_64b_badSink(&uStack_a);
return;
}
| ['gcc'] |
47,636 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_64_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86706/CWE194_Unexpected_Sign_Extension__fscanf_malloc_64a.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_64_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_64_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,637 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_64b_badSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
short * dataPtr = (short *)dataVoidPtr;
/* dereference dataPtr into data */
short data = (*dataPtr);
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86706/CWE194_Unexpected_Sign_Extension__fscanf_malloc_64b.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_64b_badSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_64b_badSink(short *param_1)
{
short sVar1;
long lVar2;
sVar1 = *param_1;
if (sVar1 < 100) {
lVar2 = func_0x00400bc0((long)sVar1);
func_0x00400b60(lVar2,0x41,(long)(sVar1 + -1));
*(undefined *)(lVar2 + (long)sVar1 + -1) = 0;
printLine(lVar2);
func_0x00400b10(lVar2);
}
return;
}
| ['gcc'] |
47,638 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_64b_goodG2BSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
short * dataPtr = (short *)dataVoidPtr;
/* dereference dataPtr into data */
short data = (*dataPtr);
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86706/CWE194_Unexpected_Sign_Extension__fscanf_malloc_64b.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_64b_goodG2BSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_64b_goodG2BSink(short *param_1)
{
short sVar1;
long lVar2;
sVar1 = *param_1;
if (sVar1 < 100) {
lVar2 = func_0x00400b00((long)sVar1);
func_0x00400aa0(lVar2,0x41,(long)(sVar1 + -1));
*(undefined *)(lVar2 + (long)sVar1 + -1) = 0;
printLine(lVar2);
func_0x00400a60(lVar2);
}
return;
}
| ['gcc'] |
47,639 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_65_bad()
{
short data;
/* define a function pointer */
void (*funcPtr) (short) = CWE194_Unexpected_Sign_Extension__fscanf_malloc_65b_badSink;
/* Initialize data */
data = 0;
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
/* use the function pointer */
funcPtr(data);
} | ['/* define a function pointer */', '/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* use the function pointer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86707/CWE194_Unexpected_Sign_Extension__fscanf_malloc_65a.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_65_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_65_bad(void)
{
short sStack_12;
code *pcStack_10;
pcStack_10 = CWE194_Unexpected_Sign_Extension__fscanf_malloc_65b_badSink;
sStack_12 = 0;
func_0x00400b20(stdin,&UNK_00401314,&sStack_12);
(*pcStack_10)((int)sStack_12);
return;
}
| ['gcc'] |
47,640 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_65_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86707/CWE194_Unexpected_Sign_Extension__fscanf_malloc_65a.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_65_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_65_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,641 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_65b_badSink(short data)
{
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86707/CWE194_Unexpected_Sign_Extension__fscanf_malloc_65b.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_65b_badSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_65b_badSink(short param_1)
{
long lVar1;
if (param_1 < 100) {
lVar1 = func_0x00400bc0((long)param_1);
func_0x00400b60(lVar1,0x41,(long)(param_1 + -1));
*(undefined *)(lVar1 + (long)param_1 + -1) = 0;
printLine(lVar1);
func_0x00400b10(lVar1);
}
return;
}
| ['gcc'] |
47,642 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_65b_goodG2BSink(short data)
{
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86707/CWE194_Unexpected_Sign_Extension__fscanf_malloc_65b.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_65b_goodG2BSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_65b_goodG2BSink(short param_1)
{
long lVar1;
if (param_1 < 100) {
lVar1 = func_0x00400b00((long)param_1);
func_0x00400aa0(lVar1,0x41,(long)(param_1 + -1));
*(undefined *)(lVar1 + (long)param_1 + -1) = 0;
printLine(lVar1);
func_0x00400a60(lVar1);
}
return;
}
| ['gcc'] |
47,643 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_68_bad()
{
short data;
/* Initialize data */
data = 0;
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
CWE194_Unexpected_Sign_Extension__fscanf_malloc_68_badData = data;
CWE194_Unexpected_Sign_Extension__fscanf_malloc_68b_badSink();
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86710/CWE194_Unexpected_Sign_Extension__fscanf_malloc_68a.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_68_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_68_bad(void)
{
undefined2 uStack_a;
uStack_a = 0;
func_0x00400b20(stdin,&UNK_00401314,&uStack_a);
CWE194_Unexpected_Sign_Extension__fscanf_malloc_68_badData = uStack_a;
CWE194_Unexpected_Sign_Extension__fscanf_malloc_68b_badSink();
return;
}
| ['gcc'] |
47,644 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_68_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86710/CWE194_Unexpected_Sign_Extension__fscanf_malloc_68a.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_68_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_68_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,645 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_68b_badSink()
{
short data = CWE194_Unexpected_Sign_Extension__fscanf_malloc_68_badData;
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86710/CWE194_Unexpected_Sign_Extension__fscanf_malloc_68b.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_68b_badSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_68b_badSink(void)
{
short sVar1;
long lVar2;
sVar1 = CWE194_Unexpected_Sign_Extension__fscanf_malloc_68_badData;
if (CWE194_Unexpected_Sign_Extension__fscanf_malloc_68_badData < 100) {
lVar2 = func_0x00400bc0((long)CWE194_Unexpected_Sign_Extension__fscanf_malloc_68_badData);
func_0x00400b60(lVar2,0x41,(long)(sVar1 + -1));
*(undefined *)(lVar2 + (long)sVar1 + -1) = 0;
printLine(lVar2);
func_0x00400b10(lVar2);
}
return;
}
| ['gcc'] |
47,646 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_68b_goodG2BSink()
{
short data = CWE194_Unexpected_Sign_Extension__fscanf_malloc_68_goodG2BData;
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86710/CWE194_Unexpected_Sign_Extension__fscanf_malloc_68b.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_68b_goodG2BSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_68b_goodG2BSink(void)
{
short sVar1;
long lVar2;
sVar1 = CWE194_Unexpected_Sign_Extension__fscanf_malloc_68_goodG2BData;
if (CWE194_Unexpected_Sign_Extension__fscanf_malloc_68_goodG2BData < 100) {
lVar2 = func_0x00400b00((long)CWE194_Unexpected_Sign_Extension__fscanf_malloc_68_goodG2BData);
func_0x00400aa0(lVar2,0x41,(long)(sVar1 + -1));
*(undefined *)(lVar2 + (long)sVar1 + -1) = 0;
printLine(lVar2);
func_0x00400a60(lVar2);
}
return;
}
| ['gcc'] |
47,647 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_01_bad()
{
short data;
/* Initialize data */
data = 0;
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign extension could result in a very large number */', '/* NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86718/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_01.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_01_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_01_bad(void)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
short sStack_a;
sStack_a = 0;
func_0x00400ac0(stdin,&UNK_004012f4,&sStack_a);
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400b00(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_a < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)sStack_a);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_a) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,648 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_01_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86718/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_01.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_01_good |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_01_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,649 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_02_bad()
{
short data;
/* Initialize data */
data = 0;
if(1)
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
}
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign extension could result in a very large number */', '/* NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86719/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_02.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_02_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_02_bad(void)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
short sStack_a;
sStack_a = 0;
func_0x00400ac0(stdin,&UNK_004012f4,&sStack_a);
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400b00(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_a < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)sStack_a);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_a) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,650 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_02_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86719/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_02.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_02_good |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_02_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,651 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_03_bad()
{
short data;
/* Initialize data */
data = 0;
if(5==5)
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
}
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign extension could result in a very large number */', '/* NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86720/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_03.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_03_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_03_bad(void)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
short sStack_a;
sStack_a = 0;
func_0x00400ac0(stdin,&UNK_004012f4,&sStack_a);
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400b00(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_a < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)sStack_a);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_a) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,652 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_03_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86720/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_03.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_03_good |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_03_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,653 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_04_bad()
{
short data;
/* Initialize data */
data = 0;
if(STATIC_CONST_TRUE)
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
}
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign extension could result in a very large number */', '/* NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86721/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_04.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_04_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_04_bad(void)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
short sStack_a;
sStack_a = 0;
func_0x00400ac0(stdin,&UNK_0040130c,&sStack_a);
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400b00(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_a < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)sStack_a);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_a) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,654 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_04_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86721/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_04.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_04_good |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_04_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,655 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_05_bad()
{
short data;
/* Initialize data */
data = 0;
if(staticTrue)
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
}
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign extension could result in a very large number */', '/* NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86722/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_05.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_05_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_05_bad(void)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
short sStack_a;
sStack_a = 0;
if (staticTrue != 0) {
func_0x00400ac0(stdin,&UNK_00401304,&sStack_a);
}
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400b00(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_a < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)sStack_a);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_a) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,656 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_05_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86722/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_05.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_05_good |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_05_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,657 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_06_bad()
{
short data;
/* Initialize data */
data = 0;
if(STATIC_CONST_FIVE==5)
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
}
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign extension could result in a very large number */', '/* NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86723/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_06.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_06_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_06_bad(void)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
short sStack_a;
sStack_a = 0;
func_0x00400ac0(stdin,&UNK_00401308,&sStack_a);
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400b00(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_a < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)sStack_a);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_a) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,658 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_06_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86723/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_06.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_06_good |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_06_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,659 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_07_bad()
{
short data;
/* Initialize data */
data = 0;
if(staticFive==5)
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
}
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign extension could result in a very large number */', '/* NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86724/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_07.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_07_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_07_bad(void)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
short sStack_a;
sStack_a = 0;
if (staticFive == 5) {
func_0x00400ac0(stdin,&UNK_00401304,&sStack_a);
}
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400b00(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_a < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)sStack_a);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_a) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,660 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_07_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86724/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_07.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_07_good |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_07_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,661 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_08_bad()
{
short data;
/* Initialize data */
data = 0;
if(staticReturnsTrue())
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
}
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign extension could result in a very large number */', '/* NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86725/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_08.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_08_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_08_bad(void)
{
int iVar1;
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
short sStack_a;
sStack_a = 0;
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
func_0x00400ac0(stdin,&UNK_00401314,&sStack_a);
}
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400b00(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_a < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)sStack_a);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_a) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,662 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_08_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86725/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_08.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_08_good |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_08_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,663 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_09_bad()
{
short data;
/* Initialize data */
data = 0;
if(GLOBAL_CONST_TRUE)
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
}
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign extension could result in a very large number */', '/* NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86726/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_09.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_09_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_09_bad(void)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
short sStack_a;
sStack_a = 0;
if (GLOBAL_CONST_TRUE != 0) {
func_0x00400ac0(stdin,&UNK_00401304,&sStack_a);
}
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400b00(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_a < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)sStack_a);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_a) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,664 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_09_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86726/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_09.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_09_good |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_09_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,665 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_10_bad()
{
short data;
/* Initialize data */
data = 0;
if(globalTrue)
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
}
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign extension could result in a very large number */', '/* NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86727/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_10.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_10_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_10_bad(void)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
short sStack_a;
sStack_a = 0;
if (globalTrue != 0) {
func_0x00400ac0(stdin,&UNK_00401304,&sStack_a);
}
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400b00(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_a < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)sStack_a);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_a) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,666 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_10_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86727/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_10.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_10_good |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_10_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,667 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_11_bad()
{
short data;
/* Initialize data */
data = 0;
if(globalReturnsTrue())
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
}
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign extension could result in a very large number */', '/* NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86728/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_11.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_11_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_11_bad(void)
{
int iVar1;
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
short sStack_a;
sStack_a = 0;
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
func_0x00400ac0(stdin,&UNK_00401304,&sStack_a);
}
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400b00(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_a < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)sStack_a);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_a) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,668 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_11_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86728/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_11.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_11_good |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_11_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,669 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_12_bad()
{
short data;
/* Initialize data */
data = 0;
if(globalReturnsTrueOrFalse())
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
}
else
{
/* FIX: Use a positive integer less than &InitialDataSize&*/
data = 100-1;
}
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* FIX: Use a positive integer less than &InitialDataSize&*/', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign extension could result in a very large number */', '/* NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86729/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_12.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_12_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_12_bad(void)
{
int iVar1;
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
short sStack_a;
sStack_a = 0;
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
sStack_a = 99;
}
else {
func_0x00400ac0(stdin,&UNK_00401304,&sStack_a);
}
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400b00(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_a < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)sStack_a);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_a) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,670 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_12_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86729/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_12.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_12_good |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_12_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,671 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_13_bad()
{
short data;
/* Initialize data */
data = 0;
if(GLOBAL_CONST_FIVE==5)
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
}
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign extension could result in a very large number */', '/* NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86730/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_13.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_13_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_13_bad(void)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
short sStack_a;
sStack_a = 0;
if (GLOBAL_CONST_FIVE == 5) {
func_0x00400ac0(stdin,&UNK_00401304,&sStack_a);
}
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400b00(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_a < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)sStack_a);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_a) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,672 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_13_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86730/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_13.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_13_good |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_13_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,673 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_14_bad()
{
short data;
/* Initialize data */
data = 0;
if(globalFive==5)
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
}
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign extension could result in a very large number */', '/* NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86731/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_14.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_14_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_14_bad(void)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
short sStack_a;
sStack_a = 0;
if (globalFive == 5) {
func_0x00400ac0(stdin,&UNK_00401304,&sStack_a);
}
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400b00(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_a < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)sStack_a);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_a) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,674 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_14_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86731/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_14.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_14_good |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_14_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,675 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_15_bad()
{
short data;
/* Initialize data */
data = 0;
switch(6)
{
case 6:
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
break;
default:
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
break;
}
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign extension could result in a very large number */', '/* NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86732/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_15.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_15_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_15_bad(void)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
short sStack_a;
sStack_a = 0;
func_0x00400ac0(stdin,&UNK_004012f4,&sStack_a);
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400b00(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_a < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)sStack_a);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_a) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,676 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_15_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86732/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_15.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_15_good |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_15_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,677 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_16_bad()
{
short data;
/* Initialize data */
data = 0;
while(1)
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
break;
}
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign extension could result in a very large number */', '/* NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86733/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_16.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_16_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_16_bad(void)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
short sStack_a;
sStack_a = 0;
func_0x00400ac0(stdin,&UNK_004012f4,&sStack_a);
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400b00(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_a < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)sStack_a);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_a) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,678 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_16_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86733/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_16.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_16_good |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_16_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,679 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_17_bad()
{
int i;
short data;
/* Initialize data */
data = 0;
for(i = 0; i < 1; i++)
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
}
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign extension could result in a very large number */', '/* NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86734/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_17.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_17_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_17_bad(void)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
short sStack_e;
int iStack_c;
sStack_e = 0;
for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) {
func_0x00400ac0(stdin,&UNK_00401304,&sStack_e);
}
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400b00(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_e < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)sStack_e);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_e) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,680 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_17_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86734/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_17.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_17_good |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_17_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,681 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_18_bad()
{
short data;
/* Initialize data */
data = 0;
goto source;
source:
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign extension could result in a very large number */', '/* NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86735/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_18.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_18_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_18_bad(void)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
short sStack_a;
sStack_a = 0;
func_0x00400ac0(stdin,&UNK_004012f4,&sStack_a);
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400b00(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_a < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)sStack_a);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_a) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,682 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_18_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86735/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_18.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_18_good |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_18_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,683 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_21_bad()
{
short data;
/* Initialize data */
data = 0;
badStatic = 1; /* true */
data = badSource(data);
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* true */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign extension could result in a very large number */', '/* NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86736/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_21.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_21_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_21_bad(void)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
short sStack_a;
sStack_a = 0;
badStatic = 1;
sStack_a = badSource(0);
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400b00(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_a < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)sStack_a);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_a) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,684 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_21_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86736/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_21.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_21_good |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_21_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,685 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22_bad()
{
short data;
/* Initialize data */
data = 0;
CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22_badGlobal = 1; /* true */
data = CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22_badSource(data);
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* true */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign extension could result in a very large number */', '/* NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86737/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22a.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22_bad(void)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
short sStack_a;
sStack_a = 0;
CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22_badGlobal = 1;
sStack_a = CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22_badSource(0);
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400b00(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_a < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)sStack_a);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_a) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,686 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86737/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22a.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22_good |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,687 | short CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22_badSource(short data)
{
if(CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22_badGlobal)
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
}
return data;
} | ['/* FLAW: Use a value input from the console using fscanf() */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86737/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22b.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22_badSource |
undefined2 CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22_badSource(undefined2 param_1)
{
undefined2 auStack_c [2];
auStack_c[0] = param_1;
if (CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22_badGlobal != 0) {
func_0x00400ac0(stdin,&UNK_00401324,auStack_c);
}
return auStack_c[0];
}
| ['gcc'] |
47,688 | short CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22_goodG2B1Source(short data)
{
if(CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22_goodG2B1Global)
{
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
}
else
{
/* FIX: Use a positive integer less than &InitialDataSize&*/
data = 100-1;
}
return data;
} | ['/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* FIX: Use a positive integer less than &InitialDataSize&*/'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86737/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22b.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22_goodG2B1Source |
undefined2 CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22_goodG2B1Source(undefined2 param_1)
{
undefined2 uStack_c;
if (CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22_goodG2B1Global == 0) {
uStack_c = 99;
}
else {
printLine(&UNK_004013a4);
uStack_c = param_1;
}
return uStack_c;
}
| ['gcc'] |
47,689 | short CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22_goodG2B2Source(short data)
{
if(CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22_goodG2B2Global)
{
/* FIX: Use a positive integer less than &InitialDataSize&*/
data = 100-1;
}
return data;
} | ['/* FIX: Use a positive integer less than &InitialDataSize&*/'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86737/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22b.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22_goodG2B2Source |
undefined2 CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22_goodG2B2Source(undefined2 param_1)
{
undefined2 uStack_c;
uStack_c = param_1;
if (CWE194_Unexpected_Sign_Extension__fscanf_memcpy_22_goodG2B2Global != 0) {
uStack_c = 99;
}
return uStack_c;
}
| ['gcc'] |
47,690 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_31_bad()
{
short data;
/* Initialize data */
data = 0;
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
{
short dataCopy = data;
short data = dataCopy;
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign extension could result in a very large number */', '/* NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86738/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_31.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_31_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_31_bad(void)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
short sStack_e;
short sStack_c;
short sStack_a;
sStack_e = 0;
func_0x00400ac0(stdin,&UNK_00401304,&sStack_e);
sStack_a = sStack_e;
sStack_c = sStack_e;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400b00(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_c < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)sStack_c);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,691 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_31_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86738/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_31.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_31_good |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_31_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,692 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_32_bad()
{
short data;
short *dataPtr1 = &data;
short *dataPtr2 = &data;
/* Initialize data */
data = 0;
{
short data = *dataPtr1;
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
*dataPtr1 = data;
}
{
short data = *dataPtr2;
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign extension could result in a very large number */', '/* NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86739/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_32.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_32_bad |
/* WARNING: Restarted to delay deadcode elimination for space: stack */
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_32_bad(void)
{
undefined auStack_f8 [99];
undefined uStack_95;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined4 uStack_28;
short sStack_1e;
short sStack_1c;
short sStack_1a;
short *psStack_18;
short *psStack_10;
psStack_10 = &sStack_1c;
psStack_18 = &sStack_1c;
sStack_1c = 0;
sStack_1e = 0;
func_0x00400ac0(stdin,&UNK_00401324,&sStack_1e);
*psStack_10 = sStack_1e;
sStack_1a = *psStack_18;
uStack_88 = 0;
uStack_80 = 0;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
func_0x00400b00(auStack_f8,0x41,99);
uStack_95 = 0;
if (sStack_1a < 100) {
func_0x00400b50(&uStack_88,auStack_f8,(long)sStack_1a);
*(undefined *)((long)&uStack_88 + (long)(int)sStack_1a) = 0;
}
printLine(&uStack_88);
return;
}
| ['gcc'] |
47,693 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_32_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86739/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_32.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_32_good |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_32_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,694 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_34_bad()
{
short data;
CWE194_Unexpected_Sign_Extension__fscanf_memcpy_34_unionType myUnion;
/* Initialize data */
data = 0;
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
myUnion.unionFirst = data;
{
short data = myUnion.unionSecond;
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign extension could result in a very large number */', '/* NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86741/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_34.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_34_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_34_bad(void)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
short sStack_e;
short sStack_c;
short sStack_a;
sStack_c = 0;
func_0x00400ac0(stdin,&UNK_00401304,&sStack_c);
sStack_e = sStack_c;
sStack_a = sStack_c;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400b00(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_a < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)sStack_a);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_a) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,695 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_34_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86741/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_34.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_34_good |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_34_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,696 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_41_badSink(short data)
{
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign extension could result in a very large number */', '/* NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86742/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_41.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_41_badSink |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_41_badSink(short param_1)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400b00(auStack_e8,0x41,99);
uStack_85 = 0;
if (param_1 < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)param_1);
*(undefined *)((long)&uStack_78 + (long)(int)param_1) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,697 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_41_bad()
{
short data;
/* Initialize data */
data = 0;
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
CWE194_Unexpected_Sign_Extension__fscanf_memcpy_41_badSink(data);
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86742/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_41.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_41_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_41_bad(void)
{
short sStack_a;
sStack_a = 0;
func_0x00400ac0(stdin,&UNK_00401314,&sStack_a);
CWE194_Unexpected_Sign_Extension__fscanf_memcpy_41_badSink((int)sStack_a);
return;
}
| ['gcc'] |
47,698 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_41_goodG2BSink(short data)
{
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign extension could result in a very large number */', '/* NULL terminate */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86742/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_41.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_41_goodG2BSink |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_41_goodG2BSink(short param_1)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400a60(auStack_e8,0x41,99);
uStack_85 = 0;
if (param_1 < 100) {
func_0x00400ab0(&uStack_78,auStack_e8,(long)param_1);
*(undefined *)((long)&uStack_78 + (long)(int)param_1) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,699 | void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_41_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86742/CWE194_Unexpected_Sign_Extension__fscanf_memcpy_41.c | CWE194_Unexpected_Sign_Extension__fscanf_memcpy_41_good |
void CWE194_Unexpected_Sign_Extension__fscanf_memcpy_41_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.