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 |
|---|---|---|---|---|---|---|---|---|
44,000 | void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_64_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
CWE134_Uncontrolled_Format_String__wchar_t_file_printf_64b_badSink(&data);
} | ['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgetws fails */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81486/CWE134_Uncontrolled_Format_String__wchar_t_file_printf_64a.c | CWE134_Uncontrolled_Format_String__wchar_t_file_printf_64_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_64_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1b8;
undefined8 uStack_1b0;
undefined8 auStack_1a8 [49];
undefined8 *puStack_20;
long lStack_18;
long lStack_10;
uStack_1b8 = 0;
uStack_1b0 = 0;
puVar2 = auStack_1a8;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_20 = &uStack_1b8;
lStack_10 = func_0x00400ae0(puStack_20);
if (1 < 100U - lStack_10) {
lStack_18 = func_0x00400b60(&UNK_00401306,&UNK_00401304);
if (lStack_18 != 0) {
lVar1 = func_0x00400a90((long)puStack_20 + lStack_10 * 4,100 - (int)lStack_10,lStack_18);
if (lVar1 == 0) {
printLine(&UNK_00401314);
*(undefined4 *)((long)puStack_20 + lStack_10 * 4) = 0;
}
func_0x00400ac0(lStack_18);
}
}
CWE134_Uncontrolled_Format_String__wchar_t_file_printf_64b_badSink(&puStack_20);
return;
}
| ['gcc'] |
44,001 | void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_64_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81486/CWE134_Uncontrolled_Format_String__wchar_t_file_printf_64a.c | CWE134_Uncontrolled_Format_String__wchar_t_file_printf_64_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_64_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
44,002 | void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_64b_badSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
wchar_t * * dataPtr = (wchar_t * *)dataVoidPtr;
/* dereference dataPtr into data */
wchar_t * data = (*dataPtr);
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
wprintf(data);
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81486/CWE134_Uncontrolled_Format_String__wchar_t_file_printf_64b.c | CWE134_Uncontrolled_Format_String__wchar_t_file_printf_64b_badSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_64b_badSink(undefined8 *param_1)
{
func_0x00400b40(*param_1);
return;
}
| ['gcc'] |
44,003 | void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_64b_goodG2BSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
wchar_t * * dataPtr = (wchar_t * *)dataVoidPtr;
/* dereference dataPtr into data */
wchar_t * data = (*dataPtr);
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
wprintf(data);
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81486/CWE134_Uncontrolled_Format_String__wchar_t_file_printf_64b.c | CWE134_Uncontrolled_Format_String__wchar_t_file_printf_64b_goodG2BSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_64b_goodG2BSink(undefined8 *param_1)
{
func_0x00400bd0(*param_1);
return;
}
| ['gcc'] |
44,004 | void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_64b_goodB2GSink(void * dataVoidPtr)
{
/* cast void pointer to a pointer of the appropriate type */
wchar_t * * dataPtr = (wchar_t * *)dataVoidPtr;
/* dereference dataPtr into data */
wchar_t * data = (*dataPtr);
/* FIX: Specify the format disallowing a format string vulnerability */
wprintf(L"%s\n", data);
} | ['/* cast void pointer to a pointer of the appropriate type */', '/* dereference dataPtr into data */', '/* FIX: Specify the format disallowing a format string vulnerability */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81486/CWE134_Uncontrolled_Format_String__wchar_t_file_printf_64b.c | CWE134_Uncontrolled_Format_String__wchar_t_file_printf_64b_goodB2GSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_64b_goodB2GSink(undefined8 *param_1)
{
func_0x00400bd0(&UNK_00401444,*param_1);
return;
}
| ['gcc'] |
44,005 | void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_65_bad()
{
wchar_t * data;
/* define a function pointer */
void (*funcPtr) (wchar_t *) = CWE134_Uncontrolled_Format_String__wchar_t_file_printf_65b_badSink;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
/* use the function pointer */
funcPtr(data);
} | ['/* define a function pointer */', '/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgetws fails */', '/* use the function pointer */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81487/CWE134_Uncontrolled_Format_String__wchar_t_file_printf_65a.c | CWE134_Uncontrolled_Format_String__wchar_t_file_printf_65_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_65_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1b8;
undefined8 uStack_1b0;
undefined8 auStack_1a8 [48];
long lStack_28;
long lStack_20;
undefined8 *puStack_18;
code *pcStack_10;
pcStack_10 = CWE134_Uncontrolled_Format_String__wchar_t_file_printf_65b_badSink;
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;
lStack_20 = func_0x00400ae0(puStack_18);
if (1 < 100U - lStack_20) {
lStack_28 = func_0x00400b60(&UNK_00401306,&UNK_00401304);
if (lStack_28 != 0) {
lVar1 = func_0x00400a90(lStack_20 * 4 + (long)puStack_18,100 - (int)lStack_20,lStack_28);
if (lVar1 == 0) {
printLine(&UNK_00401314);
*(undefined4 *)((long)puStack_18 + lStack_20 * 4) = 0;
}
func_0x00400ac0(lStack_28);
}
}
(*pcStack_10)(puStack_18);
return;
}
| ['gcc'] |
44,006 | void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_65_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81487/CWE134_Uncontrolled_Format_String__wchar_t_file_printf_65a.c | CWE134_Uncontrolled_Format_String__wchar_t_file_printf_65_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_65_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
44,007 | void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_65b_badSink(wchar_t * 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/81487/CWE134_Uncontrolled_Format_String__wchar_t_file_printf_65b.c | CWE134_Uncontrolled_Format_String__wchar_t_file_printf_65b_badSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_65b_badSink(undefined8 param_1)
{
func_0x00400b40(param_1);
return;
}
| ['gcc'] |
44,008 | void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_65b_goodG2BSink(wchar_t * 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 */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81487/CWE134_Uncontrolled_Format_String__wchar_t_file_printf_65b.c | CWE134_Uncontrolled_Format_String__wchar_t_file_printf_65b_goodG2BSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_65b_goodG2BSink(undefined8 param_1)
{
func_0x00400bd0(param_1);
return;
}
| ['gcc'] |
44,009 | void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_65b_goodB2GSink(wchar_t * data)
{
/* FIX: Specify the format disallowing a format string vulnerability */
wprintf(L"%s\n", data);
} | ['/* FIX: Specify the format disallowing a format string vulnerability */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81487/CWE134_Uncontrolled_Format_String__wchar_t_file_printf_65b.c | CWE134_Uncontrolled_Format_String__wchar_t_file_printf_65b_goodB2GSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_65b_goodB2GSink(undefined8 param_1)
{
func_0x00400bd0(&UNK_00401434,param_1);
return;
}
| ['gcc'] |
44,010 | void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_66_bad()
{
wchar_t * data;
wchar_t * dataArray[5];
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
/* put data in array */
dataArray[2] = data;
CWE134_Uncontrolled_Format_String__wchar_t_file_printf_66b_badSink(dataArray);
} | ['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgetws fails */', '/* put data in array */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81488/CWE134_Uncontrolled_Format_String__wchar_t_file_printf_66a.c | CWE134_Uncontrolled_Format_String__wchar_t_file_printf_66_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_66_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1d8;
undefined8 uStack_1d0;
undefined8 auStack_1c8 [48];
undefined auStack_48 [16];
undefined8 *puStack_38;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_1d8 = 0;
uStack_1d0 = 0;
puVar2 = auStack_1c8;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1d8;
lStack_18 = func_0x00400ae0(puStack_10);
if (1 < 100U - lStack_18) {
lStack_20 = func_0x00400b60(&UNK_00401306,&UNK_00401304);
if (lStack_20 != 0) {
lVar1 = func_0x00400a90(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20);
if (lVar1 == 0) {
printLine(&UNK_00401314);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
func_0x00400ac0(lStack_20);
}
}
puStack_38 = puStack_10;
CWE134_Uncontrolled_Format_String__wchar_t_file_printf_66b_badSink(auStack_48);
return;
}
| ['gcc'] |
44,011 | void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_66_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81488/CWE134_Uncontrolled_Format_String__wchar_t_file_printf_66a.c | CWE134_Uncontrolled_Format_String__wchar_t_file_printf_66_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_66_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
44,012 | void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_66b_badSink(wchar_t * dataArray[])
{
/* copy data out of dataArray */
wchar_t * data = dataArray[2];
/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */
wprintf(data);
} | ['/* copy data out of dataArray */', '/* POTENTIAL FLAW: Do not specify the format allowing a possible format string vulnerability */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81488/CWE134_Uncontrolled_Format_String__wchar_t_file_printf_66b.c | CWE134_Uncontrolled_Format_String__wchar_t_file_printf_66b_badSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_66b_badSink(long param_1)
{
func_0x00400b40(*(undefined8 *)(param_1 + 0x10));
return;
}
| ['gcc'] |
44,013 | void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_66b_goodG2BSink(wchar_t * dataArray[])
{
wchar_t * data = dataArray[2];
/* 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 */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81488/CWE134_Uncontrolled_Format_String__wchar_t_file_printf_66b.c | CWE134_Uncontrolled_Format_String__wchar_t_file_printf_66b_goodG2BSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_66b_goodG2BSink(long param_1)
{
func_0x00400bd0(*(undefined8 *)(param_1 + 0x10));
return;
}
| ['gcc'] |
44,014 | void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_66b_goodB2GSink(wchar_t * dataArray[])
{
wchar_t * data = dataArray[2];
/* FIX: Specify the format disallowing a format string vulnerability */
wprintf(L"%s\n", data);
} | ['/* FIX: Specify the format disallowing a format string vulnerability */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81488/CWE134_Uncontrolled_Format_String__wchar_t_file_printf_66b.c | CWE134_Uncontrolled_Format_String__wchar_t_file_printf_66b_goodB2GSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_66b_goodB2GSink(long param_1)
{
func_0x00400bd0(&UNK_00401454,*(undefined8 *)(param_1 + 0x10));
return;
}
| ['gcc'] |
44,015 | void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_67_bad()
{
wchar_t * data;
CWE134_Uncontrolled_Format_String__wchar_t_file_printf_67_structType myStruct;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
myStruct.structFirst = data;
CWE134_Uncontrolled_Format_String__wchar_t_file_printf_67b_badSink(myStruct);
} | ['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgetws fails */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81489/CWE134_Uncontrolled_Format_String__wchar_t_file_printf_67a.c | CWE134_Uncontrolled_Format_String__wchar_t_file_printf_67_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_67_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1b8;
undefined8 uStack_1b0;
undefined8 auStack_1a8 [48];
undefined8 *puStack_28;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_1b8 = 0;
uStack_1b0 = 0;
puVar2 = auStack_1a8;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1b8;
lStack_18 = func_0x00400ae0(puStack_10);
if (1 < 100U - lStack_18) {
lStack_20 = func_0x00400b60(&UNK_00401306,&UNK_00401304);
if (lStack_20 != 0) {
lVar1 = func_0x00400a90(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20);
if (lVar1 == 0) {
printLine(&UNK_00401314);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
func_0x00400ac0(lStack_20);
}
}
puStack_28 = puStack_10;
CWE134_Uncontrolled_Format_String__wchar_t_file_printf_67b_badSink(puStack_10);
return;
}
| ['gcc'] |
44,016 | void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_67_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81489/CWE134_Uncontrolled_Format_String__wchar_t_file_printf_67a.c | CWE134_Uncontrolled_Format_String__wchar_t_file_printf_67_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_67_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
44,017 | void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_67b_badSink(CWE134_Uncontrolled_Format_String__wchar_t_file_printf_67_structType myStruct)
{
wchar_t * data = myStruct.structFirst;
/* 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/81489/CWE134_Uncontrolled_Format_String__wchar_t_file_printf_67b.c | CWE134_Uncontrolled_Format_String__wchar_t_file_printf_67b_badSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_67b_badSink(undefined8 param_1)
{
func_0x00400b40(param_1);
return;
}
| ['gcc'] |
44,018 | void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_67b_goodG2BSink(CWE134_Uncontrolled_Format_String__wchar_t_file_printf_67_structType myStruct)
{
wchar_t * data = myStruct.structFirst;
/* 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 */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81489/CWE134_Uncontrolled_Format_String__wchar_t_file_printf_67b.c | CWE134_Uncontrolled_Format_String__wchar_t_file_printf_67b_goodG2BSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_67b_goodG2BSink(undefined8 param_1)
{
func_0x00400bd0(param_1);
return;
}
| ['gcc'] |
44,019 | void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_67b_goodB2GSink(CWE134_Uncontrolled_Format_String__wchar_t_file_printf_67_structType myStruct)
{
wchar_t * data = myStruct.structFirst;
/* FIX: Specify the format disallowing a format string vulnerability */
wprintf(L"%s\n", data);
} | ['/* FIX: Specify the format disallowing a format string vulnerability */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81489/CWE134_Uncontrolled_Format_String__wchar_t_file_printf_67b.c | CWE134_Uncontrolled_Format_String__wchar_t_file_printf_67b_goodB2GSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_67b_goodB2GSink(undefined8 param_1)
{
func_0x00400bd0(&UNK_00401444,param_1);
return;
}
| ['gcc'] |
44,020 | void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68_badData = data;
CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68b_badSink();
} | ['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgetws fails */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81490/CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68a.c | CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1b8;
undefined8 uStack_1b0;
undefined8 auStack_1a8 [49];
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_1b8 = 0;
uStack_1b0 = 0;
puVar2 = auStack_1a8;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1b8;
lStack_18 = func_0x00400ae0(puStack_10);
if (1 < 100U - lStack_18) {
lStack_20 = func_0x00400b60(&UNK_00401306,&UNK_00401304);
if (lStack_20 != 0) {
lVar1 = func_0x00400a90(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20);
if (lVar1 == 0) {
printLine(&UNK_00401314);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
func_0x00400ac0(lStack_20);
}
}
CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68_badData = puStack_10;
CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68b_badSink();
return;
}
| ['gcc'] |
44,021 | void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81490/CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68a.c | CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
44,022 | void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68b_badSink()
{
wchar_t * data = CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68_badData;
/* 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/81490/CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68b.c | CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68b_badSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68b_badSink(void)
{
func_0x00400b40(CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68_badData);
return;
}
| ['gcc'] |
44,023 | void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68b_goodG2BSink()
{
wchar_t * data = CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68_goodG2BData;
/* 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 */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81490/CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68b.c | CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68b_goodG2BSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68b_goodG2BSink(void)
{
func_0x00400bd0(CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68_goodG2BData);
return;
}
| ['gcc'] |
44,024 | void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68b_goodB2GSink()
{
wchar_t * data = CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68_goodB2GData;
/* FIX: Specify the format disallowing a format string vulnerability */
wprintf(L"%s\n", data);
} | ['/* FIX: Specify the format disallowing a format string vulnerability */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81490/CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68b.c | CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68b_goodB2GSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68b_goodB2GSink(void)
{
func_0x00400bd0(&UNK_00401444,
CWE134_Uncontrolled_Format_String__wchar_t_file_printf_68_goodB2GData);
return;
}
| ['gcc'] |
44,025 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_01_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
{
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 a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* 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/81498/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_01.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_01_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_01_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;
long lStack_18;
undefined8 *puStack_10;
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_10 = &uStack_1b8;
lStack_18 = func_0x00400b60(puStack_10);
if (1 < 100U - lStack_18) {
lStack_20 = func_0x00400bf0(&UNK_004013b6,&UNK_004013b4);
if (lStack_20 != 0) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20);
if (lVar1 == 0) {
printLine(&UNK_004013c4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
func_0x00400b40(lStack_20);
}
}
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_0x00400b70(&uStack_348,99,puStack_10);
printWLine(&uStack_348);
return;
}
| ['gcc'] |
44,026 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_01_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81498/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_01.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_01_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_01_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
44,027 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_02_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(1)
{
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
}
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 a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* 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/81499/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_02.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_02_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_02_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;
long lStack_18;
undefined8 *puStack_10;
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_10 = &uStack_1b8;
lStack_18 = func_0x00400b60(puStack_10);
if (1 < 100U - lStack_18) {
lStack_20 = func_0x00400bf0(&UNK_004013b6,&UNK_004013b4);
if (lStack_20 != 0) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20);
if (lVar1 == 0) {
printLine(&UNK_004013c4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
func_0x00400b40(lStack_20);
}
}
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_0x00400b70(&uStack_348,99,puStack_10);
printWLine(&uStack_348);
return;
}
| ['gcc'] |
44,028 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_02_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81499/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_02.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_02_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_02_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
44,029 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_03_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(5==5)
{
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
}
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 a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* 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/81500/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_03.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_03_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_03_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;
long lStack_18;
undefined8 *puStack_10;
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_10 = &uStack_1b8;
lStack_18 = func_0x00400b60(puStack_10);
if (1 < 100U - lStack_18) {
lStack_20 = func_0x00400bf0(&UNK_004013b6,&UNK_004013b4);
if (lStack_20 != 0) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20);
if (lVar1 == 0) {
printLine(&UNK_004013c4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
func_0x00400b40(lStack_20);
}
}
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_0x00400b70(&uStack_348,99,puStack_10);
printWLine(&uStack_348);
return;
}
| ['gcc'] |
44,030 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_03_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81500/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_03.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_03_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_03_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
44,031 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_04_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(STATIC_CONST_TRUE)
{
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
}
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 a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* 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/81501/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_04.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_04_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_04_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;
long lStack_18;
undefined8 *puStack_10;
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_10 = &uStack_1b8;
lStack_18 = func_0x00400b60(puStack_10);
if ((1 < 100U - lStack_18) &&
(lStack_20 = func_0x00400bf0(&UNK_004013ce,&UNK_004013cc), lStack_20 != 0)) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20);
if (lVar1 == 0) {
printLine(&UNK_004013dc);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
func_0x00400b40(lStack_20);
}
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_0x00400b70(&uStack_348,99,puStack_10);
printWLine(&uStack_348);
return;
}
| ['gcc'] |
44,032 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_04_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81501/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_04.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_04_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_04_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
44,033 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_05_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(staticTrue)
{
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
}
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 a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* 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/81502/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_05.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_05_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_05_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;
long lStack_18;
undefined8 *puStack_10;
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_10 = &uStack_1b8;
if (staticTrue != 0) {
lStack_18 = func_0x00400b60(puStack_10);
if (1 < 100U - lStack_18) {
lStack_20 = func_0x00400bf0(&UNK_004013c6,&UNK_004013c4);
if (lStack_20 != 0) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20);
if (lVar1 == 0) {
printLine(&UNK_004013d4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
func_0x00400b40(lStack_20);
}
}
}
if (staticTrue != 0) {
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_0x00400b70(&uStack_348,99,puStack_10);
printWLine(&uStack_348);
}
return;
}
| ['gcc'] |
44,034 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_05_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81502/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_05.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_05_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_05_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
44,035 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_06_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(STATIC_CONST_FIVE==5)
{
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
}
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 a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* 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/81503/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_06.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_06_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_06_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;
long lStack_18;
undefined8 *puStack_10;
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_10 = &uStack_1b8;
lStack_18 = func_0x00400b60(puStack_10);
if ((1 < 100U - lStack_18) &&
(lStack_20 = func_0x00400bf0(&UNK_004013ca,&UNK_004013c8), lStack_20 != 0)) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20);
if (lVar1 == 0) {
printLine(&UNK_004013d8);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
func_0x00400b40(lStack_20);
}
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_0x00400b70(&uStack_348,99,puStack_10);
printWLine(&uStack_348);
return;
}
| ['gcc'] |
44,036 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_06_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81503/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_06.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_06_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_06_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
44,037 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_07_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(staticFive==5)
{
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
}
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 a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* 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/81504/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_07.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_07_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_07_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;
long lStack_18;
undefined8 *puStack_10;
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_10 = &uStack_1b8;
if (staticFive == 5) {
lStack_18 = func_0x00400b60(puStack_10);
if (1 < 100U - lStack_18) {
lStack_20 = func_0x00400bf0(&UNK_004013d6,&UNK_004013d4);
if (lStack_20 != 0) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20);
if (lVar1 == 0) {
printLine(&UNK_004013e4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
func_0x00400b40(lStack_20);
}
}
}
if (staticFive == 5) {
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_0x00400b70(&uStack_348,99,puStack_10);
printWLine(&uStack_348);
}
return;
}
| ['gcc'] |
44,038 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_07_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81504/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_07.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_07_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_07_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
44,039 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_08_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(staticReturnsTrue())
{
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
}
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 a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* 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/81505/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_08.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_08_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_08_bad(void)
{
int iVar1;
long lVar2;
undefined8 *puVar3;
byte bVar4;
undefined8 uStack_348;
undefined8 uStack_340;
undefined8 auStack_338 [48];
undefined8 uStack_1b8;
undefined8 uStack_1b0;
undefined8 auStack_1a8 [49];
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
bVar4 = 0;
uStack_1b8 = 0;
uStack_1b0 = 0;
puVar3 = auStack_1a8;
for (lVar2 = 0x30; lVar2 != 0; lVar2 = lVar2 + -1) {
*puVar3 = 0;
puVar3 = puVar3 + 1;
}
puStack_10 = &uStack_1b8;
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
lStack_18 = func_0x00400b60(puStack_10);
if (1 < 100U - lStack_18) {
lStack_20 = func_0x00400bf0(&UNK_004013e6,&UNK_004013e4);
if (lStack_20 != 0) {
lVar2 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20);
if (lVar2 == 0) {
printLine(&UNK_004013f4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
func_0x00400b40(lStack_20);
}
}
}
iVar1 = staticReturnsTrue();
if (iVar1 != 0) {
uStack_348 = 0;
uStack_340 = 0;
puVar3 = auStack_338;
for (lVar2 = 0x30; lVar2 != 0; lVar2 = lVar2 + -1) {
*puVar3 = 0;
puVar3 = puVar3 + (ulong)bVar4 * -2 + 1;
}
func_0x00400b70(&uStack_348,99,puStack_10);
printWLine(&uStack_348);
}
return;
}
| ['gcc'] |
44,040 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_08_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81505/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_08.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_08_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_08_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
44,041 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_09_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(GLOBAL_CONST_TRUE)
{
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
}
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 a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* 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/81506/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_09.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_09_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_09_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;
long lStack_18;
undefined8 *puStack_10;
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_10 = &uStack_1b8;
if (GLOBAL_CONST_TRUE != 0) {
lStack_18 = func_0x00400b60(puStack_10);
if (1 < 100U - lStack_18) {
lStack_20 = func_0x00400bf0(&UNK_004013c6,&UNK_004013c4);
if (lStack_20 != 0) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20);
if (lVar1 == 0) {
printLine(&UNK_004013d4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
func_0x00400b40(lStack_20);
}
}
}
if (GLOBAL_CONST_TRUE != 0) {
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_0x00400b70(&uStack_348,99,puStack_10);
printWLine(&uStack_348);
}
return;
}
| ['gcc'] |
44,042 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_09_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81506/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_09.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_09_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_09_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
44,043 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_10_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(globalTrue)
{
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
}
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 a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* 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/81507/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_10.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_10_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_10_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;
long lStack_18;
undefined8 *puStack_10;
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_10 = &uStack_1b8;
if (globalTrue != 0) {
lStack_18 = func_0x00400b60(puStack_10);
if (1 < 100U - lStack_18) {
lStack_20 = func_0x00400bf0(&UNK_004013c6,&UNK_004013c4);
if (lStack_20 != 0) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20);
if (lVar1 == 0) {
printLine(&UNK_004013d4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
func_0x00400b40(lStack_20);
}
}
}
if (globalTrue != 0) {
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_0x00400b70(&uStack_348,99,puStack_10);
printWLine(&uStack_348);
}
return;
}
| ['gcc'] |
44,044 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_10_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81507/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_10.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_10_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_10_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
44,045 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_11_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(globalReturnsTrue())
{
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
}
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 a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* 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/81508/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_11.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_11_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_11_bad(void)
{
int iVar1;
long lVar2;
undefined8 *puVar3;
byte bVar4;
undefined8 uStack_348;
undefined8 uStack_340;
undefined8 auStack_338 [48];
undefined8 uStack_1b8;
undefined8 uStack_1b0;
undefined8 auStack_1a8 [49];
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
bVar4 = 0;
uStack_1b8 = 0;
uStack_1b0 = 0;
puVar3 = auStack_1a8;
for (lVar2 = 0x30; lVar2 != 0; lVar2 = lVar2 + -1) {
*puVar3 = 0;
puVar3 = puVar3 + 1;
}
puStack_10 = &uStack_1b8;
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
lStack_18 = func_0x00400b60(puStack_10);
if (1 < 100U - lStack_18) {
lStack_20 = func_0x00400bf0(&UNK_004013d6,&UNK_004013d4);
if (lStack_20 != 0) {
lVar2 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20);
if (lVar2 == 0) {
printLine(&UNK_004013e4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
func_0x00400b40(lStack_20);
}
}
}
iVar1 = globalReturnsTrue();
if (iVar1 != 0) {
uStack_348 = 0;
uStack_340 = 0;
puVar3 = auStack_338;
for (lVar2 = 0x30; lVar2 != 0; lVar2 = lVar2 + -1) {
*puVar3 = 0;
puVar3 = puVar3 + (ulong)bVar4 * -2 + 1;
}
func_0x00400b70(&uStack_348,99,puStack_10);
printWLine(&uStack_348);
}
return;
}
| ['gcc'] |
44,046 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_11_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81508/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_11.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_11_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_11_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
44,047 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_12_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(globalReturnsTrueOrFalse())
{
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
}
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 a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* 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/81509/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_12.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_12_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_12_bad(void)
{
int iVar1;
long lVar2;
undefined8 *puVar3;
byte bVar4;
undefined8 uStack_348;
undefined8 uStack_340;
undefined8 auStack_338 [48];
undefined8 uStack_1b8;
undefined8 uStack_1b0;
undefined8 auStack_1a8 [49];
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
bVar4 = 0;
uStack_1b8 = 0;
uStack_1b0 = 0;
puVar3 = auStack_1a8;
for (lVar2 = 0x30; lVar2 != 0; lVar2 = lVar2 + -1) {
*puVar3 = 0;
puVar3 = puVar3 + 1;
}
puStack_10 = &uStack_1b8;
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
func_0x00400bf0(puStack_10,&UNK_004014b8);
}
else {
lStack_18 = func_0x00400ba0(puStack_10);
if (1 < 100U - lStack_18) {
lStack_20 = func_0x00400c40(&UNK_0040149a,&UNK_00401498);
if (lStack_20 != 0) {
lVar2 = func_0x00400b50(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20);
if (lVar2 == 0) {
printLine(&UNK_004014a8);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
func_0x00400b80(lStack_20);
}
}
}
iVar1 = globalReturnsTrueOrFalse();
if (iVar1 == 0) {
uStack_348 = 0;
uStack_340 = 0;
puVar3 = auStack_338;
for (lVar2 = 0x30; lVar2 != 0; lVar2 = lVar2 + -1) {
*puVar3 = 0;
puVar3 = puVar3 + (ulong)bVar4 * -2 + 1;
}
func_0x00400bb0(&uStack_348,99,&UNK_004014f8,puStack_10);
printWLine(&uStack_348);
}
else {
uStack_348 = 0;
uStack_340 = 0;
puVar3 = auStack_338;
for (lVar2 = 0x30; lVar2 != 0; lVar2 = lVar2 + -1) {
*puVar3 = 0;
puVar3 = puVar3 + (ulong)bVar4 * -2 + 1;
}
func_0x00400bb0(&uStack_348,99,puStack_10);
printWLine(&uStack_348);
}
return;
}
| ['gcc'] |
44,048 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_12_good()
{
goodB2G();
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81509/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_12.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_12_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_12_good(void)
{
goodB2G();
goodG2B();
return;
}
| ['gcc'] |
44,049 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_13_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(GLOBAL_CONST_FIVE==5)
{
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
}
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 a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* 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/81510/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_13.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_13_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_13_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;
long lStack_18;
undefined8 *puStack_10;
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_10 = &uStack_1b8;
if (GLOBAL_CONST_FIVE == 5) {
lStack_18 = func_0x00400b60(puStack_10);
if (1 < 100U - lStack_18) {
lStack_20 = func_0x00400bf0(&UNK_004013d6,&UNK_004013d4);
if (lStack_20 != 0) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20);
if (lVar1 == 0) {
printLine(&UNK_004013e4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
func_0x00400b40(lStack_20);
}
}
}
if (GLOBAL_CONST_FIVE == 5) {
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_0x00400b70(&uStack_348,99,puStack_10);
printWLine(&uStack_348);
}
return;
}
| ['gcc'] |
44,050 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_13_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81510/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_13.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_13_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_13_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
44,051 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_14_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(globalFive==5)
{
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
}
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 a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* 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/81511/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_14.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_14_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_14_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;
long lStack_18;
undefined8 *puStack_10;
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_10 = &uStack_1b8;
if (globalFive == 5) {
lStack_18 = func_0x00400b60(puStack_10);
if (1 < 100U - lStack_18) {
lStack_20 = func_0x00400bf0(&UNK_004013d6,&UNK_004013d4);
if (lStack_20 != 0) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20);
if (lVar1 == 0) {
printLine(&UNK_004013e4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
func_0x00400b40(lStack_20);
}
}
}
if (globalFive == 5) {
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_0x00400b70(&uStack_348,99,puStack_10);
printWLine(&uStack_348);
}
return;
}
| ['gcc'] |
44,052 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_14_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81511/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_14.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_14_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_14_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
44,053 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_15_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
switch(6)
{
case 6:
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
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 a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* 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/81512/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_15.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_15_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_15_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;
long lStack_18;
undefined8 *puStack_10;
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_10 = &uStack_1b8;
lStack_18 = func_0x00400b60(puStack_10);
if (1 < 100U - lStack_18) {
lStack_20 = func_0x00400bf0(&UNK_004013b6,&UNK_004013b4);
if (lStack_20 != 0) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20);
if (lVar1 == 0) {
printLine(&UNK_004013c4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
func_0x00400b40(lStack_20);
}
}
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_0x00400b70(&uStack_348,99,puStack_10);
printWLine(&uStack_348);
return;
}
| ['gcc'] |
44,054 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_15_good()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81512/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_15.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_15_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_15_good(void)
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
return;
}
| ['gcc'] |
44,055 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_16_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
while(1)
{
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
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 a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* 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/81513/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_16.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_16_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_16_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;
long lStack_18;
undefined8 *puStack_10;
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_10 = &uStack_1b8;
lStack_18 = func_0x00400b60(puStack_10);
if (1 < 100U - lStack_18) {
lStack_20 = func_0x00400bf0(&UNK_004013b6,&UNK_004013b4);
if (lStack_20 != 0) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20);
if (lVar1 == 0) {
printLine(&UNK_004013c4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
func_0x00400b40(lStack_20);
}
}
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_0x00400b70(&uStack_348,99,puStack_10);
printWLine(&uStack_348);
return;
}
| ['gcc'] |
44,056 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_16_good()
{
goodB2G();
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81513/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_16.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_16_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_16_good(void)
{
goodB2G();
goodG2B();
return;
}
| ['gcc'] |
44,057 | void CWE134_Uncontrolled_Format_String__wchar_t_file_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 a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
}
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 a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* 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/81514/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_17.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_17_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_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 [48];
long lStack_28;
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_0x00400b60(puStack_18);
if (1 < 100U - lStack_20) {
lStack_28 = func_0x00400bf0(&UNK_004013e6,&UNK_004013e4);
if (lStack_28 != 0) {
lVar1 = func_0x00400b10(lStack_20 * 4 + (long)puStack_18,100 - (int)lStack_20,lStack_28);
if (lVar1 == 0) {
printLine(&UNK_004013f4);
*(undefined4 *)((long)puStack_18 + lStack_20 * 4) = 0;
}
func_0x00400b40(lStack_28);
}
}
}
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_0x00400b70(&uStack_348,99,puStack_18);
printWLine(&uStack_348);
}
return;
}
| ['gcc'] |
44,058 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_17_good()
{
goodB2G();
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81514/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_17.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_17_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_17_good(void)
{
goodB2G();
goodG2B();
return;
}
| ['gcc'] |
44,059 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_18_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
goto source;
source:
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
goto sink;
sink:
{
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 a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* 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/81515/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_18.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_18_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_18_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;
long lStack_18;
undefined8 *puStack_10;
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_10 = &uStack_1b8;
lStack_18 = func_0x00400b60(puStack_10);
if (1 < 100U - lStack_18) {
lStack_20 = func_0x00400bf0(&UNK_004013b6,&UNK_004013b4);
if (lStack_20 != 0) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20);
if (lVar1 == 0) {
printLine(&UNK_004013c4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
func_0x00400b40(lStack_20);
}
}
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_0x00400b70(&uStack_348,99,puStack_10);
printWLine(&uStack_348);
return;
}
| ['gcc'] |
44,060 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_18_good()
{
goodB2G();
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81515/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_18.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_18_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_18_good(void)
{
goodB2G();
goodG2B();
return;
}
| ['gcc'] |
44,061 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_21_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
badStatic = 1; /* true */
badSink(data);
} | ['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgetws fails */', '/* true */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81516/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_21.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_21_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_21_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1b8;
undefined8 uStack_1b0;
undefined8 auStack_1a8 [49];
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_1b8 = 0;
uStack_1b0 = 0;
puVar2 = auStack_1a8;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1b8;
lStack_18 = func_0x00400b60(puStack_10);
if (1 < 100U - lStack_18) {
lStack_20 = func_0x00400bf0(&UNK_004013e6,&UNK_004013e4);
if (lStack_20 != 0) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20);
if (lVar1 == 0) {
printLine(&UNK_004013f4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
func_0x00400b40(lStack_20);
}
}
badStatic = 1;
badSink(puStack_10);
return;
}
| ['gcc'] |
44,062 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_21_good()
{
goodB2G1();
goodB2G2();
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81516/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_21.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_21_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_21_good(void)
{
goodB2G1();
goodB2G2();
goodG2B();
return;
}
| ['gcc'] |
44,063 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_badGlobal = 1; /* true */
CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_badSink(data);
} | ['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgetws fails */', '/* true */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81517/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22a.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1b8;
undefined8 uStack_1b0;
undefined8 auStack_1a8 [49];
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_1b8 = 0;
uStack_1b0 = 0;
puVar2 = auStack_1a8;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1b8;
lStack_18 = func_0x00400b60(puStack_10);
if (1 < 100U - lStack_18) {
lStack_20 = func_0x00400bf0(&UNK_004013e6,&UNK_004013e4);
if (lStack_20 != 0) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20);
if (lVar1 == 0) {
printLine(&UNK_004013f4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
func_0x00400b40(lStack_20);
}
}
CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_badGlobal = 1;
CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_badSink(puStack_10);
return;
}
| ['gcc'] |
44,064 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_good()
{
goodB2G1();
goodB2G2();
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81517/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22a.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_good(void)
{
goodB2G1();
goodB2G2();
goodG2B();
return;
}
| ['gcc'] |
44,065 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_badSink(wchar_t * data)
{
if(CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_badGlobal)
{
{
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/81517/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22b.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_badSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_badSink(undefined8 param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_198;
undefined8 uStack_190;
undefined8 auStack_188 [48];
if (CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_badGlobal != 0) {
uStack_198 = 0;
uStack_190 = 0;
puVar2 = auStack_188;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400b70(&uStack_198,99,param_1);
printWLine(&uStack_198);
}
return;
}
| ['gcc'] |
44,066 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_goodB2G1Sink(wchar_t * data)
{
if(CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_goodB2G1Global)
{
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
}
else
{
{
wchar_t dest[100] = L"";
/* FIX: Specify the format disallowing a format string vulnerability */
SNPRINTF(dest, 100-1, L"%s", data);
printWLine(dest);
}
}
} | ['/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */', '/* FIX: Specify the format disallowing a format string vulnerability */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81517/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22b.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_goodB2G1Sink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_goodB2G1Sink(undefined8 param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_198;
undefined8 uStack_190;
undefined8 auStack_188 [48];
if (CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_goodB2G1Global == 0) {
uStack_198 = 0;
uStack_190 = 0;
puVar2 = auStack_188;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400bb0(&uStack_198,99,&UNK_004016fc,param_1);
printWLine(&uStack_198);
}
else {
printLine(&UNK_004016e4);
}
return;
}
| ['gcc'] |
44,067 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_goodB2G2Sink(wchar_t * data)
{
if(CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_goodB2G2Global)
{
{
wchar_t dest[100] = L"";
/* FIX: Specify the format disallowing a format string vulnerability */
SNPRINTF(dest, 100-1, L"%s", data);
printWLine(dest);
}
}
} | ['/* FIX: Specify the format disallowing a format string vulnerability */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81517/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22b.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_goodB2G2Sink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_goodB2G2Sink(undefined8 param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_198;
undefined8 uStack_190;
undefined8 auStack_188 [48];
if (CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_goodB2G2Global != 0) {
uStack_198 = 0;
uStack_190 = 0;
puVar2 = auStack_188;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400bb0(&uStack_198,99,&UNK_004016fc,param_1);
printWLine(&uStack_198);
}
return;
}
| ['gcc'] |
44,068 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_goodG2BSink(wchar_t * data)
{
if(CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_goodG2BGlobal)
{
{
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 */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81517/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22b.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_goodG2BSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_goodG2BSink(undefined8 param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_198;
undefined8 uStack_190;
undefined8 auStack_188 [48];
if (CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_22_goodG2BGlobal != 0) {
uStack_198 = 0;
uStack_190 = 0;
puVar2 = auStack_188;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400bb0(&uStack_198,99,param_1);
printWLine(&uStack_198);
}
return;
}
| ['gcc'] |
44,069 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_31_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
{
wchar_t * dataCopy = data;
wchar_t * data = dataCopy;
{
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 a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* 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/81518/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_31.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_31_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_31_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 [49];
undefined8 *puStack_30;
undefined8 *puStack_28;
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
bVar3 = 0;
uStack_1c8 = 0;
uStack_1c0 = 0;
puVar2 = auStack_1b8;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1c8;
lStack_18 = func_0x00400b60(puStack_10);
if (1 < 100U - lStack_18) {
lStack_20 = func_0x00400bf0(&UNK_004013c6,&UNK_004013c4);
if (lStack_20 != 0) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20);
if (lVar1 == 0) {
printLine(&UNK_004013d4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
func_0x00400b40(lStack_20);
}
}
puStack_28 = puStack_10;
puStack_30 = puStack_10;
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_0x00400b70(&uStack_358,99,puStack_30);
printWLine(&uStack_358);
return;
}
| ['gcc'] |
44,070 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_31_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81518/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_31.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_31_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_31_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
44,071 | void CWE134_Uncontrolled_Format_String__wchar_t_file_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 a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
*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 a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* 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/81519/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_32.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_32_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_32_bad(void)
{
long lVar1;
undefined8 *puVar2;
byte bVar3;
undefined8 uStack_368;
undefined8 uStack_360;
undefined8 auStack_358 [48];
undefined8 uStack_1d8;
undefined8 uStack_1d0;
undefined8 auStack_1c8 [49];
undefined8 *puStack_40;
undefined8 *puStack_38;
long lStack_30;
long lStack_28;
undefined8 *puStack_20;
undefined8 **ppuStack_18;
undefined8 **ppuStack_10;
bVar3 = 0;
ppuStack_10 = &puStack_40;
ppuStack_18 = &puStack_40;
uStack_1d8 = 0;
uStack_1d0 = 0;
puVar2 = auStack_1c8;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_40 = &uStack_1d8;
puStack_20 = *ppuStack_10;
lStack_28 = func_0x00400b60(puStack_20);
if (1 < 100U - lStack_28) {
lStack_30 = func_0x00400bf0(&UNK_004013e6,&UNK_004013e4);
if (lStack_30 != 0) {
lVar1 = func_0x00400b10(lStack_28 * 4 + (long)puStack_20,100 - (int)lStack_28,lStack_30);
if (lVar1 == 0) {
printLine(&UNK_004013f4);
*(undefined4 *)((long)puStack_20 + lStack_28 * 4) = 0;
}
func_0x00400b40(lStack_30);
}
}
*ppuStack_10 = puStack_20;
puStack_38 = *ppuStack_18;
uStack_368 = 0;
uStack_360 = 0;
puVar2 = auStack_358;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + (ulong)bVar3 * -2 + 1;
}
func_0x00400b70(&uStack_368,99,puStack_38);
printWLine(&uStack_368);
return;
}
| ['gcc'] |
44,072 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_32_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81519/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_32.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_32_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_32_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
44,073 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_41_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
badSink(data);
} | ['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgetws fails */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81522/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_41.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_41_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_41_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1b8;
undefined8 uStack_1b0;
undefined8 auStack_1a8 [49];
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_1b8 = 0;
uStack_1b0 = 0;
puVar2 = auStack_1a8;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1b8;
lStack_18 = func_0x00400b60(puStack_10);
if (1 < 100U - lStack_18) {
lStack_20 = func_0x00400bf0(&UNK_004013d6,&UNK_004013d4);
if (lStack_20 != 0) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20);
if (lVar1 == 0) {
printLine(&UNK_004013e4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
func_0x00400b40(lStack_20);
}
}
badSink(puStack_10);
return;
}
| ['gcc'] |
44,074 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_41_good()
{
goodB2G();
goodG2B();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81522/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_41.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_41_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_41_good(void)
{
goodB2G();
goodG2B();
return;
}
| ['gcc'] |
44,075 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_45_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_45_badData = data;
badSink();
} | ['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgetws fails */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81526/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_45.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_45_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_45_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1b8;
undefined8 uStack_1b0;
undefined8 auStack_1a8 [49];
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_1b8 = 0;
uStack_1b0 = 0;
puVar2 = auStack_1a8;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1b8;
lStack_18 = func_0x00400b60(puStack_10);
if (1 < 100U - lStack_18) {
lStack_20 = func_0x00400bf0(&UNK_004013e6,&UNK_004013e4);
if (lStack_20 != 0) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20);
if (lVar1 == 0) {
printLine(&UNK_004013f4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
func_0x00400b40(lStack_20);
}
}
CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_45_badData = puStack_10;
badSink();
return;
}
| ['gcc'] |
44,076 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_45_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81526/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_45.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_45_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_45_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
44,077 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_51_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_51b_badSink(data);
} | ['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgetws fails */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81527/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_51a.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_51_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_51_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1b8;
undefined8 uStack_1b0;
undefined8 auStack_1a8 [49];
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_1b8 = 0;
uStack_1b0 = 0;
puVar2 = auStack_1a8;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1b8;
lStack_18 = func_0x00400b60(puStack_10);
if (1 < 100U - lStack_18) {
lStack_20 = func_0x00400bf0(&UNK_004013d6,&UNK_004013d4);
if (lStack_20 != 0) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20);
if (lVar1 == 0) {
printLine(&UNK_004013e4);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
func_0x00400b40(lStack_20);
}
}
CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_51b_badSink(puStack_10);
return;
}
| ['gcc'] |
44,078 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_51_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81527/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_51a.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_51_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_51_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
44,079 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_51b_badSink(wchar_t * 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/81527/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_51b.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_51b_badSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_51b_badSink(undefined8 param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_198;
undefined8 uStack_190;
undefined8 auStack_188 [48];
uStack_198 = 0;
uStack_190 = 0;
puVar2 = auStack_188;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400b70(&uStack_198,99,param_1);
printWLine(&uStack_198);
return;
}
| ['gcc'] |
44,080 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_51b_goodG2BSink(wchar_t * 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 */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81527/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_51b.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_51b_goodG2BSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_51b_goodG2BSink(undefined8 param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_198;
undefined8 uStack_190;
undefined8 auStack_188 [48];
uStack_198 = 0;
uStack_190 = 0;
puVar2 = auStack_188;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400bb0(&uStack_198,99,param_1);
printWLine(&uStack_198);
return;
}
| ['gcc'] |
44,081 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_51b_goodB2GSink(wchar_t * data)
{
{
wchar_t dest[100] = L"";
/* FIX: Specify the format disallowing a format string vulnerability */
SNPRINTF(dest, 100-1, L"%s", data);
printWLine(dest);
}
} | ['/* FIX: Specify the format disallowing a format string vulnerability */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81527/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_51b.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_51b_goodB2GSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_51b_goodB2GSink(undefined8 param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_198;
undefined8 uStack_190;
undefined8 auStack_188 [48];
uStack_198 = 0;
uStack_190 = 0;
puVar2 = auStack_188;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400bb0(&uStack_198,99,&UNK_00401524,param_1);
printWLine(&uStack_198);
return;
}
| ['gcc'] |
44,082 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54b_badSink(data);
} | ['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgetws fails */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81530/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54a.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54_bad(void)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_1b8;
undefined8 uStack_1b0;
undefined8 auStack_1a8 [49];
long lStack_20;
long lStack_18;
undefined8 *puStack_10;
uStack_1b8 = 0;
uStack_1b0 = 0;
puVar2 = auStack_1a8;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
puStack_10 = &uStack_1b8;
lStack_18 = func_0x00400b60(puStack_10);
if (1 < 100U - lStack_18) {
lStack_20 = func_0x00400bf0(&UNK_00401426,&UNK_00401424);
if (lStack_20 != 0) {
lVar1 = func_0x00400b10(lStack_18 * 4 + (long)puStack_10,100 - (int)lStack_18,lStack_20);
if (lVar1 == 0) {
printLine(&UNK_00401434);
*(undefined4 *)((long)puStack_10 + lStack_18 * 4) = 0;
}
func_0x00400b40(lStack_20);
}
}
CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54b_badSink(puStack_10);
return;
}
| ['gcc'] |
44,083 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81530/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54a.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
44,084 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54b_badSink(wchar_t * data)
{
CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54c_badSink(data);
} | [] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81530/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54b.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54b_badSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54b_badSink(undefined8 param_1)
{
CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54c_badSink(param_1);
return;
}
| ['gcc'] |
44,085 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54b_goodG2BSink(wchar_t * data)
{
CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54c_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81530/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54b.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54b_goodG2BSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54b_goodG2BSink(undefined8 param_1)
{
CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54c_goodG2BSink(param_1);
return;
}
| ['gcc'] |
44,086 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54b_goodB2GSink(wchar_t * data)
{
CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54c_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81530/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54b.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54b_goodB2GSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54b_goodB2GSink(undefined8 param_1)
{
CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54c_goodB2GSink(param_1);
return;
}
| ['gcc'] |
44,087 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54c_badSink(wchar_t * data)
{
CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54d_badSink(data);
} | [] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81530/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54c.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54c_badSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54c_badSink(undefined8 param_1)
{
CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54d_badSink(param_1);
return;
}
| ['gcc'] |
44,088 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54c_goodG2BSink(wchar_t * data)
{
CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54d_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81530/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54c.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54c_goodG2BSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54c_goodG2BSink(undefined8 param_1)
{
CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54d_goodG2BSink(param_1);
return;
}
| ['gcc'] |
44,089 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54c_goodB2GSink(wchar_t * data)
{
CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54d_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81530/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54c.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54c_goodB2GSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54c_goodB2GSink(undefined8 param_1)
{
CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54d_goodB2GSink(param_1);
return;
}
| ['gcc'] |
44,090 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54d_badSink(wchar_t * data)
{
CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54e_badSink(data);
} | [] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81530/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54d.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54d_badSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54d_badSink(undefined8 param_1)
{
CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54e_badSink(param_1);
return;
}
| ['gcc'] |
44,091 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54d_goodG2BSink(wchar_t * data)
{
CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54e_goodG2BSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81530/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54d.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54d_goodG2BSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54d_goodG2BSink(undefined8 param_1)
{
CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54e_goodG2BSink(param_1);
return;
}
| ['gcc'] |
44,092 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54d_goodB2GSink(wchar_t * data)
{
CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54e_goodB2GSink(data);
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81530/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54d.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54d_goodB2GSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54d_goodB2GSink(undefined8 param_1)
{
CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54e_goodB2GSink(param_1);
return;
}
| ['gcc'] |
44,093 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54e_badSink(wchar_t * 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/81530/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54e.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54e_badSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54e_badSink(undefined8 param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_198;
undefined8 uStack_190;
undefined8 auStack_188 [48];
uStack_198 = 0;
uStack_190 = 0;
puVar2 = auStack_188;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400b70(&uStack_198,99,param_1);
printWLine(&uStack_198);
return;
}
| ['gcc'] |
44,094 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54e_goodG2BSink(wchar_t * 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 */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81530/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54e.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54e_goodG2BSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54e_goodG2BSink(undefined8 param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_198;
undefined8 uStack_190;
undefined8 auStack_188 [48];
uStack_198 = 0;
uStack_190 = 0;
puVar2 = auStack_188;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400bb0(&uStack_198,99,param_1);
printWLine(&uStack_198);
return;
}
| ['gcc'] |
44,095 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54e_goodB2GSink(wchar_t * data)
{
{
wchar_t dest[100] = L"";
/* FIX: Specify the format disallowing a format string vulnerability */
SNPRINTF(dest, 100-1, L"%s", data);
printWLine(dest);
}
} | ['/* FIX: Specify the format disallowing a format string vulnerability */'] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81530/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54e.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54e_goodB2GSink |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_54e_goodB2GSink(undefined8 param_1)
{
long lVar1;
undefined8 *puVar2;
undefined8 uStack_198;
undefined8 uStack_190;
undefined8 auStack_188 [48];
uStack_198 = 0;
uStack_190 = 0;
puVar2 = auStack_188;
for (lVar1 = 0x30; lVar1 != 0; lVar1 = lVar1 + -1) {
*puVar2 = 0;
puVar2 = puVar2 + 1;
}
func_0x00400bb0(&uStack_198,99,&UNK_004015c4,param_1);
printWLine(&uStack_198);
return;
}
| ['gcc'] |
44,096 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_61_bad()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
data = CWE134_Uncontrolled_Format_String__wchar_t_file_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/81531/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_61a.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_61_bad |
void CWE134_Uncontrolled_Format_String__wchar_t_file_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_file_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_0x00400b70(&uStack_338,99,puStack_10);
printWLine(&uStack_338);
return;
}
| ['gcc'] |
44,097 | void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_61_good()
{
goodG2B();
goodB2G();
} | [] | null | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81531/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_61a.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_61_good |
void CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_61_good(void)
{
goodG2B();
goodB2G();
return;
}
| ['gcc'] |
44,098 | wchar_t * CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_61b_badSource(wchar_t * data)
{
{
/* Read input from a file */
size_t dataLen = wcslen(data);
FILE * pFile;
/* if there is room in data, attempt to read the input from a file */
if (100-dataLen > 1)
{
pFile = fopen(FILENAME, "r");
if (pFile != NULL)
{
/* POTENTIAL FLAW: Read data from a file */
if (fgetws(data+dataLen, (int)(100-dataLen), pFile) == NULL)
{
printLine("fgetws() failed");
/* Restore NUL terminator if fgetws fails */
data[dataLen] = L'\0';
}
fclose(pFile);
}
}
}
return data;
} | ['/* Read input from a file */', '/* if there is room in data, attempt to read the input from a file */', '/* POTENTIAL FLAW: Read data from a file */', '/* Restore NUL terminator if fgetws fails */'] | ['CWE134'] | mvd | /work/xgk011/.cache/huggingface/datasets/downloads/extracted/486fbd3d4a8ebc225e93d9cfb666bef6ac127e67788d52f03aa0e741860aa84a/muVulDeePecker-master/source files/upload_source_1/81531/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_61b.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_61b_badSource |
long CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_61b_badSource(long param_1)
{
long lVar1;
long lVar2;
long lVar3;
lVar1 = func_0x00400b60(param_1);
if (1 < 100U - lVar1) {
lVar2 = func_0x00400bf0(&UNK_004013d6,&UNK_004013d4);
if (lVar2 != 0) {
lVar3 = func_0x00400b10(lVar1 * 4 + param_1,100 - (int)lVar1,lVar2);
if (lVar3 == 0) {
printLine(&UNK_004013e4);
*(undefined4 *)(param_1 + lVar1 * 4) = 0;
}
func_0x00400b40(lVar2);
}
}
return param_1;
}
| ['gcc'] |
44,099 | wchar_t * CWE134_Uncontrolled_Format_String__wchar_t_file_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/81531/CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_61b.c | CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_61b_goodG2BSource |
undefined8
CWE134_Uncontrolled_Format_String__wchar_t_file_snprintf_61b_goodG2BSource(undefined8 param_1)
{
func_0x00400bf0(param_1,&UNK_00401518);
return param_1;
}
| ['gcc'] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.