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/rtags-2.38/src/Server.cpp
Examining data/rtags-2.38/src/FollowLocationJob.cpp
Examining data/rtags-2.38/src/QueryJob.h
Examining data/rtags-2.38/src/Location.cpp
Examining data/rtags-2.38/src/FixIt.h
Examining data/rtags-2.38/src/Symbol.h
Examining data/rtags-2.38/src/RTags.h
Examining data/rtags-2.38/src/Source.cpp
Examining data/rtags-2.38/src/FindSymbolsJob.cpp
Examining data/rtags-2.38/src/FollowLocationJob.h
Examining data/rtags-2.38/src/Project.h
Examining data/rtags-2.38/src/VisitFileMessage.h
Examining data/rtags-2.38/src/Match.h
Examining data/rtags-2.38/src/VisitFileResponseMessage.h
Examining data/rtags-2.38/src/ClangThread.cpp
Examining data/rtags-2.38/src/ReferencesJob.cpp
Examining data/rtags-2.38/src/ClassHierarchyJob.cpp
Examining data/rtags-2.38/src/ScanThread.h
Examining data/rtags-2.38/src/ListSymbolsJob.cpp
Examining data/rtags-2.38/src/Token.cpp
Examining data/rtags-2.38/src/DependenciesJob.h
Examining data/rtags-2.38/src/IndexerJob.h
Examining data/rtags-2.38/src/StatusJob.h
Examining data/rtags-2.38/src/QueryMessage.cpp
Examining data/rtags-2.38/src/ClangIndexer.h
Examining data/rtags-2.38/src/CompilerManager.h
Examining data/rtags-2.38/src/Project.cpp
Examining data/rtags-2.38/src/Diagnostic.h
Examining data/rtags-2.38/src/IncludeFileJob.cpp
Examining data/rtags-2.38/src/Preprocessor.cpp
Examining data/rtags-2.38/src/RTagsMessage.h
Examining data/rtags-2.38/src/IndexerJob.cpp
Examining data/rtags-2.38/src/Token.h
Examining data/rtags-2.38/src/IncludeFileJob.h
Examining data/rtags-2.38/src/rp.cpp
Examining data/rtags-2.38/src/ClangIndexer.cpp
Examining data/rtags-2.38/src/ReferencesJob.h
Examining data/rtags-2.38/src/TokensJob.h
Examining data/rtags-2.38/src/FileManager.h
Examining data/rtags-2.38/src/FileMap.h
Examining data/rtags-2.38/src/RTagsLogOutput.h
Examining data/rtags-2.38/src/JobScheduler.h
Examining data/rtags-2.38/src/clangtest.cpp
Examining data/rtags-2.38/src/Source.h
Examining data/rtags-2.38/src/StatusJob.cpp
Examining data/rtags-2.38/src/IndexDataMessage.h
Examining data/rtags-2.38/src/FindSymbolsJob.h
Examining data/rtags-2.38/src/CompletionThread.h
Examining data/rtags-2.38/src/Filter.h
Examining data/rtags-2.38/src/ClassHierarchyJob.h
Examining data/rtags-2.38/src/IndexMessage.cpp
Examining data/rtags-2.38/src/QueryJob.cpp
Examining data/rtags-2.38/src/IndexParseData.h
Examining data/rtags-2.38/src/Symbol.cpp
Examining data/rtags-2.38/src/SymbolInfoJob.h
Examining data/rtags-2.38/src/RClient.h
Examining data/rtags-2.38/src/rct/json/json.hpp
Examining data/rtags-2.38/src/rct/cJSON/cJSON.h
Examining data/rtags-2.38/src/rct/cJSON/test.c
Examining data/rtags-2.38/src/rct/cJSON/cJSON.c
Examining data/rtags-2.38/src/rct/rct/SHA256.h
Examining data/rtags-2.38/src/rct/rct/Date.cpp
Examining data/rtags-2.38/src/rct/rct/Date.h
Examining data/rtags-2.38/src/rct/rct/SocketClient.h
Examining data/rtags-2.38/src/rct/rct/Thread.h
Examining data/rtags-2.38/src/rct/rct/Message.h
Examining data/rtags-2.38/src/rct/rct/ResponseMessage.h
Examining data/rtags-2.38/src/rct/rct/Size.h
Examining data/rtags-2.38/src/rct/rct/Value.h
Examining data/rtags-2.38/src/rct/rct/FinishMessage.h
Examining data/rtags-2.38/src/rct/rct/Message.cpp
Examining data/rtags-2.38/src/rct/rct/FileSystemWatcher.cpp
Examining data/rtags-2.38/src/rct/rct/FileSystemWatcher.h
Examining data/rtags-2.38/src/rct/rct/FileSystemWatcher_kqueue.cpp
Examining data/rtags-2.38/src/rct/rct/LinkedList.h
Examining data/rtags-2.38/src/rct/rct/SharedMemory.cpp
Examining data/rtags-2.38/src/rct/rct/SignalSlot.h
Examining data/rtags-2.38/src/rct/rct/String.cpp
Examining data/rtags-2.38/src/rct/rct/Map.h
Examining data/rtags-2.38/src/rct/rct/Path.h
Examining data/rtags-2.38/src/rct/rct/FileSystemWatcher_win32.cpp
Examining data/rtags-2.38/src/rct/rct/FileSystemWatcher_fsevents.cpp
Examining data/rtags-2.38/src/rct/rct/StringTokenizer.h
Examining data/rtags-2.38/src/rct/rct/ThreadLocal.h
Examining data/rtags-2.38/src/rct/rct/ReadLocker.h
Examining data/rtags-2.38/src/rct/rct/Serializer.h
Examining data/rtags-2.38/src/rct/rct/CpuUsage.cpp
Examining data/rtags-2.38/src/rct/rct/WriteLocker.h
Examining data/rtags-2.38/src/rct/rct/MessageQueue.cpp
Examining data/rtags-2.38/src/rct/rct/MemoryMonitor.cpp
Examining data/rtags-2.38/src/rct/rct/Semaphore.h
Examining data/rtags-2.38/src/rct/rct/SHA256.cpp
Examining data/rtags-2.38/src/rct/rct/Set.h
Examining data/rtags-2.38/src/rct/rct/MemoryMappedFile.h
Examining data/rtags-2.38/src/rct/rct/CpuUsage.h
Examining data/rtags-2.38/src/rct/rct/ThreadPool.h
Examining data/rtags-2.38/src/rct/rct/SocketClient.cpp
Examining data/rtags-2.38/src/rct/rct/Timer.cpp
Examining data/rtags-2.38/src/rct/rct/Config.h
Examining data/rtags-2.38/src/rct/rct/StackBuffer.h
Examining data/rtags-2.38/src/rct/rct/Hash.h
Examining data/rtags-2.38/src/rct/rct/Apply.h
Examining data/rtags-2.38/src/rct/rct/Path.cpp
Examining data/rtags-2.38/src/rct/rct/Log.cpp
Examining data/rtags-2.38/src/rct/rct/AES256CBC.cpp
Examining data/rtags-2.38/src/rct/rct/Connection.cpp
Examining data/rtags-2.38/src/rct/rct/Buffer.h
Examining data/rtags-2.38/src/rct/rct/Process.cpp
Examining data/rtags-2.38/src/rct/rct/Config.cpp
Examining data/rtags-2.38/src/rct/rct/Rect.h
Examining data/rtags-2.38/src/rct/rct/String.h
Examining data/rtags-2.38/src/rct/rct/List.h
Examining data/rtags-2.38/src/rct/rct/EventLoop.cpp
Examining data/rtags-2.38/src/rct/rct/OnDestruction.h
Examining data/rtags-2.38/src/rct/rct/FileSystemWatcher_inotify.cpp
Examining data/rtags-2.38/src/rct/rct/Thread.cpp
Examining data/rtags-2.38/src/rct/rct/ReadWriteLock.cpp
Examining data/rtags-2.38/src/rct/rct/ThreadPool.cpp
Examining data/rtags-2.38/src/rct/rct/Semaphore.cpp
Examining data/rtags-2.38/src/rct/rct/Process_Windows.cpp
Examining data/rtags-2.38/src/rct/rct/AES256CBC.h
Examining data/rtags-2.38/src/rct/rct/Flags.h
Examining data/rtags-2.38/src/rct/rct/Value.cpp
Examining data/rtags-2.38/src/rct/rct/Plugin.h
Examining data/rtags-2.38/src/rct/rct/MemoryMappedFile.cpp
Examining data/rtags-2.38/src/rct/rct/Connection.h
Examining data/rtags-2.38/src/rct/rct/Timer.h
Examining data/rtags-2.38/src/rct/rct/SocketServer.h
Examining data/rtags-2.38/src/rct/rct/SharedMemory.h
Examining data/rtags-2.38/src/rct/rct/Rct.h
Examining data/rtags-2.38/src/rct/rct/QuitMessage.h
Examining data/rtags-2.38/src/rct/rct/Process.h
Examining data/rtags-2.38/src/rct/rct/EventLoop.h
Examining data/rtags-2.38/src/rct/rct/ReadWriteLock.h
Examining data/rtags-2.38/src/rct/rct/Plugin.cpp
Examining data/rtags-2.38/src/rct/rct/StopWatch.h
Examining data/rtags-2.38/src/rct/rct/DataFile.h
Examining data/rtags-2.38/src/rct/rct/Point.h
Examining data/rtags-2.38/src/rct/rct/WindowsUnicodeConversion.h
Examining data/rtags-2.38/src/rct/rct/EmbeddedLinkedList.h
Examining data/rtags-2.38/src/rct/rct/WindowsUnicodeConversion.cpp
Examining data/rtags-2.38/src/rct/rct/Log.h
Examining data/rtags-2.38/src/rct/rct/Buffer.cpp
Examining data/rtags-2.38/src/rct/rct/MessageQueue.h
Examining data/rtags-2.38/src/rct/rct/SocketServer.cpp
Examining data/rtags-2.38/src/rct/rct/MemoryMonitor.h
Examining data/rtags-2.38/src/rct/rct/Rct.cpp
Examining data/rtags-2.38/src/rct/tests/PathTestSuite.cpp
Examining data/rtags-2.38/src/rct/tests/main.cpp
Examining data/rtags-2.38/src/rct/tests/UdpIncludes.h
Examining data/rtags-2.38/src/rct/tests/MemoryMappedFileTestSuite.h
Examining data/rtags-2.38/src/rct/tests/StringTokenizerTestSuite.h
Examining data/rtags-2.38/src/rct/tests/DateTestSuite.cpp
Examining data/rtags-2.38/src/rct/tests/ProcessTestSuite.cpp
Examining data/rtags-2.38/src/rct/tests/PathTestSuite.h
Examining data/rtags-2.38/src/rct/tests/StringTokenizerTestSuite.cpp
Examining data/rtags-2.38/src/rct/tests/MemoryMappedFileTestSuite.cpp
Examining data/rtags-2.38/src/rct/tests/ChildProcess.cpp
Examining data/rtags-2.38/src/rct/tests/ProcessTestSuite.h
Examining data/rtags-2.38/src/rct/tests/SHA256TestSuite.h
Examining data/rtags-2.38/src/rct/tests/DateTestSuite.h
Examining data/rtags-2.38/src/rct/tests/SHA256TestSuite.cpp
Examining data/rtags-2.38/src/DependenciesJob.cpp
Examining data/rtags-2.38/src/SymbolInfoJob.cpp
Examining data/rtags-2.38/src/Sandbox.cpp
Examining data/rtags-2.38/src/RClient.cpp
Examining data/rtags-2.38/src/RTags.cpp
Examining data/rtags-2.38/src/ClangThread.h
Examining data/rtags-2.38/src/IndexParseData.cpp
Examining data/rtags-2.38/src/ListSymbolsJob.h
Examining data/rtags-2.38/src/IncludePathJob.h
Examining data/rtags-2.38/src/FindFileJob.h
Examining data/rtags-2.38/src/rc.cpp
Examining data/rtags-2.38/src/Preprocessor.h
Examining data/rtags-2.38/src/FindFileJob.cpp
Examining data/rtags-2.38/src/Server.h
Examining data/rtags-2.38/src/FileManager.cpp
Examining data/rtags-2.38/src/ScanThread.cpp
Examining data/rtags-2.38/src/LogOutputMessage.h
Examining data/rtags-2.38/src/QueryMessage.h
Examining data/rtags-2.38/src/IndexMessage.h
Examining data/rtags-2.38/src/IncludePathJob.cpp
Examining data/rtags-2.38/src/TokensJob.cpp
Examining data/rtags-2.38/src/JobScheduler.cpp
Examining data/rtags-2.38/src/Sandbox.h
Examining data/rtags-2.38/src/Location.h
Examining data/rtags-2.38/src/CompilerManager.cpp
Examining data/rtags-2.38/src/IncludeTypesInternal.h
Examining data/rtags-2.38/src/CommandLineParser.h
Examining data/rtags-2.38/src/CompletionThread.cpp
Examining data/rtags-2.38/src/rdm.cpp
Examining data/rtags-2.38/tests/automated/PrintIncludePathOutput/main.cpp
Examining data/rtags-2.38/tests/automated/PrintIncludePathOutput/a.hpp
Examining data/rtags-2.38/tests/automated/OneTU/main.cpp
Examining data/rtags-2.38/tests/automated/Completion/main.cpp
Examining data/rtags-2.38/tests/automated/AnonymousUnion/main.cpp
Examining data/rtags-2.38/tests/automated/AnonymousUnion/header.h
Examining data/rtags-2.38/tests/automated/ClassTemplatesMultipleTU/main.cpp
Examining data/rtags-2.38/tests/automated/ClassTemplatesMultipleTU/a.cpp
Examining data/rtags-2.38/tests/automated/ClassTemplatesMultipleTU/a.hpp
Examining data/rtags-2.38/tests/automated/FunctionPointerField/main.cpp
Examining data/rtags-2.38/tests/automated/ClassTemplates/main.cpp
Examining data/rtags-2.38/tests/automated/Parsing/mathutils_Vector_c_not.c
Examining data/rtags-2.38/tests/automated/FunctionTemplates/main.cpp
Examining data/rtags-2.38/tests/automated/ForwardDeclaration/contains_forward_declaration.hpp
Examining data/rtags-2.38/tests/automated/ForwardDeclaration/include.hpp
Examining data/rtags-2.38/tests/automated/ForwardDeclaration/main.cpp
Examining data/rtags-2.38/tests/automated/MetaPrograms/main.cpp
Examining data/rtags-2.38/tests/automated/InlineConstructorWrongTarget/main.cpp
Examining data/rtags-2.38/tests/automated/sbroot_test/include/defs.hpp
Examining data/rtags-2.38/tests/automated/sbroot_test/include/module_interface.hpp
Examining data/rtags-2.38/tests/automated/sbroot_test/main/main.cpp
Examining data/rtags-2.38/tests/automated/sbroot_test/sub1/export/sub1.hpp
Examining data/rtags-2.38/tests/automated/sbroot_test/sub1/export/sub1_spec.hpp
Examining data/rtags-2.38/tests/automated/sbroot_test/sub1/sub1.cpp
Examining data/rtags-2.38/tests/automated/MultipleTU/main.cpp
Examining data/rtags-2.38/tests/automated/MultipleTU/a.cpp
Examining data/rtags-2.38/tests/automated/MultipleTU/a.hpp
Examining data/rtags-2.38/tests/manual/objc/Car.h
Examining data/rtags-2.38/tests/manual/sharedptr/main.cpp
Examining data/rtags-2.38/tests/manual/construc/main.cpp
Examining data/rtags-2.38/tests/manual/construc/Foo.cpp
Examining data/rtags-2.38/tests/manual/construc/Foo.h
Examining data/rtags-2.38/tests/manual/inlin/main.cpp
Examining data/rtags-2.38/tests/manual/inlin/header.h
Examining data/rtags-2.38/tests/manual/inlin/foo.cpp
Examining data/rtags-2.38/tests/manual/inlin/foo.h
Examining data/rtags-2.38/tests/manual/staticmember/main.cpp
Examining data/rtags-2.38/tests/manual/staticmember/test.h
Examining data/rtags-2.38/tests/manual/staticmember/test.cpp
Examining data/rtags-2.38/tests/manual/pch/main.cpp
Examining data/rtags-2.38/tests/manual/pch/test.c
Examining data/rtags-2.38/tests/manual/pch/foo.cpp
Examining data/rtags-2.38/tests/manual/pch/stable.h
Examining data/rtags-2.38/tests/manual/pch/foo.h
Examining data/rtags-2.38/tests/manual/nestedClassConstructorCallUgleHack/main.cpp
Examining data/rtags-2.38/tests/manual/dtlcpptest/main.cpp
Examining data/rtags-2.38/tests/manual/simpleref/main.cpp
Examining data/rtags-2.38/tests/manual/simpleref/c.cpp
Examining data/rtags-2.38/tests/manual/simpleref/c.h
Examining data/rtags-2.38/tests/manual/simple/main.cpp
Examining data/rtags-2.38/tests/manual/copyconstructorbug/main.cpp

