Unnamed: 0 int64 0 56k | source_code stringlengths 55 5.98k | comments stringlengths 2 1.76k | label stringclasses 68 values | dataset_name stringclasses 1 value | file_name stringlengths 208 265 | function stringlengths 27 87 | decompiled_code stringlengths 68 3.97k | compiler_options stringclasses 1 value |
|---|---|---|---|---|---|---|---|---|
47,500 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_53c_badSink(short data)
{
CWE194_Unexpected_Sign_Extension__fgets_strncpy_53d_badSink(data);
} | [] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86653/CWE194_Unexpected_Sign_Extension__fgets_strncpy_53c.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_53c_badSink |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_53c_badSink(short param_1)
{
CWE194_Unexpected_Sign_Extension__fgets_strncpy_53d_badSink((int)param_1);
return;
}
| ['gcc'] |
47,501 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_53c_goodG2BSink(short data)
{
CWE194_Unexpected_Sign_Extension__fgets_strncpy_53d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86653/CWE194_Unexpected_Sign_Extension__fgets_strncpy_53c.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_53c_goodG2BSink |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_53c_goodG2BSink(short param_1)
{
CWE194_Unexpected_Sign_Extension__fgets_strncpy_53d_goodG2BSink((int)param_1);
return;
}
| ['gcc'] |
47,502 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_53d_badSink(short data)
{
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
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 extension could result in a very large number */', '/* strncpy() does not always NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86653/CWE194_Unexpected_Sign_Extension__fgets_strncpy_53d.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_53d_badSink |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_53d_badSink(short param_1)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400b50(auStack_e8,0x41,99);
uStack_85 = 0;
if (param_1 < 100) {
func_0x00400b10(&uStack_78,auStack_e8,(long)param_1);
*(undefined *)((long)&uStack_78 + (long)(int)param_1) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,503 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_53d_goodG2BSink(short data)
{
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
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 extension 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/86653/CWE194_Unexpected_Sign_Extension__fgets_strncpy_53d.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_53d_goodG2BSink |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_53d_goodG2BSink(short param_1)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400a60(auStack_e8,0x41,99);
uStack_85 = 0;
if (param_1 < 100) {
func_0x00400a20(&uStack_78,auStack_e8,(long)param_1);
*(undefined *)((long)&uStack_78 + (long)(int)param_1) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,504 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_54_bad()
{
short data;
/* Initialize data */
data = 0;
{
char inputBuffer[CHAR_ARRAY_SIZE] = "";
/* FLAW: Use a value input from the console using fgets() */
if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL)
{
/* Convert to short */
data = (short)atoi(inputBuffer);
}
else
{
printLine("fgets() failed.");
}
}
CWE194_Unexpected_Sign_Extension__fgets_strncpy_54b_badSink(data);
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fgets() */', '/* Convert to short */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86654/CWE194_Unexpected_Sign_Extension__fgets_strncpy_54a.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_54_bad |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_54_bad(void)
{
long lVar1;
undefined8 uStack_12;
short sStack_a;
sStack_a = 0;
uStack_12 = 0;
lVar1 = func_0x00400b80(&uStack_12,8,stdin);
if (lVar1 == 0) {
printLine(&UNK_004013f4);
}
else {
sStack_a = func_0x00400be0(&uStack_12);
}
CWE194_Unexpected_Sign_Extension__fgets_strncpy_54b_badSink((int)sStack_a);
return;
}
| ['gcc'] |
47,505 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_54_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86654/CWE194_Unexpected_Sign_Extension__fgets_strncpy_54a.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_54_good |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_54_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,506 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_54b_badSink(short data)
{
CWE194_Unexpected_Sign_Extension__fgets_strncpy_54c_badSink(data);
} | [] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86654/CWE194_Unexpected_Sign_Extension__fgets_strncpy_54b.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_54b_badSink |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_54b_badSink(short param_1)
{
CWE194_Unexpected_Sign_Extension__fgets_strncpy_54c_badSink((int)param_1);
return;
}
| ['gcc'] |
47,507 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_54b_goodG2BSink(short data)
{
CWE194_Unexpected_Sign_Extension__fgets_strncpy_54c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86654/CWE194_Unexpected_Sign_Extension__fgets_strncpy_54b.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_54b_goodG2BSink |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_54b_goodG2BSink(short param_1)
{
CWE194_Unexpected_Sign_Extension__fgets_strncpy_54c_goodG2BSink((int)param_1);
return;
}
| ['gcc'] |
47,508 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_54c_badSink(short data)
{
CWE194_Unexpected_Sign_Extension__fgets_strncpy_54d_badSink(data);
} | [] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86654/CWE194_Unexpected_Sign_Extension__fgets_strncpy_54c.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_54c_badSink |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_54c_badSink(short param_1)
{
CWE194_Unexpected_Sign_Extension__fgets_strncpy_54d_badSink((int)param_1);
return;
}
| ['gcc'] |
47,509 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_54c_goodG2BSink(short data)
{
CWE194_Unexpected_Sign_Extension__fgets_strncpy_54d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86654/CWE194_Unexpected_Sign_Extension__fgets_strncpy_54c.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_54c_goodG2BSink |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_54c_goodG2BSink(short param_1)
{
CWE194_Unexpected_Sign_Extension__fgets_strncpy_54d_goodG2BSink((int)param_1);
return;
}
| ['gcc'] |
47,510 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_54d_badSink(short data)
{
CWE194_Unexpected_Sign_Extension__fgets_strncpy_54e_badSink(data);
} | [] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86654/CWE194_Unexpected_Sign_Extension__fgets_strncpy_54d.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_54d_badSink |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_54d_badSink(short param_1)
{
CWE194_Unexpected_Sign_Extension__fgets_strncpy_54e_badSink((int)param_1);
return;
}
| ['gcc'] |
47,511 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_54d_goodG2BSink(short data)
{
CWE194_Unexpected_Sign_Extension__fgets_strncpy_54e_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86654/CWE194_Unexpected_Sign_Extension__fgets_strncpy_54d.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_54d_goodG2BSink |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_54d_goodG2BSink(short param_1)
{
CWE194_Unexpected_Sign_Extension__fgets_strncpy_54e_goodG2BSink((int)param_1);
return;
}
| ['gcc'] |
47,512 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_54e_badSink(short data)
{
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
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 extension could result in a very large number */', '/* strncpy() does not always NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86654/CWE194_Unexpected_Sign_Extension__fgets_strncpy_54e.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_54e_badSink |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_54e_badSink(short param_1)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400b50(auStack_e8,0x41,99);
uStack_85 = 0;
if (param_1 < 100) {
func_0x00400b10(&uStack_78,auStack_e8,(long)param_1);
*(undefined *)((long)&uStack_78 + (long)(int)param_1) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,513 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_54e_goodG2BSink(short data)
{
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
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 extension 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/86654/CWE194_Unexpected_Sign_Extension__fgets_strncpy_54e.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_54e_goodG2BSink |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_54e_goodG2BSink(short param_1)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400a60(auStack_e8,0x41,99);
uStack_85 = 0;
if (param_1 < 100) {
func_0x00400a20(&uStack_78,auStack_e8,(long)param_1);
*(undefined *)((long)&uStack_78 + (long)(int)param_1) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,514 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_61_bad()
{
short data;
/* Initialize data */
data = 0;
data = CWE194_Unexpected_Sign_Extension__fgets_strncpy_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 extension 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 extension could result in a very large number */', '/* strncpy() does not always NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86655/CWE194_Unexpected_Sign_Extension__fgets_strncpy_61a.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_61_bad |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_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;
short sStack_a;
sStack_a = 0;
sStack_a = CWE194_Unexpected_Sign_Extension__fgets_strncpy_61b_badSource(0);
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400b50(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_a < 100) {
func_0x00400b10(&uStack_78,auStack_e8,(long)sStack_a);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_a) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,515 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_61_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86655/CWE194_Unexpected_Sign_Extension__fgets_strncpy_61a.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_61_good |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_61_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,516 | short CWE194_Unexpected_Sign_Extension__fgets_strncpy_61b_badSource(short data)
{
{
char inputBuffer[CHAR_ARRAY_SIZE] = "";
/* FLAW: Use a value input from the console using fgets() */
if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL)
{
/* Convert to short */
data = (short)atoi(inputBuffer);
}
else
{
printLine("fgets() failed.");
}
}
return data;
} | ['/* FLAW: Use a value input from the console using fgets() */', '/* Convert to short */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86655/CWE194_Unexpected_Sign_Extension__fgets_strncpy_61b.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_61b_badSource |
undefined2 CWE194_Unexpected_Sign_Extension__fgets_strncpy_61b_badSource(undefined2 param_1)
{
long lVar1;
undefined2 uStack_1c;
undefined8 uStack_10;
uStack_10 = 0;
lVar1 = func_0x00400b80(&uStack_10,8,stdin);
if (lVar1 == 0) {
printLine(&UNK_00401394);
uStack_1c = param_1;
}
else {
uStack_1c = func_0x00400be0(&uStack_10);
}
return uStack_1c;
}
| ['gcc'] |
47,517 | short CWE194_Unexpected_Sign_Extension__fgets_strncpy_61b_goodG2BSource(short data)
{
/* FIX: Use a positive integer less than &InitialDataSize&*/
data = 100-1;
return data;
} | ['/* FIX: Use a positive integer less than &InitialDataSize&*/'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86655/CWE194_Unexpected_Sign_Extension__fgets_strncpy_61b.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_61b_goodG2BSource |
undefined2 CWE194_Unexpected_Sign_Extension__fgets_strncpy_61b_goodG2BSource(void)
{
return 99;
}
| ['gcc'] |
47,518 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_63_bad()
{
short data;
/* Initialize data */
data = 0;
{
char inputBuffer[CHAR_ARRAY_SIZE] = "";
/* FLAW: Use a value input from the console using fgets() */
if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL)
{
/* Convert to short */
data = (short)atoi(inputBuffer);
}
else
{
printLine("fgets() failed.");
}
}
CWE194_Unexpected_Sign_Extension__fgets_strncpy_63b_badSink(&data);
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fgets() */', '/* Convert to short */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86657/CWE194_Unexpected_Sign_Extension__fgets_strncpy_63a.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_63_bad |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_63_bad(void)
{
long lVar1;
undefined8 uStack_12;
undefined2 uStack_a;
uStack_a = 0;
uStack_12 = 0;
lVar1 = func_0x00400b80(&uStack_12,8,stdin);
if (lVar1 == 0) {
printLine(&UNK_004013a4);
}
else {
uStack_a = func_0x00400be0(&uStack_12);
}
CWE194_Unexpected_Sign_Extension__fgets_strncpy_63b_badSink(&uStack_a);
return;
}
| ['gcc'] |
47,519 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_63_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86657/CWE194_Unexpected_Sign_Extension__fgets_strncpy_63a.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_63_good |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_63_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,520 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_63b_badSink(short * dataPtr)
{
short 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 extension 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 extension could result in a very large number */', '/* strncpy() does not always NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86657/CWE194_Unexpected_Sign_Extension__fgets_strncpy_63b.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_63b_badSink |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_63b_badSink(short *param_1)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
short sStack_a;
sStack_a = *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_0x00400b50(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_a < 100) {
func_0x00400b10(&uStack_78,auStack_e8,(long)sStack_a);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_a) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,521 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_63b_goodG2BSink(short * dataPtr)
{
short 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 extension 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 extension 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/86657/CWE194_Unexpected_Sign_Extension__fgets_strncpy_63b.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_63b_goodG2BSink |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_63b_goodG2BSink(short *param_1)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
short sStack_a;
sStack_a = *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 (sStack_a < 100) {
func_0x00400a20(&uStack_78,auStack_e8,(long)sStack_a);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_a) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,522 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_64_bad()
{
short data;
/* Initialize data */
data = 0;
{
char inputBuffer[CHAR_ARRAY_SIZE] = "";
/* FLAW: Use a value input from the console using fgets() */
if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL)
{
/* Convert to short */
data = (short)atoi(inputBuffer);
}
else
{
printLine("fgets() failed.");
}
}
CWE194_Unexpected_Sign_Extension__fgets_strncpy_64b_badSink(&data);
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fgets() */', '/* Convert to short */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86658/CWE194_Unexpected_Sign_Extension__fgets_strncpy_64a.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_64_bad |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_64_bad(void)
{
long lVar1;
undefined8 uStack_12;
undefined2 uStack_a;
uStack_a = 0;
uStack_12 = 0;
lVar1 = func_0x00400b80(&uStack_12,8,stdin);
if (lVar1 == 0) {
printLine(&UNK_004013a4);
}
else {
uStack_a = func_0x00400be0(&uStack_12);
}
CWE194_Unexpected_Sign_Extension__fgets_strncpy_64b_badSink(&uStack_a);
return;
}
| ['gcc'] |
47,523 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_64_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86658/CWE194_Unexpected_Sign_Extension__fgets_strncpy_64a.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_64_good |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_64_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,524 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_64b_badSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
short * dataPtr = (short *)dataVoidPtr;
/* dereference dataPtr into data */
short data = (*dataPtr);
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 extension could result in a very large number */', '/* strncpy() does not always NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86658/CWE194_Unexpected_Sign_Extension__fgets_strncpy_64b.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_64b_badSink |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_64b_badSink(short *param_1)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
short sStack_12;
short *psStack_10;
sStack_12 = *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;
psStack_10 = param_1;
func_0x00400b50(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_12 < 100) {
func_0x00400b10(&uStack_78,auStack_e8,(long)sStack_12);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_12) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,525 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_64b_goodG2BSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
short * dataPtr = (short *)dataVoidPtr;
/* dereference dataPtr into data */
short data = (*dataPtr);
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 extension 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/86658/CWE194_Unexpected_Sign_Extension__fgets_strncpy_64b.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_64b_goodG2BSink |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_64b_goodG2BSink(short *param_1)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
short sStack_12;
short *psStack_10;
sStack_12 = *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;
psStack_10 = param_1;
func_0x00400a60(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_12 < 100) {
func_0x00400a20(&uStack_78,auStack_e8,(long)sStack_12);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_12) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,526 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_65_bad()
{
short data;
/* define a function pointer */
void (*funcPtr) (short) = CWE194_Unexpected_Sign_Extension__fgets_strncpy_65b_badSink;
/* Initialize data */
data = 0;
{
char inputBuffer[CHAR_ARRAY_SIZE] = "";
/* FLAW: Use a value input from the console using fgets() */
if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL)
{
/* Convert to short */
data = (short)atoi(inputBuffer);
}
else
{
printLine("fgets() failed.");
}
}
/* use the function pointer */
funcPtr(data);
} | ['/* define a function pointer */', '/* Initialize data */', '/* FLAW: Use a value input from the console using fgets() */', '/* Convert to short */', '/* use the function pointer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86659/CWE194_Unexpected_Sign_Extension__fgets_strncpy_65a.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_65_bad |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_65_bad(void)
{
long lVar1;
undefined8 uStack_20;
code *pcStack_18;
short sStack_a;
pcStack_18 = CWE194_Unexpected_Sign_Extension__fgets_strncpy_65b_badSink;
sStack_a = 0;
uStack_20 = 0;
lVar1 = func_0x00400b80(&uStack_20,8,stdin);
if (lVar1 == 0) {
printLine(&UNK_004013a4);
}
else {
sStack_a = func_0x00400be0(&uStack_20);
}
(*pcStack_18)((int)sStack_a);
return;
}
| ['gcc'] |
47,527 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_65_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86659/CWE194_Unexpected_Sign_Extension__fgets_strncpy_65a.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_65_good |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_65_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,528 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_65b_badSink(short data)
{
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
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 extension could result in a very large number */', '/* strncpy() does not always NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86659/CWE194_Unexpected_Sign_Extension__fgets_strncpy_65b.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_65b_badSink |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_65b_badSink(short param_1)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400b50(auStack_e8,0x41,99);
uStack_85 = 0;
if (param_1 < 100) {
func_0x00400b10(&uStack_78,auStack_e8,(long)param_1);
*(undefined *)((long)&uStack_78 + (long)(int)param_1) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,529 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_65b_goodG2BSink(short data)
{
{
char source[100];
char dest[100] = "";
memset(source, 'A', 100-1);
source[100-1] = '\0';
if (data < 100)
{
/* POTENTIAL FLAW: data is interpreted as an unsigned int - if its value is negative,
* the sign extension could result in a very large number */
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 extension 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/86659/CWE194_Unexpected_Sign_Extension__fgets_strncpy_65b.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_65b_goodG2BSink |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_65b_goodG2BSink(short param_1)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
func_0x00400a60(auStack_e8,0x41,99);
uStack_85 = 0;
if (param_1 < 100) {
func_0x00400a20(&uStack_78,auStack_e8,(long)param_1);
*(undefined *)((long)&uStack_78 + (long)(int)param_1) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,530 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_66_bad()
{
short data;
short dataArray[5];
/* Initialize data */
data = 0;
{
char inputBuffer[CHAR_ARRAY_SIZE] = "";
/* FLAW: Use a value input from the console using fgets() */
if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL)
{
/* Convert to short */
data = (short)atoi(inputBuffer);
}
else
{
printLine("fgets() failed.");
}
}
/* put data in array */
dataArray[2] = data;
CWE194_Unexpected_Sign_Extension__fgets_strncpy_66b_badSink(dataArray);
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fgets() */', '/* Convert to short */', '/* put data in array */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86660/CWE194_Unexpected_Sign_Extension__fgets_strncpy_66a.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_66_bad |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_66_bad(void)
{
long lVar1;
undefined8 uStack_1c;
undefined auStack_14 [4];
undefined2 uStack_10;
undefined2 uStack_a;
uStack_a = 0;
uStack_1c = 0;
lVar1 = func_0x00400b80(&uStack_1c,8,stdin);
if (lVar1 == 0) {
printLine(&UNK_004013a4);
}
else {
uStack_a = func_0x00400be0(&uStack_1c);
}
uStack_10 = uStack_a;
CWE194_Unexpected_Sign_Extension__fgets_strncpy_66b_badSink(auStack_14);
return;
}
| ['gcc'] |
47,531 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_66_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86660/CWE194_Unexpected_Sign_Extension__fgets_strncpy_66a.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_66_good |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_66_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,532 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_66b_badSink(short dataArray[])
{
/* copy data out of dataArray */
short 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 extension could result in a very large number */
strncpy(dest, source, data);
dest[data] = '\0'; /* strncpy() does not always 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 extension could result in a very large number */', '/* strncpy() does not always NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86660/CWE194_Unexpected_Sign_Extension__fgets_strncpy_66b.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_66b_badSink |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_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;
short sStack_a;
sStack_a = *(short *)(param_1 + 4);
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_0x00400b50(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_a < 100) {
func_0x00400b10(&uStack_78,auStack_e8,(long)sStack_a);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_a) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,533 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_66b_goodG2BSink(short dataArray[])
{
short 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 extension 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 extension 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/86660/CWE194_Unexpected_Sign_Extension__fgets_strncpy_66b.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_66b_goodG2BSink |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_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;
short sStack_a;
sStack_a = *(short *)(param_1 + 4);
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 (sStack_a < 100) {
func_0x00400a20(&uStack_78,auStack_e8,(long)sStack_a);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_a) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,534 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_67_bad()
{
short data;
CWE194_Unexpected_Sign_Extension__fgets_strncpy_67_structType myStruct;
/* Initialize data */
data = 0;
{
char inputBuffer[CHAR_ARRAY_SIZE] = "";
/* FLAW: Use a value input from the console using fgets() */
if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL)
{
/* Convert to short */
data = (short)atoi(inputBuffer);
}
else
{
printLine("fgets() failed.");
}
}
myStruct.structFirst = data;
CWE194_Unexpected_Sign_Extension__fgets_strncpy_67b_badSink(myStruct);
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fgets() */', '/* Convert to short */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86661/CWE194_Unexpected_Sign_Extension__fgets_strncpy_67a.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_67_bad |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_67_bad(void)
{
long lVar1;
undefined8 uStack_14;
undefined2 uStack_c;
undefined2 uStack_a;
uStack_a = 0;
uStack_14 = 0;
lVar1 = func_0x00400b80(&uStack_14,8,stdin);
if (lVar1 == 0) {
printLine(&UNK_004013a4);
}
else {
uStack_a = func_0x00400be0(&uStack_14);
}
uStack_c = uStack_a;
CWE194_Unexpected_Sign_Extension__fgets_strncpy_67b_badSink(uStack_a);
return;
}
| ['gcc'] |
47,535 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_67_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86661/CWE194_Unexpected_Sign_Extension__fgets_strncpy_67a.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_67_good |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_67_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,536 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_67b_badSink(CWE194_Unexpected_Sign_Extension__fgets_strncpy_67_structType myStruct)
{
short 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 extension 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 extension could result in a very large number */', '/* strncpy() does not always NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86661/CWE194_Unexpected_Sign_Extension__fgets_strncpy_67b.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_67b_badSink |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_67b_badSink(short param_1)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
short sStack_a;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
sStack_a = param_1;
func_0x00400b50(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_a < 100) {
func_0x00400b10(&uStack_78,auStack_e8,(long)sStack_a);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_a) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,537 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_67b_goodG2BSink(CWE194_Unexpected_Sign_Extension__fgets_strncpy_67_structType myStruct)
{
short 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 extension 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 extension 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/86661/CWE194_Unexpected_Sign_Extension__fgets_strncpy_67b.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_67b_goodG2BSink |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_67b_goodG2BSink(short param_1)
{
undefined auStack_e8 [99];
undefined uStack_85;
undefined8 uStack_78;
undefined8 uStack_70;
undefined8 uStack_68;
undefined8 uStack_60;
undefined8 uStack_58;
undefined8 uStack_50;
undefined8 uStack_48;
undefined8 uStack_40;
undefined8 uStack_38;
undefined8 uStack_30;
undefined8 uStack_28;
undefined8 uStack_20;
undefined4 uStack_18;
short sStack_a;
uStack_78 = 0;
uStack_70 = 0;
uStack_68 = 0;
uStack_60 = 0;
uStack_58 = 0;
uStack_50 = 0;
uStack_48 = 0;
uStack_40 = 0;
uStack_38 = 0;
uStack_30 = 0;
uStack_28 = 0;
uStack_20 = 0;
uStack_18 = 0;
sStack_a = param_1;
func_0x00400a60(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_a < 100) {
func_0x00400a20(&uStack_78,auStack_e8,(long)sStack_a);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_a) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,538 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_68_bad()
{
short data;
/* Initialize data */
data = 0;
{
char inputBuffer[CHAR_ARRAY_SIZE] = "";
/* FLAW: Use a value input from the console using fgets() */
if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL)
{
/* Convert to short */
data = (short)atoi(inputBuffer);
}
else
{
printLine("fgets() failed.");
}
}
CWE194_Unexpected_Sign_Extension__fgets_strncpy_68_badData = data;
CWE194_Unexpected_Sign_Extension__fgets_strncpy_68b_badSink();
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fgets() */', '/* Convert to short */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86662/CWE194_Unexpected_Sign_Extension__fgets_strncpy_68a.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_68_bad |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_68_bad(void)
{
long lVar1;
undefined8 uStack_12;
undefined2 uStack_a;
uStack_a = 0;
uStack_12 = 0;
lVar1 = func_0x00400b80(&uStack_12,8,stdin);
if (lVar1 == 0) {
printLine(&UNK_004013a4);
}
else {
uStack_a = func_0x00400be0(&uStack_12);
}
CWE194_Unexpected_Sign_Extension__fgets_strncpy_68_badData = uStack_a;
CWE194_Unexpected_Sign_Extension__fgets_strncpy_68b_badSink();
return;
}
| ['gcc'] |
47,539 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_68_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86662/CWE194_Unexpected_Sign_Extension__fgets_strncpy_68a.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_68_good |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_68_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,540 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_68b_badSink()
{
short data = CWE194_Unexpected_Sign_Extension__fgets_strncpy_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 extension 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 extension could result in a very large number */', '/* strncpy() does not always NULL terminate */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86662/CWE194_Unexpected_Sign_Extension__fgets_strncpy_68b.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_68b_badSink |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_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;
short sStack_a;
sStack_a = CWE194_Unexpected_Sign_Extension__fgets_strncpy_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_0x00400b50(auStack_e8,0x41,99);
uStack_85 = 0;
if (sStack_a < 100) {
func_0x00400b10(&uStack_78,auStack_e8,(long)sStack_a);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_a) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,541 | void CWE194_Unexpected_Sign_Extension__fgets_strncpy_68b_goodG2BSink()
{
short data = CWE194_Unexpected_Sign_Extension__fgets_strncpy_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 extension 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 extension 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/86662/CWE194_Unexpected_Sign_Extension__fgets_strncpy_68b.c | CWE194_Unexpected_Sign_Extension__fgets_strncpy_68b_goodG2BSink |
void CWE194_Unexpected_Sign_Extension__fgets_strncpy_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;
short sStack_a;
sStack_a = CWE194_Unexpected_Sign_Extension__fgets_strncpy_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 (sStack_a < 100) {
func_0x00400a20(&uStack_78,auStack_e8,(long)sStack_a);
*(undefined *)((long)&uStack_78 + (long)(int)sStack_a) = 0;
}
printLine(&uStack_78);
return;
}
| ['gcc'] |
47,542 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_01_bad()
{
short data;
/* Initialize data */
data = 0;
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86670/CWE194_Unexpected_Sign_Extension__fscanf_malloc_01.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_01_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_01_bad(void)
{
short sStack_12;
long lStack_10;
sStack_12 = 0;
func_0x00400b20(stdin,&UNK_004012f4,&sStack_12);
if (sStack_12 < 100) {
lStack_10 = func_0x00400bc0((long)sStack_12);
func_0x00400b60(lStack_10,0x41,(long)(sStack_12 + -1));
*(undefined *)(lStack_10 + (long)sStack_12 + -1) = 0;
printLine(lStack_10);
func_0x00400b10(lStack_10);
}
return;
}
| ['gcc'] |
47,543 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_01_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86670/CWE194_Unexpected_Sign_Extension__fscanf_malloc_01.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_01_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_01_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,544 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_02_bad()
{
short data;
/* Initialize data */
data = 0;
if(1)
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
}
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86671/CWE194_Unexpected_Sign_Extension__fscanf_malloc_02.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_02_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_02_bad(void)
{
short sStack_12;
long lStack_10;
sStack_12 = 0;
func_0x00400b20(stdin,&UNK_004012f4,&sStack_12);
if (sStack_12 < 100) {
lStack_10 = func_0x00400bc0((long)sStack_12);
func_0x00400b60(lStack_10,0x41,(long)(sStack_12 + -1));
*(undefined *)(lStack_10 + (long)sStack_12 + -1) = 0;
printLine(lStack_10);
func_0x00400b10(lStack_10);
}
return;
}
| ['gcc'] |
47,545 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_02_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86671/CWE194_Unexpected_Sign_Extension__fscanf_malloc_02.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_02_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_02_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,546 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_03_bad()
{
short data;
/* Initialize data */
data = 0;
if(5==5)
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
}
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86672/CWE194_Unexpected_Sign_Extension__fscanf_malloc_03.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_03_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_03_bad(void)
{
short sStack_12;
long lStack_10;
sStack_12 = 0;
func_0x00400b20(stdin,&UNK_004012f4,&sStack_12);
if (sStack_12 < 100) {
lStack_10 = func_0x00400bc0((long)sStack_12);
func_0x00400b60(lStack_10,0x41,(long)(sStack_12 + -1));
*(undefined *)(lStack_10 + (long)sStack_12 + -1) = 0;
printLine(lStack_10);
func_0x00400b10(lStack_10);
}
return;
}
| ['gcc'] |
47,547 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_03_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86672/CWE194_Unexpected_Sign_Extension__fscanf_malloc_03.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_03_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_03_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,548 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_04_bad()
{
short data;
/* Initialize data */
data = 0;
if(STATIC_CONST_TRUE)
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
}
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86673/CWE194_Unexpected_Sign_Extension__fscanf_malloc_04.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_04_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_04_bad(void)
{
short sStack_12;
long lStack_10;
sStack_12 = 0;
func_0x00400b20(stdin,&UNK_0040130c,&sStack_12);
if (sStack_12 < 100) {
lStack_10 = func_0x00400bc0((long)sStack_12);
func_0x00400b60(lStack_10,0x41,(long)(sStack_12 + -1));
*(undefined *)(lStack_10 + (long)sStack_12 + -1) = 0;
printLine(lStack_10);
func_0x00400b10(lStack_10);
}
return;
}
| ['gcc'] |
47,549 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_04_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86673/CWE194_Unexpected_Sign_Extension__fscanf_malloc_04.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_04_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_04_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,550 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_05_bad()
{
short data;
/* Initialize data */
data = 0;
if(staticTrue)
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
}
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86674/CWE194_Unexpected_Sign_Extension__fscanf_malloc_05.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_05_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_05_bad(void)
{
short sStack_12;
long lStack_10;
sStack_12 = 0;
if (staticTrue != 0) {
func_0x00400b20(stdin,&UNK_00401304,&sStack_12);
}
if (sStack_12 < 100) {
lStack_10 = func_0x00400bc0((long)sStack_12);
func_0x00400b60(lStack_10,0x41,(long)(sStack_12 + -1));
*(undefined *)(lStack_10 + (long)sStack_12 + -1) = 0;
printLine(lStack_10);
func_0x00400b10(lStack_10);
}
return;
}
| ['gcc'] |
47,551 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_05_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86674/CWE194_Unexpected_Sign_Extension__fscanf_malloc_05.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_05_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_05_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,552 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_06_bad()
{
short data;
/* Initialize data */
data = 0;
if(STATIC_CONST_FIVE==5)
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
}
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86675/CWE194_Unexpected_Sign_Extension__fscanf_malloc_06.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_06_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_06_bad(void)
{
short sStack_12;
long lStack_10;
sStack_12 = 0;
func_0x00400b20(stdin,&UNK_00401308,&sStack_12);
if (sStack_12 < 100) {
lStack_10 = func_0x00400bc0((long)sStack_12);
func_0x00400b60(lStack_10,0x41,(long)(sStack_12 + -1));
*(undefined *)(lStack_10 + (long)sStack_12 + -1) = 0;
printLine(lStack_10);
func_0x00400b10(lStack_10);
}
return;
}
| ['gcc'] |
47,553 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_06_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86675/CWE194_Unexpected_Sign_Extension__fscanf_malloc_06.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_06_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_06_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,554 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_07_bad()
{
short data;
/* Initialize data */
data = 0;
if(staticFive==5)
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
}
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86676/CWE194_Unexpected_Sign_Extension__fscanf_malloc_07.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_07_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_07_bad(void)
{
short sStack_12;
long lStack_10;
sStack_12 = 0;
if (staticFive == 5) {
func_0x00400b20(stdin,&UNK_00401304,&sStack_12);
}
if (sStack_12 < 100) {
lStack_10 = func_0x00400bc0((long)sStack_12);
func_0x00400b60(lStack_10,0x41,(long)(sStack_12 + -1));
*(undefined *)(lStack_10 + (long)sStack_12 + -1) = 0;
printLine(lStack_10);
func_0x00400b10(lStack_10);
}
return;
}
| ['gcc'] |
47,555 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_07_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86676/CWE194_Unexpected_Sign_Extension__fscanf_malloc_07.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_07_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_07_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,556 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_08_bad()
{
short data;
/* Initialize data */
data = 0;
if(staticReturnsTrue())
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
}
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86677/CWE194_Unexpected_Sign_Extension__fscanf_malloc_08.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_08_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_08_bad(void)
{
int iVar1;
short sStack_12;
long lStack_10;
sStack_12 = 0;
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
func_0x00400b20(stdin,&UNK_00401314,&sStack_12);
}
if (sStack_12 < 100) {
lStack_10 = func_0x00400bc0((long)sStack_12);
func_0x00400b60(lStack_10,0x41,(long)(sStack_12 + -1));
*(undefined *)(lStack_10 + (long)sStack_12 + -1) = 0;
printLine(lStack_10);
func_0x00400b10(lStack_10);
}
return;
}
| ['gcc'] |
47,557 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_08_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86677/CWE194_Unexpected_Sign_Extension__fscanf_malloc_08.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_08_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_08_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,558 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_09_bad()
{
short data;
/* Initialize data */
data = 0;
if(GLOBAL_CONST_TRUE)
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
}
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86678/CWE194_Unexpected_Sign_Extension__fscanf_malloc_09.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_09_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_09_bad(void)
{
short sStack_12;
long lStack_10;
sStack_12 = 0;
if (GLOBAL_CONST_TRUE != 0) {
func_0x00400b20(stdin,&UNK_00401304,&sStack_12);
}
if (sStack_12 < 100) {
lStack_10 = func_0x00400bc0((long)sStack_12);
func_0x00400b60(lStack_10,0x41,(long)(sStack_12 + -1));
*(undefined *)(lStack_10 + (long)sStack_12 + -1) = 0;
printLine(lStack_10);
func_0x00400b10(lStack_10);
}
return;
}
| ['gcc'] |
47,559 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_09_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86678/CWE194_Unexpected_Sign_Extension__fscanf_malloc_09.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_09_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_09_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,560 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_10_bad()
{
short data;
/* Initialize data */
data = 0;
if(globalTrue)
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
}
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86679/CWE194_Unexpected_Sign_Extension__fscanf_malloc_10.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_10_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_10_bad(void)
{
short sStack_12;
long lStack_10;
sStack_12 = 0;
if (globalTrue != 0) {
func_0x00400b20(stdin,&UNK_00401304,&sStack_12);
}
if (sStack_12 < 100) {
lStack_10 = func_0x00400bc0((long)sStack_12);
func_0x00400b60(lStack_10,0x41,(long)(sStack_12 + -1));
*(undefined *)(lStack_10 + (long)sStack_12 + -1) = 0;
printLine(lStack_10);
func_0x00400b10(lStack_10);
}
return;
}
| ['gcc'] |
47,561 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_10_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86679/CWE194_Unexpected_Sign_Extension__fscanf_malloc_10.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_10_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_10_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,562 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_11_bad()
{
short data;
/* Initialize data */
data = 0;
if(globalReturnsTrue())
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
}
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86680/CWE194_Unexpected_Sign_Extension__fscanf_malloc_11.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_11_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_11_bad(void)
{
int iVar1;
short sStack_12;
long lStack_10;
sStack_12 = 0;
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
func_0x00400b20(stdin,&UNK_00401304,&sStack_12);
}
if (sStack_12 < 100) {
lStack_10 = func_0x00400bc0((long)sStack_12);
func_0x00400b60(lStack_10,0x41,(long)(sStack_12 + -1));
*(undefined *)(lStack_10 + (long)sStack_12 + -1) = 0;
printLine(lStack_10);
func_0x00400b10(lStack_10);
}
return;
}
| ['gcc'] |
47,563 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_11_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86680/CWE194_Unexpected_Sign_Extension__fscanf_malloc_11.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_11_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_11_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,564 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_13_bad()
{
short data;
/* Initialize data */
data = 0;
if(GLOBAL_CONST_FIVE==5)
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
}
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86682/CWE194_Unexpected_Sign_Extension__fscanf_malloc_13.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_13_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_13_bad(void)
{
short sStack_12;
long lStack_10;
sStack_12 = 0;
if (GLOBAL_CONST_FIVE == 5) {
func_0x00400b20(stdin,&UNK_00401304,&sStack_12);
}
if (sStack_12 < 100) {
lStack_10 = func_0x00400bc0((long)sStack_12);
func_0x00400b60(lStack_10,0x41,(long)(sStack_12 + -1));
*(undefined *)(lStack_10 + (long)sStack_12 + -1) = 0;
printLine(lStack_10);
func_0x00400b10(lStack_10);
}
return;
}
| ['gcc'] |
47,565 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_13_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86682/CWE194_Unexpected_Sign_Extension__fscanf_malloc_13.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_13_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_13_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,566 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_14_bad()
{
short data;
/* Initialize data */
data = 0;
if(globalFive==5)
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
}
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86683/CWE194_Unexpected_Sign_Extension__fscanf_malloc_14.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_14_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_14_bad(void)
{
short sStack_12;
long lStack_10;
sStack_12 = 0;
if (globalFive == 5) {
func_0x00400b20(stdin,&UNK_00401304,&sStack_12);
}
if (sStack_12 < 100) {
lStack_10 = func_0x00400bc0((long)sStack_12);
func_0x00400b60(lStack_10,0x41,(long)(sStack_12 + -1));
*(undefined *)(lStack_10 + (long)sStack_12 + -1) = 0;
printLine(lStack_10);
func_0x00400b10(lStack_10);
}
return;
}
| ['gcc'] |
47,567 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_14_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86683/CWE194_Unexpected_Sign_Extension__fscanf_malloc_14.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_14_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_14_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,568 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_15_bad()
{
short data;
/* Initialize data */
data = 0;
switch(6)
{
case 6:
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
break;
default:
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
break;
}
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86684/CWE194_Unexpected_Sign_Extension__fscanf_malloc_15.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_15_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_15_bad(void)
{
short sStack_12;
long lStack_10;
sStack_12 = 0;
func_0x00400b20(stdin,&UNK_004012f4,&sStack_12);
if (sStack_12 < 100) {
lStack_10 = func_0x00400bc0((long)sStack_12);
func_0x00400b60(lStack_10,0x41,(long)(sStack_12 + -1));
*(undefined *)(lStack_10 + (long)sStack_12 + -1) = 0;
printLine(lStack_10);
func_0x00400b10(lStack_10);
}
return;
}
| ['gcc'] |
47,569 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_15_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86684/CWE194_Unexpected_Sign_Extension__fscanf_malloc_15.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_15_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_15_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,570 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_16_bad()
{
short data;
/* Initialize data */
data = 0;
while(1)
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
break;
}
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86685/CWE194_Unexpected_Sign_Extension__fscanf_malloc_16.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_16_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_16_bad(void)
{
short sStack_12;
long lStack_10;
sStack_12 = 0;
func_0x00400b20(stdin,&UNK_004012f4,&sStack_12);
if (sStack_12 < 100) {
lStack_10 = func_0x00400bc0((long)sStack_12);
func_0x00400b60(lStack_10,0x41,(long)(sStack_12 + -1));
*(undefined *)(lStack_10 + (long)sStack_12 + -1) = 0;
printLine(lStack_10);
func_0x00400b10(lStack_10);
}
return;
}
| ['gcc'] |
47,571 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_16_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86685/CWE194_Unexpected_Sign_Extension__fscanf_malloc_16.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_16_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_16_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,572 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_17_bad()
{
int i;
short data;
/* Initialize data */
data = 0;
for(i = 0; i < 1; i++)
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
}
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86686/CWE194_Unexpected_Sign_Extension__fscanf_malloc_17.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_17_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_17_bad(void)
{
short sStack_1a;
long lStack_18;
int iStack_c;
sStack_1a = 0;
for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) {
func_0x00400b20(stdin,&UNK_00401304,&sStack_1a);
}
if (sStack_1a < 100) {
lStack_18 = func_0x00400bc0((long)sStack_1a);
func_0x00400b60(lStack_18,0x41,(long)(sStack_1a + -1));
*(undefined *)(lStack_18 + (long)sStack_1a + -1) = 0;
printLine(lStack_18);
func_0x00400b10(lStack_18);
}
return;
}
| ['gcc'] |
47,573 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_17_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86686/CWE194_Unexpected_Sign_Extension__fscanf_malloc_17.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_17_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_17_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,574 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_18_bad()
{
short data;
/* Initialize data */
data = 0;
goto source;
source:
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86687/CWE194_Unexpected_Sign_Extension__fscanf_malloc_18.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_18_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_18_bad(void)
{
short sStack_12;
long lStack_10;
sStack_12 = 0;
func_0x00400b20(stdin,&UNK_004012f4,&sStack_12);
if (sStack_12 < 100) {
lStack_10 = func_0x00400bc0((long)sStack_12);
func_0x00400b60(lStack_10,0x41,(long)(sStack_12 + -1));
*(undefined *)(lStack_10 + (long)sStack_12 + -1) = 0;
printLine(lStack_10);
func_0x00400b10(lStack_10);
}
return;
}
| ['gcc'] |
47,575 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_18_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86687/CWE194_Unexpected_Sign_Extension__fscanf_malloc_18.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_18_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_18_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,576 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_21_bad()
{
short data;
/* Initialize data */
data = 0;
badStatic = 1; /* true */
data = badSource(data);
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Initialize data */', '/* true */', '/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86688/CWE194_Unexpected_Sign_Extension__fscanf_malloc_21.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_21_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_21_bad(void)
{
short sVar1;
long lVar2;
badStatic = 1;
sVar1 = badSource(0);
if (sVar1 < 100) {
lVar2 = func_0x00400bc0((long)sVar1);
func_0x00400b60(lVar2,0x41,(long)(sVar1 + -1));
*(undefined *)(lVar2 + (long)sVar1 + -1) = 0;
printLine(lVar2);
func_0x00400b10(lVar2);
}
return;
}
| ['gcc'] |
47,577 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_21_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86688/CWE194_Unexpected_Sign_Extension__fscanf_malloc_21.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_21_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_21_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,578 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_22_bad()
{
short data;
/* Initialize data */
data = 0;
CWE194_Unexpected_Sign_Extension__fscanf_malloc_22_badGlobal = 1; /* true */
data = CWE194_Unexpected_Sign_Extension__fscanf_malloc_22_badSource(data);
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Initialize data */', '/* true */', '/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86689/CWE194_Unexpected_Sign_Extension__fscanf_malloc_22a.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_22_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_22_bad(void)
{
short sVar1;
long lVar2;
CWE194_Unexpected_Sign_Extension__fscanf_malloc_22_badGlobal = 1;
sVar1 = CWE194_Unexpected_Sign_Extension__fscanf_malloc_22_badSource(0);
if (sVar1 < 100) {
lVar2 = func_0x00400bc0((long)sVar1);
func_0x00400b60(lVar2,0x41,(long)(sVar1 + -1));
*(undefined *)(lVar2 + (long)sVar1 + -1) = 0;
printLine(lVar2);
func_0x00400b10(lVar2);
}
return;
}
| ['gcc'] |
47,579 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_22_good()
{
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86689/CWE194_Unexpected_Sign_Extension__fscanf_malloc_22a.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_22_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_22_good(void)
{
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
47,580 | short CWE194_Unexpected_Sign_Extension__fscanf_malloc_22_badSource(short data)
{
if(CWE194_Unexpected_Sign_Extension__fscanf_malloc_22_badGlobal)
{
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
}
return data;
} | ['/* FLAW: Use a value input from the console using fscanf() */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86689/CWE194_Unexpected_Sign_Extension__fscanf_malloc_22b.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_22_badSource |
undefined2 CWE194_Unexpected_Sign_Extension__fscanf_malloc_22_badSource(undefined2 param_1)
{
undefined2 auStack_c [2];
auStack_c[0] = param_1;
if (CWE194_Unexpected_Sign_Extension__fscanf_malloc_22_badGlobal != 0) {
func_0x00400b20(stdin,&UNK_00401324,auStack_c);
}
return auStack_c[0];
}
| ['gcc'] |
47,581 | short CWE194_Unexpected_Sign_Extension__fscanf_malloc_22_goodG2B1Source(short data)
{
if(CWE194_Unexpected_Sign_Extension__fscanf_malloc_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/86689/CWE194_Unexpected_Sign_Extension__fscanf_malloc_22b.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_22_goodG2B1Source |
undefined2 CWE194_Unexpected_Sign_Extension__fscanf_malloc_22_goodG2B1Source(undefined2 param_1)
{
undefined2 uStack_c;
if (CWE194_Unexpected_Sign_Extension__fscanf_malloc_22_goodG2B1Global == 0) {
uStack_c = 99;
}
else {
printLine(&UNK_00401314);
uStack_c = param_1;
}
return uStack_c;
}
| ['gcc'] |
47,582 | short CWE194_Unexpected_Sign_Extension__fscanf_malloc_22_goodG2B2Source(short data)
{
if(CWE194_Unexpected_Sign_Extension__fscanf_malloc_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/86689/CWE194_Unexpected_Sign_Extension__fscanf_malloc_22b.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_22_goodG2B2Source |
undefined2 CWE194_Unexpected_Sign_Extension__fscanf_malloc_22_goodG2B2Source(undefined2 param_1)
{
undefined2 uStack_c;
uStack_c = param_1;
if (CWE194_Unexpected_Sign_Extension__fscanf_malloc_22_goodG2B2Global != 0) {
uStack_c = 99;
}
return uStack_c;
}
| ['gcc'] |
47,583 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_31_bad()
{
short data;
/* Initialize data */
data = 0;
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
{
short dataCopy = data;
short data = dataCopy;
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86690/CWE194_Unexpected_Sign_Extension__fscanf_malloc_31.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_31_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_31_bad(void)
{
short sStack_1a;
long lStack_18;
short sStack_c;
short sStack_a;
sStack_1a = 0;
func_0x00400b20(stdin,&UNK_00401304,&sStack_1a);
sStack_a = sStack_1a;
sStack_c = sStack_1a;
if (sStack_1a < 100) {
lStack_18 = func_0x00400bc0((long)sStack_1a);
func_0x00400b60(lStack_18,0x41,(long)(sStack_c + -1));
*(undefined *)(lStack_18 + (long)sStack_c + -1) = 0;
printLine(lStack_18);
func_0x00400b10(lStack_18);
}
return;
}
| ['gcc'] |
47,584 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_31_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86690/CWE194_Unexpected_Sign_Extension__fscanf_malloc_31.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_31_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_31_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,585 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_32_bad()
{
short data;
short *dataPtr1 = &data;
short *dataPtr2 = &data;
/* Initialize data */
data = 0;
{
short data = *dataPtr1;
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
*dataPtr1 = data;
}
{
short data = *dataPtr2;
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86691/CWE194_Unexpected_Sign_Extension__fscanf_malloc_32.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_32_bad |
/* WARNING: Restarted to delay deadcode elimination for space: stack */
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_32_bad(void)
{
short sStack_2c;
short sStack_2a;
long lStack_28;
short sStack_1a;
short *psStack_18;
short *psStack_10;
psStack_10 = &sStack_2a;
psStack_18 = &sStack_2a;
sStack_2a = 0;
sStack_2c = 0;
func_0x00400b20(stdin,&UNK_00401324,&sStack_2c);
*psStack_10 = sStack_2c;
sStack_1a = *psStack_18;
if (sStack_1a < 100) {
lStack_28 = func_0x00400bc0((long)sStack_1a);
func_0x00400b60(lStack_28,0x41,(long)(sStack_1a + -1));
*(undefined *)(lStack_28 + (long)sStack_1a + -1) = 0;
printLine(lStack_28);
func_0x00400b10(lStack_28);
}
return;
}
| ['gcc'] |
47,586 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_32_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86691/CWE194_Unexpected_Sign_Extension__fscanf_malloc_32.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_32_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_32_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,587 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_34_bad()
{
short data;
CWE194_Unexpected_Sign_Extension__fscanf_malloc_34_unionType myUnion;
/* Initialize data */
data = 0;
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
myUnion.unionFirst = data;
{
short data = myUnion.unionSecond;
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
}
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86693/CWE194_Unexpected_Sign_Extension__fscanf_malloc_34.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_34_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_34_bad(void)
{
short sStack_1a;
long lStack_18;
short sStack_a;
sStack_1a = 0;
func_0x00400b20(stdin,&UNK_00401304,&sStack_1a);
sStack_a = sStack_1a;
if (sStack_1a < 100) {
lStack_18 = func_0x00400bc0((long)sStack_1a);
func_0x00400b60(lStack_18,0x41,(long)(sStack_a + -1));
*(undefined *)(lStack_18 + (long)sStack_a + -1) = 0;
printLine(lStack_18);
func_0x00400b10(lStack_18);
}
return;
}
| ['gcc'] |
47,588 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_34_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86693/CWE194_Unexpected_Sign_Extension__fscanf_malloc_34.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_34_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_34_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,589 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_41_badSink(short data)
{
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86694/CWE194_Unexpected_Sign_Extension__fscanf_malloc_41.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_41_badSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_41_badSink(short param_1)
{
long lVar1;
if (param_1 < 100) {
lVar1 = func_0x00400bc0((long)param_1);
func_0x00400b60(lVar1,0x41,(long)(param_1 + -1));
*(undefined *)(lVar1 + (long)param_1 + -1) = 0;
printLine(lVar1);
func_0x00400b10(lVar1);
}
return;
}
| ['gcc'] |
47,590 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_41_bad()
{
short data;
/* Initialize data */
data = 0;
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
CWE194_Unexpected_Sign_Extension__fscanf_malloc_41_badSink(data);
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86694/CWE194_Unexpected_Sign_Extension__fscanf_malloc_41.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_41_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_41_bad(void)
{
short sStack_a;
sStack_a = 0;
func_0x00400b20(stdin,&UNK_00401304,&sStack_a);
CWE194_Unexpected_Sign_Extension__fscanf_malloc_41_badSink((int)sStack_a);
return;
}
| ['gcc'] |
47,591 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_41_goodG2BSink(short data)
{
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86694/CWE194_Unexpected_Sign_Extension__fscanf_malloc_41.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_41_goodG2BSink |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_41_goodG2BSink(short param_1)
{
long lVar1;
if (param_1 < 100) {
lVar1 = func_0x00400b00((long)param_1);
func_0x00400aa0(lVar1,0x41,(long)(param_1 + -1));
*(undefined *)(lVar1 + (long)param_1 + -1) = 0;
printLine(lVar1);
func_0x00400a60(lVar1);
}
return;
}
| ['gcc'] |
47,592 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_41_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86694/CWE194_Unexpected_Sign_Extension__fscanf_malloc_41.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_41_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_41_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,593 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_42_bad()
{
short data;
/* Initialize data */
data = 0;
data = badSource(data);
/* Assume we want to allocate a relatively small buffer */
if (data < 100)
{
/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,
* the conversion will cause malloc() to allocate a very large amount of data or fail */
char * dataBuffer = (char *)malloc(data);
/* Do something with dataBuffer */
memset(dataBuffer, 'A', data-1);
dataBuffer[data-1] = '\0';
printLine(dataBuffer);
free(dataBuffer);
}
} | ['/* Initialize data */', '/* Assume we want to allocate a relatively small buffer */', '/* POTENTIAL FLAW: malloc() takes a size_t (unsigned int) as input and therefore if it is negative,\r\n * the conversion will cause malloc() to allocate a very large amount of data or fail */', '/* Do something with dataBuffer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86695/CWE194_Unexpected_Sign_Extension__fscanf_malloc_42.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_42_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_42_bad(void)
{
short sVar1;
long lVar2;
sVar1 = badSource(0);
if (sVar1 < 100) {
lVar2 = func_0x00400bc0((long)sVar1);
func_0x00400b60(lVar2,0x41,(long)(sVar1 + -1));
*(undefined *)(lVar2 + (long)sVar1 + -1) = 0;
printLine(lVar2);
func_0x00400b10(lVar2);
}
return;
}
| ['gcc'] |
47,594 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_42_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86695/CWE194_Unexpected_Sign_Extension__fscanf_malloc_42.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_42_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_42_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,595 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_44_bad()
{
short data;
/* define a function pointer */
void (*funcPtr) (short) = badSink;
/* Initialize data */
data = 0;
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
/* use the function pointer */
funcPtr(data);
} | ['/* define a function pointer */', '/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */', '/* use the function pointer */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86697/CWE194_Unexpected_Sign_Extension__fscanf_malloc_44.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_44_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_44_bad(void)
{
short sStack_12;
code *pcStack_10;
pcStack_10 = badSink;
sStack_12 = 0;
func_0x00400b20(stdin,&UNK_00401314,&sStack_12);
(*pcStack_10)((int)sStack_12);
return;
}
| ['gcc'] |
47,596 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_44_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86697/CWE194_Unexpected_Sign_Extension__fscanf_malloc_44.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_44_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_44_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,597 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_45_bad()
{
short data;
/* Initialize data */
data = 0;
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
CWE194_Unexpected_Sign_Extension__fscanf_malloc_45_badData = data;
badSink();
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86698/CWE194_Unexpected_Sign_Extension__fscanf_malloc_45.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_45_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_45_bad(void)
{
undefined2 uStack_a;
uStack_a = 0;
func_0x00400b20(stdin,&UNK_00401314,&uStack_a);
CWE194_Unexpected_Sign_Extension__fscanf_malloc_45_badData = uStack_a;
badSink();
return;
}
| ['gcc'] |
47,598 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_45_good()
{
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86698/CWE194_Unexpected_Sign_Extension__fscanf_malloc_45.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_45_good |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_45_good(void)
{
goodG2B();
return;
}
| ['gcc'] |
47,599 | void CWE194_Unexpected_Sign_Extension__fscanf_malloc_51_bad()
{
short data;
/* Initialize data */
data = 0;
/* FLAW: Use a value input from the console using fscanf() */
fscanf (stdin, "%hd", &data);
CWE194_Unexpected_Sign_Extension__fscanf_malloc_51b_badSink(data);
} | ['/* Initialize data */', '/* FLAW: Use a value input from the console using fscanf() */'] | ['CWE194'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/86699/CWE194_Unexpected_Sign_Extension__fscanf_malloc_51a.c | CWE194_Unexpected_Sign_Extension__fscanf_malloc_51_bad |
void CWE194_Unexpected_Sign_Extension__fscanf_malloc_51_bad(void)
{
short sStack_a;
sStack_a = 0;
func_0x00400b20(stdin,&UNK_00401304,&sStack_a);
CWE194_Unexpected_Sign_Extension__fscanf_malloc_51b_badSink((int)sStack_a);
return;
}
| ['gcc'] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.