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 |
|---|---|---|---|---|---|---|---|---|
43,000 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_07_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80832/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_07.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_07_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_07_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
43,001 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_08_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(staticReturnsTrue())
{
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
}
if(staticReturnsTrue())
{
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
fwprintf(stdout, data);
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80833/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_08.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_08_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_08_bad(void)
{
int iVar1;
long lVar2;
undefined8 *puVar3;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [48];
long lStack_18;
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar3 = auStack_198;
for (lVar2 = 0x30; lVar2 != 0; lVar2 = lVar2 + -1) {
*puVar3 = 0;
puVar3 = puVar3 + 1;
}
puStack_10 = &uStack_1a8;
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
lStack_18 = func_0x00400b50(puStack_10);
if (1 < 100U - lStack_18) {
lVar2 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar2 == 0) {
printLine(&UNK_004013b4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400b50(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
}
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
func_0x00400bd0(stdout,puStack_10);
}
return;
}
| ['gcc'] |
43,002 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_08_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80833/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_08.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_08_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_08_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
43,003 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_09_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(GLOBAL_CONST_TRUE)
{
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
}
if(GLOBAL_CONST_TRUE)
{
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
fwprintf(stdout, data);
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80834/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_09.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_09_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_09_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [48];
long lStack_18;
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar2 = auStack_198;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1a8;
if (GLOBAL_CONST_TRUE != 0) {
lStack_18 = func_0x00400b50(puStack_10);
if (1 < 100U - lStack_18) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar1 == 0) {
printLine(&UNK_00401394);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400b50(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
}
if (GLOBAL_CONST_TRUE != 0) {
func_0x00400bd0(stdout,puStack_10);
}
return;
}
| ['gcc'] |
43,004 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_09_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80834/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_09.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_09_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_09_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
43,005 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_10_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(globalTrue)
{
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
}
if(globalTrue)
{
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
fwprintf(stdout, data);
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80835/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_10.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_10_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_10_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [48];
long lStack_18;
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar2 = auStack_198;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1a8;
if (globalTrue != 0) {
lStack_18 = func_0x00400b50(puStack_10);
if (1 < 100U - lStack_18) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar1 == 0) {
printLine(&UNK_00401394);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400b50(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
}
if (globalTrue != 0) {
func_0x00400bd0(stdout,puStack_10);
}
return;
}
| ['gcc'] |
43,006 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_10_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80835/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_10.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_10_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_10_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
43,007 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_11_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(globalReturnsTrue())
{
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
}
if(globalReturnsTrue())
{
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
fwprintf(stdout, data);
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80836/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_11.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_11_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_11_bad(void)
{
int iVar1;
long lVar2;
undefined8 *puVar3;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [48];
long lStack_18;
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar3 = auStack_198;
for (lVar2 = 0x30; lVar2 != 0; lVar2 = lVar2 + -1) {
*puVar3 = 0;
puVar3 = puVar3 + 1;
}
puStack_10 = &uStack_1a8;
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
lStack_18 = func_0x00400b50(puStack_10);
if (1 < 100U - lStack_18) {
lVar2 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar2 == 0) {
printLine(&UNK_004013a4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400b50(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
}
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
func_0x00400bd0(stdout,puStack_10);
}
return;
}
| ['gcc'] |
43,008 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_11_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80836/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_11.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_11_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_11_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
43,009 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_12_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(globalReturnsTrueOrFalse())
{
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
}
else
{
/* FIX: Use a fixed string that does not contain a format specifier */
wcscpy(data, L"fixedstringtest");
}
if(globalReturnsTrueOrFalse())
{
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
fwprintf(stdout, data);
}
else
{
/* FIX: Specify the format disallowing a format string vulnerability */
fwprintf(stdout, L"%s\n", data);
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* FIX: Use a fixed string that does not contain a format specifier */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */', '/* FIX: Specify the format disallowing a format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80837/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_12.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_12_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_12_bad(void)
{
int iVar1;
long lVar2;
undefined8 *puVar3;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [48];
long lStack_18;
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar3 = auStack_198;
for (lVar2 = 0x30; lVar2 != 0; lVar2 = lVar2 + -1) {
*puVar3 = 0;
puVar3 = puVar3 + 1;
}
puStack_10 = &uStack_1a8;
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
func_0x00400bc0(puStack_10,&UNK_00401428);
}
else {
lStack_18 = func_0x00400b80(puStack_10);
if (1 < 100U - lStack_18) {
lVar2 = func_0x00400b40(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar2 == 0) {
printLine(&UNK_00401418);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400b80(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
}
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
func_0x00400c10(stdout,&UNK_00401468,puStack_10);
}
else {
func_0x00400c10(stdout,puStack_10);
}
return;
}
| ['gcc'] |
43,010 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_12_good()
{
goodB2G();
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80837/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_12.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_12_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_12_good(void)
{
goodB2G();
goodG2B();
return;
}
| ['gcc'] |
43,011 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_13_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(GLOBAL_CONST_FIVE==5)
{
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
}
if(GLOBAL_CONST_FIVE==5)
{
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
fwprintf(stdout, data);
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80838/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_13.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_13_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_13_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [48];
long lStack_18;
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar2 = auStack_198;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1a8;
if (GLOBAL_CONST_FIVE == 5) {
lStack_18 = func_0x00400b50(puStack_10);
if (1 < 100U - lStack_18) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar1 == 0) {
printLine(&UNK_00401394);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400b50(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
}
if (GLOBAL_CONST_FIVE == 5) {
func_0x00400bd0(stdout,puStack_10);
}
return;
}
| ['gcc'] |
43,012 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_13_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80838/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_13.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_13_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_13_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
43,013 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_14_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(globalFive==5)
{
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
}
if(globalFive==5)
{
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
fwprintf(stdout, data);
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80839/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_14.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_14_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_14_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [48];
long lStack_18;
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar2 = auStack_198;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1a8;
if (globalFive == 5) {
lStack_18 = func_0x00400b50(puStack_10);
if (1 < 100U - lStack_18) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar1 == 0) {
printLine(&UNK_00401394);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400b50(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
}
if (globalFive == 5) {
func_0x00400bd0(stdout,puStack_10);
}
return;
}
| ['gcc'] |
43,014 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_14_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80839/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_14.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_14_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_14_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
43,015 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_15_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
switch(6)
{
case 6:
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
break;
default:
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
break;
}
switch(7)
{
case 7:
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
fwprintf(stdout, data);
break;
default:
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
break;
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80840/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_15.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_15_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_15_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [48];
long lStack_18;
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar2 = auStack_198;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1a8;
lStack_18 = func_0x00400b50(puStack_10);
if (1 < 100U - lStack_18) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar1 == 0) {
printLine(&UNK_00401384);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400b50(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
func_0x00400bd0(stdout,puStack_10);
return;
}
| ['gcc'] |
43,016 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_15_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80840/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_15.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_15_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_15_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
43,017 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_16_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
while(1)
{
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
break;
}
while(1)
{
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
fwprintf(stdout, data);
break;
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80841/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_16.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_16_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_16_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [48];
long lStack_18;
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar2 = auStack_198;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1a8;
lStack_18 = func_0x00400b50(puStack_10);
if (1 < 100U - lStack_18) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar1 == 0) {
printLine(&UNK_00401384);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400b50(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
func_0x00400bd0(stdout,puStack_10);
return;
}
| ['gcc'] |
43,018 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_16_good()
{
goodB2G();
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80841/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_16.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_16_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_16_good(void)
{
goodB2G();
goodG2B();
return;
}
| ['gcc'] |
43,019 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_17_bad()
{
int i,j;
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
for(i = 0; i < 1; i++)
{
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
}
for(j = 0; j < 1; j++)
{
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
fwprintf(stdout, data);
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80842/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_17.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_17_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_17_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1b8;
undefined8 uStack_1b0;
undefined8 auStack_1a8 [49];
long lStack_20;
undefined8 *puStack_18;
int iStack_10;
int iStack_c;
uStack_1b8 = 0;
uStack_1b0 = 0;
puVar2 = auStack_1a8;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_18 = &uStack_1b8;
for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) {
lStack_20 = func_0x00400b50(puStack_18);
if (1 < 100U - lStack_20) {
lVar1 = func_0x00400b10(lStack_20 * 4 + (long)puStack_18,100 - (int)lStack_20,stdin);
if (lVar1 == 0) {
printLine(&UNK_004013a4);
*(undefined4 *)((long)puStack_18 + lStack_20 * 4) = 0;
}
else {
lStack_20 = func_0x00400b50(puStack_18);
if ((lStack_20 != 0) && (*(int *)((long)puStack_18 + lStack_20 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_18 + lStack_20 * 4 + -4) = 0;
}
}
}
}
for (iStack_10 = 0; iStack_10 < 1; iStack_10 = iStack_10 + 1) {
func_0x00400bd0(stdout,puStack_18);
}
return;
}
| ['gcc'] |
43,020 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_17_good()
{
goodB2G();
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80842/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_17.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_17_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_17_good(void)
{
goodB2G();
goodG2B();
return;
}
| ['gcc'] |
43,021 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_18_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
goto source;
source:
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
goto sink;
sink:
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
fwprintf(stdout, data);
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80843/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_18.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_18_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_18_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [48];
long lStack_18;
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar2 = auStack_198;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1a8;
lStack_18 = func_0x00400b50(puStack_10);
if (1 < 100U - lStack_18) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar1 == 0) {
printLine(&UNK_00401384);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400b50(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
func_0x00400bd0(stdout,puStack_10);
return;
}
| ['gcc'] |
43,022 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_18_good()
{
goodB2G();
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80843/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_18.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_18_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_18_good(void)
{
goodB2G();
goodG2B();
return;
}
| ['gcc'] |
43,023 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_21_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
badStatic = 1; /* true */
badSink(data);
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* true */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80844/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_21.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_21_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_21_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [48];
long lStack_18;
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar2 = auStack_198;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1a8;
lStack_18 = func_0x00400b50(puStack_10);
if (1 < 100U - lStack_18) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar1 == 0) {
printLine(&UNK_004013a4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400b50(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
badStatic = 1;
badSink(puStack_10);
return;
}
| ['gcc'] |
43,024 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_21_good()
{
goodB2G1();
goodB2G2();
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80844/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_21.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_21_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_21_good(void)
{
goodB2G1();
goodB2G2();
goodG2B();
return;
}
| ['gcc'] |
43,025 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_badGlobal = 1; /* true */
CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_badSink(data);
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* true */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80845/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22a.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [48];
long lStack_18;
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar2 = auStack_198;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1a8;
lStack_18 = func_0x00400b50(puStack_10);
if (1 < 100U - lStack_18) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar1 == 0) {
printLine(&UNK_004013a4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400b50(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_badGlobal = 1;
CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_badSink(puStack_10);
return;
}
| ['gcc'] |
43,026 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_good()
{
goodB2G1();
goodB2G2();
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80845/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22a.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_good(void)
{
goodB2G1();
goodB2G2();
goodG2B();
return;
}
| ['gcc'] |
43,027 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_badSink(wchar_t * data)
{
if(CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_badGlobal)
{
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
fwprintf(stdout, data);
}
} | ['/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80845/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22b.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_badSink |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_badSink(undefined8 param_1)
{
if (CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_badGlobal != 0) {
func_0x00400bd0(stdout,param_1);
}
return;
}
| ['gcc'] |
43,028 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_goodB2G1Sink(wchar_t * data)
{
if(CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_goodB2G1Global)
{
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
}
else
{
/* FIX: Specify the format disallowing a format string vulnerability */
fwprintf(stdout, L"%s\n", data);
}
} | ['/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* FIX: Specify the format disallowing a format string vulnerability */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80845/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22b.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_goodB2G1Sink |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_goodB2G1Sink(undefined8 param_1)
{
if (CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_goodB2G1Global == 0) {
func_0x00400c10(stdout,&UNK_0040163c,param_1);
}
else {
printLine(&UNK_00401624);
}
return;
}
| ['gcc'] |
43,029 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_goodB2G2Sink(wchar_t * data)
{
if(CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_goodB2G2Global)
{
/* FIX: Specify the format disallowing a format string vulnerability */
fwprintf(stdout, L"%s\n", data);
}
} | ['/* FIX: Specify the format disallowing a format string vulnerability */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80845/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22b.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_goodB2G2Sink |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_goodB2G2Sink(undefined8 param_1)
{
if (CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_goodB2G2Global != 0) {
func_0x00400c10(stdout,&UNK_0040163c,param_1);
}
return;
}
| ['gcc'] |
43,030 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_goodG2BSink(wchar_t * data)
{
if(CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_goodG2BGlobal)
{
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
fwprintf(stdout, data);
}
} | ['/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80845/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22b.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_goodG2BSink |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_goodG2BSink(undefined8 param_1)
{
if (CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_22_goodG2BGlobal != 0) {
func_0x00400c10(stdout,param_1);
}
return;
}
| ['gcc'] |
43,031 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_31_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
{
wchar_t * dataCopy = data;
wchar_t * data = dataCopy;
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
fwprintf(stdout, data);
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80846/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_31.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_31_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_31_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1b8;
undefined8 uStack_1b0;
undefined8 auStack_1a8 [48];
undefined8 *puStack_28;
undefined8 *puStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_1b8 = 0;
uStack_1b0 = 0;
puVar2 = auStack_1a8;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1b8;
lStack_18 = func_0x00400b50(puStack_10);
if (1 < 100U - lStack_18) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar1 == 0) {
printLine(&UNK_00401394);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400b50(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
puStack_20 = puStack_10;
puStack_28 = puStack_10;
func_0x00400bd0(stdout,puStack_10);
return;
}
| ['gcc'] |
43,032 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_31_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80846/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_31.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_31_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_31_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
43,033 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_32_bad()
{
wchar_t * data;
wchar_t * *dataPtr1 = &data;
wchar_t * *dataPtr2 = &data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
{
wchar_t * data = *dataPtr1;
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
*dataPtr1 = data;
}
{
wchar_t * data = *dataPtr2;
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
fwprintf(stdout, data);
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80847/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_32.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_32_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_32_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1c8;
undefined8 uStack_1c0;
undefined8 auStack_1b8 [48];
undefined8 *puStack_38;
undefined8 *puStack_30;
long lStack_28;
undefined8 *puStack_20;
undefined8 **ppuStack_18;
undefined8 **ppuStack_10;
ppuStack_10 = &puStack_38;
ppuStack_18 = &puStack_38;
uStack_1c8 = 0;
uStack_1c0 = 0;
puVar2 = auStack_1b8;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_38 = &uStack_1c8;
puStack_20 = *ppuStack_10;
lStack_28 = func_0x00400b50(puStack_20);
if (1 < 100U - lStack_28) {
lVar1 = func_0x00400b10(lStack_28 * 4 + (long)puStack_20,100 - (int)lStack_28,stdin);
if (lVar1 == 0) {
printLine(&UNK_004013b4);
*(undefined4 *)((long)puStack_20 + lStack_28 * 4) = 0;
}
else {
lStack_28 = func_0x00400b50(puStack_20);
if ((lStack_28 != 0) && (*(int *)((long)puStack_20 + lStack_28 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_20 + lStack_28 * 4 + -4) = 0;
}
}
}
*ppuStack_10 = puStack_20;
puStack_30 = *ppuStack_18;
func_0x00400bd0(stdout,puStack_30);
return;
}
| ['gcc'] |
43,034 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_32_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80847/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_32.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_32_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_32_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
43,035 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_34_bad()
{
wchar_t * data;
CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_34_unionType myUnion;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
myUnion.unionFirst = data;
{
wchar_t * data = myUnion.unionSecond;
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
fwprintf(stdout, data);
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80849/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_34.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_34_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_34_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1b8;
undefined8 uStack_1b0;
undefined8 auStack_1a8 [48];
undefined8 *puStack_28;
undefined8 *puStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_1b8 = 0;
uStack_1b0 = 0;
puVar2 = auStack_1a8;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1b8;
lStack_18 = func_0x00400b50(puStack_10);
if (1 < 100U - lStack_18) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar1 == 0) {
printLine(&UNK_00401394);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400b50(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
puStack_28 = puStack_10;
puStack_20 = puStack_10;
func_0x00400bd0(stdout,puStack_10);
return;
}
| ['gcc'] |
43,036 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_34_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80849/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_34.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_34_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_34_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
43,037 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_42_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
data = badSource(data);
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
fwprintf(stdout, data);
} | ['/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80851/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_42.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_42_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_42_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [49];
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar2 = auStack_198;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1a8;
puStack_10 = (undefined8 *)badSource(puStack_10);
func_0x00400bd0(stdout,puStack_10);
return;
}
| ['gcc'] |
43,038 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_42_good()
{
goodB2G();
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80851/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_42.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_42_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_42_good(void)
{
goodB2G();
goodG2B();
return;
}
| ['gcc'] |
43,039 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_61_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
data = CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_61b_badSource(data);
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
fwprintf(stdout, data);
} | ['/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80859/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_61a.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_61_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_61_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [49];
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar2 = auStack_198;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1a8;
puStack_10 = (undefined8 *)
CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_61b_badSource(puStack_10);
func_0x00400bd0(stdout,puStack_10);
return;
}
| ['gcc'] |
43,040 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_61_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80859/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_61a.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_61_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_61_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
43,041 | wchar_t * CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_61b_badSource(wchar_t * data)
{
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
return data;
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80859/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_61b.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_61b_badSource |
long CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_61b_badSource(long param_1)
{
long lVar1;
long lVar2;
lVar1 = func_0x00400b50(param_1);
if (1 < 100U - lVar1) {
lVar2 = func_0x00400b10(lVar1 * 4 + param_1,100 - (int)lVar1,stdin);
if (lVar2 == 0) {
printLine(&UNK_004013a4);
*(undefined4 *)(param_1 + lVar1 * 4) = 0;
}
else {
lVar1 = func_0x00400b50(param_1);
if ((lVar1 != 0) && (*(int *)(param_1 + lVar1 * 4 + -4) == 10)) {
*(undefined4 *)(param_1 + lVar1 * 4 + -4) = 0;
}
}
}
return param_1;
}
| ['gcc'] |
43,042 | wchar_t * CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_61b_goodG2BSource(wchar_t * data)
{
/* FIX: Use a fixed string that does not contain a format specifier */
wcscpy(data, L"fixedstringtest");
return data;
} | ['/* FIX: Use a fixed string that does not contain a format specifier */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80859/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_61b.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_61b_goodG2BSource |
undefined8
CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_61b_goodG2BSource(undefined8 param_1)
{
func_0x00400bc0(param_1,&UNK_00401498);
return param_1;
}
| ['gcc'] |
43,043 | wchar_t * CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_61b_goodB2GSource(wchar_t * data)
{
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
return data;
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80859/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_61b.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_61b_goodB2GSource |
long CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_61b_goodB2GSource(long param_1)
{
long lVar1;
long lVar2;
lVar1 = func_0x00400b80(param_1);
if (1 < 100U - lVar1) {
lVar2 = func_0x00400b40(lVar1 * 4 + param_1,100 - (int)lVar1,stdin);
if (lVar2 == 0) {
printLine(&UNK_004014d8);
*(undefined4 *)(param_1 + lVar1 * 4) = 0;
}
else {
lVar1 = func_0x00400b80(param_1);
if ((lVar1 != 0) && (*(int *)(param_1 + lVar1 * 4 + -4) == 10)) {
*(undefined4 *)(param_1 + lVar1 * 4 + -4) = 0;
}
}
}
return param_1;
}
| ['gcc'] |
43,044 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_63_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_63b_badSink(&data);
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80861/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_63a.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_63_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_63_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [48];
undefined8 *puStack_18;
long lStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar2 = auStack_198;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_18 = &uStack_1a8;
lStack_10 = func_0x00400b50(puStack_18);
if (1 < 100U - lStack_10) {
lVar1 = func_0x00400b10(lStack_10 * 4 + (long)puStack_18,100 - (int)lStack_10,stdin);
if (lVar1 == 0) {
printLine(&UNK_00401394);
*(undefined4 *)((long)puStack_18 + lStack_10 * 4) = 0;
}
else {
lStack_10 = func_0x00400b50(puStack_18);
if ((lStack_10 != 0) && (*(int *)((long)puStack_18 + lStack_10 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_18 + lStack_10 * 4 + -4) = 0;
}
}
}
CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_63b_badSink(&puStack_18);
return;
}
| ['gcc'] |
43,045 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_63_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80861/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_63a.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_63_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_63_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
43,046 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_63b_badSink(wchar_t * * dataPtr)
{
wchar_t * data = *dataPtr;
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
fwprintf(stdout, data);
} | ['/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80861/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_63b.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_63b_badSink |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_63b_badSink(undefined8 *param_1)
{
func_0x00400bd0(stdout,*param_1);
return;
}
| ['gcc'] |
43,047 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_63b_goodG2BSink(wchar_t * * dataPtr)
{
wchar_t * data = *dataPtr;
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
fwprintf(stdout, data);
} | ['/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80861/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_63b.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_63b_goodG2BSink |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_63b_goodG2BSink(undefined8 *param_1)
{
func_0x00400c10(stdout,*param_1);
return;
}
| ['gcc'] |
43,048 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_63b_goodB2GSink(wchar_t * * dataPtr)
{
wchar_t * data = *dataPtr;
/* FIX: Specify the format disallowing a format string vulnerability */
fwprintf(stdout, L"%s\n", data);
} | ['/* FIX: Specify the format disallowing a format string vulnerability */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80861/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_63b.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_63b_goodB2GSink |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_63b_goodB2GSink(undefined8 *param_1)
{
func_0x00400c10(stdout,&UNK_00401494,*param_1);
return;
}
| ['gcc'] |
43,049 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_64_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_64b_badSink(&data);
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80862/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_64a.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_64_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_64_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [48];
undefined8 *puStack_18;
long lStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar2 = auStack_198;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_18 = &uStack_1a8;
lStack_10 = func_0x00400b50(puStack_18);
if (1 < 100U - lStack_10) {
lVar1 = func_0x00400b10(lStack_10 * 4 + (long)puStack_18,100 - (int)lStack_10,stdin);
if (lVar1 == 0) {
printLine(&UNK_004013a4);
*(undefined4 *)((long)puStack_18 + lStack_10 * 4) = 0;
}
else {
lStack_10 = func_0x00400b50(puStack_18);
if ((lStack_10 != 0) && (*(int *)((long)puStack_18 + lStack_10 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_18 + lStack_10 * 4 + -4) = 0;
}
}
}
CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_64b_badSink(&puStack_18);
return;
}
| ['gcc'] |
43,050 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_64_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80862/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_64a.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_64_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_64_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
43,051 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_64b_badSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
wchar_t * * dataPtr = (wchar_t * *)dataVoidPtr;
/* dereference dataPtr into data */
wchar_t * data = (*dataPtr);
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
fwprintf(stdout, data);
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80862/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_64b.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_64b_badSink |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_64b_badSink(undefined8 *param_1)
{
func_0x00400bd0(stdout,*param_1);
return;
}
| ['gcc'] |
43,052 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_64b_goodG2BSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
wchar_t * * dataPtr = (wchar_t * *)dataVoidPtr;
/* dereference dataPtr into data */
wchar_t * data = (*dataPtr);
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
fwprintf(stdout, data);
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80862/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_64b.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_64b_goodG2BSink |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_64b_goodG2BSink(undefined8 *param_1)
{
func_0x00400c10(stdout,*param_1);
return;
}
| ['gcc'] |
43,053 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_64b_goodB2GSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
wchar_t * * dataPtr = (wchar_t * *)dataVoidPtr;
/* dereference dataPtr into data */
wchar_t * data = (*dataPtr);
/* FIX: Specify the format disallowing a format string vulnerability */
fwprintf(stdout, L"%s\n", data);
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* FIX: Specify the format disallowing a format string vulnerability */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80862/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_64b.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_64b_goodB2GSink |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_64b_goodB2GSink(undefined8 *param_1)
{
func_0x00400c10(stdout,&UNK_004014a4,*param_1);
return;
}
| ['gcc'] |
43,054 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_66_bad()
{
wchar_t * data;
wchar_t * dataArray[5];
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
/* put data in array */
dataArray[2] = data;
CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_66b_badSink(dataArray);
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* put data in array */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80864/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_66a.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_66_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_66_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1d8;
undefined8 uStack_1d0;
undefined8 auStack_1c8 [48];
undefined auStack_48 [16];
undefined8 *puStack_38;
long lStack_18;
undefined8 *puStack_10;
uStack_1d8 = 0;
uStack_1d0 = 0;
puVar2 = auStack_1c8;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1d8;
lStack_18 = func_0x00400b50(puStack_10);
if (1 < 100U - lStack_18) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar1 == 0) {
printLine(&UNK_004013a4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400b50(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
puStack_38 = puStack_10;
CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_66b_badSink(auStack_48);
return;
}
| ['gcc'] |
43,055 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_66_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80864/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_66a.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_66_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_66_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
43,056 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_66b_badSink(wchar_t * dataArray[])
{
/* copy data out of dataArray */
wchar_t * data = dataArray[2];
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
fwprintf(stdout, data);
} | ['/* copy data out of dataArray */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80864/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_66b.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_66b_badSink |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_66b_badSink(long param_1)
{
func_0x00400bd0(stdout,*(undefined8 *)(param_1 + 0x10));
return;
}
| ['gcc'] |
43,057 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_66b_goodG2BSink(wchar_t * dataArray[])
{
wchar_t * data = dataArray[2];
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
fwprintf(stdout, data);
} | ['/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80864/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_66b.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_66b_goodG2BSink |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_66b_goodG2BSink(long param_1)
{
func_0x00400c10(stdout,*(undefined8 *)(param_1 + 0x10));
return;
}
| ['gcc'] |
43,058 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_66b_goodB2GSink(wchar_t * dataArray[])
{
wchar_t * data = dataArray[2];
/* FIX: Specify the format disallowing a format string vulnerability */
fwprintf(stdout, L"%s\n", data);
} | ['/* FIX: Specify the format disallowing a format string vulnerability */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80864/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_66b.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_66b_goodB2GSink |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_66b_goodB2GSink(long param_1)
{
func_0x00400c10(stdout,&UNK_004014a4,*(undefined8 *)(param_1 + 0x10));
return;
}
| ['gcc'] |
43,059 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_67_bad()
{
wchar_t * data;
CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_67_structType myStruct;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
myStruct.structFirst = data;
CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_67b_badSink(myStruct);
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80865/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_67a.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_67_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_67_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1b8;
undefined8 uStack_1b0;
undefined8 auStack_1a8 [49];
undefined8 *puStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_1b8 = 0;
uStack_1b0 = 0;
puVar2 = auStack_1a8;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1b8;
lStack_18 = func_0x00400b50(puStack_10);
if (1 < 100U - lStack_18) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar1 == 0) {
printLine(&UNK_004013a4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400b50(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
puStack_20 = puStack_10;
CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_67b_badSink(puStack_10);
return;
}
| ['gcc'] |
43,060 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_67_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80865/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_67a.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_67_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_67_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
43,061 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_67b_badSink(CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_67_structType myStruct)
{
wchar_t * data = myStruct.structFirst;
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
fwprintf(stdout, data);
} | ['/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80865/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_67b.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_67b_badSink |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_67b_badSink(undefined8 param_1)
{
func_0x00400bd0(stdout,param_1);
return;
}
| ['gcc'] |
43,062 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_67b_goodG2BSink(CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_67_structType myStruct)
{
wchar_t * data = myStruct.structFirst;
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
fwprintf(stdout, data);
} | ['/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80865/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_67b.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_67b_goodG2BSink |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_67b_goodG2BSink(undefined8 param_1)
{
func_0x00400c10(stdout,param_1);
return;
}
| ['gcc'] |
43,063 | void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_67b_goodB2GSink(CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_67_structType myStruct)
{
wchar_t * data = myStruct.structFirst;
/* FIX: Specify the format disallowing a format string vulnerability */
fwprintf(stdout, L"%s\n", data);
} | ['/* FIX: Specify the format disallowing a format string vulnerability */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80865/CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_67b.c | CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_67b_goodB2GSink |
void CWE134_Uncontrolled_Format_String__wchar_t_console_fprintf_67b_goodB2GSink(undefined8 param_1)
{
func_0x00400c10(stdout,&UNK_004014a4,param_1);
return;
}
| ['gcc'] |
43,064 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_02_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(1)
{
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
}
if(1)
{
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
wprintf(data);
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80875/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_02.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_02_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_02_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [48];
long lStack_18;
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar2 = auStack_198;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1a8;
lStack_18 = func_0x00400aa0(puStack_10);
if (1 < 100U - lStack_18) {
lVar1 = func_0x00400a60(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar1 == 0) {
printLine(&UNK_004012b4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400aa0(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
func_0x00400b00(puStack_10);
return;
}
| ['gcc'] |
43,065 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_02_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80875/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_02.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_02_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_02_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
43,066 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_03_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(5==5)
{
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
}
if(5==5)
{
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
wprintf(data);
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80876/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_03.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_03_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_03_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [48];
long lStack_18;
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar2 = auStack_198;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1a8;
lStack_18 = func_0x00400aa0(puStack_10);
if (1 < 100U - lStack_18) {
lVar1 = func_0x00400a60(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar1 == 0) {
printLine(&UNK_004012b4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400aa0(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
func_0x00400b00(puStack_10);
return;
}
| ['gcc'] |
43,067 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_03_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80876/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_03.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_03_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_03_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
43,068 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_04_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(STATIC_CONST_TRUE)
{
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
}
if(STATIC_CONST_TRUE)
{
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
wprintf(data);
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80877/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_04.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_04_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_04_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [48];
long lStack_18;
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar2 = auStack_198;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1a8;
lStack_18 = func_0x00400aa0(puStack_10);
if (1 < 100U - lStack_18) {
lVar1 = func_0x00400a60(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar1 == 0) {
printLine(&UNK_004012cc);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400aa0(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
func_0x00400b00(puStack_10);
return;
}
| ['gcc'] |
43,069 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_04_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80877/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_04.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_04_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_04_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
43,070 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_05_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(staticTrue)
{
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
}
if(staticTrue)
{
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
wprintf(data);
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80878/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_05.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_05_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_05_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [48];
long lStack_18;
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar2 = auStack_198;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1a8;
if (staticTrue != 0) {
lStack_18 = func_0x00400aa0(puStack_10);
if (1 < 100U - lStack_18) {
lVar1 = func_0x00400a60(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar1 == 0) {
printLine(&UNK_004012c4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400aa0(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
}
if (staticTrue != 0) {
func_0x00400b00(puStack_10);
}
return;
}
| ['gcc'] |
43,071 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_05_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80878/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_05.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_05_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_05_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
43,072 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_06_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(STATIC_CONST_FIVE==5)
{
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
}
if(STATIC_CONST_FIVE==5)
{
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
wprintf(data);
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80879/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_06.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_06_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_06_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [48];
long lStack_18;
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar2 = auStack_198;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1a8;
lStack_18 = func_0x00400aa0(puStack_10);
if (1 < 100U - lStack_18) {
lVar1 = func_0x00400a60(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar1 == 0) {
printLine(&UNK_004012c8);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400aa0(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
func_0x00400b00(puStack_10);
return;
}
| ['gcc'] |
43,073 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_06_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80879/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_06.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_06_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_06_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
43,074 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_07_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(staticFive==5)
{
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
}
if(staticFive==5)
{
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
wprintf(data);
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80880/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_07.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_07_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_07_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [48];
long lStack_18;
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar2 = auStack_198;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1a8;
if (staticFive == 5) {
lStack_18 = func_0x00400aa0(puStack_10);
if (1 < 100U - lStack_18) {
lVar1 = func_0x00400a60(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar1 == 0) {
printLine(&UNK_004012d4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400aa0(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
}
if (staticFive == 5) {
func_0x00400b00(puStack_10);
}
return;
}
| ['gcc'] |
43,075 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_07_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80880/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_07.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_07_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_07_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
43,076 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_08_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(staticReturnsTrue())
{
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
}
if(staticReturnsTrue())
{
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
wprintf(data);
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80881/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_08.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_08_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_08_bad(void)
{
int iVar1;
long lVar2;
undefined8 *puVar3;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [48];
long lStack_18;
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar3 = auStack_198;
for (lVar2 = 0x30; lVar2 != 0; lVar2 = lVar2 + -1) {
*puVar3 = 0;
puVar3 = puVar3 + 1;
}
puStack_10 = &uStack_1a8;
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
lStack_18 = func_0x00400aa0(puStack_10);
if (1 < 100U - lStack_18) {
lVar2 = func_0x00400a60(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar2 == 0) {
printLine(&UNK_004012e4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400aa0(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
}
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
func_0x00400b00(puStack_10);
}
return;
}
| ['gcc'] |
43,077 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_08_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80881/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_08.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_08_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_08_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
43,078 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_09_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(GLOBAL_CONST_TRUE)
{
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
}
if(GLOBAL_CONST_TRUE)
{
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
wprintf(data);
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80882/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_09.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_09_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_09_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [48];
long lStack_18;
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar2 = auStack_198;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1a8;
if (GLOBAL_CONST_TRUE != 0) {
lStack_18 = func_0x00400aa0(puStack_10);
if (1 < 100U - lStack_18) {
lVar1 = func_0x00400a60(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar1 == 0) {
printLine(&UNK_004012c4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400aa0(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
}
if (GLOBAL_CONST_TRUE != 0) {
func_0x00400b00(puStack_10);
}
return;
}
| ['gcc'] |
43,079 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_09_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80882/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_09.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_09_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_09_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
43,080 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_10_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(globalTrue)
{
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
}
if(globalTrue)
{
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
wprintf(data);
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80883/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_10.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_10_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_10_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [48];
long lStack_18;
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar2 = auStack_198;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1a8;
if (globalTrue != 0) {
lStack_18 = func_0x00400aa0(puStack_10);
if (1 < 100U - lStack_18) {
lVar1 = func_0x00400a60(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar1 == 0) {
printLine(&UNK_004012c4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400aa0(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
}
if (globalTrue != 0) {
func_0x00400b00(puStack_10);
}
return;
}
| ['gcc'] |
43,081 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_10_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80883/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_10.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_10_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_10_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
43,082 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_11_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(globalReturnsTrue())
{
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
}
if(globalReturnsTrue())
{
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
wprintf(data);
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80884/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_11.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_11_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_11_bad(void)
{
int iVar1;
long lVar2;
undefined8 *puVar3;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [48];
long lStack_18;
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar3 = auStack_198;
for (lVar2 = 0x30; lVar2 != 0; lVar2 = lVar2 + -1) {
*puVar3 = 0;
puVar3 = puVar3 + 1;
}
puStack_10 = &uStack_1a8;
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
lStack_18 = func_0x00400aa0(puStack_10);
if (1 < 100U - lStack_18) {
lVar2 = func_0x00400a60(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar2 == 0) {
printLine(&UNK_004012d4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400aa0(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
}
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
func_0x00400b00(puStack_10);
}
return;
}
| ['gcc'] |
43,083 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_11_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80884/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_11.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_11_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_11_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
43,084 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_12_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(globalReturnsTrueOrFalse())
{
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
}
else
{
/* FIX: Use a fixed string that does not contain a format specifier */
wcscpy(data, L"fixedstringtest");
}
if(globalReturnsTrueOrFalse())
{
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
wprintf(data);
}
else
{
/* FIX: Specify the format disallowing a format string vulnerability */
wprintf(L"%s\n", data);
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* FIX: Use a fixed string that does not contain a format specifier */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */', '/* FIX: Specify the format disallowing a format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80885/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_12.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_12_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_12_bad(void)
{
int iVar1;
long lVar2;
undefined8 *puVar3;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [48];
long lStack_18;
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar3 = auStack_198;
for (lVar2 = 0x30; lVar2 != 0; lVar2 = lVar2 + -1) {
*puVar3 = 0;
puVar3 = puVar3 + 1;
}
puStack_10 = &uStack_1a8;
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
func_0x00400b10(puStack_10,&UNK_00401358);
}
else {
lStack_18 = func_0x00400ad0(puStack_10);
if (1 < 100U - lStack_18) {
lVar2 = func_0x00400a90(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar2 == 0) {
printLine(&UNK_00401348);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400ad0(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
}
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
func_0x00400b40(&UNK_00401398,puStack_10);
}
else {
func_0x00400b40(puStack_10);
}
return;
}
| ['gcc'] |
43,085 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_12_good()
{
goodB2G();
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80885/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_12.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_12_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_12_good(void)
{
goodB2G();
goodG2B();
return;
}
| ['gcc'] |
43,086 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_13_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(GLOBAL_CONST_FIVE==5)
{
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
}
if(GLOBAL_CONST_FIVE==5)
{
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
wprintf(data);
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80886/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_13.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_13_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_13_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [48];
long lStack_18;
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar2 = auStack_198;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1a8;
if (GLOBAL_CONST_FIVE == 5) {
lStack_18 = func_0x00400aa0(puStack_10);
if (1 < 100U - lStack_18) {
lVar1 = func_0x00400a60(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar1 == 0) {
printLine(&UNK_004012d4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400aa0(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
}
if (GLOBAL_CONST_FIVE == 5) {
func_0x00400b00(puStack_10);
}
return;
}
| ['gcc'] |
43,087 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_13_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80886/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_13.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_13_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_13_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
43,088 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_14_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(globalFive==5)
{
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
}
if(globalFive==5)
{
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
wprintf(data);
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80887/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_14.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_14_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_14_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [48];
long lStack_18;
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar2 = auStack_198;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1a8;
if (globalFive == 5) {
lStack_18 = func_0x00400aa0(puStack_10);
if (1 < 100U - lStack_18) {
lVar1 = func_0x00400a60(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar1 == 0) {
printLine(&UNK_004012d4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400aa0(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
}
if (globalFive == 5) {
func_0x00400b00(puStack_10);
}
return;
}
| ['gcc'] |
43,089 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_14_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80887/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_14.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_14_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_14_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
43,090 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_15_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
switch(6)
{
case 6:
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
break;
default:
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
break;
}
switch(7)
{
case 7:
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
wprintf(data);
break;
default:
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
break;
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */', '/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80888/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_15.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_15_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_15_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [48];
long lStack_18;
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar2 = auStack_198;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1a8;
lStack_18 = func_0x00400aa0(puStack_10);
if (1 < 100U - lStack_18) {
lVar1 = func_0x00400a60(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar1 == 0) {
printLine(&UNK_004012b4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400aa0(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
func_0x00400b00(puStack_10);
return;
}
| ['gcc'] |
43,091 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_15_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80888/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_15.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_15_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_15_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
43,092 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_16_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
while(1)
{
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
break;
}
while(1)
{
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
wprintf(data);
break;
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80889/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_16.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_16_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_16_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [48];
long lStack_18;
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar2 = auStack_198;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1a8;
lStack_18 = func_0x00400aa0(puStack_10);
if (1 < 100U - lStack_18) {
lVar1 = func_0x00400a60(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin);
if (lVar1 == 0) {
printLine(&UNK_004012b4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
else {
lStack_18 = func_0x00400aa0(puStack_10);
if ((lStack_18 != 0) && (*(int *)((long)puStack_10 + lStack_18 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_10 + lStack_18 * 4 + -4) = 0;
}
}
}
func_0x00400b00(puStack_10);
return;
}
| ['gcc'] |
43,093 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_16_good()
{
goodB2G();
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80889/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_16.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_16_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_16_good(void)
{
goodB2G();
goodG2B();
return;
}
| ['gcc'] |
43,094 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_17_bad()
{
int i,j;
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
for(i = 0; i < 1; i++)
{
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
}
for(j = 0; j < 1; j++)
{
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
wprintf(data);
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80890/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_17.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_17_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_17_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1b8;
undefined8 uStack_1b0;
undefined8 auStack_1a8 [49];
long lStack_20;
undefined8 *puStack_18;
int iStack_10;
int iStack_c;
uStack_1b8 = 0;
uStack_1b0 = 0;
puVar2 = auStack_1a8;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_18 = &uStack_1b8;
for (iStack_c = 0; iStack_c < 1; iStack_c = iStack_c + 1) {
lStack_20 = func_0x00400aa0(puStack_18);
if (1 < 100U - lStack_20) {
lVar1 = func_0x00400a60(lStack_20 * 4 + (long)puStack_18,100 - (int)lStack_20,stdin);
if (lVar1 == 0) {
printLine(&UNK_004012e4);
*(undefined4 *)((long)puStack_18 + lStack_20 * 4) = 0;
}
else {
lStack_20 = func_0x00400aa0(puStack_18);
if ((lStack_20 != 0) && (*(int *)((long)puStack_18 + lStack_20 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_18 + lStack_20 * 4 + -4) = 0;
}
}
}
}
for (iStack_10 = 0; iStack_10 < 1; iStack_10 = iStack_10 + 1) {
func_0x00400b00(puStack_18);
}
return;
}
| ['gcc'] |
43,095 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_17_good()
{
goodB2G();
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80890/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_17.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_17_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_17_good(void)
{
goodB2G();
goodG2B();
return;
}
| ['gcc'] |
43,096 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_32_bad()
{
wchar_t * data;
wchar_t * *dataPtr1 = &data;
wchar_t * *dataPtr2 = &data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
{
wchar_t * data = *dataPtr1;
{
/* Read input from the console */
size_t dataLen = wcslen(data);
/* if there is room in data, read into it from the console */
if (100-dataLen > 1)
{
/* POTENTIAL FLAW: Read data from the console */
if (fgetws(data+dataLen, (int)(100-dataLen), stdin) != NULL)
{
/* The next few lines remove the carriage return from the string that is
* inserted by fgetws() */
dataLen = wcslen(data);
if (dataLen > 0 && data[dataLen-1] == L'\n')
{
data[dataLen-1] = L'\0';
}
}
else
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
}
}
*dataPtr1 = data;
}
{
wchar_t * data = *dataPtr2;
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
wprintf(data);
}
} | ['/* Read input from the console */', '/* if there is room in data, read into it from the console */', '/* POTENTIAL FLAW: Read data from the console */', '/* The next few lines remove the carriage return from the string that is\r\n * inserted by fgetws() */', '/* Restore NUL terminator if fgetws fails */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80895/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_32.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_32_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_32_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1c8;
undefined8 uStack_1c0;
undefined8 auStack_1b8 [48];
undefined8 *puStack_38;
undefined8 *puStack_30;
long lStack_28;
undefined8 *puStack_20;
undefined8 **ppuStack_18;
undefined8 **ppuStack_10;
ppuStack_10 = &puStack_38;
ppuStack_18 = &puStack_38;
uStack_1c8 = 0;
uStack_1c0 = 0;
puVar2 = auStack_1b8;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_38 = &uStack_1c8;
puStack_20 = *ppuStack_10;
lStack_28 = func_0x00400aa0(puStack_20);
if (1 < 100U - lStack_28) {
lVar1 = func_0x00400a60(lStack_28 * 4 + (long)puStack_20,100 - (int)lStack_28,stdin);
if (lVar1 == 0) {
printLine(&UNK_004012e4);
*(undefined4 *)((long)puStack_20 + lStack_28 * 4) = 0;
}
else {
lStack_28 = func_0x00400aa0(puStack_20);
if ((lStack_28 != 0) && (*(int *)((long)puStack_20 + lStack_28 * 4 + -4) == 10)) {
*(undefined4 *)((long)puStack_20 + lStack_28 * 4 + -4) = 0;
}
}
}
*ppuStack_10 = puStack_20;
puStack_30 = *ppuStack_18;
func_0x00400b00(puStack_30);
return;
}
| ['gcc'] |
43,097 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_32_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80895/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_32.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_32_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_32_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
43,098 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_42_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
data = badSource(data);
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
wprintf(data);
} | ['/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80899/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_42.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_42_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_42_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1a8;
undefined8 uStack_1a0;
undefined8 auStack_198 [49];
undefined8 *puStack_10;
uStack_1a8 = 0;
uStack_1a0 = 0;
puVar2 = auStack_198;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1a8;
puStack_10 = (undefined8 *)badSource(puStack_10);
func_0x00400b00(puStack_10);
return;
}
| ['gcc'] |
43,099 | void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_42_good()
{
goodB2G();
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80899/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_42.c | CWE134_Uncontrolled_Format_String__wchar_t_console_printf_42_good |
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_42_good(void)
{
goodB2G();
goodG2B();
return;
}
| ['gcc'] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.