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/hiredis-1.0.0/adapters/ae.h
Examining data/hiredis-1.0.0/adapters/glib.h
Examining data/hiredis-1.0.0/adapters/ivykis.h
Examining data/hiredis-1.0.0/adapters/libev.h
Examining data/hiredis-1.0.0/adapters/libevent.h
Examining data/hiredis-1.0.0/adapters/libuv.h
Examining data/hiredis-1.0.0/adapters/macosx.h
Examining data/hiredis-1.0.0/adapters/qt.h
Examining data/hiredis-1.0.0/alloc.c
Examining data/hiredis-1.0.0/alloc.h
Examining data/hiredis-1.0.0/async.c
Examining data/hiredis-1.0.0/async.h
Examining data/hiredis-1.0.0/async_private.h
Examining data/hiredis-1.0.0/dict.c
Examining data/hiredis-1.0.0/dict.h
Examining data/hiredis-1.0.0/examples/example-ae.c
Examining data/hiredis-1.0.0/examples/example-glib.c
Examining data/hiredis-1.0.0/examples/example-ivykis.c
Examining data/hiredis-1.0.0/examples/example-libev.c
Examining data/hiredis-1.0.0/examples/example-libevent-ssl.c
Examining data/hiredis-1.0.0/examples/example-libevent.c
Examining data/hiredis-1.0.0/examples/example-libuv.c
Examining data/hiredis-1.0.0/examples/example-macosx.c
Examining data/hiredis-1.0.0/examples/example-push.c
Examining data/hiredis-1.0.0/examples/example-qt.cpp
Examining data/hiredis-1.0.0/examples/example-qt.h
Examining data/hiredis-1.0.0/examples/example-ssl.c
Examining data/hiredis-1.0.0/examples/example.c
Examining data/hiredis-1.0.0/fmacros.h
Examining data/hiredis-1.0.0/hiredis.c
Examining data/hiredis-1.0.0/hiredis.h
Examining data/hiredis-1.0.0/hiredis_ssl.h
Examining data/hiredis-1.0.0/net.c
Examining data/hiredis-1.0.0/net.h
Examining data/hiredis-1.0.0/read.c
Examining data/hiredis-1.0.0/read.h
Examining data/hiredis-1.0.0/sds.c
Examining data/hiredis-1.0.0/sds.h
Examining data/hiredis-1.0.0/sdsalloc.h
Examining data/hiredis-1.0.0/sockcompat.c
Examining data/hiredis-1.0.0/sockcompat.h
Examining data/hiredis-1.0.0/ssl.c
Examining data/hiredis-1.0.0/win32.h
Examining data/hiredis-1.0.0/test.c

FINAL RESULTS:

