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/znc-1.8.2/third_party/Csocket/Csocket.h
Examining data/znc-1.8.2/third_party/Csocket/Csocket.cc
Examining data/znc-1.8.2/test/integration/tests/scripting.cpp
Examining data/znc-1.8.2/test/integration/tests/modules.cpp
Examining data/znc-1.8.2/test/integration/tests/core.cpp
Examining data/znc-1.8.2/test/integration/framework/znctest.h
Examining data/znc-1.8.2/test/integration/framework/znctest.cpp
Examining data/znc-1.8.2/test/integration/framework/main.cpp
Examining data/znc-1.8.2/test/integration/framework/base.h
Examining data/znc-1.8.2/test/integration/framework/base.cpp
Examining data/znc-1.8.2/test/integration/autoconf-all.cpp
Examining data/znc-1.8.2/test/UtilsTest.cpp
Examining data/znc-1.8.2/test/UserTest.cpp
Examining data/znc-1.8.2/test/ThreadTest.cpp
Examining data/znc-1.8.2/test/StringTest.cpp
Examining data/znc-1.8.2/test/QueryTest.cpp
Examining data/znc-1.8.2/test/NickTest.cpp
Examining data/znc-1.8.2/test/NetworkTest.cpp
Examining data/znc-1.8.2/test/ModulesTest.cpp
Examining data/znc-1.8.2/test/MessageTest.cpp
Examining data/znc-1.8.2/test/IRCTest.h
Examining data/znc-1.8.2/test/IRCSockTest.cpp
Examining data/znc-1.8.2/test/ConfigTest.cpp
Examining data/znc-1.8.2/test/ClientTest.cpp
Examining data/znc-1.8.2/test/BufferTest.cpp
Examining data/znc-1.8.2/src/version.cpp
Examining data/znc-1.8.2/src/znc.cpp
Examining data/znc-1.8.2/src/main.cpp
Examining data/znc-1.8.2/src/ZNCString.cpp
Examining data/znc-1.8.2/src/ZNCDebug.cpp
Examining data/znc-1.8.2/src/WebModules.cpp
Examining data/znc-1.8.2/src/Utils.cpp
Examining data/znc-1.8.2/src/User.cpp
Examining data/znc-1.8.2/src/Translation.cpp
Examining data/znc-1.8.2/src/Threads.cpp
Examining data/znc-1.8.2/src/Template.cpp
Examining data/znc-1.8.2/src/Socket.cpp
Examining data/znc-1.8.2/src/Server.cpp
Examining data/znc-1.8.2/src/SSLVerifyHost.cpp
Examining data/znc-1.8.2/src/SHA256.cpp
Examining data/znc-1.8.2/src/Query.cpp
Examining data/znc-1.8.2/src/Nick.cpp
Examining data/znc-1.8.2/src/Modules.cpp
Examining data/znc-1.8.2/src/Message.cpp
Examining data/znc-1.8.2/src/MD5.cpp
Examining data/znc-1.8.2/src/Listener.cpp
Examining data/znc-1.8.2/src/IRCSock.cpp
Examining data/znc-1.8.2/src/IRCNetwork.cpp
Examining data/znc-1.8.2/src/HTTPSock.cpp
Examining data/znc-1.8.2/src/FileUtils.cpp
Examining data/znc-1.8.2/src/Config.cpp
Examining data/znc-1.8.2/src/ClientCommand.cpp
Examining data/znc-1.8.2/src/Client.cpp
Examining data/znc-1.8.2/src/Chan.cpp
Examining data/znc-1.8.2/src/Buffer.cpp
Examining data/znc-1.8.2/modules/webadmin.cpp
Examining data/znc-1.8.2/modules/watch.cpp
Examining data/znc-1.8.2/modules/stripcontrols.cpp
Examining data/znc-1.8.2/modules/stickychan.cpp
Examining data/znc-1.8.2/modules/simple_away.cpp
Examining data/znc-1.8.2/modules/shell.cpp
Examining data/znc-1.8.2/modules/send_raw.cpp
Examining data/znc-1.8.2/modules/schat.cpp
Examining data/znc-1.8.2/modules/savebuff.cpp
Examining data/znc-1.8.2/modules/sasl.cpp
Examining data/znc-1.8.2/modules/samplewebapi.cpp
Examining data/znc-1.8.2/modules/sample.cpp
Examining data/znc-1.8.2/modules/route_replies.cpp
Examining data/znc-1.8.2/modules/raw.cpp
Examining data/znc-1.8.2/modules/perform.cpp
Examining data/znc-1.8.2/modules/notify_connect.cpp
Examining data/znc-1.8.2/modules/notes.cpp
Examining data/znc-1.8.2/modules/nickserv.cpp
Examining data/znc-1.8.2/modules/modules_online.cpp
Examining data/znc-1.8.2/modules/modtcl.cpp
Examining data/znc-1.8.2/modules/modpython/ret.h
Examining data/znc-1.8.2/modules/modpython/module.h
Examining data/znc-1.8.2/modules/modpython.cpp
Examining data/znc-1.8.2/modules/modperl/pstring.h
Examining data/znc-1.8.2/modules/modperl/module.h
Examining data/znc-1.8.2/modules/modperl.cpp
Examining data/znc-1.8.2/modules/missingmotd.cpp
Examining data/znc-1.8.2/modules/log.cpp
Examining data/znc-1.8.2/modules/listsockets.cpp
Examining data/znc-1.8.2/modules/lastseen.cpp
Examining data/znc-1.8.2/modules/kickrejoin.cpp
Examining data/znc-1.8.2/modules/keepnick.cpp
Examining data/znc-1.8.2/modules/imapauth.cpp
Examining data/znc-1.8.2/modules/identfile.cpp
Examining data/znc-1.8.2/modules/flooddetach.cpp
Examining data/znc-1.8.2/modules/fail2ban.cpp
Examining data/znc-1.8.2/modules/disconkick.cpp
Examining data/znc-1.8.2/modules/dcc.cpp
Examining data/znc-1.8.2/modules/cyrusauth.cpp
Examining data/znc-1.8.2/modules/ctcpflood.cpp
Examining data/znc-1.8.2/modules/crypt.cpp
Examining data/znc-1.8.2/modules/controlpanel.cpp
Examining data/znc-1.8.2/modules/clientnotify.cpp
Examining data/znc-1.8.2/modules/clearbufferonmsg.cpp
Examining data/znc-1.8.2/modules/chansaver.cpp
Examining data/znc-1.8.2/modules/certauth.cpp
Examining data/znc-1.8.2/modules/cert.cpp
Examining data/znc-1.8.2/modules/buffextras.cpp
Examining data/znc-1.8.2/modules/bouncedcc.cpp
Examining data/znc-1.8.2/modules/blockuser.cpp
Examining data/znc-1.8.2/modules/block_motd.cpp
Examining data/znc-1.8.2/modules/awaystore.cpp
Examining data/znc-1.8.2/modules/awaynick.cpp
Examining data/znc-1.8.2/modules/autovoice.cpp
Examining data/znc-1.8.2/modules/autoreply.cpp
Examining data/znc-1.8.2/modules/autoop.cpp
Examining data/znc-1.8.2/modules/autocycle.cpp
Examining data/znc-1.8.2/modules/autoattach.cpp
Examining data/znc-1.8.2/modules/alias.cpp
Examining data/znc-1.8.2/modules/adminlog.cpp
Examining data/znc-1.8.2/modules/admindebug.cpp
Examining data/znc-1.8.2/include/znc/znc.h
Examining data/znc-1.8.2/include/znc/version.h
Examining data/znc-1.8.2/include/znc/main.h
Examining data/znc-1.8.2/include/znc/defines.h
Examining data/znc-1.8.2/include/znc/ZNCString.h
Examining data/znc-1.8.2/include/znc/ZNCDebug.h
Examining data/znc-1.8.2/include/znc/WebModules.h
Examining data/znc-1.8.2/include/znc/Utils.h
Examining data/znc-1.8.2/include/znc/User.h
Examining data/znc-1.8.2/include/znc/Translation.h
Examining data/znc-1.8.2/include/znc/Threads.h
Examining data/znc-1.8.2/include/znc/Template.h
Examining data/znc-1.8.2/include/znc/Socket.h
Examining data/znc-1.8.2/include/znc/Server.h
Examining data/znc-1.8.2/include/znc/SSLVerifyHost.h
Examining data/znc-1.8.2/include/znc/SHA256.h
Examining data/znc-1.8.2/include/znc/Query.h
Examining data/znc-1.8.2/include/znc/Nick.h
Examining data/znc-1.8.2/include/znc/Modules.h
Examining data/znc-1.8.2/include/znc/Message.h
Examining data/znc-1.8.2/include/znc/MD5.h
Examining data/znc-1.8.2/include/znc/Listener.h
Examining data/znc-1.8.2/include/znc/IRCSock.h
Examining data/znc-1.8.2/include/znc/IRCNetwork.h
Examining data/znc-1.8.2/include/znc/HTTPSock.h
Examining data/znc-1.8.2/include/znc/FileUtils.h
Examining data/znc-1.8.2/include/znc/ExecSock.h
Examining data/znc-1.8.2/include/znc/Config.h
Examining data/znc-1.8.2/include/znc/Client.h
Examining data/znc-1.8.2/include/znc/Chan.h
Examining data/znc-1.8.2/include/znc/Buffer.h
Examining data/znc-1.8.2/cmake/perl_check/main.cpp
Examining data/znc-1.8.2/cmake/cxx11check/main.cpp
Examining data/znc-1.8.2/cmake/TestWindowsFSeek.cpp
Examining data/znc-1.8.2/cmake/TestFileOffsetBits.cpp
Examining data/znc-1.8.2/debian/contrib/znc-backlog/backlog.cpp
Examining data/znc-1.8.2/debian/contrib/znc-push/push.cpp

