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 |
|---|---|---|---|---|---|---|---|---|
50,200 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_53d_goodG2BSink(int 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/87853/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_53d.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_53d_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_53d_goodG2BSink(int 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'] |
50,201 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54_bad()
{
int data;
/* Initialize data */
data = -1;
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &data);
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54b_badSink(data);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fscanf() */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87854/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54_bad(void)
{
undefined4 uStack_c;
uStack_c = 0xffffffff;
func_0x00400b20(stdin,&UNK_00401344,&uStack_c);
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54b_badSink(uStack_c);
return;
}
| ['gcc'] |
50,202 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87854/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,203 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54b_badSink(int data)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54c_badSink(data);
} | [] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87854/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54b_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54b_badSink(undefined4 param_1)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54c_badSink(param_1);
return;
}
| ['gcc'] |
50,204 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54b_goodG2BSink(int data)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87854/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54b_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54b_goodG2BSink(undefined4 param_1)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
50,205 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54c_badSink(int data)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54d_badSink(data);
} | [] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87854/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54c.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54c_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54c_badSink(undefined4 param_1)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54d_badSink(param_1);
return;
}
| ['gcc'] |
50,206 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54c_goodG2BSink(int data)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87854/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54c.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54c_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54c_goodG2BSink(undefined4 param_1)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
50,207 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54d_badSink(int data)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54e_badSink(data);
} | [] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87854/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54d.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54d_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54d_badSink(undefined4 param_1)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54e_badSink(param_1);
return;
}
| ['gcc'] |
50,208 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54d_goodG2BSink(int data)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54e_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87854/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54d.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54d_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54d_goodG2BSink(undefined4 param_1)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54e_goodG2BSink(param_1);
return;
}
| ['gcc'] |
50,209 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54e_badSink(int 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 */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87854/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54e.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54e_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54e_badSink(int 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'] |
50,210 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54e_goodG2BSink(int 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/87854/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54e.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54e_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_54e_goodG2BSink(int 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'] |
50,211 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_61_bad()
{
int data;
/* Initialize data */
data = -1;
data = CWE195_Signed_to_Unsigned_Conversion_Error__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 */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87855/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_61a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_61_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_61_bad(void)
{
int iVar1;
long lVar2;
iVar1 = CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_61b_badSource(0xffffffff);
if (iVar1 < 100) {
lVar2 = func_0x00400bc0((long)iVar1);
func_0x00400b60(lVar2,0x41,(long)(iVar1 + -1));
*(undefined *)(lVar2 + (long)iVar1 + -1) = 0;
printLine(lVar2);
func_0x00400b10(lVar2);
}
return;
}
| ['gcc'] |
50,212 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_61_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87855/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_61a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_61_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_61_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,213 | int CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_61b_badSource(int data)
{
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &data);
return data;
} | ['/* POTENTIAL FLAW: Read data from the console using fscanf() */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87855/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_61b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_61b_badSource |
undefined4
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_61b_badSource(undefined4 param_1)
{
undefined4 uStack_c;
uStack_c = param_1;
func_0x00400b20(stdin,&UNK_00401304,&uStack_c);
return uStack_c;
}
| ['gcc'] |
50,214 | int CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_61b_goodG2BSource(int 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/87855/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_61b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_61b_goodG2BSource |
undefined4 CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_61b_goodG2BSource(void)
{
return 99;
}
| ['gcc'] |
50,215 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_63_bad()
{
int data;
/* Initialize data */
data = -1;
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &data);
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_63b_badSink(&data);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fscanf() */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87857/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_63a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_63_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_63_bad(void)
{
undefined4 uStack_c;
uStack_c = 0xffffffff;
func_0x00400b20(stdin,&UNK_00401314,&uStack_c);
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_63b_badSink(&uStack_c);
return;
}
| ['gcc'] |
50,216 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_63_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87857/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_63a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_63_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_63_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,217 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_63b_badSink(int * dataPtr)
{
int 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 */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87857/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_63b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_63b_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_63b_badSink(int *param_1)
{
int iVar1;
long lVar2;
iVar1 = *param_1;
if (iVar1 < 100) {
lVar2 = func_0x00400bc0((long)iVar1);
func_0x00400b60(lVar2,0x41,(long)(iVar1 + -1));
*(undefined *)(lVar2 + (long)iVar1 + -1) = 0;
printLine(lVar2);
func_0x00400b10(lVar2);
}
return;
}
| ['gcc'] |
50,218 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_63b_goodG2BSink(int * dataPtr)
{
int 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/87857/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_63b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_63b_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_63b_goodG2BSink(int *param_1)
{
int iVar1;
long lVar2;
iVar1 = *param_1;
if (iVar1 < 100) {
lVar2 = func_0x00400b00((long)iVar1);
func_0x00400aa0(lVar2,0x41,(long)(iVar1 + -1));
*(undefined *)(lVar2 + (long)iVar1 + -1) = 0;
printLine(lVar2);
func_0x00400a60(lVar2);
}
return;
}
| ['gcc'] |
50,219 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_64_bad()
{
int data;
/* Initialize data */
data = -1;
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &data);
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_64b_badSink(&data);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fscanf() */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87858/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_64a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_64_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_64_bad(void)
{
undefined4 uStack_c;
uStack_c = 0xffffffff;
func_0x00400b20(stdin,&UNK_00401314,&uStack_c);
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_64b_badSink(&uStack_c);
return;
}
| ['gcc'] |
50,220 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_64_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87858/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_64a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_64_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_64_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,221 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_64b_badSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
int * dataPtr = (int *)dataVoidPtr;
/* dereference dataPtr into data */
int 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 */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87858/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_64b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_64b_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_64b_badSink(int *param_1)
{
int iVar1;
long lVar2;
iVar1 = *param_1;
if (iVar1 < 100) {
lVar2 = func_0x00400bc0((long)iVar1);
func_0x00400b60(lVar2,0x41,(long)(iVar1 + -1));
*(undefined *)(lVar2 + (long)iVar1 + -1) = 0;
printLine(lVar2);
func_0x00400b10(lVar2);
}
return;
}
| ['gcc'] |
50,222 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_64b_goodG2BSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
int * dataPtr = (int *)dataVoidPtr;
/* dereference dataPtr into data */
int 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/87858/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_64b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_64b_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_64b_goodG2BSink(int *param_1)
{
int iVar1;
long lVar2;
iVar1 = *param_1;
if (iVar1 < 100) {
lVar2 = func_0x00400b00((long)iVar1);
func_0x00400aa0(lVar2,0x41,(long)(iVar1 + -1));
*(undefined *)(lVar2 + (long)iVar1 + -1) = 0;
printLine(lVar2);
func_0x00400a60(lVar2);
}
return;
}
| ['gcc'] |
50,223 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_65_bad()
{
int data;
/* define a function pointer */
void (*funcPtr) (int) = CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_65b_badSink;
/* Initialize data */
data = -1;
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &data);
/* use the function pointer */
funcPtr(data);
} | ['/* define a function pointer */', '/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fscanf() */', '/* use the function pointer */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87859/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_65a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_65_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_65_bad(void)
{
undefined4 uStack_14;
code *pcStack_10;
pcStack_10 = CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_65b_badSink;
uStack_14 = 0xffffffff;
func_0x00400b20(stdin,&UNK_00401314,&uStack_14);
(*pcStack_10)(uStack_14);
return;
}
| ['gcc'] |
50,224 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_65_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87859/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_65a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_65_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_65_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,225 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_65b_badSink(int 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 */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87859/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_65b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_65b_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_65b_badSink(int 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'] |
50,226 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_65b_goodG2BSink(int 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/87859/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_65b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_65b_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_65b_goodG2BSink(int 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'] |
50,227 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_66_bad()
{
int data;
int dataArray[5];
/* Initialize data */
data = -1;
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &data);
/* put data in array */
dataArray[2] = data;
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_66b_badSink(dataArray);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fscanf() */', '/* put data in array */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87860/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_66a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_66_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_66_bad(void)
{
undefined auStack_28 [8];
undefined4 uStack_20;
undefined4 uStack_c;
uStack_c = 0xffffffff;
func_0x00400b20(stdin,&UNK_00401314,&uStack_c);
uStack_20 = uStack_c;
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_66b_badSink(auStack_28);
return;
}
| ['gcc'] |
50,228 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_66_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87860/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_66a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_66_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_66_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,229 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_66b_badSink(int dataArray[])
{
/* copy data out of dataArray */
int data = dataArray[2];
/* 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);
}
} | ['/* copy data out of dataArray */', '/* 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 */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87860/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_66b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_66b_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_66b_badSink(long param_1)
{
int iVar1;
long lVar2;
iVar1 = *(int *)(param_1 + 8);
if (iVar1 < 100) {
lVar2 = func_0x00400bc0((long)iVar1);
func_0x00400b60(lVar2,0x41,(long)(iVar1 + -1));
*(undefined *)(lVar2 + (long)iVar1 + -1) = 0;
printLine(lVar2);
func_0x00400b10(lVar2);
}
return;
}
| ['gcc'] |
50,230 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_66b_goodG2BSink(int dataArray[])
{
int data = dataArray[2];
/* 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/87860/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_66b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_66b_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_66b_goodG2BSink(long param_1)
{
int iVar1;
long lVar2;
iVar1 = *(int *)(param_1 + 8);
if (iVar1 < 100) {
lVar2 = func_0x00400b00((long)iVar1);
func_0x00400aa0(lVar2,0x41,(long)(iVar1 + -1));
*(undefined *)(lVar2 + (long)iVar1 + -1) = 0;
printLine(lVar2);
func_0x00400a60(lVar2);
}
return;
}
| ['gcc'] |
50,231 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_67_bad()
{
int data;
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_67_structType myStruct;
/* Initialize data */
data = -1;
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &data);
myStruct.structFirst = data;
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_67b_badSink(myStruct);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fscanf() */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87861/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_67a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_67_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_67_bad(void)
{
undefined4 uStack_c;
uStack_c = 0xffffffff;
func_0x00400b20(stdin,&UNK_00401314,&uStack_c);
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_67b_badSink(uStack_c);
return;
}
| ['gcc'] |
50,232 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_67_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87861/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_67a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_67_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_67_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,233 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_67b_badSink(CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_67_structType myStruct)
{
int data = myStruct.structFirst;
/* 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 */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87861/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_67b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_67b_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_67b_badSink(int 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'] |
50,234 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_67b_goodG2BSink(CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_67_structType myStruct)
{
int data = myStruct.structFirst;
/* 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/87861/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_67b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_67b_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_67b_goodG2BSink(int 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'] |
50,235 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_68_bad()
{
int data;
/* Initialize data */
data = -1;
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &data);
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_68_badData = data;
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_68b_badSink();
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fscanf() */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87862/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_68a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_68_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_68_bad(void)
{
undefined4 uStack_c;
uStack_c = 0xffffffff;
func_0x00400b20(stdin,&UNK_00401314,&uStack_c);
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_68_badData = uStack_c;
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_68b_badSink();
return;
}
| ['gcc'] |
50,236 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_68_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87862/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_68a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_68_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_68_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,237 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_68b_badSink()
{
int data = CWE195_Signed_to_Unsigned_Conversion_Error__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 */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87862/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_68b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_68b_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_68b_badSink(void)
{
int iVar1;
long lVar2;
iVar1 = CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_68_badData;
if (CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_68_badData < 100) {
lVar2 = func_0x00400bc0((long)
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_68_badData);
func_0x00400b60(lVar2,0x41,(long)(iVar1 + -1));
*(undefined *)(lVar2 + (long)iVar1 + -1) = 0;
printLine(lVar2);
func_0x00400b10(lVar2);
}
return;
}
| ['gcc'] |
50,238 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_68b_goodG2BSink()
{
int data = CWE195_Signed_to_Unsigned_Conversion_Error__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/87862/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_68b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_68b_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_68b_goodG2BSink(void)
{
int iVar1;
long lVar2;
iVar1 = CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_68_goodG2BData;
if (CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_68_goodG2BData < 100) {
lVar2 = func_0x00400b00((long)
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_malloc_68_goodG2BData
);
func_0x00400aa0(lVar2,0x41,(long)(iVar1 + -1));
*(undefined *)(lVar2 + (long)iVar1 + -1) = 0;
printLine(lVar2);
func_0x00400a60(lVar2);
}
return;
}
| ['gcc'] |
50,239 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_01_bad()
{
int data;
/* Initialize data */
data = -1;
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &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 conversion could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87870/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_01.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_01_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__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;
int iStack_c;
iStack_c = -1;
func_0x00400ac0(stdin,&UNK_004012f4,&iStack_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 (iStack_c < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,240 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_01_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87870/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_01.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_01_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_01_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,241 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_02_bad()
{
int data;
/* Initialize data */
data = -1;
if(1)
{
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &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 conversion could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87871/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_02.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_02_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__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;
int iStack_c;
iStack_c = -1;
func_0x00400ac0(stdin,&UNK_004012f4,&iStack_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 (iStack_c < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,242 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_02_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87871/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_02.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_02_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_02_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
50,243 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_03_bad()
{
int data;
/* Initialize data */
data = -1;
if(5==5)
{
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &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 conversion could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87872/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_03.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_03_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__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;
int iStack_c;
iStack_c = -1;
func_0x00400ac0(stdin,&UNK_004012f4,&iStack_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 (iStack_c < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,244 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_03_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87872/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_03.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_03_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_03_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
50,245 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_04_bad()
{
int data;
/* Initialize data */
data = -1;
if(STATIC_CONST_TRUE)
{
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &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 conversion could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87873/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_04.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_04_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__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;
int iStack_c;
iStack_c = -1;
func_0x00400ac0(stdin,&UNK_004012fc,&iStack_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 (iStack_c < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,246 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_04_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87873/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_04.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_04_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_04_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
50,247 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_05_bad()
{
int data;
/* Initialize data */
data = -1;
if(staticTrue)
{
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &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 conversion could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87874/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_05.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_05_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__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;
int iStack_c;
iStack_c = -1;
if (staticTrue != 0) {
func_0x00400ac0(stdin,&UNK_004012f4,&iStack_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 (iStack_c < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,248 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_05_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87874/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_05.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_05_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_05_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
50,249 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_06_bad()
{
int data;
/* Initialize data */
data = -1;
if(STATIC_CONST_FIVE==5)
{
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &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 conversion could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87875/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_06.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_06_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__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;
int iStack_c;
iStack_c = -1;
func_0x00400ac0(stdin,&UNK_004012f8,&iStack_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 (iStack_c < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,250 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_06_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87875/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_06.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_06_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_06_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
50,251 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_07_bad()
{
int data;
/* Initialize data */
data = -1;
if(staticFive==5)
{
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &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 conversion could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87876/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_07.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_07_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__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;
int iStack_c;
iStack_c = -1;
if (staticFive == 5) {
func_0x00400ac0(stdin,&UNK_004012f4,&iStack_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 (iStack_c < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,252 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_07_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87876/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_07.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_07_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_07_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
50,253 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_08_bad()
{
int data;
/* Initialize data */
data = -1;
if(staticReturnsTrue())
{
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &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 conversion could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87877/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_08.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_08_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__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;
int iStack_c;
iStack_c = -1;
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
func_0x00400ac0(stdin,&UNK_00401314,&iStack_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 (iStack_c < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,254 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_08_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87877/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_08.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_08_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_08_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
50,255 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_09_bad()
{
int data;
/* Initialize data */
data = -1;
if(GLOBAL_CONST_TRUE)
{
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &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 conversion could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87878/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_09.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_09_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__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;
int iStack_c;
iStack_c = -1;
if (GLOBAL_CONST_TRUE != 0) {
func_0x00400ac0(stdin,&UNK_004012f4,&iStack_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 (iStack_c < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,256 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_09_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87878/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_09.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_09_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_09_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
50,257 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_10_bad()
{
int data;
/* Initialize data */
data = -1;
if(globalTrue)
{
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &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 conversion could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87879/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_10.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_10_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__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;
int iStack_c;
iStack_c = -1;
if (globalTrue != 0) {
func_0x00400ac0(stdin,&UNK_004012f4,&iStack_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 (iStack_c < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,258 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_10_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87879/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_10.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_10_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_10_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
50,259 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_11_bad()
{
int data;
/* Initialize data */
data = -1;
if(globalReturnsTrue())
{
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &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 conversion could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87880/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_11.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_11_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__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;
int iStack_c;
iStack_c = -1;
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
func_0x00400ac0(stdin,&UNK_00401304,&iStack_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 (iStack_c < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,260 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_11_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87880/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_11.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_11_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_11_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
50,261 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_12_bad()
{
int data;
/* Initialize data */
data = -1;
if(globalReturnsTrueOrFalse())
{
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &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 conversion could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Read data 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 conversion could result in a very large number */', '/* NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87881/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_12.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_12_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__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;
int iStack_c;
iStack_c = -1;
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
iStack_c = 99;
}
else {
func_0x00400ac0(stdin,&UNK_00401304,&iStack_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 (iStack_c < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,262 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_12_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87881/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_12.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_12_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_12_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,263 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_13_bad()
{
int data;
/* Initialize data */
data = -1;
if(GLOBAL_CONST_FIVE==5)
{
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &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 conversion could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87882/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_13.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_13_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__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;
int iStack_c;
iStack_c = -1;
if (GLOBAL_CONST_FIVE == 5) {
func_0x00400ac0(stdin,&UNK_004012f4,&iStack_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 (iStack_c < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,264 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_13_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87882/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_13.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_13_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_13_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
50,265 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_14_bad()
{
int data;
/* Initialize data */
data = -1;
if(globalFive==5)
{
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &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 conversion could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87883/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_14.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_14_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__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;
int iStack_c;
iStack_c = -1;
if (globalFive == 5) {
func_0x00400ac0(stdin,&UNK_004012f4,&iStack_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 (iStack_c < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,266 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_14_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87883/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_14.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_14_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_14_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
50,267 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_15_bad()
{
int data;
/* Initialize data */
data = -1;
switch(6)
{
case 6:
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &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 conversion could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Read data 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 conversion could result in a very large number */', '/* NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87884/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_15.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_15_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__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;
int iStack_c;
iStack_c = -1;
func_0x00400ac0(stdin,&UNK_004012f4,&iStack_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 (iStack_c < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,268 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_15_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87884/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_15.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_15_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_15_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
50,269 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_16_bad()
{
int data;
/* Initialize data */
data = -1;
while(1)
{
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &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 conversion could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87885/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_16.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_16_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__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;
int iStack_c;
iStack_c = -1;
func_0x00400ac0(stdin,&UNK_004012f4,&iStack_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 (iStack_c < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,270 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_16_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87885/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_16.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_16_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_16_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,271 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_17_bad()
{
int i;
int data;
/* Initialize data */
data = -1;
for(i = 0; i < 1; i++)
{
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &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 conversion could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87886/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_17.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_17_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__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;
int iStack_10;
int iStack_c;
iStack_10 = -1;
for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) {
func_0x00400ac0(stdin,&UNK_00401304,&iStack_10);
}
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 (iStack_10 < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)iStack_10);
*(undefined *)((long)&uStack_78 + (long)iStack_10) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,272 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_17_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87886/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_17.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_17_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_17_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,273 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_18_bad()
{
int data;
/* Initialize data */
data = -1;
goto source;
source:
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &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 conversion could result in a very large number */
memcpy(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fscanf() */', '/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,\r\n * the sign conversion could result in a very large number */', '/* NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87887/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_18.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_18_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__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;
int iStack_c;
iStack_c = -1;
func_0x00400ac0(stdin,&UNK_004012f4,&iStack_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 (iStack_c < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,274 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_18_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87887/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_18.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_18_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_18_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,275 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_21_bad()
{
int data;
/* Initialize data */
data = -1;
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 conversion 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 conversion could result in a very large number */', '/* NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87888/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_21.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_21_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__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;
int iStack_c;
iStack_c = 0xffffffff;
badStatic = 1;
iStack_c = badSource(0xffffffff);
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 (iStack_c < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,276 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_21_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87888/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_21.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_21_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_21_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
50,277 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_22_bad()
{
int data;
/* Initialize data */
data = -1;
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_22_badGlobal = 1; /* true */
data = CWE195_Signed_to_Unsigned_Conversion_Error__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 conversion 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 conversion could result in a very large number */', '/* NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87889/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_22a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_22_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__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;
int iStack_c;
iStack_c = 0xffffffff;
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_22_badGlobal = 1;
iStack_c = CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_22_badSource(0xffffffff);
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 (iStack_c < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,278 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_22_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87889/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_22a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_22_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_22_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
50,279 | int CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_22_badSource(int data)
{
if(CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_22_badGlobal)
{
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &data);
}
return data;
} | ['/* POTENTIAL FLAW: Read data from the console using fscanf() */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87889/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_22b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_22_badSource |
undefined4
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_22_badSource(undefined4 param_1)
{
undefined4 uStack_c;
uStack_c = param_1;
if (CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_22_badGlobal != 0) {
func_0x00400ac0(stdin,&UNK_00401324,&uStack_c);
}
return uStack_c;
}
| ['gcc'] |
50,280 | int CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_22_goodG2B1Source(int data)
{
if(CWE195_Signed_to_Unsigned_Conversion_Error__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/87889/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_22b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_22_goodG2B1Source |
undefined4
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_22_goodG2B1Source(undefined4 param_1)
{
undefined4 uStack_c;
if (CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_22_goodG2B1Global == 0) {
uStack_c = 99;
}
else {
printLine(&UNK_00401394);
uStack_c = param_1;
}
return uStack_c;
}
| ['gcc'] |
50,281 | int CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_22_goodG2B2Source(int data)
{
if(CWE195_Signed_to_Unsigned_Conversion_Error__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/87889/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_22b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_22_goodG2B2Source |
undefined4
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_22_goodG2B2Source(undefined4 param_1)
{
undefined4 uStack_c;
uStack_c = param_1;
if (CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_22_goodG2B2Global != 0) {
uStack_c = 99;
}
return uStack_c;
}
| ['gcc'] |
50,282 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52_bad()
{
int data;
/* Initialize data */
data = -1;
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &data);
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52b_badSink(data);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fscanf() */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87900/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52_bad(void)
{
undefined4 uStack_c;
uStack_c = 0xffffffff;
func_0x00400ac0(stdin,&UNK_00401324,&uStack_c);
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52b_badSink(uStack_c);
return;
}
| ['gcc'] |
50,283 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87900/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,284 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52b_badSink(int data)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52c_badSink(data);
} | [] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87900/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52b_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52b_badSink(undefined4 param_1)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52c_badSink(param_1);
return;
}
| ['gcc'] |
50,285 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52b_goodG2BSink(int data)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87900/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52b_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52b_goodG2BSink(undefined4 param_1)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
50,286 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52c_badSink(int 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 conversion 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 conversion could result in a very large number */', '/* NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87900/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52c.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52c_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52c_badSink(int 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)param_1) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,287 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52c_goodG2BSink(int 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 conversion 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 conversion 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/87900/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52c.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52c_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_52c_goodG2BSink(int 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)param_1) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,288 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53_bad()
{
int data;
/* Initialize data */
data = -1;
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &data);
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53b_badSink(data);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fscanf() */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87901/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53_bad(void)
{
undefined4 uStack_c;
uStack_c = 0xffffffff;
func_0x00400ac0(stdin,&UNK_00401344,&uStack_c);
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53b_badSink(uStack_c);
return;
}
| ['gcc'] |
50,289 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87901/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,290 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53b_badSink(int data)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53c_badSink(data);
} | [] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87901/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53b_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53b_badSink(undefined4 param_1)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53c_badSink(param_1);
return;
}
| ['gcc'] |
50,291 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53b_goodG2BSink(int data)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87901/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53b_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53b_goodG2BSink(undefined4 param_1)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
50,292 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53c_badSink(int data)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53d_badSink(data);
} | [] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87901/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53c.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53c_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53c_badSink(undefined4 param_1)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53d_badSink(param_1);
return;
}
| ['gcc'] |
50,293 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53c_goodG2BSink(int data)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87901/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53c.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53c_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53c_goodG2BSink(undefined4 param_1)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
50,294 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53d_badSink(int 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 conversion 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 conversion could result in a very large number */', '/* NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87901/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53d.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53d_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53d_badSink(int 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)param_1) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,295 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53d_goodG2BSink(int 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 conversion 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 conversion 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/87901/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53d.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53d_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_53d_goodG2BSink(int 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)param_1) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,296 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_54_bad()
{
int data;
/* Initialize data */
data = -1;
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &data);
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_54b_badSink(data);
} | ['/* Initialize data */', '/* POTENTIAL FLAW: Read data from the console using fscanf() */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87902/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_54a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_54_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_54_bad(void)
{
undefined4 uStack_c;
uStack_c = 0xffffffff;
func_0x00400ac0(stdin,&UNK_00401354,&uStack_c);
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_54b_badSink(uStack_c);
return;
}
| ['gcc'] |
50,297 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_54_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87902/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_54a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_54_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_54_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,298 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_54b_badSink(int data)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_54c_badSink(data);
} | [] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87902/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_54b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_54b_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_54b_badSink(undefined4 param_1)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_54c_badSink(param_1);
return;
}
| ['gcc'] |
50,299 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_54b_goodG2BSink(int data)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_54c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87902/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_54b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_54b_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_54b_goodG2BSink(undefined4 param_1)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memcpy_54c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.