data/hiredis-1.0.0/examples/example-push.c:40: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(stderr, "%s:%d:%s(): " fmt, __FILE__, __LINE__, __func__, __VA_ARGS__); \
data/hiredis-1.0.0/sds.c:522:9:  [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(buf, buflen, fmt, cpy);
data/hiredis-1.0.0/sds.h:237:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    __attribute__((format(printf, 2, 3)));
data/hiredis-1.0.0/test.c:62:47:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define test(_s) { printf("#%02d ", ++tests); printf(_s); }
data/hiredis-1.0.0/test.c:1311:24:  [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.
    test_unix_socket = access(cfg.unix_sock.path, F_OK) == 0;
data/hiredis-1.0.0/win32.h:23: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.
#ifndef snprintf
data/hiredis-1.0.0/win32.h:24:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf c99_snprintf
data/hiredis-1.0.0/ssl.c:101:5:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
    InitializeCriticalSection(l);
data/hiredis-1.0.0/ssl.c:104:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(l);
data/hiredis-1.0.0/async.c:68: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(dup,src,sizeof(*dup));
data/hiredis-1.0.0/async.c:254: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(cb,source,sizeof(*cb));
data/hiredis-1.0.0/async.c:276: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(target,cb,sizeof(*cb));
data/hiredis-1.0.0/async.c:451: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(dstcb,cb,sizeof(*dstcb));
data/hiredis-1.0.0/examples/example-libevent-ssl.c:52:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int port = atoi(argv[3]);
data/hiredis-1.0.0/examples/example-push.c:113:29:  [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 port = (argc > 2) ? atoi(argv[2]) : 6379;
data/hiredis-1.0.0/examples/example-ssl.c:20:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int port = atoi(argv[2]);
data/hiredis-1.0.0/examples/example-ssl.c:88: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[64];
data/hiredis-1.0.0/examples/example.c:21:29:  [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 port = (argc > 2) ? atoi(argv[2]) : 6379;
data/hiredis-1.0.0/examples/example.c:71: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[64];
data/hiredis-1.0.0/hiredis.c:139: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(r->vtype,str,3);
data/hiredis-1.0.0/hiredis.c:141: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,str+4,len-4);
data/hiredis-1.0.0/hiredis.c:148: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,str,len);
data/hiredis-1.0.0/hiredis.c:236: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(r->str, str, len);
data/hiredis-1.0.0/hiredis.c:374: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 _format[16];
data/hiredis-1.0.0/hiredis.c:453:25:  [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(_format,c,_l);
data/hiredis-1.0.0/hiredis.c:497:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    pos = sprintf(cmd,"*%d\r\n",argc);
data/hiredis-1.0.0/hiredis.c:499:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        pos += sprintf(cmd+pos,"$%zu\r\n",sdslen(curargv[j]));
data/hiredis-1.0.0/hiredis.c:500: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(cmd+pos,curargv[j],sdslen(curargv[j]));
data/hiredis-1.0.0/hiredis.c:646:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    pos = sprintf(cmd,"*%d\r\n",argc);
data/hiredis-1.0.0/hiredis.c:649:16:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        pos += sprintf(cmd+pos,"$%zu\r\n",len);
data/hiredis-1.0.0/hiredis.c:650: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(cmd+pos,argv[j],len);
data/hiredis-1.0.0/hiredis.c:673: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(c->errstr,str,len);
data/hiredis-1.0.0/hiredis.c:933: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*16];
data/hiredis-1.0.0/hiredis.h:116: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 vtype[4]; /* Used for REDIS_REPLY_VERB, contains the null
data/hiredis-1.0.0/hiredis.h:237: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 errstr[128]; /* String representation of error when applicable */
data/hiredis-1.0.0/net.c:97: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[128] = { 0 };
data/hiredis-1.0.0/net.c:343: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(c->connect_timeout, timeout, sizeof(*c->connect_timeout));
data/hiredis-1.0.0/net.c:359: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(c->command_timeout, timeout, sizeof(*c->command_timeout));
data/hiredis-1.0.0/net.c:368: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 _port[6];  /* strlen("65535"); */
data/hiredis-1.0.0/net.c:444: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[128];
data/hiredis-1.0.0/net.c:467: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[128];
data/hiredis-1.0.0/net.c:480: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(c->saddr, p->ai_addr, p->ai_addrlen);
data/hiredis-1.0.0/net.c:518: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[128];
data/hiredis-1.0.0/read.c:73: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(r->errstr,str,len);
data/hiredis-1.0.0/read.c:102: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 cbuf[8], sbuf[128];
data/hiredis-1.0.0/read.c:290: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[326], *eptr;
data/hiredis-1.0.0/read.c:299: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,p,len);
data/hiredis-1.0.0/read.h:97: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 errstr[128]; /* String representation of error when applicable */
data/hiredis-1.0.0/sds.c:134: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(s, init, initlen);
data/hiredis-1.0.0/sds.c:231: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((char*)newsh+hdrlen, s, len+1);
data/hiredis-1.0.0/sds.c:263: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((char*)newsh+hdrlen, s, len+1);
data/hiredis-1.0.0/sds.c:383: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(s+curlen, t, len);
data/hiredis-1.0.0/sds.c:412: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(s, t, len);
data/hiredis-1.0.0/sds.c:496: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[SDS_LLSTR_SIZE];
data/hiredis-1.0.0/sds.c:505: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 staticbuf[1024], *buf = staticbuf, *t;
data/hiredis-1.0.0/sds.c:613: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(s+i,str,l);
data/hiredis-1.0.0/sds.c:624: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[SDS_LLSTR_SIZE];
data/hiredis-1.0.0/sds.c:630: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(s+i,buf,l);
data/hiredis-1.0.0/sds.c:642: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[SDS_LLSTR_SIZE];
data/hiredis-1.0.0/sds.c:648: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(s+i,buf,l);
data/hiredis-1.0.0/ssl.c:303: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 err[512];
data/hiredis-1.0.0/test.c:324: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 *argv[3];
data/hiredis-1.0.0/test.c:1273: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).
            cfg.tcp.port = atoi(argv[0]);