FINAL RESULTS:

data/rtags-2.38/src/rct/rct/Path.cpp:648:23:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
        const int w = readlink(constData(), buf, sizeof(buf) - 1);
data/rtags-2.38/src/rct/rct/Rct.cpp:105:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        chmod(path.constData(), static_cast<mode_t>(perm));
data/rtags-2.38/src/Source.cpp:287: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(fullPath.constData(), R_OK | X_OK)) // can't execute it
data/rtags-2.38/src/Source.cpp:368:54:  [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 (!isWrapper(p.fileName()) && !access(p.constData(), R_OK | X_OK)) {
data/rtags-2.38/src/rct/cJSON/cJSON.c:642:9:  [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(ptr, entries[i]);
data/rtags-2.38/src/rct/cJSON/cJSON.c:800:9:  [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(ptr, names[i]);
data/rtags-2.38/src/rct/cJSON/cJSON.c:805:9:  [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(ptr, entries[i]);
data/rtags-2.38/src/rct/json/json.hpp:3815:23:  [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.
                (std::snprintf)(cs, 9, "<U+%.4X>", static_cast<unsigned char>(c));
data/rtags-2.38/src/rct/json/json.hpp:6608:23:  [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.
                (std::snprintf)(cr, sizeof(cr), "%.2hhX", static_cast<unsigned char>(element_type));
data/rtags-2.38/src/rct/json/json.hpp:8265:15:  [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.
        (std::snprintf)(cr, 3, "%.2hhX", static_cast<unsigned char>(current));
data/rtags-2.38/src/rct/json/json.hpp:11146:43:  [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.
                                    (std::snprintf)(string_buffer.data() + bytes, 7, "\\u%04x",
data/rtags-2.38/src/rct/json/json.hpp:11152:43:  [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.
                                    (std::snprintf)(string_buffer.data() + bytes, 13, "\\u%04x\\u%04x",
data/rtags-2.38/src/rct/json/json.hpp:11190:35:  [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.
                            (std::snprintf)(&sn[0], sn.size(), "%.2X", byte);
data/rtags-2.38/src/rct/json/json.hpp:11271:27:  [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.
                    (std::snprintf)(&sn[0], sn.size(), "%.2X", static_cast<uint8_t>(s.back()));
data/rtags-2.38/src/rct/json/json.hpp:11390:36:  [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.
        std::ptrdiff_t len = (std::snprintf)(number_buffer.data(), number_buffer.size(), "%.*g", d, x);
data/rtags-2.38/src/rct/rct/CpuUsage.cpp:49:26:  [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.
    uint32_t user, nice, system, idle;
data/rtags-2.38/src/rct/rct/CpuUsage.cpp:50:9:  [4] (buffer) fscanf:
  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 (fscanf(f, "%s\t%u\t%u\t%u\t%u\t", cpu, &user, &nice, &system, &idle) != 5) {
data/rtags-2.38/src/rct/rct/CpuUsage.cpp:50:63:  [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.
    if (fscanf(f, "%s\t%u\t%u\t%u\t%u\t", cpu, &user, &nice, &system, &idle) != 5) {
data/rtags-2.38/src/rct/rct/CpuUsage.cpp:92:40:  [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.
        size_t sysctl_entry_name_len = snprintf(NULL, 0, cpu_usage_sysctl_name_fmt, cpu_id) + 1;
data/rtags-2.38/src/rct/rct/CpuUsage.cpp:94: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.
        snprintf(mib_name, sysctl_entry_name_len, cpu_usage_sysctl_name_fmt, cpu_id);
data/rtags-2.38/src/rct/rct/Log.cpp:150:13:  [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.
    int n = vsnprintf(buf, Size, format, v);
data/rtags-2.38/src/rct/rct/Log.cpp:158:13:  [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.
        n = vsnprintf(buf, n + 1, format, v2);
data/rtags-2.38/src/rct/rct/MemoryMappedFile.cpp:103:26:  [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.
                         access,
data/rtags-2.38/src/rct/rct/Path.cpp:463:5:  [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(buf, path.constData());
data/rtags-2.38/src/rct/rct/Path.h:124:48:  [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.
    inline bool isExecutable() const { return !access(constData(), X_OK); }
data/rtags-2.38/src/rct/rct/Process.cpp:331: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 (ok && !access(ret.nullTerminated(), R_OK | X_OK))
data/rtags-2.38/src/rct/rct/Process.cpp:454:21:  [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.
            ret = ::execv(cmd.nullTerminated(), const_cast<char *const *>(args));
data/rtags-2.38/src/rct/rct/Rct.cpp:271: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.
    sscanf(str, "%*d %*s %*s %s %*s %*d", paren);
data/rtags-2.38/src/rct/rct/String.h:835:28:  [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.
        const size_t w = ::snprintf(buf, sizeof(buf), format, num);
data/rtags-2.38/src/rct/rct/String.h:858:28:  [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.
        const size_t w = ::snprintf(buf, sizeof(buf), format, num);
data/rtags-2.38/src/rct/rct/String.h:869:28:  [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.
        const size_t w = ::snprintf(buf, sizeof(buf), format, num);
data/rtags-2.38/src/rct/rct/String.h:905:31:  [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.
        const size_t size = ::vsnprintf(buffer, StaticBufSize, format, args);
data/rtags-2.38/src/rct/rct/String.h:912:15:  [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(&ret[0], size+1, format, copy);
data/rtags-2.38/src/ClangIndexer.cpp:351:9:  [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.
    if (getenv("RDM_DEBUG_INDEXERMESSAGE"))
data/rtags-2.38/src/ClangIndexer.cpp:2294:17:  [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.
            if (getenv("RTAGS_INDEXERJOB_DUMP_TO_FILE")) {
data/rtags-2.38/src/CommandLineParser.h:83:9:  [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.
    if (getenv("RTAGS_DUMP_UNUSED")) {
data/rtags-2.38/src/CommandLineParser.h:109:39:  [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.
            const char * configPath = getenv("XDG_CONFIG_HOME");
data/rtags-2.38/src/Project.cpp:948:37:  [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.
    static const char *fileFilter = getenv("RTAGS_FILE_FILTER");
data/rtags-2.38/src/RClient.cpp:425:30:  [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.
    const char *runtimeDir = getenv("XDG_RUNTIME_DIR");
data/rtags-2.38/src/Server.cpp:295:23:  [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 *listenFds = getenv("LISTEN_FDS");
data/rtags-2.38/src/Server.cpp:2317:9:  [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.
    if (getenv("LISTEN_FDS")) {
data/rtags-2.38/src/rct/rct/Config.cpp:76:25:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        const int ret = getopt_long(args.size(), a, shortOpts.constData(), options, &idx);
data/rtags-2.38/src/rct/rct/FileSystemWatcher_inotify.cpp:167:32:  [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.
    static const bool dumpFS = getenv("RTAGS_DUMP_INOTIFY") && !strcmp(getenv("RTAGS_DUMP_INOTIFY"), "1");
data/rtags-2.38/src/rct/rct/FileSystemWatcher_inotify.cpp:167:72:  [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.
    static const bool dumpFS = getenv("RTAGS_DUMP_INOTIFY") && !strcmp(getenv("RTAGS_DUMP_INOTIFY"), "1");
data/rtags-2.38/src/rct/rct/Log.cpp:267:9:  [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.
    if (getenv("RCT_LOG_TIME"))
data/rtags-2.38/src/rct/rct/Path.cpp:311:13:  [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 (realpath(constData(), buffer)) {
data/rtags-2.38/src/rct/rct/Path.cpp:718:31:  [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.
    Path ret = Path::resolved(getenv("HOME"));
data/rtags-2.38/src/rct/rct/Path.cpp:735:17:  [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 *pwd = getenv("PWD");
data/rtags-2.38/src/rct/rct/Process.cpp:324:16:  [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.
        path = getenv("PATH");
data/rtags-2.38/src/rct/rct/Process.cpp:445:37:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
        if (!mChRoot.isEmpty() && ::chroot(mChRoot.constData())) {
data/rtags-2.38/src/rct/rct/Rct.cpp:212:24:  [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.
    const char *path = getenv("PATH");
data/rtags-2.38/src/rct/rct/Rct.h:242:24:  [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.
    const char *path = getenv("PATH");
data/rtags-2.38/src/rct/rct/Serializer.h:170:34:  [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.
        static const bool dump = getenv("RCT_SERIALIZER_DUMP");
data/rtags-2.38/src/rdm.cpp:237:31:  [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.
    const char * runtimeDir = getenv("XDG_RUNTIME_DIR");
data/rtags-2.38/src/rdm.cpp:245:24:  [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.
        if ((tempDir = getenv(tmp))) {
data/rtags-2.38/src/rdm.cpp:276:33:  [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.
         const char * dataDir = getenv("XDG_CACHE_HOME");
data/rtags-2.38/src/rp.cpp:82:27:  [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.
    if (const char *env = getenv("TMPDIR")) { // should really always be set by rdm
data/rtags-2.38/src/ClangIndexer.cpp:178: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).
        FILE *f = fopen((String("/tmp/stop_") + mSourceFile.fileName()).constData(), "r+");
data/rtags-2.38/src/ClangIndexer.cpp:461:35:  [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 inline void tokenize(const char *buf, int start,
data/rtags-2.38/src/ClangIndexer.cpp:518: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 buf[1024 * 512];
data/rtags-2.38/src/ClangIndexer.cpp: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(buf + pos, name, len);
data/rtags-2.38/src/ClangIndexer.cpp:965:15:  [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 *f = fopen(location.path().constData(), "r");
data/rtags-2.38/src/ClangIndexer.cpp:2096:23:  [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 *f = fopen((unitRoot + "/info").constData(), "w");
data/rtags-2.38/src/ClangIndexer.cpp:2111:23:  [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 *f = fopen((unitRoot + "/unsaved").constData(), "w");
data/rtags-2.38/src/ClangIndexer.cpp:2205:15:  [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 *f = fopen(sourceRoot.constData(), "w");
data/rtags-2.38/src/ClangIndexer.cpp:2295: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 buf[1024];
data/rtags-2.38/src/ClangIndexer.cpp:2297:27:  [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 *f = fopen(buf, "w");
data/rtags-2.38/src/FileMap.h:114: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(&mCount, mPointer, sizeof(uint32_t));
data/rtags-2.38/src/FileMap.h:115: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(&mValuesOffset, mPointer + sizeof(uint32_t), sizeof(uint32_t));
data/rtags-2.38/src/FileMap.h:124:24:  [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).
        eintrwrap(mFD, open(path.constData(), O_RDONLY));
data/rtags-2.38/src/FileMap.h:257:13:  [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(out.data() + sizeof(uint32_t), &valuesOffset, sizeof(valuesOffset));
data/rtags-2.38/src/FileMap.h:281:18:  [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(path.constData(), O_RDWR|O_CREAT, 0644);
data/rtags-2.38/src/FileMap.h:285:18:  [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(path.constData(), O_RDWR|O_CREAT, 0644);
data/rtags-2.38/src/FileMap.h:336:13:  [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((void*)&t, base + (index * size), FixedSize<T>::value);
data/rtags-2.38/src/IndexerJob.cpp:177: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(&ret[0], &size, sizeof(size));
data/rtags-2.38/src/Location.cpp:71: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(ret.data() + w, ctx.constData(), ctx.size());
data/rtags-2.38/src/Location.h:231: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 buf[8];
data/rtags-2.38/src/Location.h:232: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(buf, &line, sizeof(line));
data/rtags-2.38/src/Location.h:233: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(buf + 4, &col, sizeof(col));
data/rtags-2.38/src/Project.cpp:310: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).
    if (!file.open(DataFile::Read)) {
data/rtags-2.38/src/Project.cpp:374: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).
    if (!file.open(DataFile::Read)) {
data/rtags-2.38/src/Project.cpp:914:19:  [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 (!file.open(DataFile::Write)) {
data/rtags-2.38/src/Project.cpp:926:19:  [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 (!file.open(DataFile::Write)) {
data/rtags-2.38/src/RClient.cpp:470:24:  [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).
            mTcpPort = atoi(mTcpHost.constData() + colon + 1);
data/rtags-2.38/src/RClient.cpp:679:31:  [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).
            mConnectTimeout = atoi(value.constData());
data/rtags-2.38/src/RClient.cpp:692:24:  [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).
            mTimeout = atoi(value.constData());
data/rtags-2.38/src/RClient.cpp:713:25:  [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).
                bytes = atoi(value.constData() + colon + 1);
data/rtags-2.38/src/RClient.cpp:720: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).
                f = fopen(value.constData() + colon + 1, "r");
data/rtags-2.38/src/RClient.cpp:768:24:  [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).
                line = atoi(value.constData() + match.position(2));
data/rtags-2.38/src/RClient.cpp:769:23:  [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).
                col = atoi(value.constData() + match.position(3));
data/rtags-2.38/src/RClient.cpp:770:25:  [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).
                line2 = atoi(value.constData() + match.position(4));
data/rtags-2.38/src/RClient.cpp:771:24:  [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).
                col2 = atoi(value.constData() + match.position(5));
data/rtags-2.38/src/RClient.cpp:781:28:  [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).
                    line = atoi(value.constData() + match.position(2));
data/rtags-2.38/src/RClient.cpp:782:27:  [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).
                    col = atoi(value.constData() + match.position(3));
data/rtags-2.38/src/RClient.cpp:1012:21:  [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[1024];
data/rtags-2.38/src/RClient.cpp:1135: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 buf[16384];
data/rtags-2.38/src/RClient.cpp:1246: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 path[PATH_MAX];
data/rtags-2.38/src/RClient.cpp:1311:31:  [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).
            const int depth = atoi(value.constData());
data/rtags-2.38/src/RTags.cpp:55: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 bufHex[10];
data/rtags-2.38/src/RTags.cpp:67:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(bufHex,"%X",c);
data/rtags-2.38/src/RTags.cpp:142: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 buf[PATH_MAX + sizeof(dirent) + 1];
data/rtags-2.38/src/RTags.cpp:147: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(buf, path.constData(), path.size() + 1);
data/rtags-2.38/src/RTags.cpp:150:13:  [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(buf + slash + 1, fn.constData(), len);
data/rtags-2.38/src/RTags.cpp:177:21:  [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(buf + slash + 1, entry->d_name, l);
data/rtags-2.38/src/RTags.cpp:203: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 buf[1024];
data/rtags-2.38/src/RTags.cpp:224:23:  [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).
        if (FILE *f = fopen(buf, "r")) {
data/rtags-2.38/src/RTags.cpp:340:23:  [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 *f = fopen((configStatus + "config.status").constData(), "r");
data/rtags-2.38/src/RTags.cpp:342: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 line[1024];
data/rtags-2.38/src/RTags.cpp:377:23:  [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 *f = fopen((cmakeCache + "Makefile").constData(), "r");
data/rtags-2.38/src/RTags.cpp:380: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).
                f = fopen((cmakeCache + "build.ninja").constData(), "r");
data/rtags-2.38/src/RTags.cpp:384: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 line[1024];
data/rtags-2.38/src/RTags.cpp:1141: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 buf[128];
data/rtags-2.38/src/RTags.cpp:1146: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 buf[128];
data/rtags-2.38/src/Server.cpp:297:23:  [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).
        auto numFDs = atoi(listenFds);
data/rtags-2.38/src/Server.cpp:1522:23:  [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 *f = fopen((mOptions.dataDir + ".currentProject").constData(), "w");
data/rtags-2.38/src/Server.cpp:2164:21:  [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 (fileIdsFile.open(DataFile::Read)) {
data/rtags-2.38/src/Server.cpp:2209:31:  [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).
                if (FILE *f = fopen((file + "/project").constData(), "r")) {
data/rtags-2.38/src/Server.cpp:2285:22:  [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 (!fileIdsFile.open(DataFile::Write)) {
data/rtags-2.38/src/Source.cpp:297: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 path[PATH_MAX];
data/rtags-2.38/src/Source.cpp:298:5:  [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(path, "/tmp/rtags-compiler-check-XXXXXX");
data/rtags-2.38/src/Source.cpp:299:20:  [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).
    const int fd = mkstemp(path);
data/rtags-2.38/src/rct/cJSON/cJSON.c:74: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(copy, str, len);
data/rtags-2.38/src/rct/cJSON/cJSON.c:168:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(str, "%d", item->valueint);
data/rtags-2.38/src/rct/cJSON/cJSON.c:173:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(str, "%.0f", d);
data/rtags-2.38/src/rct/cJSON/cJSON.c:175:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(str, "%e", d);
data/rtags-2.38/src/rct/cJSON/cJSON.c:177:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(str, "%f", d);
data/rtags-2.38/src/rct/cJSON/cJSON.c:229:23:  [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 const unsigned char firstByteMark[7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC };
data/rtags-2.38/src/rct/cJSON/cJSON.c:391:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(ptr2, "u%04x", token);
data/rtags-2.38/src/rct/cJSON/cJSON.c:601: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(out, "[]");
data/rtags-2.38/src/rct/cJSON/cJSON.c:867: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(ref, item, sizeof(cJSON));
data/rtags-2.38/src/rct/cJSON/test.c:46:10:  [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 *f=fopen(filename,"rb");fseek(f,0,SEEK_END);long len=ftell(f);fseek(f,0,SEEK_SET);
data/rtags-2.38/src/rct/cJSON/test.c:75: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.
	const char *strings[7]={"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"};
data/rtags-2.38/src/rct/json/json.hpp:3814: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 cs[9];
data/rtags-2.38/src/rct/json/json.hpp:6607: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 cr[3];
data/rtags-2.38/src/rct/json/json.hpp:8208:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(&result, vec.data(), sizeof(NumberType));
data/rtags-2.38/src/rct/json/json.hpp:8264: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 cr[3];
data/rtags-2.38/src/rct/json/json.hpp:9607:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(vec.data(), &n, sizeof(NumberType));
data/rtags-2.38/src/rct/json/json.hpp:9638:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(&result, &x, sizeof(x));
data/rtags-2.38/src/rct/json/json.hpp:9730:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(&target, &source, sizeof(Source));
data/rtags-2.38/src/rct/rct/AES256CBC.cpp:37:14:  [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 iv[32];
data/rtags-2.38/src/rct/rct/AES256CBC.cpp:78: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(outkey, hash.constData(), 32);
data/rtags-2.38/src/rct/rct/AES256CBC.cpp:79: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(outiv, hash.constData() + 32, 32);
data/rtags-2.38/src/rct/rct/AES256CBC.cpp:85:14:  [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 outkey[32];
data/rtags-2.38/src/rct/rct/Buffer.cpp:9:15:  [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* f = fopen(filename.constData(), "r");
data/rtags-2.38/src/rct/rct/Buffer.h:129:17:  [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(out + read, buf.data() + mBufferOffset, remaining);
data/rtags-2.38/src/rct/rct/Buffer.h:139:13:  [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(out + read, buf.data() + mBufferOffset, bufferSize);
data/rtags-2.38/src/rct/rct/Config.cpp:22: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).
        FILE *f = fopen(rcFiles.at(i).constData(), "r");
data/rtags-2.38/src/rct/rct/Config.cpp:24: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 line[1024];
data/rtags-2.38/src/rct/rct/Connection.cpp:130:26:  [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 b[sizeof(uint32_t)];
data/rtags-2.38/src/rct/rct/CpuUsage.cpp:45:15:  [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* f = fopen("/proc/stat", "r");
data/rtags-2.38/src/rct/rct/CpuUsage.cpp:48: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 cpu[20];
data/rtags-2.38/src/rct/rct/DataFile.h:51:10:  [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).
    bool open(Mode mode)
data/rtags-2.38/src/rct/rct/DataFile.h:58:29:  [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).
            const int ret = mkstemp(&mTempFilePath[0]);
data/rtags-2.38/src/rct/rct/FileSystemWatcher_kqueue.cpp:169:17:  [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 ret = ::open(path.nullTerminated(), O_RDONLY);
data/rtags-2.38/src/rct/rct/Flags.h:96: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 buf[16];
data/rtags-2.38/src/rct/rct/Flags.h:215: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 buf[16];
data/rtags-2.38/src/rct/rct/Log.cpp:50: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 buf[32];
data/rtags-2.38/src/rct/rct/Log.cpp:296: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).
        FILE *f = fopen(file.constData(), flags & Append ? "a" : "w");
data/rtags-2.38/src/rct/rct/Log.h:177: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 buf[16];
data/rtags-2.38/src/rct/rct/Log.h:194:21:  [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(str.data() + outLength, data, len);
data/rtags-2.38/src/rct/rct/Log.h:198:21:  [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(str.data() + outLength + 1, data, len);
data/rtags-2.38/src/rct/rct/Log.h:201:21:  [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(str.data() + outLength, data, len);
data/rtags-2.38/src/rct/rct/MemoryMappedFile.cpp:35:5:  [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).
    open(f_file, f_access, f_lock);
data/rtags-2.38/src/rct/rct/MemoryMappedFile.cpp:79:24:  [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).
bool MemoryMappedFile::open(const Path &f_filename, AccessType f_access,
data/rtags-2.38/src/rct/rct/MemoryMappedFile.cpp:177: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).
    mFd = ::open(f_filename.nullTerminated(), openFlags);
data/rtags-2.38/src/rct/rct/MemoryMappedFile.h:103:10:  [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).
    bool open(const Path &filename, AccessType access=READ_ONLY,
data/rtags-2.38/src/rct/rct/MemoryMonitor.cpp:30: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[BufferSize];
data/rtags-2.38/src/rct/rct/MemoryMonitor.cpp:55:18:  [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* file = fopen(("/proc/" + String::number(pid) + "/smaps").constData(), "r");
data/rtags-2.38/src/rct/rct/MessageQueue.cpp:60: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 mtext[4096];
data/rtags-2.38/src/rct/rct/MessageQueue.cpp:84:13:  [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(buf.data(), msgbuf.mtext, sz);
data/rtags-2.38/src/rct/rct/Path.cpp:307: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[PATH_MAX + 2];
data/rtags-2.38/src/rct/rct/Path.cpp:462: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 buf[PATH_MAX + 2];
data/rtags-2.38/src/rct/rct/Path.cpp:527: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 buf[PATH_MAX];
data/rtags-2.38/src/rct/rct/Path.cpp:576: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 buf[PATH_MAX + sizeof(dirent) + 1];
data/rtags-2.38/src/rct/rct/Path.cpp:647: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 buf[PATH_MAX];
data/rtags-2.38/src/rct/rct/Path.cpp:668:15:  [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 *f = fopen(constData(), "r");
data/rtags-2.38/src/rct/rct/Path.cpp:693:15:  [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 *f = fopen(constData(), "r");
data/rtags-2.38/src/rct/rct/Path.cpp:703:15:  [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 *f = fopen(path.constData(), mode == Overwrite ? "w" : "a");
data/rtags-2.38/src/rct/rct/Path.cpp:734: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 buf[PATH_MAX];
data/rtags-2.38/src/rct/rct/Path.h:206:23:  [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).
        if (FILE *f = fopen(constData(), "a")) {
data/rtags-2.38/src/rct/rct/Process.cpp:377:35:  [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 **args = new const char *[arguments.size() + 2];
data/rtags-2.38/src/rct/rct/Process.cpp:390:34:  [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 **env = new const char *[environment.size() + 1];
data/rtags-2.38/src/rct/rct/Process.cpp:791: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 buf[BufSize];
data/rtags-2.38/src/rct/rct/Process.cpp:821:13:  [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(buffer.data() + sz, buf, r);
data/rtags-2.38/src/rct/rct/Rct.cpp:56:15:  [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 *f = fopen(path.nullTerminated(), "r");
data/rtags-2.38/src/rct/rct/Rct.cpp:87:15:  [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* f = fopen(path.nullTerminated(), "w");
data/rtags-2.38/src/rct/rct/Rct.cpp:94:13:  [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).
        f = fopen(path.nullTerminated(), "w");
data/rtags-2.38/src/rct/rct/Rct.cpp:112: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 bufbuf[16384];
data/rtags-2.38/src/rct/rct/Rct.cpp:223: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 buf[32];
data/rtags-2.38/src/rct/rct/Rct.cpp:233: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 buf[PATH_MAX];
data/rtags-2.38/src/rct/rct/Rct.cpp:244: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 buf[PATH_MAX];
data/rtags-2.38/src/rct/rct/Rct.cpp:270: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 paren[1024];
data/rtags-2.38/src/rct/rct/Rct.cpp:287: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 buf[1024];
data/rtags-2.38/src/rct/rct/Rct.cpp:291: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(buf, paren, l + 1);
data/rtags-2.38/src/rct/rct/Rct.cpp:317: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 frame[1024];
data/rtags-2.38/src/rct/rct/Rct.cpp:584: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 buf[1024];
data/rtags-2.38/src/rct/rct/Rct.h:173: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 buffer[7];
data/rtags-2.38/src/rct/rct/SHA256.cpp:22:14:  [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 hash[SHA256_DIGEST_LENGTH];
data/rtags-2.38/src/rct/rct/Serializer.h:156:17:  [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(target, mData + mPos, len);
data/rtags-2.38/src/rct/rct/Serializer.h:181:17:  [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(target, mData + mPos, len);
data/rtags-2.38/src/rct/rct/Serializer.h:251:22:  [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 buf[sizeof(T)];                           \
data/rtags-2.38/src/rct/rct/Serializer.h:263:26:  [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 buf[sizeof(T)];                       \
data/rtags-2.38/src/rct/rct/SocketClient.cpp:127:21:  [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(&newaddr->sin_addr, &inaddr4, sizeof(struct in_addr));
data/rtags-2.38/src/rct/rct/SocketClient.cpp:136:21:  [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(&newaddr->sin6_addr, &inaddr6, sizeof(struct in6_addr));
data/rtags-2.38/src/rct/rct/SocketClient.cpp:527: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(mWriteBuffer.end(), data + total, rem);
data/rtags-2.38/src/rct/rct/String.cpp:25: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[BufferSize];
data/rtags-2.38/src/rct/rct/String.cpp:71: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[BufferSize];
data/rtags-2.38/src/rct/rct/String.cpp:100: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 szBuf[100];
data/rtags-2.38/src/rct/rct/String.cpp:133:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(szBuf + lIndex, "%02X ", (unsigned short)ucTmp);
data/rtags-2.38/src/rct/rct/String.h:792: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 buf[32];
data/rtags-2.38/src/rct/rct/String.h:834: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 buf[32];
data/rtags-2.38/src/rct/rct/String.h:857: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 buf[32];
data/rtags-2.38/src/rct/rct/String.h:864: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 format[32];
data/rtags-2.38/src/rct/rct/String.h:868: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 buf[32];
data/rtags-2.38/src/rct/rct/String.h:904: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[StaticBufSize];
data/rtags-2.38/src/rct/rct/Value.cpp:159: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 buf[128];
data/rtags-2.38/src/rct/rct/Value.cpp:164: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 buf[128];
data/rtags-2.38/src/rct/rct/Value.cpp:241: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 buf[128];
data/rtags-2.38/src/rct/rct/Value.cpp:246: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 buf[128];
data/rtags-2.38/src/rct/rct/Value.h:205: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 stringBuf[sizeof(String)];
data/rtags-2.38/src/rct/rct/Value.h:206: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 mapBuf[sizeof(Map<String, Value>)];
data/rtags-2.38/src/rct/rct/Value.h:207: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 listBuf[sizeof(List<Value>)];
data/rtags-2.38/src/rct/rct/Value.h:208: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 customBuf[sizeof(std::shared_ptr<Custom>)];
data/rtags-2.38/src/rct/rct/WindowsUnicodeConversion.cpp:15:9:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
        MultiByteToWideChar(CP_UTF8, 0,
data/rtags-2.38/src/rct/rct/WindowsUnicodeConversion.cpp:22:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar(CP_UTF8, 0,
data/rtags-2.38/src/rct/tests/ChildProcess.cpp:151: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 buf[BUFFER_SIZE];
data/rtags-2.38/src/rct/tests/ChildProcess.cpp:217: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[PATH_MAX];
data/rtags-2.38/src/rct/tests/MemoryMappedFileTestSuite.cpp:40:26:  [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).
    CPPUNIT_ASSERT(!mmf2.open("fileDoesNotExist.txt"));
data/rtags-2.38/src/rct/tests/MemoryMappedFileTestSuite.cpp:232: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(charPtr+11, "changed ", 8);
data/rtags-2.38/src/rct/tests/PathTestSuite.cpp:30: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 oldCwd[_MAX_PATH];
data/rtags-2.38/src/rct/tests/PathTestSuite.cpp:110:25:  [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 *subdir_file = fopen("temp_subdir/file.txt", "w");
data/rtags-2.38/src/rct/tests/PathTestSuite.cpp:117: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).
    subdir_file = fopen("temp_subdir/file.txt", "w");
data/rtags-2.38/src/rct/tests/PathTestSuite.cpp:130: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).
    subdir_file = fopen("temp_subdir3/anotherSubDir/file.txt", "w");
data/rtags-2.38/src/rct/tests/PathTestSuite.cpp:139: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).
    subdir_file = fopen("temp_subdir3/anotherSubdir/file.txt", "w");
data/rtags-2.38/src/rct/tests/PathTestSuite.cpp:152: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).
    subdir_file = fopen("temp_subdir4/sub/subfile", "w");
data/rtags-2.38/src/rct/tests/ProcessTestSuite.cpp:58: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 buf[BUFFER_SIZE];
data/rtags-2.38/src/rdm.cpp:43: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 crashDumpTempFilePath[PATH_MAX];
data/rtags-2.38/src/rdm.cpp:44: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 crashDumpFilePath[PATH_MAX - 4];
data/rtags-2.38/src/rdm.cpp:267:5:  [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(crashDumpFilePath, "crash.dump");
data/rtags-2.38/src/rdm.cpp:453:38:  [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).
            serverOpts.testTimeout = atoi(value.constData());
data/rtags-2.38/src/rdm.cpp:459:36:  [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).
            serverOpts.pollTimer = atoi(value.constData());
data/rtags-2.38/src/rdm.cpp:499:25:  [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 large = atoi(value.constData());
data/rtags-2.38/src/rdm.cpp:527:45:  [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).
            serverOpts.rpVisitFileTimeout = atoi(value.constData());
data/rtags-2.38/src/rdm.cpp:535:52:  [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).
            serverOpts.rpIndexDataMessageTimeout = atoi(value.constData());
data/rtags-2.38/src/rdm.cpp:541:43:  [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).
            serverOpts.rpConnectTimeout = atoi(value.constData());
data/rtags-2.38/src/rdm.cpp:547:44:  [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).
            serverOpts.rpConnectAttempts = atoi(value.constData());
data/rtags-2.38/src/rdm.cpp:566:38:  [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).
            serverOpts.daemonCount = atoi(value.constData());
data/rtags-2.38/src/rdm.cpp:587:40:  [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).
            serverOpts.maxCrashCount = atoi(value.constData());
data/rtags-2.38/src/rdm.cpp:600: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).
            serverOpts.completionCacheSize = atoi(value.constData());
data/rtags-2.38/src/rdm.cpp:637:51:  [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).
            serverOpts.maxFileMapScopeCacheSize = atoi(value.constData());
data/rtags-2.38/src/rdm.cpp:678:33:  [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).
            inactivityTimeout = atoi(value.constData()); // seconds.
data/rtags-2.38/src/rdm.cpp:711:34:  [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).
            serverOpts.tcpPort = atoi(value.constData());
data/rtags-2.38/src/rdm.cpp:832: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 buf[1024];
data/rtags-2.38/src/rdm.cpp:835: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(buf, "/tmp/rtags-test-XXXXXX");
data/rtags-2.38/src/rdm.cpp:845:9:  [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(buf, "/tmp/rtags-sock-XXXXXX");
data/rtags-2.38/src/rdm.cpp:846:24:  [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).
        const int fd = mkstemp(buf);
data/rtags-2.38/src/rdm.cpp:864:25:  [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).
        crashDumpFile = fopen(crashDumpTempFilePath, "w");
data/rtags-2.38/tests/manual/dtlcpptest/main.cpp:60:22:  [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).
            offset = atoi(argv[i]);
data/rtags-2.38/tests/manual/dtlcpptest/main.cpp:71:23:  [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 *f = fopen(files[i]->c_str(), "r");
data/rtags-2.38/tests/manual/dtlcpptest/main.cpp:77: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 buf[1024];
data/rtags-2.38/src/ClangIndexer.cpp:240:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(500 * 1000);
data/rtags-2.38/src/ClangIndexer.cpp:379:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(50000);
data/rtags-2.38/src/ClangIndexer.cpp:529: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).
        const int len = strlen(name);
data/rtags-2.38/src/ClangIndexer.cpp:977:37:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        char ch = static_cast<char>(fgetc(f));
data/rtags-2.38/src/ClangIndexer.cpp:1073: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).
                const int len = strlen(data);
data/rtags-2.38/src/ClangIndexer.cpp:1585: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).
    c.symbolLength = cstr ? strlen(cstr) : 0;
data/rtags-2.38/src/ClangIndexer.cpp:2413: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).
        return strlen(cstr);
data/rtags-2.38/src/CompletionThread.cpp:390: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 (strlen(cstr)) {
data/rtags-2.38/src/FileMap.h:192:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return read<Key>(keysSegment(), index);
data/rtags-2.38/src/FileMap.h:198:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return read<Value>(valuesSegment(), index);
data/rtags-2.38/src/FileMap.h:332:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    inline T read(const char *base, uint32_t index) const
data/rtags-2.38/src/IncludeFileJob.cpp:92: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).
                    const int tail = strlen(path.fileName()) + 1;
data/rtags-2.38/src/Location.h:342:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    s.read(reinterpret_cast<char*>(&t), sizeof(uint64_t));
data/rtags-2.38/src/RClient.cpp:1254:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(path, value.constData(), value.size());
data/rtags-2.38/src/RTags.cpp:164:35:  [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 int l = strlen(entry->d_name) + 1;
data/rtags-2.38/src/RTags.cpp:226:27:  [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 len = strlen(buf);
data/rtags-2.38/src/RTags.cpp:268: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).
            const int len = strlen(entries[i].name);
data/rtags-2.38/src/RTags.cpp:632:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(100000);
data/rtags-2.38/src/Source.cpp:306: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).
    const ssize_t len = strlen(contents);
data/rtags-2.38/src/Source.cpp:693:39:  [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 size_t argLen = strlen(argument);                 \
data/rtags-2.38/src/Symbol.cpp:142:20:  [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 (key && strlen(key))
data/rtags-2.38/src/rct/cJSON/cJSON.c:71: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(str) + 1;
data/rtags-2.38/src/rct/cJSON/cJSON.c:615:20:  [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(ret) + 2 + (fmt ? 1 : 0);
data/rtags-2.38/src/rct/cJSON/cJSON.c:643: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).
        ptr += strlen(entries[i]);
data/rtags-2.38/src/rct/cJSON/cJSON.c:765:20:  [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(ret) + strlen(str) + 2 + (fmt ? 2 + depth : 0);
data/rtags-2.38/src/rct/cJSON/cJSON.c:765:34:  [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(ret) + strlen(str) + 2 + (fmt ? 2 + depth : 0);
data/rtags-2.38/src/rct/cJSON/cJSON.c:801: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).
        ptr += strlen(names[i]);
data/rtags-2.38/src/rct/cJSON/cJSON.c:806: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).
        ptr += strlen(entries[i]);
data/rtags-2.38/src/rct/json/json.hpp:2384:30:  [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).
                        std::strlen(reinterpret_cast<const char*>(b))) {}
data/rtags-2.38/src/rct/rct/Buffer.h:117:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    size_t read(void *outPtr, size_t size)
data/rtags-2.38/src/rct/rct/Buffer.h:129:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                memcpy(out + read, buf.data() + mBufferOffset, remaining);
data/rtags-2.38/src/rct/rct/Buffer.h:139:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            memcpy(out + read, buf.data() + mBufferOffset, bufferSize);
data/rtags-2.38/src/rct/rct/Buffer.h:146:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return read;
data/rtags-2.38/src/rct/rct/Config.cpp:25:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            int read;
data/rtags-2.38/src/rct/rct/Config.h:203: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).
        const int len = strlen(name);
data/rtags-2.38/src/rct/rct/Connection.cpp:133:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            const int read = mBuffers.read(b, 4);
data/rtags-2.38/src/rct/rct/Connection.cpp:137:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            available -= read;
data/rtags-2.38/src/rct/rct/Connection.cpp:144:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        const int read = mBuffers.read(buffer.buffer(), mPendingRead);
data/rtags-2.38/src/rct/rct/Connection.cpp:148:78:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        std::shared_ptr<Message> message = Message::create(mVersion, buffer, read, &error);
data/rtags-2.38/src/rct/rct/Connection.cpp:159:94:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ::error() << "Unable to create message from data" << error.type << error.text << read;
data/rtags-2.38/src/rct/rct/CpuUsage.cpp:145:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(SLEEP_TIME);
data/rtags-2.38/src/rct/rct/EventLoop.cpp:839:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    eintrwrap(e, ::read(mEventPipe[0], &q, 1));
data/rtags-2.38/src/rct/rct/FileSystemWatcher_inotify.cpp:179:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        const int read = ::read(mFd, buf, s);
data/rtags-2.38/src/rct/rct/FileSystemWatcher_inotify.cpp:181:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while (idx < read) {
data/rtags-2.38/src/rct/rct/Log.h:186:23:  [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(data);
data/rtags-2.38/src/rct/rct/Path.cpp:315: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).
                const int len = strlen(buffer);
data/rtags-2.38/src/rct/rct/Path.cpp:538:43:  [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 size_t len = path_len + strlen(p->d_name) + 2;
data/rtags-2.38/src/rct/rct/Process.cpp:150:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        r = ::read(sProcessPipe[0], &ch, sizeof(char));
data/rtags-2.38/src/rct/rct/Process.cpp:487:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            eintrwrap(err, ::read(closePipe[0], &c, 1));
data/rtags-2.38/src/rct/rct/Process.cpp:795:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        eintrwrap(r, ::read(fd, buf, BufSize));
data/rtags-2.38/src/rct/rct/Process_Windows.cpp:353:20:  [1] (buffer) wcslen:
  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).
        readPtr += wcslen(readPtr);  // readPtr now points at entry terminating \0
data/rtags-2.38/src/rct/rct/Rct.cpp:117: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).
        int len = strlen(ret);
data/rtags-2.38/src/rct/rct/Rct.cpp:284: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).
        l = strlen(paren);
data/rtags-2.38/src/rct/rct/Rct.cpp:414:17:  [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).
    host.resize(strlen(host.constData()));
data/rtags-2.38/src/rct/rct/Rct.cpp:522: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).
    out.resize(strlen(out.constData()));
data/rtags-2.38/src/rct/rct/Rct.cpp:551:24:  [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).
            out.resize(strlen(out.constData()));
data/rtags-2.38/src/rct/rct/Rct.cpp:557:24:  [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).
            out.resize(strlen(out.constData()));
data/rtags-2.38/src/rct/rct/Rct.cpp:605:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(10000);
data/rtags-2.38/src/rct/rct/Rct.h:143: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).
        output(escaped, strlen(escaped));
data/rtags-2.38/src/rct/rct/Serializer.h:168:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int read(void *target, int len)
data/rtags-2.38/src/rct/rct/Serializer.h:201:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read(&byte, 1);
data/rtags-2.38/src/rct/rct/Serializer.h:265:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            s.read(buf, sizeof(buf));                               \
data/rtags-2.38/src/rct/rct/Serializer.h:489:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        s.read(string.data(), size);
data/rtags-2.38/src/rct/rct/Serializer.h:508:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        s.read(path.data(), size);
data/rtags-2.38/src/rct/rct/SocketClient.cpp:247:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(addr_un.sun_path, path.constData(), sizeof(addr_un.sun_path));
data/rtags-2.38/src/rct/rct/SocketClient.cpp:377: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).
        name.resize(strlen(name.constData()));
data/rtags-2.38/src/rct/rct/SocketClient.cpp:383: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).
        name.resize(strlen(name.constData()));
data/rtags-2.38/src/rct/rct/SocketClient.cpp:562:15:  [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).
    ip.resize(strlen(ip.constData()));
data/rtags-2.38/src/rct/rct/SocketClient.cpp:626:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                eintrwrap(e, ::read(mFd, mReadBuffer.end(), rem));
data/rtags-2.38/src/rct/rct/SocketServer.cpp:129:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(addr_un.sun_path, p.constData(), sizeof(addr_un.sun_path));
data/rtags-2.38/src/rct/rct/String.h:33:23:  [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(ch);
data/rtags-2.38/src/rct/rct/String.h:80:23:  [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(ch);
data/rtags-2.38/src/rct/rct/String.h:406:23:  [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(str);
data/rtags-2.38/src/rct/rct/String.h:433: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).
            len = strlen(str);
data/rtags-2.38/src/rct/rct/String.h:576: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).
            len = strlen(str);
data/rtags-2.38/src/rct/rct/String.h:594: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).
            len = strlen(str);
data/rtags-2.38/src/rct/rct/StringTokenizer.h:192:9:  [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(query.begin(), query.end(), c.begin()))
data/rtags-2.38/src/rct/rct/StringTokenizer.h:195:9:  [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(query_lower.begin(), query_lower.end(), c_lower.begin()))
data/rtags-2.38/src/rct/rct/Value.h:82: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).
            len = strlen(str);
data/rtags-2.38/src/rct/rct/WindowsUnicodeConversion.cpp:10:34:  [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 std::size_t inSize = ::strlen(f_utf8String);
data/rtags-2.38/src/rct/tests/ProcessTestSuite.cpp:106:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(100 * 1000);
data/rtags-2.38/src/rdm.cpp:420:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(crashDumpFilePath, value.constData(), sizeof(crashDumpFilePath) - 1);
data/rtags-2.38/src/rdm.cpp:857: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(crashDumpFilePath)) {

ANALYSIS SUMMARY:

Hits = 343
Lines analyzed = 68046 in approximately 1.56 seconds (43604 lines/second)
Physical Source Lines of Code (SLOC) = 51202
Hits@level = [0] 129 [1]  83 [2] 203 [3]  24 [4]  31 [5]   2
Hits@level+ = [0+] 472 [1+] 343 [2+] 260 [3+]  57 [4+]  33 [5+]   2
Hits/KSLOC@level+ = [0+] 9.21839 [1+] 6.69896 [2+] 5.07793 [3+] 1.11324 [4+] 0.644506 [5+] 0.039061
Dot directories skipped = 1 (--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.