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,100
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_61_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; data = CWE134_Uncontrolled_Format_String__wchar_t_console_printf_61b_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/80907/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_61a.c
CWE134_Uncontrolled_Format_String__wchar_t_console_printf_61_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_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_printf_61b_badSource(puStack_10); func_0x00400b00(puStack_10); return; }
['gcc']
43,101
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_61_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80907/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_61a.c
CWE134_Uncontrolled_Format_String__wchar_t_console_printf_61_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_printf_61_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
43,102
wchar_t * CWE134_Uncontrolled_Format_String__wchar_t_console_printf_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/80907/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_61b.c
CWE134_Uncontrolled_Format_String__wchar_t_console_printf_61b_badSource
long CWE134_Uncontrolled_Format_String__wchar_t_console_printf_61b_badSource(long param_1) { long lVar1; long lVar2; lVar1 = func_0x00400aa0(param_1); if (1 < 100U - lVar1) { lVar2 = func_0x00400a60(lVar1 * 4 + param_1,100 - (int)lVar1,stdin); if (lVar2 == 0) { printLine(&UNK_004012d4); *(undefined4 *)(param_1 + lVar1 * 4) = 0; } else { lVar1 = func_0x00400aa0(param_1); if ((lVar1 != 0) && (*(int *)(param_1 + lVar1 * 4 + -4) == 10)) { *(undefined4 *)(param_1 + lVar1 * 4 + -4) = 0; } } } return param_1; }
['gcc']
43,103
wchar_t * CWE134_Uncontrolled_Format_String__wchar_t_console_printf_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/80907/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_61b.c
CWE134_Uncontrolled_Format_String__wchar_t_console_printf_61b_goodG2BSource
undefined8 CWE134_Uncontrolled_Format_String__wchar_t_console_printf_61b_goodG2BSource(undefined8 param_1) { func_0x00400b10(param_1,&UNK_004013c8); return param_1; }
['gcc']
43,104
wchar_t * CWE134_Uncontrolled_Format_String__wchar_t_console_printf_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/80907/CWE134_Uncontrolled_Format_String__wchar_t_console_printf_61b.c
CWE134_Uncontrolled_Format_String__wchar_t_console_printf_61b_goodB2GSource
long CWE134_Uncontrolled_Format_String__wchar_t_console_printf_61b_goodB2GSource(long param_1) { long lVar1; long lVar2; lVar1 = func_0x00400ad0(param_1); if (1 < 100U - lVar1) { lVar2 = func_0x00400a90(lVar1 * 4 + param_1,100 - (int)lVar1,stdin); if (lVar2 == 0) { printLine(&UNK_00401408); *(undefined4 *)(param_1 + lVar1 * 4) = 0; } else { lVar1 = func_0x00400ad0(param_1); if ((lVar1 != 0) && (*(int *)(param_1 + lVar1 * 4 + -4) == 10)) { *(undefined4 *)(param_1 + lVar1 * 4 + -4) = 0; } } } return param_1; }
['gcc']
43,105
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_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) { { wchar_t dest[100] = L""; /* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */ SNPRINTF(dest, 100-1, data); printWLine(dest); } } }
['/* 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/80923/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_02.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_02_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_02_bad(void) { long lVar1; undefined8 *puVar2; byte bVar3; undefined8 uStack_338; undefined8 uStack_330; undefined8 auStack_328 [48]; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [48]; long lStack_18; undefined8 *puStack_10; bVar3 = 0; 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_0x00400ad0(puStack_10); if (1 < 100U - lStack_18) { lVar1 = func_0x00400a90(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin); if (lVar1 == 0) { printLine(&UNK_00401334); *(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; } } } uStack_338 = 0; uStack_330 = 0; puVar2 = auStack_328; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + (ulong)bVar3 * -2 + 1; } func_0x00400ae0(&uStack_338,99,puStack_10); printWLine(&uStack_338); return; }
['gcc']
43,106
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_02_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80923/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_02.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_02_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_02_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
43,107
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_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) { { wchar_t dest[100] = L""; /* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */ SNPRINTF(dest, 100-1, data); printWLine(dest); } } }
['/* 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/80924/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_03.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_03_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_03_bad(void) { long lVar1; undefined8 *puVar2; byte bVar3; undefined8 uStack_338; undefined8 uStack_330; undefined8 auStack_328 [48]; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [48]; long lStack_18; undefined8 *puStack_10; bVar3 = 0; 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_0x00400ad0(puStack_10); if (1 < 100U - lStack_18) { lVar1 = func_0x00400a90(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin); if (lVar1 == 0) { printLine(&UNK_00401334); *(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; } } } uStack_338 = 0; uStack_330 = 0; puVar2 = auStack_328; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + (ulong)bVar3 * -2 + 1; } func_0x00400ae0(&uStack_338,99,puStack_10); printWLine(&uStack_338); return; }
['gcc']
43,108
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_03_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80924/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_03.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_03_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_03_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
43,109
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_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) { { wchar_t dest[100] = L""; /* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */ SNPRINTF(dest, 100-1, data); printWLine(dest); } } }
['/* 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/80925/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_04.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_04_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_04_bad(void) { long lVar1; undefined8 *puVar2; byte bVar3; undefined8 uStack_338; undefined8 uStack_330; undefined8 auStack_328 [48]; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [48]; long lStack_18; undefined8 *puStack_10; bVar3 = 0; 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_0x00400ad0(puStack_10); if (1 < 100U - lStack_18) { lVar1 = func_0x00400a90(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin); if (lVar1 == 0) { printLine(&UNK_0040135c); *(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; } } } uStack_338 = 0; uStack_330 = 0; puVar2 = auStack_328; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + (ulong)bVar3 * -2 + 1; } func_0x00400ae0(&uStack_338,99,puStack_10); printWLine(&uStack_338); return; }
['gcc']
43,110
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_04_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80925/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_04.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_04_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_04_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
43,111
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_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) { { wchar_t dest[100] = L""; /* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */ SNPRINTF(dest, 100-1, data); printWLine(dest); } } }
['/* 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/80926/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_05.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_05_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_05_bad(void) { long lVar1; undefined8 *puVar2; byte bVar3; undefined8 uStack_338; undefined8 uStack_330; undefined8 auStack_328 [48]; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [48]; long lStack_18; undefined8 *puStack_10; bVar3 = 0; 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_0x00400ad0(puStack_10); if (1 < 100U - lStack_18) { lVar1 = func_0x00400a90(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin); if (lVar1 == 0) { printLine(&UNK_00401354); *(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; } } } } if (staticTrue != 0) { uStack_338 = 0; uStack_330 = 0; puVar2 = auStack_328; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + (ulong)bVar3 * -2 + 1; } func_0x00400ae0(&uStack_338,99,puStack_10); printWLine(&uStack_338); } return; }
['gcc']
43,112
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_05_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80926/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_05.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_05_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_05_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
43,113
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_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) { { wchar_t dest[100] = L""; /* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */ SNPRINTF(dest, 100-1, data); printWLine(dest); } } }
['/* 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/80927/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_06.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_06_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_06_bad(void) { long lVar1; undefined8 *puVar2; byte bVar3; undefined8 uStack_338; undefined8 uStack_330; undefined8 auStack_328 [48]; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [48]; long lStack_18; undefined8 *puStack_10; bVar3 = 0; 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_0x00400ad0(puStack_10); if (1 < 100U - lStack_18) { lVar1 = func_0x00400a90(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin); if (lVar1 == 0) { printLine(&UNK_00401358); *(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; } } } uStack_338 = 0; uStack_330 = 0; puVar2 = auStack_328; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + (ulong)bVar3 * -2 + 1; } func_0x00400ae0(&uStack_338,99,puStack_10); printWLine(&uStack_338); return; }
['gcc']
43,114
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_06_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80927/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_06.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_06_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_06_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
43,115
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_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) { { wchar_t dest[100] = L""; /* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */ SNPRINTF(dest, 100-1, data); printWLine(dest); } } }
['/* 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/80928/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_07.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_07_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_07_bad(void) { long lVar1; undefined8 *puVar2; byte bVar3; undefined8 uStack_338; undefined8 uStack_330; undefined8 auStack_328 [48]; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [48]; long lStack_18; undefined8 *puStack_10; bVar3 = 0; 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_0x00400ad0(puStack_10); if (1 < 100U - lStack_18) { lVar1 = func_0x00400a90(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin); if (lVar1 == 0) { printLine(&UNK_00401354); *(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; } } } } if (staticFive == 5) { uStack_338 = 0; uStack_330 = 0; puVar2 = auStack_328; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + (ulong)bVar3 * -2 + 1; } func_0x00400ae0(&uStack_338,99,puStack_10); printWLine(&uStack_338); } return; }
['gcc']
43,116
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_07_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80928/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_07.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_07_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_07_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
43,117
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_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()) { { wchar_t dest[100] = L""; /* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */ SNPRINTF(dest, 100-1, data); printWLine(dest); } } }
['/* 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/80929/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_08.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_08_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_08_bad(void) { int iVar1; long lVar2; undefined8 *puVar3; byte bVar4; undefined8 uStack_338; undefined8 uStack_330; undefined8 auStack_328 [48]; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [48]; long lStack_18; undefined8 *puStack_10; bVar4 = 0; 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_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_00401374); *(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 = staticReturnsTrue(); if (iVar1 != 0) { uStack_338 = 0; uStack_330 = 0; puVar3 = auStack_328; for (lVar2 = 0x30; lVar2 != 0; lVar2 = lVar2 + -1) { *puVar3 = 0; puVar3 = puVar3 + (ulong)bVar4 * -2 + 1; } func_0x00400ae0(&uStack_338,99,puStack_10); printWLine(&uStack_338); } return; }
['gcc']
43,118
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_08_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80929/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_08.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_08_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_08_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
43,119
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_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) { { wchar_t dest[100] = L""; /* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */ SNPRINTF(dest, 100-1, data); printWLine(dest); } } }
['/* 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/80930/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_09.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_09_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_09_bad(void) { long lVar1; undefined8 *puVar2; byte bVar3; undefined8 uStack_338; undefined8 uStack_330; undefined8 auStack_328 [48]; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [48]; long lStack_18; undefined8 *puStack_10; bVar3 = 0; 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_0x00400ad0(puStack_10); if (1 < 100U - lStack_18) { lVar1 = func_0x00400a90(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin); if (lVar1 == 0) { printLine(&UNK_00401354); *(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; } } } } if (GLOBAL_CONST_TRUE != 0) { uStack_338 = 0; uStack_330 = 0; puVar2 = auStack_328; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + (ulong)bVar3 * -2 + 1; } func_0x00400ae0(&uStack_338,99,puStack_10); printWLine(&uStack_338); } return; }
['gcc']
43,120
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_09_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80930/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_09.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_09_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_09_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
43,121
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_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) { { wchar_t dest[100] = L""; /* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */ SNPRINTF(dest, 100-1, data); printWLine(dest); } } }
['/* 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/80931/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_10.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_10_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_10_bad(void) { long lVar1; undefined8 *puVar2; byte bVar3; undefined8 uStack_338; undefined8 uStack_330; undefined8 auStack_328 [48]; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [48]; long lStack_18; undefined8 *puStack_10; bVar3 = 0; 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_0x00400ad0(puStack_10); if (1 < 100U - lStack_18) { lVar1 = func_0x00400a90(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin); if (lVar1 == 0) { printLine(&UNK_00401354); *(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; } } } } if (globalTrue != 0) { uStack_338 = 0; uStack_330 = 0; puVar2 = auStack_328; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + (ulong)bVar3 * -2 + 1; } func_0x00400ae0(&uStack_338,99,puStack_10); printWLine(&uStack_338); } return; }
['gcc']
43,122
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_10_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80931/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_10.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_10_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_10_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
43,123
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_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()) { { wchar_t dest[100] = L""; /* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */ SNPRINTF(dest, 100-1, data); printWLine(dest); } } }
['/* 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/80932/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_11.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_11_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_11_bad(void) { int iVar1; long lVar2; undefined8 *puVar3; byte bVar4; undefined8 uStack_338; undefined8 uStack_330; undefined8 auStack_328 [48]; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [48]; long lStack_18; undefined8 *puStack_10; bVar4 = 0; 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_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_00401354); *(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 = globalReturnsTrue(); if (iVar1 != 0) { uStack_338 = 0; uStack_330 = 0; puVar3 = auStack_328; for (lVar2 = 0x30; lVar2 != 0; lVar2 = lVar2 + -1) { *puVar3 = 0; puVar3 = puVar3 + (ulong)bVar4 * -2 + 1; } func_0x00400ae0(&uStack_338,99,puStack_10); printWLine(&uStack_338); } return; }
['gcc']
43,124
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_11_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80932/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_11.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_11_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_11_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
43,125
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_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()) { { wchar_t dest[100] = L""; /* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */ SNPRINTF(dest, 100-1, data); printWLine(dest); } } else { { wchar_t dest[100] = L""; /* FIX: Specify the format disallowing a format string vulnerability */ SNPRINTF(dest, 100-1, L"%s", data); printWLine(dest); } } }
['/* 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/80933/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_12.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_12_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_12_bad(void) { int iVar1; long lVar2; undefined8 *puVar3; byte bVar4; undefined8 uStack_338; undefined8 uStack_330; undefined8 auStack_328 [48]; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [48]; long lStack_18; undefined8 *puStack_10; bVar4 = 0; 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_0x00400ba0(puStack_10,&UNK_00401478); } else { 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_00401468); *(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 = globalReturnsTrueOrFalse(); if (iVar1 == 0) { uStack_338 = 0; uStack_330 = 0; puVar3 = auStack_328; for (lVar2 = 0x30; lVar2 != 0; lVar2 = lVar2 + -1) { *puVar3 = 0; puVar3 = puVar3 + (ulong)bVar4 * -2 + 1; } func_0x00400b60(&uStack_338,99,&UNK_004014b8,puStack_10); printWLine(&uStack_338); } else { uStack_338 = 0; uStack_330 = 0; puVar3 = auStack_328; for (lVar2 = 0x30; lVar2 != 0; lVar2 = lVar2 + -1) { *puVar3 = 0; puVar3 = puVar3 + (ulong)bVar4 * -2 + 1; } func_0x00400b60(&uStack_338,99,puStack_10); printWLine(&uStack_338); } return; }
['gcc']
43,126
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_12_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80933/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_12.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_12_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_12_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
43,127
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_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) { { wchar_t dest[100] = L""; /* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */ SNPRINTF(dest, 100-1, data); printWLine(dest); } } }
['/* 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/80934/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_13.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_13_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_13_bad(void) { long lVar1; undefined8 *puVar2; byte bVar3; undefined8 uStack_338; undefined8 uStack_330; undefined8 auStack_328 [48]; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [48]; long lStack_18; undefined8 *puStack_10; bVar3 = 0; 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_0x00400ad0(puStack_10); if (1 < 100U - lStack_18) { lVar1 = func_0x00400a90(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin); if (lVar1 == 0) { printLine(&UNK_00401354); *(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; } } } } if (GLOBAL_CONST_FIVE == 5) { uStack_338 = 0; uStack_330 = 0; puVar2 = auStack_328; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + (ulong)bVar3 * -2 + 1; } func_0x00400ae0(&uStack_338,99,puStack_10); printWLine(&uStack_338); } return; }
['gcc']
43,128
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_13_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80934/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_13.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_13_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_13_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
43,129
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_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) { { wchar_t dest[100] = L""; /* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */ SNPRINTF(dest, 100-1, data); printWLine(dest); } } }
['/* 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/80935/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_14.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_14_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_14_bad(void) { long lVar1; undefined8 *puVar2; byte bVar3; undefined8 uStack_338; undefined8 uStack_330; undefined8 auStack_328 [48]; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [48]; long lStack_18; undefined8 *puStack_10; bVar3 = 0; 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_0x00400ad0(puStack_10); if (1 < 100U - lStack_18) { lVar1 = func_0x00400a90(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin); if (lVar1 == 0) { printLine(&UNK_00401354); *(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; } } } } if (globalFive == 5) { uStack_338 = 0; uStack_330 = 0; puVar2 = auStack_328; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + (ulong)bVar3 * -2 + 1; } func_0x00400ae0(&uStack_338,99,puStack_10); printWLine(&uStack_338); } return; }
['gcc']
43,130
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_14_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80935/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_14.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_14_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_14_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
43,131
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_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: { wchar_t dest[100] = L""; /* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */ SNPRINTF(dest, 100-1, data); printWLine(dest); } 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/80936/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_15.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_15_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_15_bad(void) { long lVar1; undefined8 *puVar2; byte bVar3; undefined8 uStack_338; undefined8 uStack_330; undefined8 auStack_328 [48]; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [48]; long lStack_18; undefined8 *puStack_10; bVar3 = 0; 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_0x00400ad0(puStack_10); if (1 < 100U - lStack_18) { lVar1 = func_0x00400a90(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin); if (lVar1 == 0) { printLine(&UNK_00401344); *(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; } } } uStack_338 = 0; uStack_330 = 0; puVar2 = auStack_328; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + (ulong)bVar3 * -2 + 1; } func_0x00400ae0(&uStack_338,99,puStack_10); printWLine(&uStack_338); return; }
['gcc']
43,132
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_15_good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80936/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_15.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_15_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_15_good(void) { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); return; }
['gcc']
43,133
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_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) { { wchar_t dest[100] = L""; /* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */ SNPRINTF(dest, 100-1, data); printWLine(dest); } 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/80937/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_16.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_16_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_16_bad(void) { long lVar1; undefined8 *puVar2; byte bVar3; undefined8 uStack_338; undefined8 uStack_330; undefined8 auStack_328 [48]; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [48]; long lStack_18; undefined8 *puStack_10; bVar3 = 0; 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_0x00400ad0(puStack_10); if (1 < 100U - lStack_18) { lVar1 = func_0x00400a90(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin); if (lVar1 == 0) { printLine(&UNK_00401344); *(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; } } } uStack_338 = 0; uStack_330 = 0; puVar2 = auStack_328; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + (ulong)bVar3 * -2 + 1; } func_0x00400ae0(&uStack_338,99,puStack_10); printWLine(&uStack_338); return; }
['gcc']
43,134
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_16_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80937/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_16.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_16_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_16_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
43,135
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_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++) { { wchar_t dest[100] = L""; /* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */ SNPRINTF(dest, 100-1, data); printWLine(dest); } } }
['/* 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/80938/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_17.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_17_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_17_bad(void) { long lVar1; undefined8 *puVar2; byte bVar3; undefined8 uStack_348; undefined8 uStack_340; undefined8 auStack_338 [48]; undefined8 uStack_1b8; undefined8 uStack_1b0; undefined8 auStack_1a8 [49]; long lStack_20; undefined8 *puStack_18; int iStack_10; int iStack_c; bVar3 = 0; 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_0x00400ad0(puStack_18); if (1 < 100U - lStack_20) { lVar1 = func_0x00400a90(lStack_20 * 4 + (long)puStack_18,100 - (int)lStack_20,stdin); if (lVar1 == 0) { printLine(&UNK_00401364); *(undefined4 *)((long)puStack_18 + lStack_20 * 4) = 0; } else { lStack_20 = func_0x00400ad0(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) { uStack_348 = 0; uStack_340 = 0; puVar2 = auStack_338; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + (ulong)bVar3 * -2 + 1; } func_0x00400ae0(&uStack_348,99,puStack_18); printWLine(&uStack_348); } return; }
['gcc']
43,136
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_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; { wchar_t dest[100] = L""; /* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */ SNPRINTF(dest, 100-1, data); printWLine(dest); } } }
['/* 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/80943/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_32.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_32_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_32_bad(void) { long lVar1; undefined8 *puVar2; byte bVar3; undefined8 uStack_358; undefined8 uStack_350; undefined8 auStack_348 [48]; 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; bVar3 = 0; 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_0x00400ad0(puStack_20); if (1 < 100U - lStack_28) { lVar1 = func_0x00400a90(lStack_28 * 4 + (long)puStack_20,100 - (int)lStack_28,stdin); if (lVar1 == 0) { printLine(&UNK_00401364); *(undefined4 *)((long)puStack_20 + lStack_28 * 4) = 0; } else { lStack_28 = func_0x00400ad0(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; uStack_358 = 0; uStack_350 = 0; puVar2 = auStack_348; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + (ulong)bVar3 * -2 + 1; } func_0x00400ae0(&uStack_358,99,puStack_30); printWLine(&uStack_358); return; }
['gcc']
43,137
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_32_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80943/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_32.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_32_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_32_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
43,138
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_42_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; data = badSource(data); { wchar_t dest[100] = L""; /* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */ SNPRINTF(dest, 100-1, data); printWLine(dest); } }
['/* 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/80947/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_42.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_42_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_42_bad(void) { long lVar1; undefined8 *puVar2; byte bVar3; undefined8 uStack_338; undefined8 uStack_330; undefined8 auStack_328 [48]; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [49]; undefined8 *puStack_10; bVar3 = 0; 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); uStack_338 = 0; uStack_330 = 0; puVar2 = auStack_328; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + (ulong)bVar3 * -2 + 1; } func_0x00400ae0(&uStack_338,99,puStack_10); printWLine(&uStack_338); return; }
['gcc']
43,139
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_42_good() { goodB2G(); goodG2B(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80947/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_42.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_42_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_42_good(void) { goodB2G(); goodG2B(); return; }
['gcc']
43,140
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_61_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; data = CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_61b_badSource(data); { wchar_t dest[100] = L""; /* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */ SNPRINTF(dest, 100-1, data); printWLine(dest); } }
['/* 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/80955/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_61a.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_61_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_61_bad(void) { long lVar1; undefined8 *puVar2; byte bVar3; undefined8 uStack_338; undefined8 uStack_330; undefined8 auStack_328 [48]; undefined8 uStack_1a8; undefined8 uStack_1a0; undefined8 auStack_198 [49]; undefined8 *puStack_10; bVar3 = 0; 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_snprintf_61b_badSource(puStack_10) ; uStack_338 = 0; uStack_330 = 0; puVar2 = auStack_328; for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) { *puVar2 = 0; puVar2 = puVar2 + (ulong)bVar3 * -2 + 1; } func_0x00400ae0(&uStack_338,99,puStack_10); printWLine(&uStack_338); return; }
['gcc']
43,141
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_61_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80955/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_61a.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_61_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_61_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
43,142
wchar_t * CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_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/80955/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_61b.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_61b_badSource
long CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_61b_badSource(long param_1) { long lVar1; long lVar2; lVar1 = func_0x00400ad0(param_1); if (1 < 100U - lVar1) { lVar2 = func_0x00400a90(lVar1 * 4 + param_1,100 - (int)lVar1,stdin); if (lVar2 == 0) { printLine(&UNK_00401364); *(undefined4 *)(param_1 + lVar1 * 4) = 0; } else { lVar1 = func_0x00400ad0(param_1); if ((lVar1 != 0) && (*(int *)(param_1 + lVar1 * 4 + -4) == 10)) { *(undefined4 *)(param_1 + lVar1 * 4 + -4) = 0; } } } return param_1; }
['gcc']
43,143
wchar_t * CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_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/80955/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_61b.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_61b_goodG2BSource
undefined8 CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_61b_goodG2BSource(undefined8 param_1) { func_0x00400ba0(param_1,&UNK_004014e8); return param_1; }
['gcc']
43,144
wchar_t * CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_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/80955/CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_61b.c
CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_61b_goodB2GSource
long CWE134_Uncontrolled_Format_String__wchar_t_console_snprintf_61b_goodB2GSource(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_00401528); *(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,145
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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) { badVaSinkB(data, 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/80971/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_02.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_02_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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_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_00401424); *(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; } } } badVaSinkB(puStack_10,puStack_10); return; }
['gcc']
43,146
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_02_good() { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80971/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_02.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_02_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_02_good(void) { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); return; }
['gcc']
43,147
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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) { badVaSinkB(data, 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/80972/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_03.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_03_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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_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_00401424); *(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; } } } badVaSinkB(puStack_10,puStack_10); return; }
['gcc']
43,148
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_03_good() { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80972/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_03.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_03_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_03_good(void) { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); return; }
['gcc']
43,149
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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) { badVaSinkB(data, 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/80973/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_04.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_04_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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_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_0040143c); *(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; } } } badVaSinkB(puStack_10,puStack_10); return; }
['gcc']
43,150
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_04_good() { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80973/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_04.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_04_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_04_good(void) { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); return; }
['gcc']
43,151
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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) { badVaSinkB(data, 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/80974/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_05.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_05_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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_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_00401434); *(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 (staticTrue != 0) { badVaSinkB(puStack_10,puStack_10); } return; }
['gcc']
43,152
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_05_good() { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80974/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_05.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_05_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_05_good(void) { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); return; }
['gcc']
43,153
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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) { badVaSinkB(data, 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/80975/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_06.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_06_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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_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_00401438); *(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; } } } badVaSinkB(puStack_10,puStack_10); return; }
['gcc']
43,154
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_06_good() { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80975/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_06.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_06_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_06_good(void) { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); return; }
['gcc']
43,155
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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) { badVaSinkB(data, 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/80976/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_07.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_07_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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_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_00401444); *(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 (staticFive == 5) { badVaSinkB(puStack_10,puStack_10); } return; }
['gcc']
43,156
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_07_good() { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80976/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_07.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_07_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_07_good(void) { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); return; }
['gcc']
43,157
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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()) { badVaSinkB(data, 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/80977/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_08.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_08_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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_00401454); *(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) { badVaSinkB(puStack_10,puStack_10); } return; }
['gcc']
43,158
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_08_good() { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80977/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_08.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_08_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_08_good(void) { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); return; }
['gcc']
43,159
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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) { badVaSinkB(data, 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/80978/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_09.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_09_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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_00401434); *(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) { badVaSinkB(puStack_10,puStack_10); } return; }
['gcc']
43,160
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_09_good() { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80978/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_09.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_09_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_09_good(void) { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); return; }
['gcc']
43,161
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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) { badVaSinkB(data, 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/80979/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_10.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_10_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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_00401434); *(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) { badVaSinkB(puStack_10,puStack_10); } return; }
['gcc']
43,162
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_10_good() { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80979/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_10.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_10_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_10_good(void) { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); return; }
['gcc']
43,163
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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()) { badVaSinkB(data, 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/80980/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_11.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_11_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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_00401444); *(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) { badVaSinkB(puStack_10,puStack_10); } return; }
['gcc']
43,164
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_11_good() { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80980/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_11.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_11_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_11_good(void) { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); return; }
['gcc']
43,165
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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()) { badVaSinkB(data, data); } else { badVaSinkG(data, 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 */']
['CWE134']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80981/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_12.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_12_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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_00401578); } 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_00401564); *(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) { badVaSinkG(puStack_10,puStack_10); } else { badVaSinkB(puStack_10,puStack_10); } return; }
['gcc']
43,166
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_12_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80981/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_12.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_12_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_12_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
43,167
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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) { badVaSinkB(data, 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/80982/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_13.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_13_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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_00401444); *(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) { badVaSinkB(puStack_10,puStack_10); } return; }
['gcc']
43,168
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_13_good() { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80982/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_13.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_13_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_13_good(void) { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); return; }
['gcc']
43,169
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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) { badVaSinkB(data, 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/80983/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_14.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_14_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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_00401444); *(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) { badVaSinkB(puStack_10,puStack_10); } return; }
['gcc']
43,170
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_14_good() { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80983/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_14.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_14_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_14_good(void) { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); return; }
['gcc']
43,171
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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: badVaSinkB(data, 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 */', '/* 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/80984/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_15.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_15_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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_00401424); *(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; } } } badVaSinkB(puStack_10,puStack_10); return; }
['gcc']
43,172
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_15_good() { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80984/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_15.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_15_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_15_good(void) { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); return; }
['gcc']
43,173
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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) { badVaSinkB(data, 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 */']
['CWE134']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80985/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_16.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_16_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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_00401424); *(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; } } } badVaSinkB(puStack_10,puStack_10); return; }
['gcc']
43,174
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_16_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80985/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_16.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_16_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_16_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
43,175
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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++) { badVaSinkB(data, 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/80986/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_17.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_17_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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_00401454); *(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) { badVaSinkB(puStack_18,puStack_18); } return; }
['gcc']
43,176
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_17_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80986/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_17.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_17_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_17_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
43,177
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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; badVaSink(data, 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/80991/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_32.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_32_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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_00401454); *(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; badVaSink(puStack_30,puStack_30); return; }
['gcc']
43,178
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_32_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80991/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_32.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_32_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_32_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
43,179
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_42_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; data = badSource(data); badVaSink(data, data); }
[]
['CWE134']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80995/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_42.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_42_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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); badVaSink(puStack_10,puStack_10); return; }
['gcc']
43,180
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_42_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/80995/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_42.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_42_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_42_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
43,181
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_61_bad() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; data = CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_61b_badSource(data); badVaSink(data, data); }
[]
['CWE134']
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81003/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_61a.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_61_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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_vfprintf_61b_badSource(puStack_10) ; badVaSink(puStack_10,puStack_10); return; }
['gcc']
43,182
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_61_good() { goodG2B(); goodB2G(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81003/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_61a.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_61_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_61_good(void) { goodG2B(); goodB2G(); return; }
['gcc']
43,183
wchar_t * CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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/81003/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_61b.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_61b_badSource
long CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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_00401444); *(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,184
wchar_t * CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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/81003/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_61b.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_61b_goodG2BSource
undefined8 CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_61b_goodG2BSource(undefined8 param_1) { func_0x00400bc0(param_1,&UNK_004015d8); return param_1; }
['gcc']
43,185
wchar_t * CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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/81003/CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_61b.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_61b_goodB2GSource
long CWE134_Uncontrolled_Format_String__wchar_t_console_vfprintf_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_00401618); *(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,186
void CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_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) { badVaSinkB(data, 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/81019/CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_02.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_02_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_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_0x00400ad0(puStack_10); if (1 < 100U - lStack_18) { lVar1 = func_0x00400a90(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_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; } } } badVaSinkB(puStack_10,puStack_10); return; }
['gcc']
43,187
void CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_02_good() { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81019/CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_02.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_02_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_02_good(void) { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); return; }
['gcc']
43,188
void CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_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) { badVaSinkB(data, 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/81020/CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_03.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_03_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_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_0x00400ad0(puStack_10); if (1 < 100U - lStack_18) { lVar1 = func_0x00400a90(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_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; } } } badVaSinkB(puStack_10,puStack_10); return; }
['gcc']
43,189
void CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_03_good() { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81020/CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_03.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_03_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_03_good(void) { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); return; }
['gcc']
43,190
void CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_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) { badVaSinkB(data, 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/81021/CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_04.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_04_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_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_0x00400ad0(puStack_10); if (1 < 100U - lStack_18) { lVar1 = func_0x00400a90(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin); if (lVar1 == 0) { printLine(&UNK_004013bc); *(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; } } } badVaSinkB(puStack_10,puStack_10); return; }
['gcc']
43,191
void CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_04_good() { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81021/CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_04.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_04_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_04_good(void) { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); return; }
['gcc']
43,192
void CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_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) { badVaSinkB(data, 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/81022/CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_05.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_05_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_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_0x00400ad0(puStack_10); if (1 < 100U - lStack_18) { lVar1 = func_0x00400a90(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin); if (lVar1 == 0) { printLine(&UNK_004013b4); *(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; } } } } if (staticTrue != 0) { badVaSinkB(puStack_10,puStack_10); } return; }
['gcc']
43,193
void CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_05_good() { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81022/CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_05.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_05_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_05_good(void) { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); return; }
['gcc']
43,194
void CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_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) { badVaSinkB(data, 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/81023/CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_06.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_06_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_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_0x00400ad0(puStack_10); if (1 < 100U - lStack_18) { lVar1 = func_0x00400a90(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin); if (lVar1 == 0) { printLine(&UNK_004013b8); *(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; } } } badVaSinkB(puStack_10,puStack_10); return; }
['gcc']
43,195
void CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_06_good() { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81023/CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_06.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_06_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_06_good(void) { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); return; }
['gcc']
43,196
void CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_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) { badVaSinkB(data, 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/81024/CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_07.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_07_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_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_0x00400ad0(puStack_10); if (1 < 100U - lStack_18) { lVar1 = func_0x00400a90(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,stdin); if (lVar1 == 0) { printLine(&UNK_004013b4); *(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; } } } } if (staticFive == 5) { badVaSinkB(puStack_10,puStack_10); } return; }
['gcc']
43,197
void CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_07_good() { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81024/CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_07.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_07_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_07_good(void) { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); return; }
['gcc']
43,198
void CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_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()) { badVaSinkB(data, 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/81025/CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_08.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_08_bad
void CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_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_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_004013d4); *(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 = staticReturnsTrue(); if (iVar1 != 0) { badVaSinkB(puStack_10,puStack_10); } return; }
['gcc']
43,199
void CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_08_good() { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); }
[]
null
mvd
/work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81025/CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_08.c
CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_08_good
void CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_08_good(void) { goodG2B1(); goodG2B2(); goodB2G1(); goodB2G2(); return; }
['gcc']