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/librevisa-0.0.20130812/tests/write.c
Examining data/librevisa-0.0.20130812/tests/rule_4_2_2.c
Examining data/librevisa-0.0.20130812/tests/read.c
Examining data/librevisa-0.0.20130812/tests/lock_recursive_shared.c
Examining data/librevisa-0.0.20130812/tests/rule_3_3_2.c
Examining data/librevisa-0.0.20130812/tests/find.c
Examining data/librevisa-0.0.20130812/tests/rule_3_7_3.c
Examining data/librevisa-0.0.20130812/tests/open.c
Examining data/librevisa-0.0.20130812/tests/lock_recursive_exclusive.c
Examining data/librevisa-0.0.20130812/tests/lock_attr_exclusive.c
Examining data/librevisa-0.0.20130812/tests/lock_invalid_mode.c
Examining data/librevisa-0.0.20130812/tests/rule_4_2_1.c
Examining data/librevisa-0.0.20130812/tests/open_multi.c
Examining data/librevisa-0.0.20130812/tests/wait_immediate_noevents.c
Examining data/librevisa-0.0.20130812/tests/dummy.h
Examining data/librevisa-0.0.20130812/tests/rule_3_2_3.c
Examining data/librevisa-0.0.20130812/tests/lock_attr_global.c
Examining data/librevisa-0.0.20130812/tests/wait_timeout.c
Examining data/librevisa-0.0.20130812/tests/lock_attr_shared.c
Examining data/librevisa-0.0.20130812/tests/print.c
Examining data/librevisa-0.0.20130812/tests/rule_3_6_38.c
Examining data/librevisa-0.0.20130812/tests/rule_4_3_11.c
Examining data/librevisa-0.0.20130812/tests/wait_nenabled.c
Examining data/librevisa-0.0.20130812/tests/dummy.cpp
Examining data/librevisa-0.0.20130812/include/visatype.h
Examining data/librevisa-0.0.20130812/include/visa.h
Examining data/librevisa-0.0.20130812/src/base_vprintf.h
Examining data/librevisa-0.0.20130812/src/object_cache.h
Examining data/librevisa-0.0.20130812/src/viUnlock.cpp
Examining data/librevisa-0.0.20130812/src/object_cache.cpp
Examining data/librevisa-0.0.20130812/src/resource.cpp
Examining data/librevisa-0.0.20130812/src/intrusive_list.h
Examining data/librevisa-0.0.20130812/src/object.cpp
Examining data/librevisa-0.0.20130812/src/viSetBuf.cpp
Examining data/librevisa-0.0.20130812/src/messagepump_avahi.cpp
Examining data/librevisa-0.0.20130812/src/findlist.h
Examining data/librevisa-0.0.20130812/src/viWrite.cpp
Examining data/librevisa-0.0.20130812/src/mutex_pthread.h
Examining data/librevisa-0.0.20130812/src/viLock.cpp
Examining data/librevisa-0.0.20130812/src/messagepump.h
Examining data/librevisa-0.0.20130812/src/condvar_windows.h
Examining data/librevisa-0.0.20130812/src/viSetAttribute.cpp
Examining data/librevisa-0.0.20130812/src/viVSPrintf.cpp
Examining data/librevisa-0.0.20130812/src/util.h
Examining data/librevisa-0.0.20130812/src/viGetAttribute.cpp
Examining data/librevisa-0.0.20130812/src/instrument_resource.h
Examining data/librevisa-0.0.20130812/src/viWaitOnEvent.cpp
Examining data/librevisa-0.0.20130812/src/condvar_pthread.h
Examining data/librevisa-0.0.20130812/src/usb/usb_resource.cpp
Examining data/librevisa-0.0.20130812/src/usb/usb_resource_creator.cpp
Examining data/librevisa-0.0.20130812/src/usb/usb_resource_creator.h
Examining data/librevisa-0.0.20130812/src/usb/usb_string.h
Examining data/librevisa-0.0.20130812/src/usb/usb_resource.h
Examining data/librevisa-0.0.20130812/src/condvar.h
Examining data/librevisa-0.0.20130812/src/event.h
Examining data/librevisa-0.0.20130812/src/resource_manager.h
Examining data/librevisa-0.0.20130812/src/findlist.cpp
Examining data/librevisa-0.0.20130812/src/session.h
Examining data/librevisa-0.0.20130812/src/viPrintf.cpp
Examining data/librevisa-0.0.20130812/src/viOpenDefaultRM.cpp
Examining data/librevisa-0.0.20130812/src/viDisableEvent.cpp
Examining data/librevisa-0.0.20130812/src/viClose.cpp
Examining data/librevisa-0.0.20130812/src/event_queue.cpp
Examining data/librevisa-0.0.20130812/src/exception.h
Examining data/librevisa-0.0.20130812/src/viSPrintf.cpp
Examining data/librevisa-0.0.20130812/src/resource.h
Examining data/librevisa-0.0.20130812/src/vxi/vxi_resource.h
Examining data/librevisa-0.0.20130812/src/vxi/vxi_resource.cpp
Examining data/librevisa-0.0.20130812/src/vxi/vxi_resource_creator.h
Examining data/librevisa-0.0.20130812/src/vxi/avahi.cpp
Examining data/librevisa-0.0.20130812/src/vxi/avahi.h
Examining data/librevisa-0.0.20130812/src/vxi/vxi_resource_creator.cpp
Examining data/librevisa-0.0.20130812/src/resource_manager.cpp
Examining data/librevisa-0.0.20130812/src/messagepump_avahi.h
Examining data/librevisa-0.0.20130812/src/viReadSTB.cpp
Examining data/librevisa-0.0.20130812/src/viBufWrite.cpp
Examining data/librevisa-0.0.20130812/src/mutex.h
Examining data/librevisa-0.0.20130812/src/thread_pthread.h
Examining data/librevisa-0.0.20130812/src/viFindRsrc.cpp
Examining data/librevisa-0.0.20130812/src/viVPrintf.cpp
Examining data/librevisa-0.0.20130812/src/timeval_op.h
Examining data/librevisa-0.0.20130812/src/viEnableEvent.cpp
Examining data/librevisa-0.0.20130812/src/resource_creator.h
Examining data/librevisa-0.0.20130812/src/messagepump.cpp
Examining data/librevisa-0.0.20130812/src/viFlush.cpp
Examining data/librevisa-0.0.20130812/src/object.h
Examining data/librevisa-0.0.20130812/src/mutex_windows.h
Examining data/librevisa-0.0.20130812/src/event_queue.h
Examining data/librevisa-0.0.20130812/src/thread_pthread.cpp
Examining data/librevisa-0.0.20130812/src/viOpen.cpp
Examining data/librevisa-0.0.20130812/src/viFindNext.cpp
Examining data/librevisa-0.0.20130812/src/viParseRsrc.cpp
Examining data/librevisa-0.0.20130812/src/viRead.cpp
Examining data/librevisa-0.0.20130812/src/thread.h
Examining data/librevisa-0.0.20130812/src/session.cpp
Examining data/librevisa-0.0.20130812/src/lock.h
Examining data/librevisa-0.0.20130812/src/base_vprintf.cpp

