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/mimetic-0.9.8/examples/b64.cxx
Examining data/mimetic-0.9.8/examples/buildidx.cxx
Examining data/mimetic-0.9.8/examples/catpart.cxx
Examining data/mimetic-0.9.8/examples/cmdline.cxx
Examining data/mimetic-0.9.8/examples/cmdline.h
Examining data/mimetic-0.9.8/examples/engine.cxx
Examining data/mimetic-0.9.8/examples/engine.h
Examining data/mimetic-0.9.8/examples/exbin.cxx
Examining data/mimetic-0.9.8/examples/mbox.cxx
Examining data/mimetic-0.9.8/examples/mm.cxx
Examining data/mimetic-0.9.8/examples/mm.h
Examining data/mimetic-0.9.8/examples/qp.cxx
Examining data/mimetic-0.9.8/examples/search.cxx
Examining data/mimetic-0.9.8/examples/smime2xml.cxx
Examining data/mimetic-0.9.8/examples/smimestruct.cxx
Examining data/mimetic-0.9.8/examples/structure.cxx
Examining data/mimetic-0.9.8/mimetic/body.cxx
Examining data/mimetic-0.9.8/mimetic/body.h
Examining data/mimetic-0.9.8/mimetic/circular_buffer.h
Examining data/mimetic-0.9.8/mimetic/codec/code.h
Examining data/mimetic-0.9.8/mimetic/codec/codec.h
Examining data/mimetic-0.9.8/mimetic/codec/codec_base.h
Examining data/mimetic-0.9.8/mimetic/codec/codec_chain.h
Examining data/mimetic-0.9.8/mimetic/codec/other_codecs.h
Examining data/mimetic-0.9.8/mimetic/codec/qp.cxx
Examining data/mimetic-0.9.8/mimetic/codec/qp.h
Examining data/mimetic-0.9.8/mimetic/codec/base64.cxx
Examining data/mimetic-0.9.8/mimetic/codec/base64.h
Examining data/mimetic-0.9.8/mimetic/config_win32.h
Examining data/mimetic-0.9.8/mimetic/contentdescription.cxx
Examining data/mimetic-0.9.8/mimetic/contentdescription.h
Examining data/mimetic-0.9.8/mimetic/contentdisposition.cxx
Examining data/mimetic-0.9.8/mimetic/contentdisposition.h
Examining data/mimetic-0.9.8/mimetic/contentid.cxx
Examining data/mimetic-0.9.8/mimetic/contentid.h
Examining data/mimetic-0.9.8/mimetic/contenttransferencoding.cxx
Examining data/mimetic-0.9.8/mimetic/contenttransferencoding.h
Examining data/mimetic-0.9.8/mimetic/contenttype.cxx
Examining data/mimetic-0.9.8/mimetic/contenttype.h
Examining data/mimetic-0.9.8/mimetic/fieldparam.cxx
Examining data/mimetic-0.9.8/mimetic/fieldparam.h
Examining data/mimetic-0.9.8/mimetic/header.cxx
Examining data/mimetic-0.9.8/mimetic/header.h
Examining data/mimetic-0.9.8/mimetic/libconfig.h
Examining data/mimetic-0.9.8/mimetic/message.cxx
Examining data/mimetic-0.9.8/mimetic/message.h
Examining data/mimetic-0.9.8/mimetic/mimeentity.cxx
Examining data/mimetic-0.9.8/mimetic/mimeentity.h
Examining data/mimetic-0.9.8/mimetic/mimeentitylist.h
Examining data/mimetic-0.9.8/mimetic/mimetic.h
Examining data/mimetic-0.9.8/mimetic/mimeversion.cxx
Examining data/mimetic-0.9.8/mimetic/mimeversion.h
Examining data/mimetic-0.9.8/mimetic/os/directory.h
Examining data/mimetic-0.9.8/mimetic/os/file.h
Examining data/mimetic-0.9.8/mimetic/os/file_iterator.cxx
Examining data/mimetic-0.9.8/mimetic/os/file_iterator.h
Examining data/mimetic-0.9.8/mimetic/os/fileop.cxx
Examining data/mimetic-0.9.8/mimetic/os/fileop.h
Examining data/mimetic-0.9.8/mimetic/os/mmfile.cxx
Examining data/mimetic-0.9.8/mimetic/os/mmfile.h
Examining data/mimetic-0.9.8/mimetic/os/os.h
Examining data/mimetic-0.9.8/mimetic/os/stdfile.cxx
Examining data/mimetic-0.9.8/mimetic/os/stdfile.h
Examining data/mimetic-0.9.8/mimetic/os/utils.cxx
Examining data/mimetic-0.9.8/mimetic/os/utils.h
Examining data/mimetic-0.9.8/mimetic/parser/itparser.h
Examining data/mimetic-0.9.8/mimetic/parser/itparserdecl.h
Examining data/mimetic-0.9.8/mimetic/rfc822/address.cxx
Examining data/mimetic-0.9.8/mimetic/rfc822/address.h
Examining data/mimetic-0.9.8/mimetic/rfc822/addresslist.cxx
Examining data/mimetic-0.9.8/mimetic/rfc822/addresslist.h
Examining data/mimetic-0.9.8/mimetic/rfc822/body.h
Examining data/mimetic-0.9.8/mimetic/rfc822/datetime.cxx
Examining data/mimetic-0.9.8/mimetic/rfc822/datetime.h
Examining data/mimetic-0.9.8/mimetic/rfc822/field.cxx
Examining data/mimetic-0.9.8/mimetic/rfc822/field.h
Examining data/mimetic-0.9.8/mimetic/rfc822/fieldvalue.cxx
Examining data/mimetic-0.9.8/mimetic/rfc822/fieldvalue.h
Examining data/mimetic-0.9.8/mimetic/rfc822/group.cxx
Examining data/mimetic-0.9.8/mimetic/rfc822/group.h
Examining data/mimetic-0.9.8/mimetic/rfc822/header.cxx
Examining data/mimetic-0.9.8/mimetic/rfc822/header.h
Examining data/mimetic-0.9.8/mimetic/rfc822/mailbox.cxx
Examining data/mimetic-0.9.8/mimetic/rfc822/mailbox.h
Examining data/mimetic-0.9.8/mimetic/rfc822/mailboxlist.cxx
Examining data/mimetic-0.9.8/mimetic/rfc822/mailboxlist.h
Examining data/mimetic-0.9.8/mimetic/rfc822/message.cxx
Examining data/mimetic-0.9.8/mimetic/rfc822/message.h
Examining data/mimetic-0.9.8/mimetic/rfc822/messageid.cxx
Examining data/mimetic-0.9.8/mimetic/rfc822/messageid.h
Examining data/mimetic-0.9.8/mimetic/rfc822/rfc822.h
Examining data/mimetic-0.9.8/mimetic/streambufs.h
Examining data/mimetic-0.9.8/mimetic/strutils.cxx
Examining data/mimetic-0.9.8/mimetic/strutils.h
Examining data/mimetic-0.9.8/mimetic/tokenizer.h
Examining data/mimetic-0.9.8/mimetic/tree.h
Examining data/mimetic-0.9.8/mimetic/utils.cxx
Examining data/mimetic-0.9.8/mimetic/utils.h
Examining data/mimetic-0.9.8/mimetic/version.cxx
Examining data/mimetic-0.9.8/mimetic/version.h
Examining data/mimetic-0.9.8/test/cutee.cxx
Examining data/mimetic-0.9.8/test/cutee.h
Examining data/mimetic-0.9.8/test/runtest.cxx
Examining data/mimetic-0.9.8/test/t.base64.cxx
Examining data/mimetic-0.9.8/test/t.base64.h
Examining data/mimetic-0.9.8/test/t.circular_buffer.cxx
Examining data/mimetic-0.9.8/test/t.circular_buffer.h
Examining data/mimetic-0.9.8/test/t.codec.cxx
Examining data/mimetic-0.9.8/test/t.codec.h
Examining data/mimetic-0.9.8/test/t.composite.cxx
Examining data/mimetic-0.9.8/test/t.composite.h
Examining data/mimetic-0.9.8/test/t.contentdisposition.cxx
Examining data/mimetic-0.9.8/test/t.contentdisposition.h
Examining data/mimetic-0.9.8/test/t.contenttype.cxx
Examining data/mimetic-0.9.8/test/t.contenttype.h
Examining data/mimetic-0.9.8/test/t.directory.h
Examining data/mimetic-0.9.8/test/t.fieldparam.cxx
Examining data/mimetic-0.9.8/test/t.fieldparam.h
Examining data/mimetic-0.9.8/test/t.file.h
Examining data/mimetic-0.9.8/test/t.find_bm.cxx
Examining data/mimetic-0.9.8/test/t.find_bm.h
Examining data/mimetic-0.9.8/test/t.mimemessage.h
Examining data/mimetic-0.9.8/test/t.parser.h
Examining data/mimetic-0.9.8/test/t.qp.cxx
Examining data/mimetic-0.9.8/test/t.qp.h
Examining data/mimetic-0.9.8/test/t.rfc822.cxx
Examining data/mimetic-0.9.8/test/t.rfc822.h
Examining data/mimetic-0.9.8/test/t.strutils.h
Examining data/mimetic-0.9.8/test/t.tokenizer.cxx
Examining data/mimetic-0.9.8/test/t.tokenizer.h
Examining data/mimetic-0.9.8/test/t.tree.h
Examining data/mimetic-0.9.8/test/t.utils.h
Examining data/mimetic-0.9.8/test/t.version.h

