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/bear-3.0.3/source/bear/main.cc
Examining data/bear-3.0.3/source/citnames/main.cc
Examining data/bear-3.0.3/source/citnames/source/Application.cc
Examining data/bear-3.0.3/source/citnames/source/Application.h
Examining data/bear-3.0.3/source/citnames/source/Configuration.cc
Examining data/bear-3.0.3/source/citnames/source/Configuration.h
Examining data/bear-3.0.3/source/citnames/source/Output.cc
Examining data/bear-3.0.3/source/citnames/source/Output.h
Examining data/bear-3.0.3/source/citnames/source/semantic/Parsers.cc
Examining data/bear-3.0.3/source/citnames/source/semantic/Parsers.h
Examining data/bear-3.0.3/source/citnames/source/semantic/Semantic.cc
Examining data/bear-3.0.3/source/citnames/source/semantic/Semantic.h
Examining data/bear-3.0.3/source/citnames/source/semantic/Tool.cc
Examining data/bear-3.0.3/source/citnames/source/semantic/Tool.h
Examining data/bear-3.0.3/source/citnames/source/semantic/ToolClang.cc
Examining data/bear-3.0.3/source/citnames/source/semantic/ToolClang.h
Examining data/bear-3.0.3/source/citnames/source/semantic/ToolCuda.cc
Examining data/bear-3.0.3/source/citnames/source/semantic/ToolCuda.h
Examining data/bear-3.0.3/source/citnames/source/semantic/ToolExtendingWrapper.cc
Examining data/bear-3.0.3/source/citnames/source/semantic/ToolExtendingWrapper.h
Examining data/bear-3.0.3/source/citnames/source/semantic/ToolGcc.cc
Examining data/bear-3.0.3/source/citnames/source/semantic/ToolGcc.h
Examining data/bear-3.0.3/source/citnames/source/semantic/ToolWrapper.cc
Examining data/bear-3.0.3/source/citnames/source/semantic/ToolWrapper.h
Examining data/bear-3.0.3/source/citnames/test/OutputTest.cc
Examining data/bear-3.0.3/source/citnames/test/ToolGccTest.cc
Examining data/bear-3.0.3/source/citnames/test/ToolTest.cc
Examining data/bear-3.0.3/source/intercept/include/intercept/output/Report.h
Examining data/bear-3.0.3/source/intercept/source/collect/Application.cc
Examining data/bear-3.0.3/source/intercept/source/collect/Application.h
Examining data/bear-3.0.3/source/intercept/source/collect/Report.cc
Examining data/bear-3.0.3/source/intercept/source/collect/Reporter.cc
Examining data/bear-3.0.3/source/intercept/source/collect/Reporter.h
Examining data/bear-3.0.3/source/intercept/source/collect/Services.cc
Examining data/bear-3.0.3/source/intercept/source/collect/Services.h
Examining data/bear-3.0.3/source/intercept/source/collect/Session.cc
Examining data/bear-3.0.3/source/intercept/source/collect/Session.h
Examining data/bear-3.0.3/source/intercept/source/collect/SessionLibrary.cc
Examining data/bear-3.0.3/source/intercept/source/collect/SessionLibrary.h
Examining data/bear-3.0.3/source/intercept/source/collect/SessionWrapper.cc
Examining data/bear-3.0.3/source/intercept/source/collect/SessionWrapper.h
Examining data/bear-3.0.3/source/intercept/source/collect/main.cc
Examining data/bear-3.0.3/source/intercept/source/report/EventFactory.cc
Examining data/bear-3.0.3/source/intercept/source/report/EventFactory.h
Examining data/bear-3.0.3/source/intercept/source/report/InterceptClient.cc
Examining data/bear-3.0.3/source/intercept/source/report/InterceptClient.h
Examining data/bear-3.0.3/source/intercept/source/report/libexec/Array.h
Examining data/bear-3.0.3/source/intercept/source/report/libexec/Buffer.cc
Examining data/bear-3.0.3/source/intercept/source/report/libexec/Buffer.h
Examining data/bear-3.0.3/source/intercept/source/report/libexec/Environment.cc
Examining data/bear-3.0.3/source/intercept/source/report/libexec/Environment.h
Examining data/bear-3.0.3/source/intercept/source/report/libexec/Environments.h
Examining data/bear-3.0.3/source/intercept/source/report/libexec/Executor.cc
Examining data/bear-3.0.3/source/intercept/source/report/libexec/Executor.h
Examining data/bear-3.0.3/source/intercept/source/report/libexec/Linker.cc
Examining data/bear-3.0.3/source/intercept/source/report/libexec/Linker.h
Examining data/bear-3.0.3/source/intercept/source/report/libexec/Logger.cc
Examining data/bear-3.0.3/source/intercept/source/report/libexec/Logger.h
Examining data/bear-3.0.3/source/intercept/source/report/libexec/Paths.cc
Examining data/bear-3.0.3/source/intercept/source/report/libexec/Paths.h
Examining data/bear-3.0.3/source/intercept/source/report/libexec/Resolver.cc
Examining data/bear-3.0.3/source/intercept/source/report/libexec/Resolver.h
Examining data/bear-3.0.3/source/intercept/source/report/libexec/Session.cc
Examining data/bear-3.0.3/source/intercept/source/report/libexec/Session.h
Examining data/bear-3.0.3/source/intercept/source/report/libexec/lib.cc
Examining data/bear-3.0.3/source/intercept/source/report/libexec/std.cc
Examining data/bear-3.0.3/source/intercept/source/report/supervisor/Application.cc
Examining data/bear-3.0.3/source/intercept/source/report/supervisor/Application.h
Examining data/bear-3.0.3/source/intercept/source/report/supervisor/Flags.h
Examining data/bear-3.0.3/source/intercept/source/report/supervisor/main.cc
Examining data/bear-3.0.3/source/intercept/source/report/wrapper/Application.cc
Examining data/bear-3.0.3/source/intercept/source/report/wrapper/Application.h
Examining data/bear-3.0.3/source/intercept/source/report/wrapper/Environment.h
Examining data/bear-3.0.3/source/intercept/source/report/wrapper/main.cc
Examining data/bear-3.0.3/source/intercept/test/ReportTest.cc
Examining data/bear-3.0.3/source/intercept/test/ReporterTest.cc
Examining data/bear-3.0.3/source/intercept/test/SessionTest.cc
Examining data/bear-3.0.3/source/intercept/test/libexec/ArrayTest.cc
Examining data/bear-3.0.3/source/intercept/test/libexec/BufferTest.cc
Examining data/bear-3.0.3/source/intercept/test/libexec/ExecutorTest.cc
Examining data/bear-3.0.3/source/intercept/test/libexec/LinkerMock.h
Examining data/bear-3.0.3/source/intercept/test/libexec/PathsTest.cc
Examining data/bear-3.0.3/source/intercept/test/libexec/ResolverMock.h
Examining data/bear-3.0.3/source/intercept/test/libexec/SessionTest.cc
Examining data/bear-3.0.3/source/libflags/include/libflags/Flags.h
Examining data/bear-3.0.3/source/libflags/source/Flags.cc
Examining data/bear-3.0.3/source/libflags/test/FlagsTest.cc
Examining data/bear-3.0.3/source/libresult/include/libresult/Result.h
Examining data/bear-3.0.3/source/libresult/test/ResultTest.cc
Examining data/bear-3.0.3/source/libshell/include/libshell/Command.h
Examining data/bear-3.0.3/source/libshell/source/Command.cc
Examining data/bear-3.0.3/source/libshell/test/CommandTest.cc
Examining data/bear-3.0.3/source/libsys/include/libsys/Environment.h
Examining data/bear-3.0.3/source/libsys/include/libsys/Errors.h
Examining data/bear-3.0.3/source/libsys/include/libsys/Os.h
Examining data/bear-3.0.3/source/libsys/include/libsys/Path.h
Examining data/bear-3.0.3/source/libsys/include/libsys/Process.h
Examining data/bear-3.0.3/source/libsys/include/libsys/Signal.h
Examining data/bear-3.0.3/source/libsys/source/Errors.cc
Examining data/bear-3.0.3/source/libsys/source/Guard.cc
Examining data/bear-3.0.3/source/libsys/source/Guard.h
Examining data/bear-3.0.3/source/libsys/source/Os.cc
Examining data/bear-3.0.3/source/libsys/source/Path.cc
Examining data/bear-3.0.3/source/libsys/source/Process.cc
Examining data/bear-3.0.3/source/libsys/source/Signal.cc
Examining data/bear-3.0.3/source/libsys/test/EnvironmentTest.cc
Examining data/bear-3.0.3/source/libsys/test/ErrorsTest.cc
Examining data/bear-3.0.3/source/libsys/test/PathTest.cc
Examining data/bear-3.0.3/test/cases/intercept/preload/path_resolver/same_name_in_path.c
Examining data/bear-3.0.3/test/cases/intercept/preload/path_resolver/same_name_without_exec_flag.c
Examining data/bear-3.0.3/test/cases/intercept/preload/posix/execl/failure_prints_errno.c
Examining data/bear-3.0.3/test/cases/intercept/preload/posix/execl/success.c
Examining data/bear-3.0.3/test/cases/intercept/preload/posix/execle/failure_prints_errno.c
Examining data/bear-3.0.3/test/cases/intercept/preload/posix/execle/success.c
Examining data/bear-3.0.3/test/cases/intercept/preload/posix/execlp/failure_prints_errno.c
Examining data/bear-3.0.3/test/cases/intercept/preload/posix/execlp/success.c
Examining data/bear-3.0.3/test/cases/intercept/preload/posix/execlp/success_to_resolve.c
Examining data/bear-3.0.3/test/cases/intercept/preload/posix/exect/success.c
Examining data/bear-3.0.3/test/cases/intercept/preload/posix/execv/failure_prints_errno.c
Examining data/bear-3.0.3/test/cases/intercept/preload/posix/execv/success.c
Examining data/bear-3.0.3/test/cases/intercept/preload/posix/execve/failure_prints_errno.c
Examining data/bear-3.0.3/test/cases/intercept/preload/posix/execve/success.c
Examining data/bear-3.0.3/test/cases/intercept/preload/posix/execvp2/failure_prints_errno.c
Examining data/bear-3.0.3/test/cases/intercept/preload/posix/execvp2/success.c
Examining data/bear-3.0.3/test/cases/intercept/preload/posix/execvpe/failure_prints_errno.c
Examining data/bear-3.0.3/test/cases/intercept/preload/posix/execvpe/success.c
Examining data/bear-3.0.3/test/cases/intercept/preload/posix/execvpe/success_to_resolve.c
Examining data/bear-3.0.3/test/cases/intercept/preload/posix/exevp/failure_prints_errno.c
Examining data/bear-3.0.3/test/cases/intercept/preload/posix/exevp/success.c
Examining data/bear-3.0.3/test/cases/intercept/preload/posix/exevp/success_to_resolve.c
Examining data/bear-3.0.3/test/cases/intercept/preload/posix/no_exec.c
Examining data/bear-3.0.3/test/cases/intercept/preload/posix/popen/success.c
Examining data/bear-3.0.3/test/cases/intercept/preload/posix/posix_spawn/failure_prints_errno.c
Examining data/bear-3.0.3/test/cases/intercept/preload/posix/posix_spawn/success.c
Examining data/bear-3.0.3/test/cases/intercept/preload/posix/posix_spawnp/failure_prints_errno.c
Examining data/bear-3.0.3/test/cases/intercept/preload/posix/posix_spawnp/success.c
Examining data/bear-3.0.3/test/cases/intercept/preload/posix/posix_spawnp/success_to_resolve.c
Examining data/bear-3.0.3/test/cases/intercept/preload/posix/system/success.c
Examining data/bear-3.0.3/test/cases/intercept/preload/preload_append/io_calls.c

