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,400 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_54e_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 */
memmove(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/87950/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_54e.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_54e_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_54e_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,401 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_54e_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 */
memmove(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/87950/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_54e.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_54e_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_54e_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,402 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_61_bad()
{
int data;
/* Initialize data */
data = -1;
data = CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_61b_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 */
memmove(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* 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/87951/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_61a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_61_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_61_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;
iStack_c = CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_61b_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,403 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_61_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87951/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_61a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_61_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_61_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,404 | int CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_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/87951/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_61b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_61b_badSource |
undefined4
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_61b_badSource(undefined4 param_1)
{
undefined4 uStack_c;
uStack_c = param_1;
func_0x00400ac0(stdin,&UNK_00401314,&uStack_c);
return uStack_c;
}
| ['gcc'] |
50,405 | int CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_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/87951/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_61b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_61b_goodG2BSource |
undefined4 CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_61b_goodG2BSource(void)
{
return 99;
}
| ['gcc'] |
50,406 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_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_memmove_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/87953/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_63a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_63_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_63_bad(void)
{
undefined4 uStack_c;
uStack_c = 0xffffffff;
func_0x00400ac0(stdin,&UNK_00401314,&uStack_c);
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_63b_badSink(&uStack_c);
return;
}
| ['gcc'] |
50,407 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_63_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87953/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_63a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_63_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_63_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,408 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_63b_badSink(int * dataPtr)
{
int data = *dataPtr;
{
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 */
memmove(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/87953/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_63b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_63b_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_63b_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;
int iStack_c;
iStack_c = *param_1;
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,409 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_63b_goodG2BSink(int * dataPtr)
{
int data = *dataPtr;
{
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 */
memmove(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/87953/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_63b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_63b_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_63b_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;
int iStack_c;
iStack_c = *param_1;
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 (iStack_c < 100) {
func_0x00400ab0(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,410 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_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_memmove_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/87954/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_64a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_64_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_64_bad(void)
{
undefined4 uStack_c;
uStack_c = 0xffffffff;
func_0x00400ac0(stdin,&UNK_00401324,&uStack_c);
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_64b_badSink(&uStack_c);
return;
}
| ['gcc'] |
50,411 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_64_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87954/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_64a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_64_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_64_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,412 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_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);
{
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 */
memmove(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* 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/87954/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_64b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_64b_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_64b_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;
int iStack_14;
int *piStack_10;
iStack_14 = *param_1;
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;
piStack_10 = param_1;
func_0x00400b00(auStack_e8,0x41,99);
uStack_85 = 0;
if (iStack_14 < 100) {
func_0x00400b50(&uStack_78,auStack_e8,(long)iStack_14);
*(undefined *)((long)&uStack_78 + (long)iStack_14) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,413 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_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);
{
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 */
memmove(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* 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/87954/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_64b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_64b_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_64b_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;
int iStack_14;
int *piStack_10;
iStack_14 = *param_1;
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;
piStack_10 = param_1;
func_0x00400a60(auStack_e8,0x41,99);
uStack_85 = 0;
if (iStack_14 < 100) {
func_0x00400ab0(&uStack_78,auStack_e8,(long)iStack_14);
*(undefined *)((long)&uStack_78 + (long)iStack_14) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,414 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_65_bad()
{
int data;
/* define a function pointer */
void (*funcPtr) (int) = CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_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/87955/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_65a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_65_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_65_bad(void)
{
undefined4 uStack_14;
code *pcStack_10;
pcStack_10 = CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_65b_badSink;
uStack_14 = 0xffffffff;
func_0x00400ac0(stdin,&UNK_00401324,&uStack_14);
(*pcStack_10)(uStack_14);
return;
}
| ['gcc'] |
50,415 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_65_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87955/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_65a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_65_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_65_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,416 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_65b_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 */
memmove(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/87955/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_65b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_65b_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_65b_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,417 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_65b_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 */
memmove(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/87955/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_65b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_65b_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_65b_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,418 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_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_memmove_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/87956/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_66a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_66_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_66_bad(void)
{
undefined auStack_28 [8];
undefined4 uStack_20;
undefined4 uStack_c;
uStack_c = 0xffffffff;
func_0x00400ac0(stdin,&UNK_00401324,&uStack_c);
uStack_20 = uStack_c;
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_66b_badSink(auStack_28);
return;
}
| ['gcc'] |
50,419 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_66_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87956/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_66a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_66_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_66_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,420 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_66b_badSink(int dataArray[])
{
/* copy data out of dataArray */
int data = dataArray[2];
{
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 */
memmove(dest, source, data);
dest[data] = '\0'; /* NULL terminate */
}
printLine(dest);
}
} | ['/* copy data out of dataArray */', '/* 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/87956/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_66b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_66b_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_66b_badSink(long 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;
int iStack_c;
iStack_c = *(int *)(param_1 + 8);
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,421 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_66b_goodG2BSink(int dataArray[])
{
int data = dataArray[2];
{
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 */
memmove(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/87956/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_66b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_66b_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_66b_goodG2BSink(long 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;
int iStack_c;
iStack_c = *(int *)(param_1 + 8);
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 (iStack_c < 100) {
func_0x00400ab0(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,422 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_67_bad()
{
int data;
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_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_memmove_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/87957/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_67a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_67_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_67_bad(void)
{
undefined4 uStack_c;
uStack_c = 0xffffffff;
func_0x00400ac0(stdin,&UNK_00401314,&uStack_c);
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_67b_badSink(uStack_c);
return;
}
| ['gcc'] |
50,423 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_67_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87957/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_67a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_67_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_67_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,424 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_67b_badSink(CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_67_structType myStruct)
{
int data = myStruct.structFirst;
{
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 */
memmove(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/87957/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_67b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_67b_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_67b_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;
int 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;
iStack_c = param_1;
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,425 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_67b_goodG2BSink(CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_67_structType myStruct)
{
int data = myStruct.structFirst;
{
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 */
memmove(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/87957/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_67b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_67b_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_67b_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;
int 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;
iStack_c = param_1;
func_0x00400a60(auStack_e8,0x41,99);
uStack_85 = 0;
if (iStack_c < 100) {
func_0x00400ab0(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,426 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_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_memmove_68_badData = data;
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_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/87958/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_68a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_68_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_68_bad(void)
{
undefined4 uStack_c;
uStack_c = 0xffffffff;
func_0x00400ac0(stdin,&UNK_00401314,&uStack_c);
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_68_badData = uStack_c;
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_68b_badSink();
return;
}
| ['gcc'] |
50,427 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_68_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87958/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_68a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_68_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_68_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,428 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_68b_badSink()
{
int data = CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_68_badData;
{
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 */
memmove(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/87958/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_68b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_68b_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_68b_badSink(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 = CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_68_badData;
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,429 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_68b_goodG2BSink()
{
int data = CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_68_goodG2BData;
{
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 */
memmove(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/87958/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_68b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_68b_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_68b_goodG2BSink(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 = CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_memmove_68_goodG2BData;
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 (iStack_c < 100) {
func_0x00400ab0(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,430 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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 */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 */', '/* strncpy() does not always NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87970/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_05.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_05_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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_0x00400ab0(stdin,&UNK_004012d4,&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_0x00400af0(auStack_e8,0x41,99);
uStack_85 = 0;
if (iStack_c < 100) {
func_0x00400aa0(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,431 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_05_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87970/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_05.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_05_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_05_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
50,432 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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 */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 */', '/* strncpy() does not always NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87971/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_06.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_06_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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_0x00400ab0(stdin,&UNK_004012d8,&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_0x00400af0(auStack_e8,0x41,99);
uStack_85 = 0;
if (iStack_c < 100) {
func_0x00400aa0(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,433 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_06_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87971/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_06.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_06_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_06_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
50,434 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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 */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 */', '/* strncpy() does not always NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87972/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_07.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_07_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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_0x00400ab0(stdin,&UNK_004012d4,&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_0x00400af0(auStack_e8,0x41,99);
uStack_85 = 0;
if (iStack_c < 100) {
func_0x00400aa0(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,435 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_07_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87972/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_07.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_07_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_07_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
50,436 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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 */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 */', '/* strncpy() does not always NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87973/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_08.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_08_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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_0x00400ab0(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_0x00400af0(auStack_e8,0x41,99);
uStack_85 = 0;
if (iStack_c < 100) {
func_0x00400aa0(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,437 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_08_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87973/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_08.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_08_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_08_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
50,438 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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 */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 */', '/* strncpy() does not always NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87974/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_09.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_09_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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_0x00400ab0(stdin,&UNK_004012d4,&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_0x00400af0(auStack_e8,0x41,99);
uStack_85 = 0;
if (iStack_c < 100) {
func_0x00400aa0(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,439 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_09_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87974/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_09.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_09_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_09_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
50,440 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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 */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 */', '/* strncpy() does not always NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87975/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_10.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_10_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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_0x00400ab0(stdin,&UNK_004012d4,&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_0x00400af0(auStack_e8,0x41,99);
uStack_85 = 0;
if (iStack_c < 100) {
func_0x00400aa0(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,441 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_10_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87975/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_10.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_10_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_10_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
50,442 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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 */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 */', '/* strncpy() does not always NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87976/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_11.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_11_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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_0x00400ab0(stdin,&UNK_004012e4,&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_0x00400af0(auStack_e8,0x41,99);
uStack_85 = 0;
if (iStack_c < 100) {
func_0x00400aa0(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,443 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_11_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87976/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_11.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_11_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_11_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
50,444 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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 */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 */', '/* strncpy() does not always NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87977/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_12.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_12_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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_0x00400ab0(stdin,&UNK_004012e4,&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_0x00400af0(auStack_e8,0x41,99);
uStack_85 = 0;
if (iStack_c < 100) {
func_0x00400aa0(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,445 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_12_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87977/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_12.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_12_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_12_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,446 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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 */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 */', '/* strncpy() does not always NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87978/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_13.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_13_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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_0x00400ab0(stdin,&UNK_004012d4,&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_0x00400af0(auStack_e8,0x41,99);
uStack_85 = 0;
if (iStack_c < 100) {
func_0x00400aa0(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,447 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_13_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87978/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_13.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_13_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_13_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
50,448 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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 */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 */', '/* strncpy() does not always NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87979/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_14.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_14_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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_0x00400ab0(stdin,&UNK_004012d4,&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_0x00400af0(auStack_e8,0x41,99);
uStack_85 = 0;
if (iStack_c < 100) {
func_0x00400aa0(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,449 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_14_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87979/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_14.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_14_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_14_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
50,450 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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 */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 */', '/* strncpy() does not always NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87980/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_15.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_15_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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_0x00400ab0(stdin,&UNK_004012d4,&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_0x00400af0(auStack_e8,0x41,99);
uStack_85 = 0;
if (iStack_c < 100) {
func_0x00400aa0(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,451 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_15_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87980/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_15.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_15_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_15_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
50,452 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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 */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 */', '/* strncpy() does not always NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87981/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_16.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_16_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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_0x00400ab0(stdin,&UNK_004012d4,&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_0x00400af0(auStack_e8,0x41,99);
uStack_85 = 0;
if (iStack_c < 100) {
func_0x00400aa0(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,453 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_16_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87981/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_16.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_16_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_16_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,454 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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 */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 */', '/* strncpy() does not always NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87982/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_17.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_17_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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_0x00400ab0(stdin,&UNK_004012e4,&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_0x00400af0(auStack_e8,0x41,99);
uStack_85 = 0;
if (iStack_10 < 100) {
func_0x00400aa0(&uStack_78,auStack_e8,(long)iStack_10);
*(undefined *)((long)&uStack_78 + (long)iStack_10) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,455 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_17_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87982/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_17.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_17_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_17_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,456 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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 */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 */', '/* strncpy() does not always NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87983/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_18.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_18_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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_0x00400ab0(stdin,&UNK_004012d4,&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_0x00400af0(auStack_e8,0x41,99);
uStack_85 = 0;
if (iStack_c < 100) {
func_0x00400aa0(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,457 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_18_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87983/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_18.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_18_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_18_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,458 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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 */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 */', '/* strncpy() does not always NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87984/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_21.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_21_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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_0x00400af0(auStack_e8,0x41,99);
uStack_85 = 0;
if (iStack_c < 100) {
func_0x00400aa0(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,459 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_21_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87984/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_21.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_21_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_21_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
50,460 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_22_bad()
{
int data;
/* Initialize data */
data = -1;
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_22_badGlobal = 1; /* true */
data = CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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 */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 */', '/* strncpy() does not always NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87985/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_22a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_22_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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_strncpy_22_badGlobal = 1;
iStack_c = CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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_0x00400af0(auStack_e8,0x41,99);
uStack_85 = 0;
if (iStack_c < 100) {
func_0x00400aa0(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,461 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_22_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87985/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_22a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_22_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_22_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
50,462 | int CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_22_badSource(int data)
{
if(CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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/87985/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_22b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_22_badSource |
undefined4
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_22_badSource(undefined4 param_1)
{
undefined4 uStack_c;
uStack_c = param_1;
if (CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_22_badGlobal != 0) {
func_0x00400ab0(stdin,&UNK_00401304,&uStack_c);
}
return uStack_c;
}
| ['gcc'] |
50,463 | int CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_22_goodG2B1Source(int data)
{
if(CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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/87985/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_22b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_22_goodG2B1Source |
undefined4
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_22_goodG2B1Source(undefined4 param_1)
{
undefined4 uStack_c;
if (CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_22_goodG2B1Global == 0) {
uStack_c = 99;
}
else {
printLine(&UNK_00401384);
uStack_c = param_1;
}
return uStack_c;
}
| ['gcc'] |
50,464 | int CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_22_goodG2B2Source(int data)
{
if(CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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/87985/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_22b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_22_goodG2B2Source |
undefined4
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_22_goodG2B2Source(undefined4 param_1)
{
undefined4 uStack_c;
uStack_c = param_1;
if (CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_22_goodG2B2Global != 0) {
uStack_c = 99;
}
return uStack_c;
}
| ['gcc'] |
50,465 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_31_bad()
{
int data;
/* Initialize data */
data = -1;
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &data);
{
int dataCopy = data;
int data = dataCopy;
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign conversion could result in a very large number */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 */', '/* strncpy() does not always NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87986/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_31.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_31_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_31_bad(void)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
int iStack_14;
int iStack_10;
int iStack_c;
iStack_14 = -1;
func_0x00400ab0(stdin,&UNK_004012d4,&iStack_14);
iStack_c = iStack_14;
iStack_10 = iStack_14;
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_0x00400af0(auStack_e8,0x41,99);
uStack_85 = 0;
if (iStack_10 < 100) {
func_0x00400aa0(&uStack_78,auStack_e8,(long)iStack_10);
*(undefined *)((long)&uStack_78 + (long)iStack_10) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,466 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_31_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87986/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_31.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_31_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_31_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,467 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_32_bad()
{
int data;
int *dataPtr1 = &data;
int *dataPtr2 = &data;
/* Initialize data */
data = -1;
{
int data = *dataPtr1;
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &data);
*dataPtr1 = data;
}
{
int data = *dataPtr2;
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign conversion could result in a very large number */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 */', '/* strncpy() does not always NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87987/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_32.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_32_bad |
/* WARNING: Restarted to delay deadcode elimination for space: stack */
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_32_bad(void)
{
undefined auStack_f8 [99];
undefined uStack_95;
undefined8 uStack_88;
undefined8 uStack_80;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined4 uStack_28;
int iStack_24;
int iStack_20;
int iStack_1c;
int *piStack_18;
int *piStack_10;
piStack_10 = &iStack_20;
piStack_18 = &iStack_20;
iStack_20 = -1;
iStack_24 = -1;
func_0x00400ab0(stdin,&UNK_00401304,&iStack_24);
*piStack_10 = iStack_24;
iStack_1c = *piStack_18;
uStack_88 = 0;
uStack_80 = 0;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
func_0x00400af0(auStack_f8,0x41,99);
uStack_95 = 0;
if (iStack_1c < 100) {
func_0x00400aa0(&uStack_88,auStack_f8,(long)iStack_1c);
*(undefined *)((long)&uStack_88 + (long)iStack_1c) = 0;
}
printLine(&uStack_88);
return;
}
| ['gcc'] |
50,468 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_32_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87987/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_32.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_32_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_32_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,469 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_34_bad()
{
int data;
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_34_unionType myUnion;
/* Initialize data */
data = -1;
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%d", &data);
myUnion.unionFirst = data;
{
int data = myUnion.unionSecond;
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign conversion could result in a very large number */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 */', '/* strncpy() does not always NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87989/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_34.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_34_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_34_bad(void)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
int iStack_14;
int iStack_10;
int iStack_c;
iStack_10 = -1;
func_0x00400ab0(stdin,&UNK_004012d4,&iStack_10);
iStack_14 = iStack_10;
iStack_c = 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_0x00400af0(auStack_e8,0x41,99);
uStack_85 = 0;
if (iStack_c < 100) {
func_0x00400aa0(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,470 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_34_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87989/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_34.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_34_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_34_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,471 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_41_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 */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 */', '/* strncpy() does not always NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87990/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_41.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_41_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_41_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_0x00400af0(auStack_e8,0x41,99);
uStack_85 = 0;
if (param_1 < 100) {
func_0x00400aa0(&uStack_78,auStack_e8,(long)param_1);
*(undefined *)((long)&uStack_78 + (long)param_1) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,472 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_41_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_strncpy_41_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/87990/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_41.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_41_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_41_bad(void)
{
undefined4 uStack_c;
uStack_c = 0xffffffff;
func_0x00400ab0(stdin,&UNK_004012f4,&uStack_c);
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_41_badSink(uStack_c);
return;
}
| ['gcc'] |
50,473 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_41_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 */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 */', '/* strncpy() does not always NULL terminate */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87990/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_41.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_41_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_41_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_0x00400a20(&uStack_78,auStack_e8,(long)param_1);
*(undefined *)((long)&uStack_78 + (long)param_1) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,474 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_41_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87990/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_41.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_41_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_41_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,475 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_42_bad()
{
int data;
/* Initialize data */
data = -1;
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 */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always NULL terminate */
}
printLine(dest);
}
} | ['/* Initialize data */', '/* 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 */', '/* strncpy() does not always NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87991/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_42.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_42_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_42_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;
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_0x00400af0(auStack_e8,0x41,99);
uStack_85 = 0;
if (iStack_c < 100) {
func_0x00400aa0(&uStack_78,auStack_e8,(long)iStack_c);
*(undefined *)((long)&uStack_78 + (long)iStack_c) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,476 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_42_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87991/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_42.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_42_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_42_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,477 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_44_bad()
{
int data;
/* define a function pointer */
void (*funcPtr) (int) = 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/87993/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_44.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_44_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_44_bad(void)
{
undefined4 uStack_14;
code *pcStack_10;
pcStack_10 = badSink;
uStack_14 = 0xffffffff;
func_0x00400ab0(stdin,&UNK_004012f4,&uStack_14);
(*pcStack_10)(uStack_14);
return;
}
| ['gcc'] |
50,478 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_44_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87993/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_44.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_44_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_44_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,479 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_45_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_strncpy_45_badData = data;
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/87994/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_45.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_45_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_45_bad(void)
{
undefined4 uStack_c;
uStack_c = 0xffffffff;
func_0x00400ab0(stdin,&UNK_004012f4,&uStack_c);
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_45_badData = uStack_c;
badSink();
return;
}
| ['gcc'] |
50,480 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_45_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87994/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_45.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_45_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_45_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,481 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_51_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_strncpy_51b_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/87995/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_51a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_51_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_51_bad(void)
{
undefined4 uStack_c;
uStack_c = 0xffffffff;
func_0x00400ab0(stdin,&UNK_004012f4,&uStack_c);
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_51b_badSink(uStack_c);
return;
}
| ['gcc'] |
50,482 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_51_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87995/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_51a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_51_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_51_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,483 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_51b_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 */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 */', '/* strncpy() does not always NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87995/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_51b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_51b_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_51b_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_0x00400af0(auStack_e8,0x41,99);
uStack_85 = 0;
if (param_1 < 100) {
func_0x00400aa0(&uStack_78,auStack_e8,(long)param_1);
*(undefined *)((long)&uStack_78 + (long)param_1) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,484 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_51b_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 */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 */', '/* strncpy() does not always NULL terminate */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87995/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_51b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_51b_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_51b_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_0x00400a20(&uStack_78,auStack_e8,(long)param_1);
*(undefined *)((long)&uStack_78 + (long)param_1) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,485 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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_strncpy_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/87996/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_52a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_52_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_52_bad(void)
{
undefined4 uStack_c;
uStack_c = 0xffffffff;
func_0x00400ab0(stdin,&UNK_00401304,&uStack_c);
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_52b_badSink(uStack_c);
return;
}
| ['gcc'] |
50,486 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_52_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87996/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_52a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_52_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_52_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,487 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_52b_badSink(int data)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_52c_badSink(data);
} | [] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87996/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_52b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_52b_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_52b_badSink(undefined4 param_1)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_52c_badSink(param_1);
return;
}
| ['gcc'] |
50,488 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_52b_goodG2BSink(int data)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_52c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87996/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_52b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_52b_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_52b_goodG2BSink(undefined4 param_1)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_52c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
50,489 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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 */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 */', '/* strncpy() does not always NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87996/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_52c.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_52c_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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_0x00400af0(auStack_e8,0x41,99);
uStack_85 = 0;
if (param_1 < 100) {
func_0x00400aa0(&uStack_78,auStack_e8,(long)param_1);
*(undefined *)((long)&uStack_78 + (long)param_1) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,490 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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 */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 */', '/* strncpy() does not always NULL terminate */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87996/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_52c.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_52c_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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_0x00400a20(&uStack_78,auStack_e8,(long)param_1);
*(undefined *)((long)&uStack_78 + (long)param_1) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,491 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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_strncpy_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/87997/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53_bad(void)
{
undefined4 uStack_c;
uStack_c = 0xffffffff;
func_0x00400ab0(stdin,&UNK_00401324,&uStack_c);
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53b_badSink(uStack_c);
return;
}
| ['gcc'] |
50,492 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87997/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53_good |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
50,493 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53b_badSink(int data)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53c_badSink(data);
} | [] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87997/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53b_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53b_badSink(undefined4 param_1)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53c_badSink(param_1);
return;
}
| ['gcc'] |
50,494 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53b_goodG2BSink(int data)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87997/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53b.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53b_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53b_goodG2BSink(undefined4 param_1)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
50,495 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53c_badSink(int data)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53d_badSink(data);
} | [] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87997/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53c.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53c_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53c_badSink(undefined4 param_1)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53d_badSink(param_1);
return;
}
| ['gcc'] |
50,496 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53c_goodG2BSink(int data)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87997/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53c.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53c_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53c_goodG2BSink(undefined4 param_1)
{
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
50,497 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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 */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 */', '/* strncpy() does not always NULL terminate */'] | ['CWE195'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87997/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53d.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53d_badSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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_0x00400af0(auStack_e8,0x41,99);
uStack_85 = 0;
if (param_1 < 100) {
func_0x00400aa0(&uStack_78,auStack_e8,(long)param_1);
*(undefined *)((long)&uStack_78 + (long)param_1) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,498 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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 */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 */', '/* strncpy() does not always NULL terminate */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/87997/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53d.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_53d_goodG2BSink |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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_0x00400a20(&uStack_78,auStack_e8,(long)param_1);
*(undefined *)((long)&uStack_78 + (long)param_1) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
50,499 | void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_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_strncpy_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/87998/CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_54a.c | CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_54_bad |
void CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_54_bad(void)
{
undefined4 uStack_c;
uStack_c = 0xffffffff;
func_0x00400ab0(stdin,&UNK_00401334,&uStack_c);
CWE195_Signed_to_Unsigned_Conversion_Error__fscanf_strncpy_54b_badSink(uStack_c);
return;
}
| ['gcc'] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.