FINAL RESULTS:

data/mimetic-0.9.8/examples/cmdline.cxx:145:18:  [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((ret = getopt_long(argc,argv, "hv", long_options, &opt_idx))!= -1)
data/mimetic-0.9.8/mimetic/contenttype.cxx:35:9:  [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(time(0));
data/mimetic-0.9.8/test/cutee.cxx:68:20:  [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.
        while((ret=getopt(argc, argv, "mo:pk")) != -1)
data/mimetic-0.9.8/test/cutee.h:352:12:  [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("SKIMMER_MODE"))
data/mimetic-0.9.8/examples/b64.cxx:55: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).
        fin.open(argv[2], ios::in);
data/mimetic-0.9.8/examples/b64.cxx:60:14:  [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).
        fout.open(argv[3], ios::out);
data/mimetic-0.9.8/examples/cmdline.h:46: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_is_opt_set[p_last_item];
data/mimetic-0.9.8/examples/engine.cxx:45:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[256];
data/mimetic-0.9.8/examples/exbin.cxx:247: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 page[page_sz];
data/mimetic-0.9.8/examples/mm.cxx:62:14:  [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).
        fout.open(fqn.c_str(), ios::out);
data/mimetic-0.9.8/examples/mm.cxx:69: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).
        fin.open(fqn.c_str(), ios::in);
data/mimetic-0.9.8/examples/qp.cxx:57: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).
        fin.open(argv[2], ios::in);