data/hiredis-1.0.0/test.c:1286: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).
            cfg.ssl.port = atoi(argv[0]);
data/hiredis-1.0.0/adapters/qt.h:99:64:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            connect(m_read, SIGNAL(activated(int)), this, SLOT(read()));
data/hiredis-1.0.0/adapters/qt.h:126:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        void read() { redisAsyncHandleRead(m_ctx); }
data/hiredis-1.0.0/examples/example-ae.c:57:66:  [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).
    redisAsyncCommand(c, NULL, NULL, "SET key %b", argv[argc-1], strlen(argv[argc-1]));
data/hiredis-1.0.0/examples/example-ivykis.c:52:66:  [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).
    redisAsyncCommand(c, NULL, NULL, "SET key %b", argv[argc-1], strlen(argv[argc-1]));
data/hiredis-1.0.0/examples/example-libev.c:50:66:  [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).
    redisAsyncCommand(c, NULL, NULL, "SET key %b", argv[argc-1], strlen(argv[argc-1]));
data/hiredis-1.0.0/examples/example-libevent-ssl.c:49: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).
    size_t nvalue = strlen(value);
data/hiredis-1.0.0/examples/example-libevent.c:63:66:  [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).
    redisAsyncCommand(c, NULL, NULL, "SET key %b", argv[argc-1], strlen(argv[argc-1]));
data/hiredis-1.0.0/examples/example-libuv.c:52:66:  [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).
    redisAsyncCommand(c, NULL, NULL, "SET key %b", argv[argc-1], strlen(argv[argc-1]));
data/hiredis-1.0.0/examples/example-macosx.c:59:66:  [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).
    redisAsyncCommand(c, NULL, NULL, "SET key %b", argv[argc-1], strlen(argv[argc-1]));
data/hiredis-1.0.0/hiredis.c:356: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).
                size = strlen(arg);
data/hiredis-1.0.0/hiredis.c:582: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).
        len = argvlen ? argvlen[j] : strlen(argv[j]);
data/hiredis-1.0.0/hiredis.c:603: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).
        len = argvlen ? argvlen[j] : strlen(argv[j]);
data/hiredis-1.0.0/hiredis.c:637: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).
        len = argvlen ? argvlen[j] : strlen(argv[j]);
data/hiredis-1.0.0/hiredis.c:648: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).
        len = argvlen ? argvlen[j] : strlen(argv[j]);
data/hiredis-1.0.0/hiredis.c:671: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).
        len = strlen(str);
data/hiredis-1.0.0/hiredis.c:745: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).
    memset(c->errstr, '\0', strlen(c->errstr));
data/hiredis-1.0.0/hiredis.c:940:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    nread = c->funcs->read(c, buf, sizeof(buf));
data/hiredis-1.0.0/hiredis.h:228:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t (*read)(struct redisContext *, char *, size_t);
data/hiredis-1.0.0/net.c:587:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(sa->sun_path, path, sizeof(sa->sun_path) - 1);
data/hiredis-1.0.0/read.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);
data/hiredis-1.0.0/sds.c:147: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).
    size_t initlen = (init == NULL) ? 0 : strlen(init);
data/hiredis-1.0.0/sds.c:177: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 reallen = strlen(s);
data/hiredis-1.0.0/sds.c:394:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return sdscatlen(s, t, strlen(t));
data/hiredis-1.0.0/sds.c:421:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return sdscpylen(s, t, strlen(t));
data/hiredis-1.0.0/sds.c:506: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).
    size_t buflen = strlen(fmt)*2;
data/hiredis-1.0.0/sds.c:608:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                l = (next == 's') ? strlen(str) : sdslen(str);
data/hiredis-1.0.0/test.c:98:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    s += strlen(REDIS_VERSION_FIELD);
data/hiredis-1.0.0/test.c:945:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        redisAppendFormattedCommand(c, sleep_cmd, strlen(sleep_cmd));

ANALYSIS SUMMARY:

Hits = 92
Lines analyzed = 10928 in approximately 0.34 seconds (32515 lines/second)
Physical Source Lines of Code (SLOC) = 7450
Hits@level = [0] 130 [1]  28 [2]  55 [3]   2 [4]   7 [5]   0
Hits@level+ = [0+] 222 [1+]  92 [2+]  64 [3+]   9 [4+]   7 [5+]   0
Hits/KSLOC@level+ = [0+] 29.7987 [1+] 12.349 [2+] 8.5906 [3+] 1.20805 [4+] 0.939597 [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.