FINAL RESULTS:

data/bear-3.0.3/source/intercept/source/report/libexec/Resolver.cc:53:20:  [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 (0 == ::access(result_, X_OK)) {
data/bear-3.0.3/source/intercept/source/report/libexec/Resolver.cc:58:20:  [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 (0 == ::access(result_, F_OK)) {
data/bear-3.0.3/source/intercept/source/report/libexec/lib.cc:139:16:  [4] (shell) execv:
  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.
extern "C" int execv(const char* path, char* const argv[])
data/bear-3.0.3/source/intercept/source/report/libexec/lib.cc:166:16:  [4] (shell) execvp:
  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.
extern "C" int execvp(const char* file, char* const argv[])
data/bear-3.0.3/source/intercept/source/report/libexec/lib.cc:210:16:  [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.
extern "C" int execl(const char* path, const char* arg, ...)
data/bear-3.0.3/source/intercept/source/report/libexec/lib.cc:236:16:  [4] (shell) execlp:
  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.
extern "C" int execlp(const char* file, const char* arg, ...)
data/bear-3.0.3/source/intercept/source/report/libexec/lib.cc:263:16:  [4] (shell) execle:
  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.
extern "C" int execle(const char* path, const char* arg, ...)
data/bear-3.0.3/test/cases/intercept/preload/path_resolver/same_name_in_path.c:14:5:  [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(message);
data/bear-3.0.3/test/cases/intercept/preload/path_resolver/same_name_without_exec_flag.c:14:5:  [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(message);
data/bear-3.0.3/test/cases/intercept/preload/posix/execl/failure_prints_errno.c:23:15:  [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 (-1 == execl(program, program, "hi there", 0)) {
data/bear-3.0.3/test/cases/intercept/preload/posix/execl/success.c:17:12:  [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.
    return execl(program, program, "hi there", 0);
data/bear-3.0.3/test/cases/intercept/preload/posix/execle/failure_prints_errno.c:25:15:  [4] (shell) execle:
  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 (-1 == execle(program, program, "hi there", 0, environ)) {
data/bear-3.0.3/test/cases/intercept/preload/posix/execle/success.c:18:12:  [4] (shell) execle:
  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.
    return execle(program, program, "hi there", 0, envp);
data/bear-3.0.3/test/cases/intercept/preload/posix/execlp/failure_prints_errno.c:23:15:  [4] (shell) execlp:
  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 (-1 == execlp(program, program, "hi there", 0)) {
data/bear-3.0.3/test/cases/intercept/preload/posix/execlp/success.c:17:12:  [4] (shell) execlp:
  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.
    return execlp(program, program, "hi there", 0);
data/bear-3.0.3/test/cases/intercept/preload/posix/execlp/success_to_resolve.c:17:12:  [4] (shell) execlp:
  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.
    return execlp(program, program, "hi there", 0);
data/bear-3.0.3/test/cases/intercept/preload/posix/execv/failure_prints_errno.c:25:15:  [4] (shell) execv:
  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 (-1 == execv(program, argv)) {
data/bear-3.0.3/test/cases/intercept/preload/posix/execv/success.c:18:12:  [4] (shell) execv:
  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.
    return execv(program, argv);
data/bear-3.0.3/test/cases/intercept/preload/posix/exevp/failure_prints_errno.c:25:15:  [4] (shell) execvp:
  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 (-1 == execvp(program, argv)) {
data/bear-3.0.3/test/cases/intercept/preload/posix/exevp/success.c:18:12:  [4] (shell) execvp:
  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.
    return execvp(program, argv);
data/bear-3.0.3/test/cases/intercept/preload/posix/exevp/success_to_resolve.c:18:12:  [4] (shell) execvp:
  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.
    return execvp(program, argv);
data/bear-3.0.3/test/cases/intercept/preload/posix/popen/success.c:29:12:  [4] (shell) popen:
  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.
  output = popen ("more", "w");
data/bear-3.0.3/test/cases/intercept/preload/posix/system/success.c:13:5:  [4] (shell) system:
  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.
    system(command);
data/bear-3.0.3/source/intercept/source/report/libexec/Resolver.cc:49:26:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
        if (nullptr == ::realpath(file.begin(), result_)) {
data/bear-3.0.3/source/intercept/source/report/wrapper/main.cc:54:28:  [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.
        return (nullptr != getenv(wr::env::KEY_VERBOSE));
data/bear-3.0.3/source/intercept/source/report/libexec/Resolver.cc:77:17:  [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 search_path[search_path_length];
data/bear-3.0.3/source/intercept/source/report/libexec/Resolver.cc:98:17:  [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 candidate[PATH_MAX];
data/bear-3.0.3/source/intercept/source/report/libexec/Resolver.h:62:9:  [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 result_[PATH_MAX];
data/bear-3.0.3/source/intercept/source/report/libexec/lib.cc:80: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[BUFFER_SIZE];
data/bear-3.0.3/source/intercept/test/libexec/ArrayTest.cc:88:15:  [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.
        const char src[5] = "";
data/bear-3.0.3/source/intercept/test/libexec/ArrayTest.cc:89:9:  [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 dst[8] = {};
data/bear-3.0.3/source/intercept/test/libexec/ArrayTest.cc:97:15:  [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.
        const char src[5] = "this";
data/bear-3.0.3/source/intercept/test/libexec/ArrayTest.cc:98:9:  [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 dst[8] = {};
data/bear-3.0.3/source/intercept/test/libexec/ArrayTest.cc:108:15:  [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.
        const char src[5] = "this";
data/bear-3.0.3/source/intercept/test/libexec/ArrayTest.cc:109:9:  [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 dst[5] = {};
data/bear-3.0.3/source/intercept/test/libexec/ArrayTest.cc:119:15:  [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.
        const char src[5] = "this";
data/bear-3.0.3/source/intercept/test/libexec/ArrayTest.cc:120:9:  [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 dst[8] = {};
data/bear-3.0.3/source/intercept/test/libexec/BufferTest.cc:28:9:  [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[64];
data/bear-3.0.3/source/intercept/test/libexec/BufferTest.cc:36:9:  [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[64];
data/bear-3.0.3/source/intercept/test/libexec/BufferTest.cc:45:9:  [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[64];
data/bear-3.0.3/source/intercept/test/libexec/BufferTest.cc:54:9:  [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[64];
data/bear-3.0.3/source/intercept/test/libexec/BufferTest.cc:69:9:  [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[8];
data/bear-3.0.3/source/libsys/source/Errors.cc:36:9:  [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/bear-3.0.3/source/libsys/source/Errors.cc:40:9:  [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/bear-3.0.3/source/libsys/source/Os.cc:45: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 buffer[buffer_size];
data/bear-3.0.3/test/cases/intercept/preload/preload_append/io_calls.c:16:20:  [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* handle = fopen(file, "a");
data/bear-3.0.3/source/citnames/source/Output.cc:43:39:  [1] (buffer) mismatch:
  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.
            auto[end, nothing] = std::mismatch(directory.begin(), directory.end(), file.begin());
data/bear-3.0.3/source/citnames/source/semantic/Parsers.h:97:82:  [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.
        constexpr Instruction(const uint8_t count, const Match match, const bool equal) noexcept
data/bear-3.0.3/source/citnames/source/semantic/Parsers.h:101:31:  [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.
                , equal_sign_(equal ? 1u : 0u)
data/bear-3.0.3/source/citnames/source/semantic/Parsers.h:120:38:  [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.
        [[nodiscard]] constexpr bool equal() const {
data/bear-3.0.3/source/libsys/source/Guard.cc:82: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).
            const auto end = *it + std::strlen(*it);

ANALYSIS SUMMARY:

Hits = 51
Lines analyzed = 12906 in approximately 0.40 seconds (32260 lines/second)
Physical Source Lines of Code (SLOC) = 8390
Hits@level = [0]  18 [1]   5 [2]  21 [3]   2 [4]  23 [5]   0
Hits@level+ = [0+]  69 [1+]  51 [2+]  46 [3+]  25 [4+]  23 [5+]   0
Hits/KSLOC@level+ = [0+] 8.22408 [1+] 6.07867 [2+] 5.48272 [3+] 2.97974 [4+] 2.74136 [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.