data/mimetic-0.9.8/examples/qp.cxx:62:14:  [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).
        fout.open(argv[3], ios::out);
data/mimetic-0.9.8/mimetic/codec/qp.h:35:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char sTb[256];
data/mimetic-0.9.8/mimetic/os/mmfile.cxx: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(mode);
data/mimetic-0.9.8/mimetic/os/mmfile.cxx:38:14:  [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 MMFile::open(const std::string& fqn, int mode /*= O_RDONLY*/)
data/mimetic-0.9.8/mimetic/os/mmfile.cxx:43:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    return open(mode);
data/mimetic-0.9.8/mimetic/os/mmfile.cxx:46:14:  [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 MMFile::open(int mode)
data/mimetic-0.9.8/mimetic/os/mmfile.cxx:50:14:  [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_fd = ::open(m_fqn.c_str(), mode);
data/mimetic-0.9.8/mimetic/os/mmfile.h:29: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 std::string&, int mode = O_RDONLY);
data/mimetic-0.9.8/mimetic/os/mmfile.h:40: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(int flags);
data/mimetic-0.9.8/mimetic/os/stdfile.cxx:43: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(mode);
data/mimetic-0.9.8/mimetic/os/stdfile.cxx:46: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).
void StdFile::open(const std::string& fqn, int mode /*= O_RDONLY*/)
data/mimetic-0.9.8/mimetic/os/stdfile.cxx:49: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(mode);
data/mimetic-0.9.8/mimetic/os/stdfile.cxx:52: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).
void StdFile::open(int mode)
data/mimetic-0.9.8/mimetic/os/stdfile.cxx:54:14:  [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_fd = ::open(m_fqn.c_str(), mode);
data/mimetic-0.9.8/mimetic/os/stdfile.h:29: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).
    void open(const std::string&, int mode = O_RDONLY);
