Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler. Number of rules (primarily dangerous function names) in C/C++ ruleset: 223 Examining data/yara-4.0.2/cli/args.c Examining data/yara-4.0.2/cli/args.h Examining data/yara-4.0.2/cli/common.h Examining data/yara-4.0.2/cli/threading.c Examining data/yara-4.0.2/cli/threading.h Examining data/yara-4.0.2/cli/yara.c Examining data/yara-4.0.2/cli/yarac.c Examining data/yara-4.0.2/libyara/ahocorasick.c Examining data/yara-4.0.2/libyara/arena.c Examining data/yara-4.0.2/libyara/atoms.c Examining data/yara-4.0.2/libyara/base64.c Examining data/yara-4.0.2/libyara/bitmask.c Examining data/yara-4.0.2/libyara/compiler.c Examining data/yara-4.0.2/libyara/crypto.h Examining data/yara-4.0.2/libyara/endian.c Examining data/yara-4.0.2/libyara/exception.h Examining data/yara-4.0.2/libyara/exec.c Examining data/yara-4.0.2/libyara/exefiles.c Examining data/yara-4.0.2/libyara/filemap.c Examining data/yara-4.0.2/libyara/grammar.c Examining data/yara-4.0.2/libyara/grammar.h Examining data/yara-4.0.2/libyara/hash.c Examining data/yara-4.0.2/libyara/hex_grammar.c Examining data/yara-4.0.2/libyara/hex_grammar.h Examining data/yara-4.0.2/libyara/hex_lexer.c Examining data/yara-4.0.2/libyara/include/yara.h Examining data/yara-4.0.2/libyara/include/yara/ahocorasick.h Examining data/yara-4.0.2/libyara/include/yara/arena.h Examining data/yara-4.0.2/libyara/include/yara/atoms.h Examining data/yara-4.0.2/libyara/include/yara/base64.h Examining data/yara-4.0.2/libyara/include/yara/bitmask.h Examining data/yara-4.0.2/libyara/include/yara/compiler.h Examining data/yara-4.0.2/libyara/include/yara/dex.h Examining data/yara-4.0.2/libyara/include/yara/dotnet.h Examining data/yara-4.0.2/libyara/include/yara/elf.h Examining data/yara-4.0.2/libyara/include/yara/endian.h Examining data/yara-4.0.2/libyara/include/yara/error.h Examining data/yara-4.0.2/libyara/include/yara/exec.h Examining data/yara-4.0.2/libyara/include/yara/exefiles.h Examining data/yara-4.0.2/libyara/include/yara/filemap.h Examining data/yara-4.0.2/libyara/include/yara/globals.h Examining data/yara-4.0.2/libyara/include/yara/hash.h Examining data/yara-4.0.2/libyara/include/yara/hex_lexer.h Examining data/yara-4.0.2/libyara/include/yara/integers.h Examining data/yara-4.0.2/libyara/include/yara/lexer.h Examining data/yara-4.0.2/libyara/include/yara/libyara.h Examining data/yara-4.0.2/libyara/include/yara/limits.h Examining data/yara-4.0.2/libyara/include/yara/macho.h Examining data/yara-4.0.2/libyara/include/yara/mem.h Examining data/yara-4.0.2/libyara/include/yara/modules.h Examining data/yara-4.0.2/libyara/include/yara/notebook.h Examining data/yara-4.0.2/libyara/include/yara/object.h Examining data/yara-4.0.2/libyara/include/yara/parser.h Examining data/yara-4.0.2/libyara/include/yara/pe.h Examining data/yara-4.0.2/libyara/include/yara/pe_utils.h Examining data/yara-4.0.2/libyara/include/yara/proc.h Examining data/yara-4.0.2/libyara/include/yara/re.h Examining data/yara-4.0.2/libyara/include/yara/re_lexer.h Examining data/yara-4.0.2/libyara/include/yara/rules.h Examining data/yara-4.0.2/libyara/include/yara/scan.h Examining data/yara-4.0.2/libyara/include/yara/scanner.h Examining data/yara-4.0.2/libyara/include/yara/sizedstr.h Examining data/yara-4.0.2/libyara/include/yara/stack.h Examining data/yara-4.0.2/libyara/include/yara/stopwatch.h Examining data/yara-4.0.2/libyara/include/yara/stream.h Examining data/yara-4.0.2/libyara/include/yara/strutils.h Examining data/yara-4.0.2/libyara/include/yara/threading.h Examining data/yara-4.0.2/libyara/include/yara/types.h Examining data/yara-4.0.2/libyara/include/yara/utils.h Examining data/yara-4.0.2/libyara/lexer.c Examining data/yara-4.0.2/libyara/libyara.c Examining data/yara-4.0.2/libyara/mem.c Examining data/yara-4.0.2/libyara/modules.c Examining data/yara-4.0.2/libyara/modules/cuckoo/cuckoo.c Examining data/yara-4.0.2/libyara/modules/demo/demo.c Examining data/yara-4.0.2/libyara/modules/dex/dex.c Examining data/yara-4.0.2/libyara/modules/dotnet/dotnet.c Examining data/yara-4.0.2/libyara/modules/elf/elf.c Examining data/yara-4.0.2/libyara/modules/hash/hash.c Examining data/yara-4.0.2/libyara/modules/macho/macho.c Examining data/yara-4.0.2/libyara/modules/magic/magic.c Examining data/yara-4.0.2/libyara/modules/math/math.c Examining data/yara-4.0.2/libyara/modules/pb_tests/pb_tests.c Examining data/yara-4.0.2/libyara/modules/pb_tests/pb_tests.pb-c.c Examining data/yara-4.0.2/libyara/modules/pb_tests/pb_tests.pb-c.h Examining data/yara-4.0.2/libyara/modules/pb_tests/yara.pb-c.h Examining data/yara-4.0.2/libyara/modules/pe/pe.c Examining data/yara-4.0.2/libyara/modules/pe/pe_utils.c Examining data/yara-4.0.2/libyara/modules/tests/tests.c Examining data/yara-4.0.2/libyara/modules/time/time.c Examining data/yara-4.0.2/libyara/notebook.c Examining data/yara-4.0.2/libyara/object.c Examining data/yara-4.0.2/libyara/parser.c Examining data/yara-4.0.2/libyara/proc.c Examining data/yara-4.0.2/libyara/proc/freebsd.c Examining data/yara-4.0.2/libyara/proc/linux.c Examining data/yara-4.0.2/libyara/proc/mach.c Examining data/yara-4.0.2/libyara/proc/none.c Examining data/yara-4.0.2/libyara/proc/openbsd.c Examining data/yara-4.0.2/libyara/proc/windows.c Examining data/yara-4.0.2/libyara/re.c Examining data/yara-4.0.2/libyara/re_grammar.c Examining data/yara-4.0.2/libyara/re_grammar.h Examining data/yara-4.0.2/libyara/re_lexer.c Examining data/yara-4.0.2/libyara/rules.c Examining data/yara-4.0.2/libyara/scan.c Examining data/yara-4.0.2/libyara/scanner.c Examining data/yara-4.0.2/libyara/sizedstr.c Examining data/yara-4.0.2/libyara/stack.c Examining data/yara-4.0.2/libyara/stopwatch.c Examining data/yara-4.0.2/libyara/stream.c Examining data/yara-4.0.2/libyara/strutils.c Examining data/yara-4.0.2/libyara/threading.c Examining data/yara-4.0.2/sandbox/collect_matches.cc Examining data/yara-4.0.2/sandbox/collect_matches.h Examining data/yara-4.0.2/sandbox/sandboxed_yara.cc Examining data/yara-4.0.2/sandbox/yara_entry_points.cc Examining data/yara-4.0.2/sandbox/yara_transaction.cc Examining data/yara-4.0.2/sandbox/yara_transaction.h Examining data/yara-4.0.2/sandbox/yara_transaction_test.cc Examining data/yara-4.0.2/tests/blob.h Examining data/yara-4.0.2/tests/oss-fuzz/dex_fuzzer.cc Examining data/yara-4.0.2/tests/oss-fuzz/dotnet_fuzzer.cc Examining data/yara-4.0.2/tests/oss-fuzz/elf_fuzzer.cc Examining data/yara-4.0.2/tests/oss-fuzz/macho_fuzzer.cc Examining data/yara-4.0.2/tests/oss-fuzz/pe_fuzzer.cc Examining data/yara-4.0.2/tests/oss-fuzz/rules_fuzzer.cc Examining data/yara-4.0.2/tests/test-alignment.c Examining data/yara-4.0.2/tests/test-api.c Examining data/yara-4.0.2/tests/test-arena.c Examining data/yara-4.0.2/tests/test-atoms.c Examining data/yara-4.0.2/tests/test-bitmask.c Examining data/yara-4.0.2/tests/test-dex.c Examining data/yara-4.0.2/tests/test-dotnet.c Examining data/yara-4.0.2/tests/test-elf.c Examining data/yara-4.0.2/tests/test-exception.c Examining data/yara-4.0.2/tests/test-macho.c Examining data/yara-4.0.2/tests/test-math.c Examining data/yara-4.0.2/tests/test-pb.c Examining data/yara-4.0.2/tests/test-pe.c Examining data/yara-4.0.2/tests/test-re-split.c Examining data/yara-4.0.2/tests/test-rules.c Examining data/yara-4.0.2/tests/test-stack.c Examining data/yara-4.0.2/tests/test-version.c Examining data/yara-4.0.2/tests/util.h Examining data/yara-4.0.2/tests/util.c FINAL RESULTS: data/yara-4.0.2/cli/args.c:279:14: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. len += sprintf(buffer + len, "--%s", options->long_name); data/yara-4.0.2/cli/args.c:284:14: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. len += sprintf( data/yara-4.0.2/cli/common.h:38:12: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. #define access _access_s data/yara-4.0.2/cli/common.h:59:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(argv[i], 0) != 0) data/yara-4.0.2/cli/yara.c:73:9: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/yara-4.0.2/cli/yara.c:73:18: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/yara-4.0.2/cli/yara.c:899:11: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf("%s=%" PRId64, meta->identifier, meta->integer); data/yara-4.0.2/libyara/grammar.c:1029:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define YYFPRINTF fprintf data/yara-4.0.2/libyara/hex_grammar.c:636:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define YYFPRINTF fprintf data/yara-4.0.2/libyara/hex_lexer.c:546:9: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/yara-4.0.2/libyara/hex_lexer.c:546:18: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/yara-4.0.2/libyara/include/yara/compiler.h:285:5: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf( \ data/yara-4.0.2/libyara/include/yara/strutils.h:71:14: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #if !defined(snprintf) data/yara-4.0.2/libyara/include/yara/strutils.h:72:9: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/yara-4.0.2/libyara/include/yara/strutils.h:72:18: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/yara-4.0.2/libyara/include/yara/utils.h:99:52: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define YR_PRINTF_LIKE(x, y) __attribute__((format(printf, x, y))) data/yara-4.0.2/libyara/lexer.c:1020:9: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/yara-4.0.2/libyara/lexer.c:1020:18: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/yara-4.0.2/libyara/lexer.c:1732:7: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf( data/yara-4.0.2/libyara/lexer.c:3393:3: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(message, sizeof(message), message_fmt, message_args); data/yara-4.0.2/libyara/libyara.c:49:9: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/yara-4.0.2/libyara/libyara.c:49:18: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/yara-4.0.2/libyara/modules/pe/pe.c:2247:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(final_name, first ? "%s.%s": ",%s.%s", dll_name, func->name); data/yara-4.0.2/libyara/object.c:1177:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(" = %" PRId64, object->value.i); data/yara-4.0.2/libyara/proc/linux.c:153:5: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. sscanf(buffer, "%"SCNx64"-%"SCNx64, &begin, &end); data/yara-4.0.2/libyara/re_grammar.c:658:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define YYFPRINTF fprintf data/yara-4.0.2/libyara/re_lexer.c:566:9: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/yara-4.0.2/libyara/re_lexer.c:566:18: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf _snprintf data/yara-4.0.2/libyara/sizedstr.c:125:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(result->c_string, s); data/yara-4.0.2/sandbox/sandboxed_yara.cc:65:37: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return absl::UnknownError(absl::StrCat("Cannot read file '", filename, "'")); data/yara-4.0.2/sandbox/sandboxed_yara.cc:102:37: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return absl::UnknownError(absl::StrCat( data/yara-4.0.2/sandbox/sandboxed_yara.cc:129:13: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). absl::StrCat("YARA, the pattern matching swiss army knife.\n", data/yara-4.0.2/sandbox/yara_entry_points.cc:88:13: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). absl::StrCat("yr_initialize() failed with code: ", err).c_str()); data/yara-4.0.2/sandbox/yara_transaction.cc:83:15: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). absl::StrCat("eventfd() error: ", strerror(errno))); data/yara-4.0.2/sandbox/yara_transaction.cc:128:15: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). absl::StrCat("poll() error: ", strerror(errno))); data/yara-4.0.2/sandbox/yara_transaction.cc:133:15: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). absl::StrCat("poll() error, revents: ", poll_events.revents)); data/yara-4.0.2/sandbox/yara_transaction.cc:155:36: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return absl::InternalError(absl::StrCat("Error during scan: ", scan_result)); data/yara-4.0.2/sandbox/yara_transaction_test.cc:66:39: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return absl::UnknownError(absl::StrCat("memfd(): ", strerror(errno))); data/yara-4.0.2/sandbox/yara_transaction_test.cc:69:39: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return absl::UnknownError(absl::StrCat("ftruncate(): ", strerror(errno))); data/yara-4.0.2/sandbox/yara_transaction_test.cc:75:41: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return absl::UnknownError(absl::StrCat("write(): ", strerror(errno))); data/yara-4.0.2/tests/test-rules.c:2607:9: [4] (shell) execl: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (execl("/bin/sh", "/bin/sh", "-c", "VAR='Hello, world!'; sleep 5; true", NULL) == -1) data/yara-4.0.2/cli/threading.c:49:5: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(mutex); data/yara-4.0.2/cli/threading.c:71:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(mutex); data/yara-4.0.2/libyara/libyara.c:128:3: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand((unsigned) time(NULL)); data/yara-4.0.2/tests/test-api.c:802:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *top_srcdir = getenv("TOP_SRCDIR"); data/yara-4.0.2/tests/test-dotnet.c:9:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *top_srcdir = getenv("TOP_SRCDIR"); data/yara-4.0.2/tests/test-exception.c:238:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *op = getenv("TEST_OP"); data/yara-4.0.2/tests/test-macho.c:9:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *top_srcdir = getenv("TOP_SRCDIR"); data/yara-4.0.2/tests/test-pe.c:9:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *top_srcdir = getenv("TOP_SRCDIR"); data/yara-4.0.2/tests/test-rules.c:2806:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *top_srcdir = getenv("TOP_SRCDIR"); data/yara-4.0.2/cli/args.c:264:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[128]; data/yara-4.0.2/cli/args.c:268:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. int len = sprintf(buffer, " "); data/yara-4.0.2/cli/args.c:271:14: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. len += sprintf(buffer + len, "-%c", options->short_name); data/yara-4.0.2/cli/args.c:273:14: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. len += sprintf(buffer + len, " "); data/yara-4.0.2/cli/args.c:276:14: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. len += sprintf(buffer + len, ", "); data/yara-4.0.2/cli/common.h:86:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). rule_file = fopen(file_name, "r"); data/yara-4.0.2/cli/threading.c:112:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[20]; data/yara-4.0.2/cli/yara.c:364:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char path_and_mask[MAX_PATH]; data/yara-4.0.2/cli/yara.c:375:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char full_path[MAX_PATH]; data/yara-4.0.2/cli/yara.c:504:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char full_path[MAX_PATH]; data/yara-4.0.2/cli/yara.c:543:24: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* fh_scan_list = fopen(filename, "r"); data/yara-4.0.2/cli/yara.c:1126:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). atoi(value)); data/yara-4.0.2/cli/yara.c:1132:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). atoi(value)); data/yara-4.0.2/cli/yara.c:1465:46: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). result = yr_scanner_scan_proc(scanner, atoi(argv[argc - 1])); data/yara-4.0.2/cli/yarac.c:190:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). atoi(value)); data/yara-4.0.2/libyara/arena.c:440:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&tmp_ref, ref, sizeof(YR_ARENA_REF)); data/yara-4.0.2/libyara/arena.c:496:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(arena->buffers[buffer_id].data + r.offset, data, size); data/yara-4.0.2/libyara/arena.c:679:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(reloc_ptr, &ref, sizeof(ref)); data/yara-4.0.2/libyara/atoms.c:578:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&item->atom, &node->atom, sizeof(YR_ATOM)); data/yara-4.0.2/libyara/atoms.c:703:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(output_buffer, atom, atom_length); data/yara-4.0.2/libyara/atoms.c:1020:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&leaf->atom, &atom, sizeof(atom)); data/yara-4.0.2/libyara/atoms.c:1021:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( data/yara-4.0.2/libyara/atoms.c:1028:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&leaf->atom, &best_atom, sizeof(best_atom)); data/yara-4.0.2/libyara/atoms.c:1029:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( data/yara-4.0.2/libyara/atoms.c:1259:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(clone, item, sizeof(YR_ATOM_LIST_ITEM)); data/yara-4.0.2/libyara/atoms.c:1520:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(atom.bytes, string + i - YR_MAX_ATOM_LENGTH + 1, atom.length); data/yara-4.0.2/libyara/atoms.c:1526:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&item->atom, &atom, sizeof(atom)); data/yara-4.0.2/libyara/base64.c:86:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp + j, src, len); data/yara-4.0.2/libyara/base64.c:157:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new_str->c_string, start, length); data/yara-4.0.2/libyara/base64.c:429:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(error->message, "Failure encoding base64 wide string"); data/yara-4.0.2/libyara/base64.c:440:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(error->message, "Failure encoding base64wide wide string"); data/yara-4.0.2/libyara/base64.c:456:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(error->message, "Failure encoding base64 ascii string"); data/yara-4.0.2/libyara/base64.c:466:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(error->message, "Failure encoding base64wide ascii string"); data/yara-4.0.2/libyara/base64.c:480:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(error->message, "Failure encoding base64 string"); data/yara-4.0.2/libyara/base64.c:490:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(error->message, "Failure encoding base64wide string"); data/yara-4.0.2/libyara/compiler.c:89:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(include_name, O_RDONLY | O_BINARY); data/yara-4.0.2/libyara/compiler.c:91:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(include_name, O_RDONLY); data/yara-4.0.2/libyara/compiler.c:367:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* fh = fopen(filename, "rb"); data/yara-4.0.2/libyara/exec.c:543:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&r1.i, ip, sizeof(uint64_t)); data/yara-4.0.2/libyara/exec.c:553:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&r1.i, ip, sizeof(uint64_t)); data/yara-4.0.2/libyara/exec.c:562:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&r1.i, ip, sizeof(uint64_t)); data/yara-4.0.2/libyara/exec.c:573:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&r1.i, ip, sizeof(uint64_t)); data/yara-4.0.2/libyara/exec.c:582:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&r1.i, ip, sizeof(uint64_t)); data/yara-4.0.2/libyara/exec.c:592:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&r1.i, ip, sizeof(uint64_t)); data/yara-4.0.2/libyara/exec.c:602:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&r1.i, ip, sizeof(uint64_t)); data/yara-4.0.2/libyara/exec.c:614:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&r1.i, ip, sizeof(uint64_t)); data/yara-4.0.2/libyara/exec.c:805:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&r1.i, ip, sizeof(uint64_t)); data/yara-4.0.2/libyara/exec.c:847:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&r2.i, ip, sizeof(uint64_t)); data/yara-4.0.2/libyara/exec.c:1336:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&r1.i, ip, sizeof(uint64_t)); data/yara-4.0.2/libyara/exec.c:1380:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&r1.i, ip, sizeof(uint64_t)); data/yara-4.0.2/libyara/filemap.c:329:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(file_path, O_RDONLY); data/yara-4.0.2/libyara/grammar.c:1277:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; data/yara-4.0.2/libyara/grammar.c:1566:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char yymsgbuf[128]; data/yara-4.0.2/libyara/hash.c:313:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(entry->key, key, key_length); data/yara-4.0.2/libyara/hex_grammar.c:884:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; data/yara-4.0.2/libyara/hex_grammar.c:1125:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char yymsgbuf[128]; data/yara-4.0.2/libyara/hex_lexer.c:992:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). yylval->integer = atoi(yytext); data/yara-4.0.2/libyara/include/yara/compiler.h:257:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char last_error_extra_info[YR_MAX_COMPILER_ERROR_EXTRA_INFO]; data/yara-4.0.2/libyara/include/yara/compiler.h:259:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lex_buf[YR_LEX_BUF_SIZE]; data/yara-4.0.2/libyara/include/yara/compiler.h:263:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char include_base_dir[MAX_PATH]; data/yara-4.0.2/libyara/include/yara/dotnet.h:39:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Version[0]; data/yara-4.0.2/libyara/include/yara/dotnet.h:51:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Name[0]; data/yara-4.0.2/libyara/include/yara/hex_lexer.h:70:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char last_error_message[256]; data/yara-4.0.2/libyara/include/yara/macho.h:317:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char segname[16]; data/yara-4.0.2/libyara/include/yara/macho.h:332:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char segname[16]; data/yara-4.0.2/libyara/include/yara/macho.h:345:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sectname[16]; data/yara-4.0.2/libyara/include/yara/macho.h:346:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char segname[16]; data/yara-4.0.2/libyara/include/yara/macho.h:360:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sectname[16]; data/yara-4.0.2/libyara/include/yara/macho.h:361:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char segname[16]; data/yara-4.0.2/libyara/include/yara/pe.h:511:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Key[0]; data/yara-4.0.2/libyara/include/yara/re_lexer.h:69:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char last_error_message[256]; data/yara-4.0.2/libyara/include/yara/sizedstr.h:54:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char c_string[1]; data/yara-4.0.2/libyara/include/yara/types.h:445:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message[384]; data/yara-4.0.2/libyara/lexer.c:1629:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1024]; data/yara-4.0.2/libyara/lexer.c:1721:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char err_msg[512]; data/yara-4.0.2/libyara/lexer.c:2003:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(s->c_string, yyextra->lex_buf, yyextra->lex_buf_len + 1); data/yara-4.0.2/libyara/lexer.c:3380:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message[512]; data/yara-4.0.2/libyara/lexer.c:3431:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message[512] = {'\0'}; data/yara-4.0.2/libyara/mem.c:95:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dup, str, len); data/yara-4.0.2/libyara/mem.c:110:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dup, str, len); data/yara-4.0.2/libyara/modules/dotnet/dotnet.c:92:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char guid[37]; data/yara-4.0.2/libyara/modules/dotnet/dotnet.c:106:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(guid, "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x", data/yara-4.0.2/libyara/modules/dotnet/dotnet.c:273:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stream_name[DOTNET_STREAM_NAME_SIZE + 1]; data/yara-4.0.2/libyara/modules/dotnet/dotnet.c:370:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char typelib[MAX_TYPELIB_SIZE + 1]; data/yara-4.0.2/libyara/modules/hash/hash.c:101:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(digest_ascii + (i * 2), "%02x", digest[i]); data/yara-4.0.2/libyara/modules/hash/hash.c:156:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char digest[YR_MD5_LEN]; data/yara-4.0.2/libyara/modules/hash/hash.c:157:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char digest_ascii[YR_MD5_LEN * 2 + 1]; data/yara-4.0.2/libyara/modules/hash/hash.c:174:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char digest[YR_SHA256_LEN]; data/yara-4.0.2/libyara/modules/hash/hash.c:175:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char digest_ascii[YR_SHA256_LEN * 2 + 1]; data/yara-4.0.2/libyara/modules/hash/hash.c:192:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char digest[YR_SHA1_LEN]; data/yara-4.0.2/libyara/modules/hash/hash.c:193:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char digest_ascii[YR_SHA1_LEN * 2 + 1]; data/yara-4.0.2/libyara/modules/hash/hash.c:226:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char digest[YR_MD5_LEN]; data/yara-4.0.2/libyara/modules/hash/hash.c:227:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char digest_ascii[YR_MD5_LEN * 2 + 1]; data/yara-4.0.2/libyara/modules/hash/hash.c:309:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char digest[YR_SHA1_LEN]; data/yara-4.0.2/libyara/modules/hash/hash.c:310:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char digest_ascii[YR_SHA1_LEN * 2 + 1]; data/yara-4.0.2/libyara/modules/hash/hash.c:391:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char digest[YR_SHA256_LEN]; data/yara-4.0.2/libyara/modules/hash/hash.c:392:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char digest_ascii[YR_SHA256_LEN * 2 + 1]; data/yara-4.0.2/libyara/modules/macho/macho.c:339:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&ep_command, command, sizeof(yr_entry_point_command_t)); data/yara-4.0.2/libyara/modules/macho/macho.c:370:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&sg, command, sizeof(yr_segment_command_32_t)); data/yara-4.0.2/libyara/modules/macho/macho.c:395:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&sec, data/yara-4.0.2/libyara/modules/macho/macho.c:448:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&sg, command, sizeof(yr_segment_command_64_t)); data/yara-4.0.2/libyara/modules/macho/macho.c:472:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&sec, data/yara-4.0.2/libyara/modules/macho/macho.c:537:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&header, data, sizeof(yr_mach_header_32_t)); data/yara-4.0.2/libyara/modules/macho/macho.c:566:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&command_struct, command, sizeof(yr_load_command_t)); data/yara-4.0.2/libyara/modules/macho/macho.c:598:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&command_struct, command, sizeof(yr_load_command_t)); data/yara-4.0.2/libyara/modules/pe/pe.c:244:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(raw_data, rich_signature, rich_len); data/yara-4.0.2/libyara/modules/pe/pe.c:263:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(clear_data, raw_data, rich_len); data/yara-4.0.2/libyara/modules/pe/pe.c:681:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[64]; data/yara-4.0.2/libyara/modules/pe/pe.c:682:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char value[256]; data/yara-4.0.2/libyara/modules/pe/pe.c:1291:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[256]; data/yara-4.0.2/libyara/modules/pe/pe.c:1296:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char thumbprint[YR_SHA1_LEN]; data/yara-4.0.2/libyara/modules/pe/pe.c:1297:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char thumbprint_ascii[YR_SHA1_LEN * 2 + 1]; data/yara-4.0.2/libyara/modules/pe/pe.c:1324:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(thumbprint_ascii + (j * 2), "%02x", thumbprint[j]); data/yara-4.0.2/libyara/modules/pe/pe.c:1580:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char section_name[IMAGE_SIZEOF_SHORT_NAME + 1]; data/yara-4.0.2/libyara/modules/pe/pe.c:2175:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char digest[YR_MD5_LEN]; data/yara-4.0.2/libyara/modules/pe/pe.c:2278:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(digest_ascii + (i * 2), "%02x", digest[i]); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:361:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[64]; data/yara-4.0.2/libyara/modules/pe/pe_utils.c:369:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "accept"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:372:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "bind"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:375:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "closesocket"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:378:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "connect"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:381:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "getpeername"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:384:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "getsockname"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:387:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "getsockopt"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:390:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "htonl"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:393:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "htons"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:396:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "ioctlsocket"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:399:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "inet_addr"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:402:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "inet_ntoa"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:405:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "listen"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:408:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "ntohl"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:411:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "ntohs"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:414:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "recv"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:417:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "recvfrom"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:420:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "select"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:423:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "send"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:426:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "sendto"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:429:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "setsockopt"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:432:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "shutdown"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:435:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "socket"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:438:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "GetAddrInfoW"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:441:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "GetNameInfoW"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:444:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSApSetPostRoutine"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:447:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "FreeAddrInfoW"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:450:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WPUCompleteOverlappedRequest"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:453:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAAccept"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:456:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAAddressToStringA"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:459:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAAddressToStringW"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:462:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSACloseEvent"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:465:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAConnect"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:468:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSACreateEvent"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:471:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSADuplicateSocketA"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:474:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSADuplicateSocketW"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:477:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAEnumNameSpaceProvidersA"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:480:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAEnumNameSpaceProvidersW"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:483:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAEnumNetworkEvents"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:486:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAEnumProtocolsA"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:489:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAEnumProtocolsW"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:492:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAEventSelect"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:495:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAGetOverlappedResult"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:498:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAGetQOSByName"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:501:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAGetServiceClassInfoA"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:504:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAGetServiceClassInfoW"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:507:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAGetServiceClassNameByClassIdA"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:510:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAGetServiceClassNameByClassIdW"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:513:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAHtonl"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:516:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAHtons"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:519:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "gethostbyaddr"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:522:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "gethostbyname"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:525:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "getprotobyname"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:528:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "getprotobynumber"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:531:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "getservbyname"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:534:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "getservbyport"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:537:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "gethostname"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:540:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAInstallServiceClassA"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:543:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAInstallServiceClassW"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:546:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAIoctl"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:549:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAJoinLeaf"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:552:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSALookupServiceBeginA"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:555:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSALookupServiceBeginW"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:558:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSALookupServiceEnd"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:561:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSALookupServiceNextA"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:564:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSALookupServiceNextW"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:567:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSANSPIoctl"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:570:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSANtohl"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:573:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSANtohs"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:576:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAProviderConfigChange"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:579:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSARecv"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:582:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSARecvDisconnect"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:585:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSARecvFrom"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:588:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSARemoveServiceClass"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:591:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAResetEvent"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:594:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSASend"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:597:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSASendDisconnect"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:600:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSASendTo"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:603:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSASetEvent"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:606:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSASetServiceA"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:609:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSASetServiceW"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:612:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSASocketA"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:615:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSASocketW"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:618:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAStringToAddressA"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:621:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAStringToAddressW"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:624:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAWaitForMultipleEvents"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:627:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSCDeinstallProvider"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:630:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSCEnableNSProvider"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:633:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSCEnumProtocols"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:636:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSCGetProviderPath"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:639:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSCInstallNameSpace"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:642:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSCInstallProvider"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:645:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSCUnInstallNameSpace"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:648:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSCUpdateProvider"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:651:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSCWriteNameSpaceOrder"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:654:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSCWriteProviderOrder"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:657:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "freeaddrinfo"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:660:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "getaddrinfo"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:663:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "getnameinfo"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:666:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAAsyncSelect"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:669:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAAsyncGetHostByAddr"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:672:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAAsyncGetHostByName"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:675:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAAsyncGetProtoByNumber"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:678:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAAsyncGetProtoByName"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:681:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAAsyncGetServByPort"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:684:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAAsyncGetServByName"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:687:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSACancelAsyncRequest"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:690:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSASetBlockingHook"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:693:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAUnhookBlockingHook"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:696:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAGetLastError"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:699:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSASetLastError"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:702:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSACancelBlockingCall"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:705:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAIsBlocking"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:708:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSAStartup"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:711:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WSACleanup"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:714:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "__WSAFDIsSet"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:717:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "WEP"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:727:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SysAllocString"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:730:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SysReAllocString"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:733:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SysAllocStringLen"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:736:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SysReAllocStringLen"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:739:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SysFreeString"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:742:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SysStringLen"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:745:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VariantInit"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:748:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VariantClear"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:751:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VariantCopy"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:754:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VariantCopyInd"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:757:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VariantChangeType"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:760:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VariantTimeToDosDateTime"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:763:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "DosDateTimeToVariantTime"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:766:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SafeArrayCreate"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:769:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SafeArrayDestroy"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:772:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SafeArrayGetDim"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:775:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SafeArrayGetElemsize"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:778:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SafeArrayGetUBound"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:781:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SafeArrayGetLBound"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:784:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SafeArrayLock"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:787:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SafeArrayUnlock"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:790:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SafeArrayAccessData"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:793:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SafeArrayUnaccessData"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:796:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SafeArrayGetElement"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:799:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SafeArrayPutElement"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:802:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SafeArrayCopy"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:805:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "DispGetParam"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:808:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "DispGetIDsOfNames"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:811:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "DispInvoke"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:814:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "CreateDispTypeInfo"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:817:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "CreateStdDispatch"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:820:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "RegisterActiveObject"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:823:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "RevokeActiveObject"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:826:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "GetActiveObject"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:829:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SafeArrayAllocDescriptor"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:832:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SafeArrayAllocData"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:835:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SafeArrayDestroyDescriptor"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:838:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SafeArrayDestroyData"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:841:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SafeArrayRedim"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:844:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SafeArrayAllocDescriptorEx"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:847:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SafeArrayCreateEx"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:850:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SafeArrayCreateVectorEx"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:853:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SafeArraySetRecordInfo"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:856:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SafeArrayGetRecordInfo"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:859:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarParseNumFromStr"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:862:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarNumFromParseNum"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:865:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI2FromUI1"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:868:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI2FromI4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:871:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI2FromR4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:874:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI2FromR8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:877:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI2FromCy"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:880:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI2FromDate"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:883:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI2FromStr"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:886:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI2FromDisp"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:889:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI2FromBool"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:892:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SafeArraySetIID"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:895:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI4FromUI1"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:898:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI4FromI2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:901:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI4FromR4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:904:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI4FromR8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:907:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI4FromCy"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:910:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI4FromDate"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:913:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI4FromStr"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:916:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI4FromDisp"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:919:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI4FromBool"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:922:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SafeArrayGetIID"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:925:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR4FromUI1"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:928:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR4FromI2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:931:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR4FromI4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:934:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR4FromR8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:937:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR4FromCy"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:940:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR4FromDate"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:943:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR4FromStr"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:946:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR4FromDisp"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:949:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR4FromBool"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:952:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SafeArrayGetVartype"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:955:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR8FromUI1"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:958:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR8FromI2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:961:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR8FromI4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:964:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR8FromR4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:967:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR8FromCy"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:970:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR8FromDate"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:973:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR8FromStr"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:976:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR8FromDisp"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:979:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR8FromBool"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:982:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarFormat"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:985:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDateFromUI1"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:988:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDateFromI2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:991:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDateFromI4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:994:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDateFromR4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:997:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDateFromR8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1000:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDateFromCy"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1003:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDateFromStr"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1006:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDateFromDisp"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1009:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDateFromBool"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1012:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarFormatDateTime"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1015:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarCyFromUI1"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1018:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarCyFromI2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1021:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarCyFromI4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1024:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarCyFromR4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1027:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarCyFromR8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1030:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarCyFromDate"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1033:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarCyFromStr"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1036:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarCyFromDisp"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1039:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarCyFromBool"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1042:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarFormatNumber"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1045:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBstrFromUI1"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1048:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBstrFromI2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1051:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBstrFromI4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1054:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBstrFromR4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1057:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBstrFromR8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1060:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBstrFromCy"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1063:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBstrFromDate"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1066:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBstrFromDisp"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1069:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBstrFromBool"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1072:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarFormatPercent"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1075:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBoolFromUI1"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1078:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBoolFromI2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1081:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBoolFromI4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1084:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBoolFromR4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1087:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBoolFromR8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1090:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBoolFromDate"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1093:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBoolFromCy"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1096:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBoolFromStr"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1099:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBoolFromDisp"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1102:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarFormatCurrency"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1105:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarWeekdayName"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1108:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarMonthName"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1111:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI1FromI2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1114:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI1FromI4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1117:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI1FromR4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1120:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI1FromR8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1123:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI1FromCy"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1126:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI1FromDate"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1129:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI1FromStr"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1132:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI1FromDisp"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1135:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI1FromBool"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1138:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarFormatFromTokens"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1141:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarTokenizeFormatString"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1144:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarAdd"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1147:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarAnd"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1150:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDiv"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1153:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "DllCanUnloadNow"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1156:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "DllGetClassObject"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1159:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "DispCallFunc"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1162:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VariantChangeTypeEx"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1165:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SafeArrayPtrOfIndex"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1168:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SysStringByteLen"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1171:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SysAllocStringByteLen"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1174:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "DllRegisterServer"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1177:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarEqv"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1180:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarIdiv"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1183:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarImp"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1186:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarMod"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1189:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarMul"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1192:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarOr"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1195:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarPow"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1198:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarSub"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1201:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "CreateTypeLib"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1204:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "LoadTypeLib"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1207:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "LoadRegTypeLib"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1210:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "RegisterTypeLib"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1213:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "QueryPathOfRegTypeLib"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1216:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "LHashValOfNameSys"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1219:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "LHashValOfNameSysA"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1222:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarXor"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1225:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarAbs"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1228:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarFix"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1231:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "OaBuildVersion"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1234:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "ClearCustData"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1237:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarInt"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1240:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarNeg"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1243:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarNot"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1246:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarRound"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1249:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarCmp"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1252:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDecAdd"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1255:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDecDiv"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1258:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDecMul"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1261:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "CreateTypeLib2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1264:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDecSub"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1267:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDecAbs"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1270:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "LoadTypeLibEx"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1273:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SystemTimeToVariantTime"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1276:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VariantTimeToSystemTime"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1279:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "UnRegisterTypeLib"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1282:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDecFix"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1285:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDecInt"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1288:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDecNeg"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1291:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDecFromUI1"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1294:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDecFromI2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1297:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDecFromI4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1300:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDecFromR4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1303:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDecFromR8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1306:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDecFromDate"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1309:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDecFromCy"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1312:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDecFromStr"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1315:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDecFromDisp"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1318:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDecFromBool"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1321:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "GetErrorInfo"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1324:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SetErrorInfo"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1327:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "CreateErrorInfo"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1330:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDecRound"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1333:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDecCmp"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1336:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI2FromI1"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1339:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI2FromUI2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1342:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI2FromUI4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1345:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI2FromDec"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1348:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI4FromI1"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1351:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI4FromUI2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1354:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI4FromUI4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1357:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI4FromDec"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1360:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR4FromI1"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1363:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR4FromUI2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1366:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR4FromUI4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1369:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR4FromDec"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1372:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR8FromI1"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1375:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR8FromUI2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1378:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR8FromUI4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1381:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR8FromDec"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1384:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDateFromI1"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1387:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDateFromUI2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1390:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDateFromUI4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1393:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDateFromDec"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1396:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarCyFromI1"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1399:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarCyFromUI2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1402:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarCyFromUI4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1405:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarCyFromDec"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1408:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBstrFromI1"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1411:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBstrFromUI2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1414:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBstrFromUI4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1417:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBstrFromDec"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1420:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBoolFromI1"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1423:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBoolFromUI2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1426:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBoolFromUI4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1429:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBoolFromDec"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1432:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI1FromI1"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1435:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI1FromUI2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1438:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI1FromUI4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1441:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI1FromDec"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1444:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDecFromI1"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1447:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDecFromUI2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1450:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDecFromUI4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1453:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI1FromUI1"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1456:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI1FromI2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1459:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI1FromI4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1462:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI1FromR4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1465:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI1FromR8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1468:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI1FromDate"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1471:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI1FromCy"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1474:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI1FromStr"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1477:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI1FromDisp"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1480:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI1FromBool"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1483:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI1FromUI2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1486:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI1FromUI4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1489:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI1FromDec"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1492:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI2FromUI1"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1495:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI2FromI2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1498:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI2FromI4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1501:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI2FromR4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1504:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI2FromR8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1507:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI2FromDate"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1510:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI2FromCy"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1513:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI2FromStr"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1516:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI2FromDisp"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1519:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI2FromBool"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1522:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI2FromI1"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1525:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI2FromUI4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1528:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI2FromDec"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1531:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI4FromUI1"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1534:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI4FromI2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1537:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI4FromI4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1540:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI4FromR4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1543:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI4FromR8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1546:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI4FromDate"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1549:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI4FromCy"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1552:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI4FromStr"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1555:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI4FromDisp"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1558:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI4FromBool"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1561:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI4FromI1"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1564:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI4FromUI2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1567:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI4FromDec"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1570:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "BSTR_UserSize"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1573:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "BSTR_UserMarshal"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1576:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "BSTR_UserUnmarshal"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1579:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "BSTR_UserFree"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1582:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VARIANT_UserSize"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1585:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VARIANT_UserMarshal"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1588:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VARIANT_UserUnmarshal"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1591:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VARIANT_UserFree"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1594:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "LPSAFEARRAY_UserSize"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1597:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "LPSAFEARRAY_UserMarshal"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1600:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "LPSAFEARRAY_UserUnmarshal"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1603:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "LPSAFEARRAY_UserFree"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1606:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "LPSAFEARRAY_Size"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1609:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "LPSAFEARRAY_Marshal"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1612:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "LPSAFEARRAY_Unmarshal"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1615:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDecCmpR8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1618:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarCyAdd"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1621:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "DllUnregisterServer"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1624:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "OACreateTypeLib2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1627:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarCyMul"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1630:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarCyMulI4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1633:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarCySub"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1636:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarCyAbs"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1639:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarCyFix"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1642:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarCyInt"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1645:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarCyNeg"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1648:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarCyRound"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1651:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarCyCmp"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1654:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarCyCmpR8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1657:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBstrCat"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1660:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBstrCmp"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1663:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR8Pow"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1666:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR4CmpR8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1669:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR8Round"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1672:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarCat"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1675:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDateFromUdateEx"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1678:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "GetRecordInfoFromGuids"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1681:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "GetRecordInfoFromTypeInfo"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1684:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SetVarConversionLocaleSetting"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1687:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "GetVarConversionLocaleSetting"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1690:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SetOaNoCache"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1693:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarCyMulI8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1696:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDateFromUdate"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1699:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUdateFromDate"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1702:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "GetAltMonthNames"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1705:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI8FromUI1"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1708:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI8FromI2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1711:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI8FromR4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1714:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI8FromR8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1717:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI8FromCy"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1720:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI8FromDate"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1723:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI8FromStr"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1726:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI8FromDisp"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1729:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI8FromBool"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1732:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI8FromI1"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1735:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI8FromUI2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1738:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI8FromUI4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1741:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI8FromDec"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1744:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI2FromI8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1747:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI2FromUI8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1750:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI4FromI8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1753:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI4FromUI8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1756:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR4FromI8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1759:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR4FromUI8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1762:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR8FromI8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1765:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarR8FromUI8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1768:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDateFromI8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1771:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDateFromUI8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1774:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarCyFromI8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1777:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarCyFromUI8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1780:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBstrFromI8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1783:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBstrFromUI8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1786:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBoolFromI8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1789:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarBoolFromUI8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1792:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI1FromI8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1795:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI1FromUI8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1798:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDecFromI8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1801:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarDecFromUI8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1804:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI1FromI8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1807:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI1FromUI8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1810:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI2FromI8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1813:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI2FromUI8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1816:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "OleLoadPictureEx"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1819:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "OleLoadPictureFileEx"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1822:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SafeArrayCreateVector"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1825:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "SafeArrayCopyData"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1828:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VectorFromBstr"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1831:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "BstrFromVector"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1834:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "OleIconToCursor"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1837:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "OleCreatePropertyFrameIndirect"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1840:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "OleCreatePropertyFrame"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1843:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "OleLoadPicture"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1846:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "OleCreatePictureIndirect"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1849:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "OleCreateFontIndirect"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1852:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "OleTranslateColor"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1855:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "OleLoadPictureFile"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1858:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "OleSavePictureFile"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1861:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "OleLoadPicturePath"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1864:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI4FromI8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1867:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI4FromUI8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1870:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarI8FromUI8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1873:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI8FromI8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1876:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI8FromUI1"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1879:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI8FromI2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1882:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI8FromR4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1885:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI8FromR8"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1888:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI8FromCy"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1891:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI8FromDate"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1894:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI8FromStr"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1897:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI8FromDisp"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1900:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI8FromBool"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1903:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI8FromI1"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1906:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI8FromUI2"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1909:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI8FromUI4"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1912:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "VarUI8FromDec"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1915:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "RegisterTypeLibForUser"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1918:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "UnRegisterTypeLibForUser"); data/yara-4.0.2/libyara/modules/pe/pe_utils.c:1926:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "ord%u", ord); data/yara-4.0.2/libyara/object.c:444:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[256]; data/yara-4.0.2/libyara/object.c:1122:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(string_obj->value.ss->c_string, value, len); data/yara-4.0.2/libyara/object.c:1153:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char indent_spaces[32]; data/yara-4.0.2/libyara/parser.c:528:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message[512]; data/yara-4.0.2/libyara/proc/freebsd.c:145:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4096]; data/yara-4.0.2/libyara/proc/linux.c:55:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[256]; data/yara-4.0.2/libyara/proc/linux.c:69:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). proc_info->maps = fopen(buffer, "r"); data/yara-4.0.2/libyara/proc/linux.c:78:23: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). proc_info->mem_fd = open(buffer, O_RDONLY); data/yara-4.0.2/libyara/proc/linux.c:148:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[256]; data/yara-4.0.2/libyara/re_grammar.c:906:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; data/yara-4.0.2/libyara/re_grammar.c:1135:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char yymsgbuf[128]; data/yara-4.0.2/libyara/re_lexer.c:947:18: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int lo_bound = atoi(yytext + 1); data/yara-4.0.2/libyara/re_lexer.c:956:16: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). hi_bound = atoi(comma + 1); data/yara-4.0.2/libyara/re_lexer.c:988:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int value = atoi(yytext + 1); data/yara-4.0.2/libyara/re_lexer.c:1167:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(yylval->re_class->bitmap, LEX_ENV->re_class.bitmap, 32); data/yara-4.0.2/libyara/re_lexer.c:2534:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hex[3]; data/yara-4.0.2/libyara/re_lexer.c:2589:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[4] = {0, 0, 0, 0}; data/yara-4.0.2/libyara/rules.c:424:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* fh = fopen(filename, "rb"); data/yara-4.0.2/libyara/rules.c:454:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* fh = fopen(filename, "wb"); data/yara-4.0.2/libyara/scan.c:490:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( data/yara-4.0.2/libyara/scan.c:531:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( data/yara-4.0.2/libyara/scan.c:636:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( data/yara-4.0.2/libyara/stack.c:110:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( data/yara-4.0.2/libyara/stack.c:139:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( data/yara-4.0.2/sandbox/sandboxed_yara.cc:100:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). } fd_closer{open(scan_filename.c_str(), O_RDONLY)}; data/yara-4.0.2/sandbox/yara_entry_points.cc:177:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message[512] = {'\0'}; data/yara-4.0.2/tests/test-api.c:119:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open("tests/data/baz.yar", O_RDONLY); data/yara-4.0.2/tests/test-arena.c:138:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* fh = fopen("test-arena-stream", "w+"); data/yara-4.0.2/tests/test-exception.c:41:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char wbuf[1024]; data/yara-4.0.2/tests/test-exception.c:60:8: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). fd = mkstemp(filename); data/yara-4.0.2/tests/test-rules.c:2144:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rule[80]; data/yara-4.0.2/tests/util.c:45:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char compile_error[1024]; data/yara-4.0.2/tests/util.c:320:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(filename, O_RDONLY)) < 0) data/yara-4.0.2/tests/util.h:35:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char compile_error[1024]; data/yara-4.0.2/cli/args.c:72:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t l = strlen(options->long_name); data/yara-4.0.2/cli/args.c:196:13: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (equal) data/yara-4.0.2/cli/yara.c:462:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* final = path + strlen(path) - 1; data/yara-4.0.2/cli/yara.c:908:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). print_escaped((uint8_t*) (meta->string), strlen(meta->string)); data/yara-4.0.2/libyara/arena.c:515:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). arena, buffer_id, string, strlen(string) + 1, ref); data/yara-4.0.2/libyara/arena.c:559:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read != hdr.num_buffers) data/yara-4.0.2/libyara/compiler.c:126:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (file_size != read(fd, file_buffer, (size_t) file_size)) data/yara-4.0.2/libyara/exec.c:992:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = (int) strlen(args_fmt); data/yara-4.0.2/libyara/grammar.c:1177:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define yystrlen strlen data/yara-4.0.2/libyara/grammar.c:1965:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tag += strlen(tag) + 1; data/yara-4.0.2/libyara/grammar.c:2792:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen((yyvsp[-2].c_string)) == YR_MAX_FUNCTION_ARGS) data/yara-4.0.2/libyara/grammar.c:2822:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen((yyvsp[-2].c_string)) + 1); data/yara-4.0.2/libyara/hash.c:135:57: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). bucket_index = yr_hash(bucket_index, (uint8_t*) ns, strlen(ns)); data/yara-4.0.2/libyara/hash.c:318:57: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). bucket_index = yr_hash(bucket_index, (uint8_t*) ns, strlen(ns)); data/yara-4.0.2/libyara/hash.c:337:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(key), data/yara-4.0.2/libyara/hash.c:350:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(key), data/yara-4.0.2/libyara/hash.c:364:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(key), data/yara-4.0.2/libyara/hex_grammar.c:784:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define yystrlen strlen data/yara-4.0.2/libyara/hex_lexer.c:724:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ data/yara-4.0.2/libyara/hex_lexer.c:1789:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return hex_yy_scan_bytes(yystr,strlen(yystr) ,yyscanner); data/yara-4.0.2/libyara/include/yara/modules.h:339:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). set_sized_string(value, (value == NULL) ? 0 : strlen(value), object, __VA_ARGS__) data/yara-4.0.2/libyara/include/yara/modules.h:372:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (s != (char*) YR_UNDEFINED) ? strlen(s) : 0, \ data/yara-4.0.2/libyara/include/yara/rules.h:52:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tag_name += strlen(tag_name) + 1) data/yara-4.0.2/libyara/include/yara/stream.h:53:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). YR_STREAM_READ_FUNC read; data/yara-4.0.2/libyara/lexer.c:988:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(data) + current_size >= max_length - 1) \ data/yara-4.0.2/libyara/lexer.c:1030:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return strlen(path) > 2 && data/yara-4.0.2/libyara/lexer.c:1033:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return strlen(path) > 0 && path[0] == '/'; data/yara-4.0.2/libyara/lexer.c:1205:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ data/yara-4.0.2/libyara/lexer.c:1895:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(yytext) > 128) data/yara-4.0.2/libyara/lexer.c:2185:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). alloc_sized_string(s, strlen(yytext)); data/yara-4.0.2/libyara/lexer.c:2960:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return yy_scan_bytes( yystr, (int) strlen(yystr) , yyscanner); data/yara-4.0.2/libyara/lexer.c:3592:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(rules_fd, buffer, file_size) != file_size) data/yara-4.0.2/libyara/mem.c:89:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(str); data/yara-4.0.2/libyara/modules/dotnet/dotnet.c:295:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(stream_name, stream_header->Name, DOTNET_STREAM_NAME_SIZE); data/yara-4.0.2/libyara/modules/dotnet/dotnet.c:330:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(stream_name) + data/yara-4.0.2/libyara/modules/dotnet/dotnet.c:331:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). 4 - (strlen(stream_name) % 4)); data/yara-4.0.2/libyara/modules/dotnet/dotnet.c:904:15: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(typelib, (char*) blob_offset, MAX_TYPELIB_SIZE); data/yara-4.0.2/libyara/modules/dotnet/dotnet.c:1173:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (name != NULL && strlen(name) > 0) data/yara-4.0.2/libyara/modules/pe/pe.c:1794:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(section_name, (char*) section->Name, IMAGE_SIZEOF_SHORT_NAME); data/yara-4.0.2/libyara/modules/pe/pe.c:2220:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). dll_name_len = strlen(dll->name); data/yara-4.0.2/libyara/modules/pe/pe.c:2237:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t final_name_len = dll_name_len + strlen(func->name) + 1; data/yara-4.0.2/libyara/modules/tests/tests.c:75:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return_integer(strlen(s)); data/yara-4.0.2/libyara/object.c:313:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). external->value.s, strlen(external->value.s), obj, NULL); data/yara-4.0.2/libyara/parser.c:1192:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(module_name->c_string) != module_name->length) data/yara-4.0.2/libyara/proc/windows.c:108:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). SIZE_T read; data/yara-4.0.2/libyara/proc/windows.c:136:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). &read) == FALSE) data/yara-4.0.2/libyara/re.c:331:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(target), data/yara-4.0.2/libyara/re_grammar.c:806:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define yystrlen strlen data/yara-4.0.2/libyara/re_lexer.c:759:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ data/yara-4.0.2/libyara/re_lexer.c:951:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (comma - yytext == strlen(yytext) - 2) data/yara-4.0.2/libyara/re_lexer.c:2113:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return re_yy_scan_bytes(yystr,strlen(yystr) ,yyscanner); data/yara-4.0.2/libyara/scanner.c:378:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return yr_object_set_string(value, strlen(value), obj, NULL); data/yara-4.0.2/libyara/sizedstr.c:103:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(result->c_string, s->c_string, s->length + 1); data/yara-4.0.2/libyara/sizedstr.c:114:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int length = strlen(s); data/yara-4.0.2/libyara/stream.c:43:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return stream->read(ptr, size, count, stream->user_data); data/yara-4.0.2/libyara/strutils.c:39:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t l = strlen(hexstr); data/yara-4.0.2/libyara/strutils.c:149:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return(dlen + strlen(s)); data/yara-4.0.2/tests/oss-fuzz/rules_fuzzer.cc:54:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buffer, (const char *) data, size); data/yara-4.0.2/tests/test-api.c:45:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rules, (uint8_t *) buf, strlen(buf), 0, count, &counters, 0); data/yara-4.0.2/tests/test-api.c:445:59: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). result = yr_scanner_scan_mem(scanner1, (uint8_t *) buf, strlen(buf)); data/yara-4.0.2/tests/test-api.c:474:59: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). result = yr_scanner_scan_mem(scanner1, (uint8_t *) buf, strlen(buf)); data/yara-4.0.2/tests/test-api.c:500:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). yr_scanner_scan_mem(scanner1, (uint8_t *) buf, strlen(buf)); data/yara-4.0.2/tests/test-api.c:516:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). yr_scanner_scan_mem(scanner2, (uint8_t *) buf, strlen(buf)); data/yara-4.0.2/tests/test-api.c:580:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). yr_scanner_scan_mem(scanner, (uint8_t *) buf, strlen(buf)); data/yara-4.0.2/tests/test-api.c:581:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). yr_scanner_scan_mem(scanner, (uint8_t *) buf, strlen(buf)); data/yara-4.0.2/tests/util.c:236:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(string); data/yara-4.0.2/tests/util.c:268:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(f->expected) == match->data_length && data/yara-4.0.2/tests/util.c:299:64: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int scan_result = yr_rules_scan_mem(rules, (uint8_t*)string, strlen(string), 0, data/yara-4.0.2/tests/util.c:335:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((rc = read(fd, *buf, sz)) != sz) ANALYSIS SUMMARY: Hits = 786 Lines analyzed = 72192 in approximately 1.74 seconds (41431 lines/second) Physical Source Lines of Code (SLOC) = 49711 Hits@level = [0] 286 [1] 69 [2] 667 [3] 9 [4] 41 [5] 0 Hits@level+ = [0+] 1072 [1+] 786 [2+] 717 [3+] 50 [4+] 41 [5+] 0 Hits/KSLOC@level+ = [0+] 21.5646 [1+] 15.8114 [2+] 14.4234 [3+] 1.00581 [4+] 0.824767 [5+] 0 Dot directories skipped = 2 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.