FINAL RESULTS:

data/znc-1.8.2/src/FileUtils.cpp:303:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    return (chmod(sFile.c_str(), mode) == 0);
data/znc-1.8.2/modules/savebuff.cpp:80:27:  [4] (misc) getpass:
  This function is obsolete and not portable. It was in SUSv2 but removed by
  POSIX.2. What it does exactly varies considerably between systems,
  particularly in where its prompt is displayed and where it gets its data
  (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations
  overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do
  exactly what you want. If you continue to use it, or write your own, be
  sure to zero the password as soon as possible to avoid leaving the
  cleartext password visible in the process' address space.
            char* pPass = getpass("Enter pass for savebuff: ");
data/znc-1.8.2/src/FileUtils.cpp:659:9:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        execvp("sh", (char* const*)pArgv);
data/znc-1.8.2/src/Utils.cpp:231:12:  [4] (misc) getpass:
  This function is obsolete and not portable. It was in SUSv2 but removed by
  POSIX.2. What it does exactly varies considerably between systems,
  particularly in where its prompt is displayed and where it gets its data
  (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations
  overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do
  exactly what you want. If you continue to use it, or write your own, be
  sure to zero the password as soon as possible to avoid leaving the
  cleartext password visible in the process' address space.
    return getpass("");
data/znc-1.8.2/src/Utils.cpp:331:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stdout, BOLD BLU "[" RED " ** " BLU "]" DFL NORM " %s\n",
data/znc-1.8.2/src/Utils.cpp:340:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stdout, BOLD BLU "[" YEL " ?? " BLU "]" DFL NORM " %s: ",
data/znc-1.8.2/src/Utils.cpp:350:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stdout,
data/znc-1.8.2/src/Utils.cpp:354:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stdout, BOLD BLU "[" YEL " ** " BLU "]" DFL NORM " %s\n",
data/znc-1.8.2/src/Utils.cpp:364:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stdout, BOLD BLU "[ .. " BLU "]" DFL NORM " %s...\n",
data/znc-1.8.2/src/Utils.cpp:375:17:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                fprintf(stdout,
data/znc-1.8.2/src/Utils.cpp:379:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stdout, BOLD BLU "[" RED " !! " BLU "]" DFL NORM BOLD RED
data/znc-1.8.2/src/main.cpp:560:17:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                execvp(args[0], args);
data/znc-1.8.2/third_party/Csocket/Csocket.cc:622:6:  [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( "/dev/urandom", R_OK ) == 0 )
data/znc-1.8.2/third_party/Csocket/Csocket.cc:626:11:  [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.
	else if( access( "/dev/random", R_OK ) == 0 )
data/znc-1.8.2/third_party/Csocket/Csocket.cc:1842:28:  [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( m_sPemFile.empty() || access( m_sPemFile.c_str(), R_OK ) != 0 )
data/znc-1.8.2/third_party/Csocket/Csocket.cc:1849:30:  [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( ! m_sKeyFile.empty() && access( m_sKeyFile.c_str(), R_OK ) != 0 )
data/znc-1.8.2/modules/cyrusauth.cpp:35:67:  [3] (buffer) getopt:
  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.
        m_cbs[0].proc = reinterpret_cast<int (*)()>(CSASLAuthMod::getopt);
data/znc-1.8.2/modules/cyrusauth.cpp:216:16:  [3] (buffer) getopt:
  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.
    static int getopt(void* context, const char* plugin_name,
data/znc-1.8.2/src/FileUtils.cpp:512: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* home = getenv("HOME");
data/znc-1.8.2/src/Modules.cpp:108:26:  [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* szDebugTimer = getenv("ZNC_DEBUG_TIMER");
data/znc-1.8.2/src/Utils.cpp:107:28:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* pLogName = getenv("LOGNAME");
data/znc-1.8.2/src/Utils.cpp:114: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.
    if (!pHostName) pHostName = getenv("HOSTNAME");
data/znc-1.8.2/src/Utils.cpp:456:19:  [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* oldTZ = getenv("TZ");
data/znc-1.8.2/src/Utils.cpp:487:19:  [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* oldTZ = getenv("TZ");
data/znc-1.8.2/src/main.cpp:121:19:  [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.
static inline int getopt_long(int argc, char* const argv[],
data/znc-1.8.2/src/main.cpp:124:12:  [3] (buffer) getopt:
  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.
    return getopt(argc, argv, optstring);
data/znc-1.8.2/src/main.cpp:291:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(seed);
data/znc-1.8.2/src/main.cpp:316:20:  [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.
    while ((iArg = getopt_long(argc, argv, "hvnrcspd:Df", g_LongOpts,
data/znc-1.8.2/src/znc.cpp:972:28:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        char* szNoLaunch = getenv("ZNC_NO_LAUNCH_AFTER_MAKECONF");
data/znc-1.8.2/test/UtilsTest.cpp:89:19:  [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* oldTZ = getenv("TZ");
data/znc-1.8.2/debian/contrib/znc-push/push.cpp:250:4:  [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 iso8601 [20];
data/znc-1.8.2/include/znc/MD5.h:26: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 m_szMD5[33];
data/znc-1.8.2/include/znc/SHA256.h:52: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 block[2 * SHA256_BLOCK_SIZE];
data/znc-1.8.2/include/znc/ZNCString.h:42: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 base64_table[256] = {
data/znc-1.8.2/modules/adminlog.cpp:124: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[23];
data/znc-1.8.2/modules/awaystore.cpp:153: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 szFormat[64];
data/znc-1.8.2/modules/controlpanel.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 __place_holder[N];
data/znc-1.8.2/modules/dcc.cpp:495: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[4096];
data/znc-1.8.2/modules/identfile.cpp:114: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/znc-1.8.2/modules/lastseen.cpp:41: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/znc-1.8.2/modules/modperl/pstring.h:38: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(c2, c, len);
data/znc-1.8.2/modules/shell.cpp:44: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).
        SetWSock(open("/dev/null", O_WRONLY));
data/znc-1.8.2/src/FileUtils.cpp:263: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[8192];
data/znc-1.8.2/src/FileUtils.cpp:361: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).
    m_iFD = open(m_sLongName.c_str(), iFlags, iMode);
data/znc-1.8.2/src/FileUtils.cpp:385: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 buff[4096];
data/znc-1.8.2/src/FileUtils.cpp:423: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 buff[4096];
data/znc-1.8.2/src/HTTPSock.cpp:279: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 szBuf[4096];
data/znc-1.8.2/src/HTTPSock.cpp:428: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[4096];
data/znc-1.8.2/src/HTTPSock.cpp:446: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 szBufIn[8192];
data/znc-1.8.2/src/HTTPSock.cpp:447: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 szBufOut[8192];
data/znc-1.8.2/src/MD5.cpp:194: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((void*)(ctx->buffer + left), (void*)input, fill);
data/znc-1.8.2/src/MD5.cpp:208: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((void*)(ctx->buffer + left), (void*)input, length);
data/znc-1.8.2/src/MD5.cpp:242: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 md5sum[16];
data/znc-1.8.2/src/MD5.cpp:248:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(m_szMD5,
data/znc-1.8.2/src/SHA256.cpp:170: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(&ctx->block[ctx->len], message, rem_len);
data/znc-1.8.2/src/SHA256.cpp:187: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(ctx->block, &shifted_message[block_nb << 6], rem_len);
data/znc-1.8.2/src/SSLVerifyHost.cpp:376: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 ip4[4] = {};
data/znc-1.8.2/src/SSLVerifyHost.cpp:377: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 ip6[16] = {};
data/znc-1.8.2/src/Socket.cpp:173: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 buf[256 / 8];
data/znc-1.8.2/src/Socket.cpp:301: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 s[INET6_ADDRSTRLEN] = {};
data/znc-1.8.2/src/Socket.cpp:318: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 s[INET6_ADDRSTRLEN] = {};
data/znc-1.8.2/src/Utils.cpp:143: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[16];
data/znc-1.8.2/src/Utils.cpp:152:9:  [2] (buffer) sprintf:
  Does not 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, "%lu.%lu.%lu.%lu", ip[0], ip[1], ip[2], ip[3]);
data/znc-1.8.2/src/Utils.cpp:160: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 ip[4][4];
data/znc-1.8.2/src/Utils.cpp:168:11:  [2] (integer) atol:
  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).
    ret = atol(ip[0]) << 24;
data/znc-1.8.2/src/Utils.cpp:169:12:  [2] (integer) atol:
  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).
    ret += atol(ip[1]) << 16;
data/znc-1.8.2/src/Utils.cpp:170:12:  [2] (integer) atol:
  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).
    ret += atol(ip[2]) << 8;
data/znc-1.8.2/src/Utils.cpp:171:12:  [2] (integer) atol:
  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).
    ret += atol(ip[3]) << 0;
data/znc-1.8.2/src/Utils.cpp:300: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[1024];
data/znc-1.8.2/src/Utils.cpp:447: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 s[30] = {};  // should have at least 26 bytes
data/znc-1.8.2/src/Utils.cpp:477: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 s[1024] = {};
data/znc-1.8.2/src/Utils.cpp:578: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 sTime[20] = {};
data/znc-1.8.2/src/Utils.cpp:930: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(m_ivec, sIvec.data(), 8);
data/znc-1.8.2/src/ZNCDebug.cpp:50: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 sTime[20] = {};
data/znc-1.8.2/src/ZNCDebug.cpp:52: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 sUsec[7] = {};
data/znc-1.8.2/src/ZNCString.cpp:261: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 pTmp[21] = {};
data/znc-1.8.2/src/ZNCString.cpp:1111: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 digest[SHA256_DIGEST_SIZE];
data/znc-1.8.2/src/ZNCString.cpp:1112: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 digest_hex[SHA256_DIGEST_SIZE * 2 + 1];
data/znc-1.8.2/src/ZNCString.cpp:1154: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 szIvec[8] = {0, 0, 0, 0, 0, 0, 0, 0};
data/znc-1.8.2/src/ZNCString.cpp:1158: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(szIvec, sIvec.data(), 8);
data/znc-1.8.2/src/ZNCString.cpp:1182: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 szRet[32];
data/znc-1.8.2/src/main.cpp:514:9:  [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("/dev/null", O_RDONLY);
data/znc-1.8.2/src/main.cpp:516:9:  [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("/dev/null", O_WRONLY);
data/znc-1.8.2/src/main.cpp:518:9:  [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("/dev/null", O_WRONLY);
data/znc-1.8.2/src/znc.cpp:319: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(sPemFile.c_str(), "w");
data/znc-1.8.2/test/ConfigTest.cpp:28:18:  [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).
        int fd = mkstemp(sName);
data/znc-1.8.2/test/integration/framework/znctest.cpp:135: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).
        ASSERT_TRUE(file.open(QIODevice::WriteOnly | QIODevice::Text));
data/znc-1.8.2/test/integration/framework/znctest.cpp:157: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).
        ASSERT_TRUE(file.open(QIODevice::WriteOnly | QIODevice::Text));
data/znc-1.8.2/test/integration/framework/znctest.cpp:168: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).
        ASSERT_TRUE(file.open(QIODevice::WriteOnly | QIODevice::Text));
data/znc-1.8.2/test/integration/tests/core.cpp:153: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).
    ASSERT_TRUE(conf.open(QIODevice::Append | QIODevice::Text));
data/znc-1.8.2/test/integration/tests/core.cpp:196: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).
    ASSERT_TRUE(file.open(QIODevice::WriteOnly | QIODevice::Text));
data/znc-1.8.2/test/integration/tests/core.cpp:274: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).
    ASSERT_TRUE(conf.open(QIODevice::Append | QIODevice::Text));
data/znc-1.8.2/test/integration/tests/modules.cpp:85: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).
    ASSERT_TRUE(conf.open(QIODevice::Append | QIODevice::Text));
data/znc-1.8.2/test/integration/tests/modules.cpp:233: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).
    ASSERT_TRUE(conf.open(QIODevice::Append | QIODevice::Text));
data/znc-1.8.2/third_party/Csocket/Csocket.cc:151:4:  [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( dst, &( ( sockaddr_in6 * ) &aAddress )->sin6_addr, sizeof( in6_addr ) );
data/znc-1.8.2/third_party/Csocket/Csocket.cc:153:4:  [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( dst, &( ( sockaddr_in * ) &aAddress )->sin_addr, sizeof( in_addr ) );
data/znc-1.8.2/third_party/Csocket/Csocket.cc:255:2:  [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( pBuff, sPassword.data(), iUseBytes );
data/znc-1.8.2/third_party/Csocket/Csocket.cc:300:2:  [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 hbuff[2048];
data/znc-1.8.2/third_party/Csocket/Csocket.cc:370:4:  [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( pSockAddr->GetAddr(), hent->h_addr_list[0], sizeof( *( pSockAddr->GetAddr() ) ) );
data/znc-1.8.2/third_party/Csocket/Csocket.cc:376:4:  [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( pSockAddr->GetAddr6(), hent->h_addr_list[0], sizeof( *( pSockAddr->GetAddr6() ) ) );
data/znc-1.8.2/third_party/Csocket/Csocket.cc:472:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy( m_csSockAddr.GetAddr(), &( pTmp->sin_addr ), sizeof( *( m_csSockAddr.GetAddr() ) ) );
data/znc-1.8.2/third_party/Csocket/Csocket.cc:490: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( m_csSockAddr.GetAddr6(), &( pTmp->sin6_addr ), sizeof( *( m_csSockAddr.GetAddr6() ) ) );
data/znc-1.8.2/third_party/Csocket/Csocket.cc:550:2:  [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 szHostname[NI_MAXHOST];
data/znc-1.8.2/third_party/Csocket/Csocket.cc:551:2:  [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 szServ[NI_MAXSERV];
data/znc-1.8.2/third_party/Csocket/Csocket.cc:557:26:  [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).
			*piPort = ( uint16_t )atoi( szServ );
data/znc-1.8.2/third_party/Csocket/Csocket.cc:660:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char szError[512];
data/znc-1.8.2/third_party/Csocket/Csocket.cc:705:2:  [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 szBuff[0xff];
data/znc-1.8.2/third_party/Csocket/Csocket.cc:1307:2:  [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( &addr->sun_path, sPath.c_str(), sPath.length() + 1 );
data/znc-1.8.2/third_party/Csocket/Csocket.cc:1878: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 *dhParamsFile = fopen( DHParamFile.c_str(), "r" );
data/znc-1.8.2/third_party/Csocket/Csocket.cc:2044:2:  [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[100];
data/znc-1.8.2/third_party/Csocket/Csocket.cc:2434:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char szBuff[0xff];
data/znc-1.8.2/third_party/Csocket/Csocket.cc:2885:11:  [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 sha1_hash[SHA_DIGEST_LENGTH];
data/znc-1.8.2/third_party/Csocket/Csocket.cc:2897:4:  [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[3];
data/znc-1.8.2/third_party/Csocket/Csocket.cc:3579: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 szError[512];
data/znc-1.8.2/modules/awaystore.cpp:466: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).
            if (sBuffer.Left(strlen(CRYPT_VERIFICATION_TOKEN)) !=
data/znc-1.8.2/modules/awaystore.cpp:472: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).
            sBuffer.erase(0, strlen(CRYPT_VERIFICATION_TOKEN));
data/znc-1.8.2/modules/modtcl.cpp:528: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(100000);  // Sleep for 10ms to attempt to allow the previous
data/znc-1.8.2/src/FileUtils.cpp:379:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t res = read(m_iFD, pszBuffer, iBytes);
data/znc-1.8.2/src/FileUtils.cpp:402:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        iBytes = read(m_iFD, buff, sizeof(buff));
data/znc-1.8.2/src/FileUtils.cpp:680: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(100);
data/znc-1.8.2/src/IRCNetwork.cpp:978: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).
    size_t uiJoinLength = strlen("JOIN ");
data/znc-1.8.2/src/SSLVerifyHost.cpp:189:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(hostname);
data/znc-1.8.2/src/SSLVerifyHost.cpp:191: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(pattern);
data/znc-1.8.2/src/SSLVerifyHost.cpp:337:26:  [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).
        static_cast<int>(strlen(common_name_str))) {
data/znc-1.8.2/src/Threads.cpp:82:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t r = read(m_iJobPipe[0], &a, need);
data/znc-1.8.2/src/main.cpp:198:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    read(it.first, &sig, sizeof(sig));
data/znc-1.8.2/third_party/Csocket/Csocket.cc:2319:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		bytes = read( m_iReadSock, data, len );

ANALYSIS SUMMARY:

Hits = 127
Lines analyzed = 62355 in approximately 1.52 seconds (41063 lines/second)
Physical Source Lines of Code (SLOC) = 46468
Hits@level = [0]  16 [1]  13 [2]  84 [3]  14 [4]  15 [5]   1
Hits@level+ = [0+] 143 [1+] 127 [2+] 114 [3+]  30 [4+]  16 [5+]   1
Hits/KSLOC@level+ = [0+] 3.07739 [1+] 2.73306 [2+] 2.4533 [3+] 0.645606 [4+] 0.344323 [5+] 0.0215202
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.