data/mimetic-0.9.8/mimetic/os/stdfile.h:36: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).
    void open(int flags);
data/mimetic-0.9.8/mimetic/os/utils.cxx:23: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[64];
data/mimetic-0.9.8/mimetic/parser/itparser.h:216: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(buf, tmp, oldBufsz);
data/mimetic-0.9.8/mimetic/parser/itparser.h:480: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 block[blksz];
data/mimetic-0.9.8/mimetic/parser/itparser.h:511: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 nlbuf[3] = { 0, 0, 0 };
data/mimetic-0.9.8/mimetic/tokenizer.h:70: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_lookup[256];
data/mimetic-0.9.8/mimetic/utils.cxx:131:14:  [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).
    return ::atoi(str.c_str());
data/mimetic-0.9.8/test/t.rfc822.cxx:15:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        const char *input, *name, *mailboxes[max_n];
data/mimetic-0.9.8/test/t.tokenizer.h:17: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.
    const char *part[sz];
data/mimetic-0.9.8/examples/cmdline.cxx:177:47:  [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 char *desc = 1 + name + strlen(name);
data/mimetic-0.9.8/mimetic/os/file_iterator.cxx:114:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_count = m_pFile->read(m_buf, m_bufsz);
data/mimetic-0.9.8/mimetic/os/mmfile.cxx:100:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
uint MMFile::read(char* buf, int bufsz)
data/mimetic-0.9.8/mimetic/os/mmfile.cxx:105:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        r = ::read(m_fd, buf, bufsz);
data/mimetic-0.9.8/mimetic/os/mmfile.h:31:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    uint read(char*, int);
data/mimetic-0.9.8/mimetic/os/stdfile.cxx:73:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
uint StdFile::read(char* buf, int bufsz)
data/mimetic-0.9.8/mimetic/os/stdfile.cxx:78:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        r = ::read(m_fd, buf, bufsz);
data/mimetic-0.9.8/mimetic/os/stdfile.h:31:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    uint read(char*, int);
data/mimetic-0.9.8/mimetic/streambufs.h:40:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if((bread = read(eback(), bufsz)) == 0)
data/mimetic-0.9.8/mimetic/streambufs.h:48:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual int_type read(char*, int) = 0;
data/mimetic-0.9.8/mimetic/streambufs.h:64:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int_type read(char* buf, int bufsz)
data/mimetic-0.9.8/mimetic/strutils.h:111:36:  [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::max(is.length(),::strlen(str))) );
data/mimetic-0.9.8/mimetic/strutils.h:117:36:  [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::max(is.length(),::strlen(str))) );
data/mimetic-0.9.8/test/t.find_bm.h:31: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).
            eit = bit + strlen(bit);

ANALYSIS SUMMARY:

Hits = 50
Lines analyzed = 14593 in approximately 0.33 seconds (44136 lines/second)
Physical Source Lines of Code (SLOC) = 11310
Hits@level = [0]   0 [1]  14 [2]  32 [3]   4 [4]   0 [5]   0
Hits@level+ = [0+]  50 [1+]  50 [2+]  36 [3+]   4 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 4.42087 [1+] 4.42087 [2+] 3.18302 [3+] 0.353669 [4+]   0 [5+]   0
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.