FINAL RESULTS:

data/librevisa-0.0.20130812/include/visa.h:211:66:  [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.
                                    ViBusSize mapSize, ViBoolean access,
data/librevisa-0.0.20130812/include/visa.h:216:66:  [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.
                                    ViBusSize mapSize, ViBoolean access,
data/librevisa-0.0.20130812/tests/lock_attr_exclusive.c:33:22:  [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.
        ViAccessMode access;
data/librevisa-0.0.20130812/tests/lock_attr_exclusive.c:35:61:  [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.
        rc = viGetAttribute(rmgr, VI_ATTR_RSRC_LOCK_STATE, &access);
data/librevisa-0.0.20130812/tests/lock_attr_exclusive.c:40:12:  [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 != VI_NO_LOCK)
data/librevisa-0.0.20130812/tests/lock_attr_exclusive.c:53:61:  [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.
        rc = viGetAttribute(rmgr, VI_ATTR_RSRC_LOCK_STATE, &access);
data/librevisa-0.0.20130812/tests/lock_attr_exclusive.c:58:12:  [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 != VI_EXCLUSIVE_LOCK)
data/librevisa-0.0.20130812/tests/lock_attr_exclusive.c:66:61:  [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.
        rc = viGetAttribute(rmgr, VI_ATTR_RSRC_LOCK_STATE, &access);
data/librevisa-0.0.20130812/tests/lock_attr_exclusive.c:71:12:  [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 != VI_NO_LOCK)
data/librevisa-0.0.20130812/tests/lock_attr_shared.c:33:22:  [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.
        ViAccessMode access;
data/librevisa-0.0.20130812/tests/lock_attr_shared.c:35:61:  [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.
        rc = viGetAttribute(rmgr, VI_ATTR_RSRC_LOCK_STATE, &access);
data/librevisa-0.0.20130812/tests/lock_attr_shared.c:40:12:  [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 != VI_NO_LOCK)
data/librevisa-0.0.20130812/tests/lock_attr_shared.c:53:61:  [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.
        rc = viGetAttribute(rmgr, VI_ATTR_RSRC_LOCK_STATE, &access);
data/librevisa-0.0.20130812/tests/lock_attr_shared.c:58:12:  [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 != VI_SHARED_LOCK)
data/librevisa-0.0.20130812/tests/lock_attr_shared.c:66:61:  [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.
        rc = viGetAttribute(rmgr, VI_ATTR_RSRC_LOCK_STATE, &access);
data/librevisa-0.0.20130812/tests/lock_attr_shared.c:71:12:  [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 != VI_NO_LOCK)
data/librevisa-0.0.20130812/tests/lock_invalid_mode.c:33:22:  [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.
        ViAccessMode access;
data/librevisa-0.0.20130812/tests/lock_invalid_mode.c:35:59:  [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.
        rc = viGetAttribute(vi, VI_ATTR_RSRC_LOCK_STATE, &access);
data/librevisa-0.0.20130812/tests/lock_invalid_mode.c:40:12:  [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 != VI_NO_LOCK)
data/librevisa-0.0.20130812/src/mutex_windows.h:30:27:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
        mutex() throw() { InitializeCriticalSection(&impl); }
data/librevisa-0.0.20130812/src/mutex_windows.h:33:31:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
        void lock() throw() { EnterCriticalSection(&impl); }
data/librevisa-0.0.20130812/src/base_vprintf.cpp:56: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[23];
data/librevisa-0.0.20130812/src/base_vprintf.cpp:99: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 oct[3+1] = {0,0,0,0};
data/librevisa-0.0.20130812/src/base_vprintf.cpp:136:33:  [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 numbuf[23];
data/librevisa-0.0.20130812/src/base_vprintf.cpp:273:49:  [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[bufsiz];
data/librevisa-0.0.20130812/src/base_vprintf.cpp:290:49:  [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[bufsiz];
data/librevisa-0.0.20130812/src/usb/usb_resource.cpp:133: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(&data[12], buf, size);
data/librevisa-0.0.20130812/src/usb/usb_resource.cpp:168: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(header, &rx_buf[rx_buf_offset], header_bytes);
data/librevisa-0.0.20130812/src/usb/usb_resource.cpp:182: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(&header[header_received], rx_buf, header_bytes);
data/librevisa-0.0.20130812/src/usb/usb_resource.cpp:199: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(&payload_buf[payload_copied], &rx_buf[rx_buf_offset], copy_bytes);
data/librevisa-0.0.20130812/src/usb/usb_resource.cpp:218: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(&payload_buf[payload_copied], &rx_buf[rx_buf_offset], copy_bytes);
data/librevisa-0.0.20130812/src/usb/usb_resource.cpp:232:18:  [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 buffer[3];
data/librevisa-0.0.20130812/src/usb/usb_resource.cpp:255:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                unsigned char ibuffer[2];
data/librevisa-0.0.20130812/src/usb/usb_resource_creator.cpp:303:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                unsigned char bytes[64];
data/librevisa-0.0.20130812/src/viBufWrite.cpp:41: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->GetFmtWriteBuf() + s->GetFmtWriteBufCnt(), buf, count);
data/librevisa-0.0.20130812/src/vxi/avahi.cpp:154:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buffer[AVAHI_ADDRESS_STR_MAX];
data/librevisa-0.0.20130812/src/vxi/vxi_resource.cpp:57:28:  [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).
                struct { } open;
data/librevisa-0.0.20130812/src/vxi/vxi_resource.cpp:272:11:  [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(ac.read.buffer, read_resp->data.data_val, read_resp->data.data_len);
data/librevisa-0.0.20130812/tests/dummy.cpp:50: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, op.data, op.count);
data/librevisa-0.0.20130812/tests/print.c:67:18:  [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[42];
data/librevisa-0.0.20130812/src/base_vprintf.cpp:173:63:  [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(fwidth && fwidth > strlen(pnum)) {
data/librevisa-0.0.20130812/src/base_vprintf.cpp:174:80:  [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).
                                                for(ViUInt32 n=0; n < fwidth - strlen(pnum); n++) {
data/librevisa-0.0.20130812/src/base_vprintf.cpp:228:65:  [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).
                                        nprecnum = (prec==-1) ? strlen(pnum) : prec > (ViInt32)strlen(pnum) ? prec : strlen(pnum);
data/librevisa-0.0.20130812/src/base_vprintf.cpp:228:96:  [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).
                                        nprecnum = (prec==-1) ? strlen(pnum) : prec > (ViInt32)strlen(pnum) ? prec : strlen(pnum);
data/librevisa-0.0.20130812/src/base_vprintf.cpp:228:118:  [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).
                                        nprecnum = (prec==-1) ? strlen(pnum) : prec > (ViInt32)strlen(pnum) ? prec : strlen(pnum);
data/librevisa-0.0.20130812/src/base_vprintf.cpp:229:76:  [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(!padright && fwidth && fwidth > strlen(pnum)) {
data/librevisa-0.0.20130812/src/base_vprintf.cpp:237:68:  [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).
                                        for(ViInt32 i = nprecnum - strlen(pnum); i > 0; i--) {
data/librevisa-0.0.20130812/src/base_vprintf.cpp:250:75:  [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(padright && fwidth && fwidth > strlen(numbuf)) {
data/librevisa-0.0.20130812/src/messagepump.cpp:69:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                ret |= read;
data/librevisa-0.0.20130812/src/messagepump.cpp:188:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                if(i->event & read)
data/librevisa-0.0.20130812/src/messagepump_avahi.cpp:73:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if(event & main.read)
data/librevisa-0.0.20130812/src/messagepump_avahi.cpp:84:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                ret |= main.read;
data/librevisa-0.0.20130812/src/vxi/vxi_resource.cpp:67:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                } read;
data/librevisa-0.0.20130812/src/vxi/vxi_resource.cpp:79:110:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        rpc_watch_proxy(vxi_resource &master, int fd) : master(master) { this->fd = fd; event = messagepump::read; }
data/librevisa-0.0.20130812/src/vxi/vxi_resource.cpp:251:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ac.read.buffer = buf;
data/librevisa-0.0.20130812/src/vxi/vxi_resource.cpp:252:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ac.read.size = count;
data/librevisa-0.0.20130812/src/vxi/vxi_resource.cpp:254:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        *retCount = ac.read.count;
data/librevisa-0.0.20130812/src/vxi/vxi_resource.cpp:263:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                ac.read.size,
data/librevisa-0.0.20130812/src/vxi/vxi_resource.cpp:272:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ::memcpy(ac.read.buffer, read_resp->data.data_val, read_resp->data.data_len);
data/librevisa-0.0.20130812/src/vxi/vxi_resource.cpp:273:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ac.read.count = read_resp->data.data_len;
data/librevisa-0.0.20130812/src/vxi/vxi_resource.cpp:364:68:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                main.update_watch(*i, messagepump::read);
data/librevisa-0.0.20130812/tests/print.c:61: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).
        if(count != strlen(testdata))
data/librevisa-0.0.20130812/tests/print.c:64:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if(memcmp(data, testdata, strlen(testdata)))
data/librevisa-0.0.20130812/tests/print.c:71:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if(memcmp(buf, testdata, strlen(testdata)))
data/librevisa-0.0.20130812/tests/print.c:74:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if(*(buf + strlen(testdata)) != '\0')

ANALYSIS SUMMARY:

Hits = 65
Lines analyzed = 8306 in approximately 0.25 seconds (32799 lines/second)
Physical Source Lines of Code (SLOC) = 5360
Hits@level = [0]   8 [1]  25 [2]  19 [3]   2 [4]  19 [5]   0
Hits@level+ = [0+]  73 [1+]  65 [2+]  40 [3+]  21 [4+]  19 [5+]   0
Hits/KSLOC@level+ = [0+] 13.6194 [1+] 12.1269 [2+] 7.46269 [3+] 3.91791 [4+] 3.54478 [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.