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/libassa-3.5.1/assa/Pipe.h Examining data/libassa-3.5.1/assa/UNIXAddress.cpp Examining data/libassa-3.5.1/assa/PriorityQueue_STLPQ.h Examining data/libassa-3.5.1/assa/IniFile.cpp Examining data/libassa-3.5.1/assa/xdrIOBuffer.h Examining data/libassa-3.5.1/assa/CommonUtils.cpp Examining data/libassa-3.5.1/assa/SigSet.h Examining data/libassa-3.5.1/assa/FdSet.h Examining data/libassa-3.5.1/assa/TimeVal.h Examining data/libassa-3.5.1/assa/TimerCountdown.h Examining data/libassa-3.5.1/assa/PriorityQueue.h Examining data/libassa-3.5.1/assa/FdSet.cpp Examining data/libassa-3.5.1/assa/Logger.h Examining data/libassa-3.5.1/assa/Fork.h Examining data/libassa-3.5.1/assa/MaskSet.h Examining data/libassa-3.5.1/assa/RemoteLogger.h Examining data/libassa-3.5.1/assa/Singleton.h Examining data/libassa-3.5.1/assa/ServiceHandler.h Examining data/libassa-3.5.1/assa/XDRHack.h Examining data/libassa-3.5.1/assa/IdSet.cpp Examining data/libassa-3.5.1/assa/Socket.h Examining data/libassa-3.5.1/assa/FileLogger.h Examining data/libassa-3.5.1/assa/Socketbuf.cpp Examining data/libassa-3.5.1/assa/UDPSocket.cpp Examining data/libassa-3.5.1/assa/UnConUDPSocket.h Examining data/libassa-3.5.1/assa/Streambuf.h Examining data/libassa-3.5.1/assa/PidFileLock.cpp Examining data/libassa-3.5.1/assa/Timer.h Examining data/libassa-3.5.1/assa/ConUDPSocket.cpp Examining data/libassa-3.5.1/assa/Streambuf.cpp Examining data/libassa-3.5.1/assa/SigHandlersList.h Examining data/libassa-3.5.1/assa/SigHandler.h Examining data/libassa-3.5.1/assa/Destroyer.h Examining data/libassa-3.5.1/assa/IPv4Socket.cpp Examining data/libassa-3.5.1/assa/CharInBuffer.h Examining data/libassa-3.5.1/assa/ConUDPSocket.h Examining data/libassa-3.5.1/assa/Semaphore.cpp Examining data/libassa-3.5.1/assa/IniFile.h Examining data/libassa-3.5.1/assa/Semaphore.h Examining data/libassa-3.5.1/assa/StdOutLogger.h Examining data/libassa-3.5.1/assa/UDPSocket.h Examining data/libassa-3.5.1/assa/TimerQueue.h Examining data/libassa-3.5.1/assa/Logger.cpp Examining data/libassa-3.5.1/assa/TimeVal.cpp Examining data/libassa-3.5.1/assa/PriorityQueue_Impl.h Examining data/libassa-3.5.1/assa/Assure.h Examining data/libassa-3.5.1/assa/GenServer.h Examining data/libassa-3.5.1/assa/Fork.cpp Examining data/libassa-3.5.1/assa/EventHandler.h Examining data/libassa-3.5.1/assa/INETAddress.cpp Examining data/libassa-3.5.1/assa/Regexp.h Examining data/libassa-3.5.1/assa/RemoteLogger.cpp Examining data/libassa-3.5.1/assa/Acceptor.h Examining data/libassa-3.5.1/assa/Reactor.cpp Examining data/libassa-3.5.1/assa/MemDump.cpp Examining data/libassa-3.5.1/assa/Connector.h Examining data/libassa-3.5.1/assa/UNIXAddress.h Examining data/libassa-3.5.1/assa/Address.h Examining data/libassa-3.5.1/assa/PriorityQueue_Heap.h Examining data/libassa-3.5.1/assa/LogMask.h Examining data/libassa-3.5.1/assa/Pipe.cpp Examining data/libassa-3.5.1/assa/SigHandlers.h Examining data/libassa-3.5.1/assa/UnConUDPSocket.cpp Examining data/libassa-3.5.1/assa/INETAddress.h Examining data/libassa-3.5.1/assa/Assa.h Examining data/libassa-3.5.1/assa/CharInBuffer.cpp Examining data/libassa-3.5.1/assa/StdOutLogger.cpp Examining data/libassa-3.5.1/assa/GenServer.cpp Examining data/libassa-3.5.1/assa/FileLogger.cpp Examining data/libassa-3.5.1/assa/IdSet.h Examining data/libassa-3.5.1/assa/TimerQueue.cpp Examining data/libassa-3.5.1/assa/Reactor.h Examining data/libassa-3.5.1/assa/xdrIOBuffer.cpp Examining data/libassa-3.5.1/assa/Repository.h Examining data/libassa-3.5.1/assa/AutoPtr.h Examining data/libassa-3.5.1/assa/Handlers.h Examining data/libassa-3.5.1/assa/MemDump.h Examining data/libassa-3.5.1/assa/SigHandler.cpp Examining data/libassa-3.5.1/assa/PidFileLock.h Examining data/libassa-3.5.1/assa/Regexp.cpp Examining data/libassa-3.5.1/assa/IPv4Socket.h Examining data/libassa-3.5.1/assa/Socketbuf.h Examining data/libassa-3.5.1/assa/SigAction.h Examining data/libassa-3.5.1/assa/CommonUtils.h Examining data/libassa-3.5.1/assa/Logger_Impl.cpp Examining data/libassa-3.5.1/assa/Logger_Impl.h Examining data/libassa-3.5.1/assa/Socket.cpp Examining data/libassa-3.5.1/assa/CmdLineOpts.cpp Examining data/libassa-3.5.1/assa/CmdLineOpts.h Examining data/libassa-3.5.1/assa/SigHandlers.cpp Examining data/libassa-3.5.1/examples/logserver/server/LogServer-main.h Examining data/libassa-3.5.1/examples/logserver/server/MonitorConn.cpp Examining data/libassa-3.5.1/examples/logserver/server/MonitorConn.h Examining data/libassa-3.5.1/examples/logserver/server/LogServer.cpp Examining data/libassa-3.5.1/examples/logserver/server/Conn.h Examining data/libassa-3.5.1/examples/logserver/server/LogServer-main.cpp Examining data/libassa-3.5.1/examples/logserver/server/LogServer.h Examining data/libassa-3.5.1/examples/logserver/server/Conn.cpp Examining data/libassa-3.5.1/examples/logserver/monitor/LogConn.h Examining data/libassa-3.5.1/examples/logserver/monitor/LogConn.cpp Examining data/libassa-3.5.1/examples/logserver/monitor/LogMon.cpp Examining data/libassa-3.5.1/examples/logserver/monitor/LogMon-main.cpp Examining data/libassa-3.5.1/examples/logserver/monitor/LogMon.h Examining data/libassa-3.5.1/examples/logserver/monitor/LogMon-main.h Examining data/libassa-3.5.1/examples/logserver/client/LogClient.h Examining data/libassa-3.5.1/examples/logserver/client/LogClient-main.cpp Examining data/libassa-3.5.1/examples/logserver/client/LogClient.cpp Examining data/libassa-3.5.1/examples/logserver/client/MakeData.cpp Examining data/libassa-3.5.1/examples/logserver/client/LogClient-main.h Examining data/libassa-3.5.1/examples/helloworld/HelloWorld-main.cpp Examining data/libassa-3.5.1/examples/helloworld/HelloWorld-main.h Examining data/libassa-3.5.1/examples/helloworld/HelloWorld.cpp Examining data/libassa-3.5.1/examples/helloworld/HelloWorld.h Examining data/libassa-3.5.1/tests/pidflock_test.cpp Examining data/libassa-3.5.1/tests/pq_test.cpp Examining data/libassa-3.5.1/tests/inet_address_test.cpp Examining data/libassa-3.5.1/tests/ttcp_assa.cpp Examining data/libassa-3.5.1/tests/reactor_test.cpp Examining data/libassa-3.5.1/tests/semaphore_test.cpp Examining data/libassa-3.5.1/tests/common_utils_test.cpp Examining data/libassa-3.5.1/tests/inifile_test.cpp Examining data/libassa-3.5.1/tests/bufio_tests.cpp Examining data/libassa-3.5.1/tests/fork_test.cpp Examining data/libassa-3.5.1/tests/idset_test.cpp Examining data/libassa-3.5.1/tests/sighand_test.cpp Examining data/libassa-3.5.1/tests/charinbuffer_test.cpp Examining data/libassa-3.5.1/tests/pipe_test.cpp Examining data/libassa-3.5.1/tests/sb_testc.cpp Examining data/libassa-3.5.1/tests/daytime.cpp Examining data/libassa-3.5.1/tests/connector_test.cpp Examining data/libassa-3.5.1/tests/echoxdr_tests.cpp Examining data/libassa-3.5.1/tests/sighands_test.cpp Examining data/libassa-3.5.1/tests/glops_test.cpp Examining data/libassa-3.5.1/tests/timeval_test.cpp Examining data/libassa-3.5.1/tests/connector2_test.cpp Examining data/libassa-3.5.1/tests/smoker.cpp Examining data/libassa-3.5.1/tests/echoxdr_testc.cpp Examining data/libassa-3.5.1/tests/genserver_test.cpp Examining data/libassa-3.5.1/tests/sb_tests.cpp Examining data/libassa-3.5.1/tests/fdset_test.cpp Examining data/libassa-3.5.1/tests/regexp_test.cpp Examining data/libassa-3.5.1/tests/autoptr_test.cpp Examining data/libassa-3.5.1/tests/timer_queue_test.cpp Examining data/libassa-3.5.1/tests/memdump_test.cpp Examining data/libassa-3.5.1/tests/logger_test.cpp Examining data/libassa-3.5.1/tests/echos.cpp Examining data/libassa-3.5.1/tests/rt_test.cpp Examining data/libassa-3.5.1/tests/bufio_testc.cpp Examining data/libassa-3.5.1/utils/bytereader.cpp Examining data/libassa-3.5.1/utils/assa-hexdump.cpp Examining data/libassa-3.5.1/utils/assa-genesis.cpp FINAL RESULTS: data/libassa-3.5.1/assa/CmdLineOpts.cpp:682:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (p, it->c_str ()); data/libassa-3.5.1/assa/CommonUtils.cpp:132:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (ret, getenv ("HOME") ? getenv ("HOME") : ""); data/libassa-3.5.1/assa/CommonUtils.cpp:149:13: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (ret, home_dir); data/libassa-3.5.1/assa/CommonUtils.cpp:155:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (ret, p->pw_dir ? p->pw_dir : ""); data/libassa-3.5.1/assa/Fork.cpp:108:3: [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 (cmd_.c_str (), argv); data/libassa-3.5.1/assa/IPv4Socket.cpp:135:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(m_path, p); data/libassa-3.5.1/assa/Logger.cpp:165:8: [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. ret = vsnprintf (bufp, len-1, fmt_, ap2); data/libassa-3.5.1/assa/Logger.cpp:174:10: [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. ret = vsnprintf (bufp, len-1, fmt_, ap2); data/libassa-3.5.1/assa/Logger.cpp:192:10: [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. ret = ::vsnprintf (&c, 1, fmt_, ap); data/libassa-3.5.1/assa/Logger_Impl.cpp:102:10: [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. ret = ::vsnprintf (msg, expected_sz_, fmt_, vap_); data/libassa-3.5.1/assa/Pipe.cpp:87:3: [4] (shell) execl: 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. execl ("/bin/sh", "sh", "-c", cmd_.c_str (), (char* ) 0); data/libassa-3.5.1/assa/UNIXAddress.cpp:33:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (m_address.sun_path, socket_name_); data/libassa-3.5.1/assa/UNIXAddress.cpp:50:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(m_address.sun_path, sa_un->sun_path); data/libassa-3.5.1/tests/bufio_testc.cpp:230:4: [4] (shell) execlp: 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. execlp (exec_name.c_str (), data/libassa-3.5.1/tests/connector2_test.cpp:266:5: [4] (shell) execlp: 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. ::execlp (exec_name.c_str (), exec_name.c_str (), data/libassa-3.5.1/tests/echoxdr_testc.cpp:295:11: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. ret = execlp (exec_name.c_str (), data/libassa-3.5.1/tests/echoxdr_testc.cpp:341:9: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. ret = execlp (exec_name.c_str (), data/libassa-3.5.1/tests/pidflock_test.cpp:472:10: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. ret = execlp (get_cmdline_name ().c_str (), data/libassa-3.5.1/tests/ttcp_assa.cpp:482:5: [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,Usage); data/libassa-3.5.1/assa/Address.h:111:7: [3] (random) setstate: 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. void setstate (addrstate flag_) { m_state |= flag_; } data/libassa-3.5.1/assa/CommonUtils.cpp:132:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. strcpy (ret, getenv ("HOME") ? getenv ("HOME") : ""); data/libassa-3.5.1/assa/CommonUtils.cpp:132:35: [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. strcpy (ret, getenv ("HOME") ? getenv ("HOME") : ""); data/libassa-3.5.1/assa/CommonUtils.cpp:189:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char* ep = ::getenv (varname); data/libassa-3.5.1/assa/ConUDPSocket.cpp:29:3: [3] (random) setstate: 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. setstate (Socket::failbit); data/libassa-3.5.1/assa/ConUDPSocket.cpp:70:3: [3] (random) setstate: 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. setstate (Socket::failbit); data/libassa-3.5.1/assa/ConUDPSocket.cpp:73:3: [3] (random) setstate: 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. setstate (Socket::failbit | Socket::eofbit); data/libassa-3.5.1/assa/INETAddress.cpp:153:2: [3] (random) setstate: 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. setstate (Address::badbit); data/libassa-3.5.1/assa/INETAddress.cpp:171:3: [3] (random) setstate: 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. setstate (Address::badbit); data/libassa-3.5.1/assa/INETAddress.cpp:197:3: [3] (random) setstate: 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. setstate (Address::badbit); data/libassa-3.5.1/assa/IPv4Socket.cpp:52:3: [3] (random) setstate: 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. setstate (Socket::failbit); data/libassa-3.5.1/assa/IPv4Socket.cpp:76:3: [3] (random) setstate: 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. setstate (Socket::failbit); data/libassa-3.5.1/assa/IPv4Socket.cpp:157:3: [3] (random) setstate: 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. setstate (Socket::failbit); data/libassa-3.5.1/assa/IPv4Socket.cpp:267:4: [3] (random) setstate: 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. setstate (Socket::failbit); data/libassa-3.5.1/assa/IPv4Socket.cpp:277:3: [3] (random) setstate: 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. setstate (Socket::failbit | Socket::eofbit); data/libassa-3.5.1/assa/IPv4Socket.cpp:342:6: [3] (random) setstate: 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. s->setstate (Socket::failbit); data/libassa-3.5.1/assa/Socket.cpp:78:4: [3] (random) setstate: 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. setstate (badbit); data/libassa-3.5.1/assa/Socket.cpp:94:3: [3] (random) setstate: 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. setstate (Socket::failbit); data/libassa-3.5.1/assa/Socket.cpp:320:3: [3] (random) setstate: 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. setstate (Socket::eofbit|Socket::failbit); data/libassa-3.5.1/assa/Socket.cpp:325:4: [3] (random) setstate: 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. setstate (Socket::eofbit|Socket::failbit); data/libassa-3.5.1/assa/Socket.cpp:371:3: [3] (random) setstate: 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. setstate (Socket::eofbit|Socket::failbit); data/libassa-3.5.1/assa/Socket.cpp:409:3: [3] (random) setstate: 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. setstate (Socket::eofbit|Socket::failbit); data/libassa-3.5.1/assa/Socket.cpp:423:3: [3] (random) setstate: 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. setstate (Socket::eofbit|Socket::failbit); data/libassa-3.5.1/assa/Socket.cpp:457:3: [3] (random) setstate: 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. setstate (Socket::eofbit|Socket::failbit);\ data/libassa-3.5.1/assa/Socket.cpp:479:3: [3] (random) setstate: 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. setstate (Socket::eofbit|Socket::failbit); data/libassa-3.5.1/assa/Socket.cpp:496:3: [3] (random) setstate: 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. setstate (Socket::eofbit|Socket::failbit); data/libassa-3.5.1/assa/Socket.cpp:553:3: [3] (random) setstate: 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. setstate (Socket::eofbit|Socket::failbit); data/libassa-3.5.1/assa/Socket.cpp:558:4: [3] (random) setstate: 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. setstate (Socket::eofbit|Socket::failbit); data/libassa-3.5.1/assa/Socket.cpp:571:3: [3] (random) setstate: 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. setstate (Socket::eofbit|Socket::failbit); data/libassa-3.5.1/assa/Socket.cpp:583:3: [3] (random) setstate: 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. setstate (Socket::eofbit|Socket::failbit); data/libassa-3.5.1/assa/Socket.cpp:607:3: [3] (random) setstate: 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. setstate (Socket::eofbit|Socket::failbit);\ data/libassa-3.5.1/assa/Socket.cpp:629:3: [3] (random) setstate: 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. setstate (Socket::eofbit|Socket::failbit); data/libassa-3.5.1/assa/Socket.cpp:646:3: [3] (random) setstate: 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. setstate (Socket::eofbit|Socket::failbit); data/libassa-3.5.1/assa/Socket.h:310:7: [3] (random) setstate: 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. void setstate (iostate flag_); data/libassa-3.5.1/assa/Socket.h:577:9: [3] (random) setstate: 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. Socket::setstate(iostate flag_) data/libassa-3.5.1/assa/UDPSocket.cpp:30:3: [3] (random) setstate: 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. setstate (Socket::failbit); data/libassa-3.5.1/assa/UDPSocket.cpp:44:3: [3] (random) setstate: 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. setstate (Socket::failbit); data/libassa-3.5.1/assa/UDPSocket.cpp:59:3: [3] (random) setstate: 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. setstate (Socket::failbit); data/libassa-3.5.1/assa/UNIXAddress.cpp:31:3: [3] (random) setstate: 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. setstate (Address::badbit); data/libassa-3.5.1/assa/UNIXAddress.cpp:48:3: [3] (random) setstate: 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. setstate (Address::badbit); data/libassa-3.5.1/tests/common_utils_test.cpp:247:22: [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. string expected = ::getenv ("HOME"); data/libassa-3.5.1/tests/daytime.cpp:228:21: [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* assaport = ::getenv("ASSAPORT"); data/libassa-3.5.1/tests/echoxdr_testc.cpp:259:14: [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 ((ap = ::getenv("ASSAPORT")) != 0) { data/libassa-3.5.1/tests/memdump_test.cpp:26:7: [3] (random) random: 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. char random[] = "qwertyuiopasdfghjklzxcvbnmasdfghv"; data/libassa-3.5.1/tests/memdump_test.cpp:37:16: [3] (random) random: 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. MemDump dump1(random, strlen(random)); data/libassa-3.5.1/tests/memdump_test.cpp:37:31: [3] (random) random: 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. MemDump dump1(random, strlen(random)); data/libassa-3.5.1/tests/memdump_test.cpp:38:51: [3] (random) random: 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. cout << "Dump of random-ordered alphabet:\n[" << random << "]\n\n" data/libassa-3.5.1/tests/pq_test.cpp:99:9: [3] (random) drand48: 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. y = drand48 (); data/libassa-3.5.1/tests/pq_test.cpp:101:2: [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 (tv.msec ()); data/libassa-3.5.1/tests/pq_test.cpp:195:17: [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 ((c = getopt (argc, argv, "hf:r:n:")) != -1) { data/libassa-3.5.1/tests/ttcp_assa.cpp:199:17: [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 ((c = getopt(argc, argv, "drstuvBDTb:f:l:n:p:A:O:")) != -1) { data/libassa-3.5.1/assa/Acceptor.h:63:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). virtual int open (const Address& local_addr_); data/libassa-3.5.1/assa/Acceptor.h:216: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). if (sh->open () < 0) { data/libassa-3.5.1/assa/Acceptor.h:224:1: [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 (const Address& local_addr_) data/libassa-3.5.1/assa/Acceptor.h:228: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). if ( !m_listenSocket.open (local_addr_.getAddress ()->sa_family) ) { data/libassa-3.5.1/assa/Address.h:40: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 sun_path [108]; /* Path name */ data/libassa-3.5.1/assa/CommonUtils.cpp:125: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 b [1024]; data/libassa-3.5.1/assa/CommonUtils.cpp:137: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 lname [256]; data/libassa-3.5.1/assa/CommonUtils.cpp:164: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 varname [80]; data/libassa-3.5.1/assa/Connector.h:83: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). virtual int open (const TimeVal& tv_ = TimeVal (5.0), data/libassa-3.5.1/assa/Connector.h:223:1: [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 (const TimeVal& tv_, ConnectMode mode_, Reactor* r_) data/libassa-3.5.1/assa/Connector.h:309: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). if ( !s.open (protocol_family_) ) { data/libassa-3.5.1/assa/Connector.h:327: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). return m_sh->open (); data/libassa-3.5.1/assa/FileLogger.cpp:56: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). m_sink.open (m_logfname.c_str (), std::ios::out | std::ios::app); data/libassa-3.5.1/assa/FileLogger.cpp:215: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). m_sink.open (m_logfname.c_str (), data/libassa-3.5.1/assa/Fork.cpp:97:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). pid_t nullfd = open("/dev/null", O_WRONLY | O_CREAT, 0666); data/libassa-3.5.1/assa/GenServer.cpp:96: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 hn[64]; data/libassa-3.5.1/assa/GenServer.cpp:203:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char instbuf[16]; // INT_MAX [-]2147483647 data/libassa-3.5.1/assa/GenServer.cpp:204: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(instbuf, "%d", m_instance); data/libassa-3.5.1/assa/GenServer.cpp:377: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). nullfd = open ("/dev/null", O_WRONLY | O_CREAT, 0666); data/libassa-3.5.1/assa/INETAddress.cpp:77: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 ((void*) &m_address, (const void*) address_, sizeof(SA_IN)); data/libassa-3.5.1/assa/INETAddress.cpp:86: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 ((void*) &m_address, (const void*) address_, sizeof(SA_IN)); data/libassa-3.5.1/assa/INETAddress.cpp:114: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[HOSTNAMELEN]; // 64 on Linux/i386 data/libassa-3.5.1/assa/INETAddress.cpp:176: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 ((char*) &m_address.sin_addr, hp->h_addr_list[0], hp->h_length); data/libassa-3.5.1/assa/INETAddress.cpp:221: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 sysname[20]; data/libassa-3.5.1/assa/INETAddress.cpp:222: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 nodename[20]; data/libassa-3.5.1/assa/INETAddress.cpp:223:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char release[20]; data/libassa-3.5.1/assa/INETAddress.cpp:224: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 version[20]; data/libassa-3.5.1/assa/INETAddress.cpp:225: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 machine[20]; data/libassa-3.5.1/assa/IPv4Socket.cpp:42:1: [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 (const int domain_) data/libassa-3.5.1/assa/IPv4Socket.cpp:97:34: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!is_valid_handler (m_fd) && open (getDomain()) == false) { data/libassa-3.5.1/assa/IPv4Socket.h:74:7: [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 int domain_); data/libassa-3.5.1/assa/IniFile.cpp:47: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 inbuf [size]; data/libassa-3.5.1/assa/IniFile.cpp:54:11: [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_stream.open (m_fname.c_str (), std::ios::in); data/libassa-3.5.1/assa/IniFile.cpp:115:11: [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_stream.open (fname_.c_str (), std::ios::app | std::ios::out); data/libassa-3.5.1/assa/Logger.cpp:92:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). log_connector.open (tv); data/libassa-3.5.1/assa/Logger.cpp:151:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char tmpbuf[TMPBUF_SZ]; data/libassa-3.5.1/assa/Logger_Impl.h:233:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char m_msgbuf [LOGGER_MAXLINE]; data/libassa-3.5.1/assa/MemDump.cpp:77:3: [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(hex,"%01x%01x", p[i] >> 4 & 0x0f, p[i] & 0x0f); data/libassa-3.5.1/assa/MemDump.cpp:80:28: [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. if (p[i] == '\n') { sprintf(ascii,"\\n"); ascii+=2; } data/libassa-3.5.1/assa/MemDump.cpp:81:28: [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. else if (p[i] == '\t') { sprintf(ascii,"\\t"); ascii+=2; } data/libassa-3.5.1/assa/MemDump.cpp:82:28: [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. else if (p[i] == '\v') { sprintf(ascii,"\\v"); ascii+=2; } data/libassa-3.5.1/assa/MemDump.cpp:83:28: [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. else if (p[i] == '\b') { sprintf(ascii,"\\b"); ascii+=2; } data/libassa-3.5.1/assa/MemDump.cpp:84:28: [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. else if (p[i] == '\r') { sprintf(ascii,"\\r"); ascii+=2; } data/libassa-3.5.1/assa/MemDump.cpp:85:28: [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. else if (p[i] == '\f') { sprintf(ascii,"\\f"); ascii+=2; } data/libassa-3.5.1/assa/MemDump.cpp:86:28: [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. else if (p[i] == '\a') { sprintf(ascii,"\\a"); ascii+=2; } data/libassa-3.5.1/assa/MemDump.cpp:87:28: [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. else if (p[i] == '\0') { sprintf(ascii,"\\0"); ascii+=2; } data/libassa-3.5.1/assa/MemDump.cpp:89:4: [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 (ascii++,"%c", ((p[i] < ' ' || p [i] > '~') ? '.' : p [i])); data/libassa-3.5.1/assa/PidFileLock.cpp:325: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[64]; data/libassa-3.5.1/assa/PidFileLock.cpp:441:11: [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 (fname_.c_str (), O_WRONLY|O_CREAT, 0644); data/libassa-3.5.1/assa/Pipe.cpp:51:1: [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 (const string& cmd_, const string& type_) data/libassa-3.5.1/assa/Pipe.h:56:8: [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). FILE* open (const string& cmd_, const string& type_); data/libassa-3.5.1/assa/PriorityQueue_Heap.h:98: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 (m_queue, h_.m_queue, sizeof(T)*m_curr); data/libassa-3.5.1/assa/PriorityQueue_Heap.h:112: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 (m_queue, h_.m_queue, sizeof(T)*m_curr); data/libassa-3.5.1/assa/PriorityQueue_Heap.h: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 (new_chunk, m_queue, m_curr * sizeof(T)); data/libassa-3.5.1/assa/RemoteLogger.cpp:39:1: [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 () data/libassa-3.5.1/assa/RemoteLogger.h:47: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). virtual int open (); data/libassa-3.5.1/assa/Semaphore.cpp:174:1: [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 (key_t key_) data/libassa-3.5.1/assa/Semaphore.h:94:6: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int open (key_t key_); data/libassa-3.5.1/assa/ServiceHandler.h:71: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). virtual int open (void) = 0; data/libassa-3.5.1/assa/Socket.cpp:316: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 buf[PGSIZE]; data/libassa-3.5.1/assa/Socket.cpp:548: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. static const char pad [4] = { 0, 0, 0, 0 }; data/libassa-3.5.1/assa/Socket.cpp:703: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 c [sizeof (short)]; data/libassa-3.5.1/assa/Socket.h:152: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). virtual bool open(const int domain_) =0; data/libassa-3.5.1/assa/Streambuf.cpp:153:3: [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_, m_read_ptr, count); data/libassa-3.5.1/assa/Streambuf.cpp:203: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_write_ptr, s, count); data/libassa-3.5.1/assa/Streambuf.h:47: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 m_shortbuf[1]; data/libassa-3.5.1/assa/TimeVal.cpp:149: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[80]; data/libassa-3.5.1/assa/TimeVal.cpp:159:3: [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 (buf + strlen(buf), data/libassa-3.5.1/assa/TimeVal.cpp:173: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 [80]; data/libassa-3.5.1/assa/TimeVal.cpp:182:2: [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 (buf + strlen(buf), ".%03ld", millisec ()); data/libassa-3.5.1/assa/TimeVal.cpp:192: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 [80]; data/libassa-3.5.1/assa/TimeVal.cpp:201:2: [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 (buf + strlen(buf), ".%03ld", millisec ()); data/libassa-3.5.1/assa/TimeVal.cpp:211: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 [80]; data/libassa-3.5.1/assa/TimeVal.cpp:220:2: [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 (buf + strlen(buf), ".%03ld", millisec ()); data/libassa-3.5.1/assa/UDPSocket.cpp:22:1: [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 (const int domain_) data/libassa-3.5.1/assa/UDPSocket.h:58:7: [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 int domain_); data/libassa-3.5.1/assa/xdrIOBuffer.cpp:119: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 (m_buf, rhs_.m_buf, m_sz); data/libassa-3.5.1/assa/xdrIOBuffer.cpp:136: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 ((char*) &val, m_ptr, unit_sz); data/libassa-3.5.1/assa/xdrIOBuffer.cpp:185: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 ((char*) &val, m_ptr, unit_sz); data/libassa-3.5.1/examples/logserver/client/LogClient.cpp:69: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 line [size]; data/libassa-3.5.1/examples/logserver/client/LogClient.cpp:74: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). in_file.open (m_input_file.c_str (), std::ios::in); data/libassa-3.5.1/examples/logserver/monitor/LogConn.cpp:26:1: [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 () data/libassa-3.5.1/examples/logserver/monitor/LogConn.cpp:73: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 [256]; data/libassa-3.5.1/examples/logserver/monitor/LogConn.h:32: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). virtual int open (); data/libassa-3.5.1/examples/logserver/monitor/LogConn.h:42: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 m_eor [2]; // end-of-record data/libassa-3.5.1/examples/logserver/monitor/LogMon.cpp:63: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_connector.open (timeout, ASSA::async, REACTOR); data/libassa-3.5.1/examples/logserver/server/Conn.cpp:25:1: [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 () data/libassa-3.5.1/examples/logserver/server/Conn.cpp:109: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). m_sink.open (path.c_str (), std::ios::out | std::ios::app); data/libassa-3.5.1/examples/logserver/server/Conn.cpp:177: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). m_sink.open (m_logfname.c_str (), std::ios::out | std::ios::app); data/libassa-3.5.1/examples/logserver/server/Conn.h:40: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). virtual int open (); data/libassa-3.5.1/examples/logserver/server/LogServer.cpp:79:27: [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). Assure_exit (m_acceptor->open (lport) == 0); data/libassa-3.5.1/examples/logserver/server/LogServer.cpp:87:35: [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). Assure_exit (m_monitor_acceptor->open (lmport) == 0); data/libassa-3.5.1/examples/logserver/server/MonitorConn.cpp:66:1: [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 () data/libassa-3.5.1/examples/logserver/server/MonitorConn.h:37: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). virtual int open (); data/libassa-3.5.1/examples/logserver/server/MonitorConn.h:51: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 m_iobuf [MAXMSGLEN]; // Message buffer data/libassa-3.5.1/examples/logserver/server/MonitorConn.h:53: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 m_eor [2]; // End-of-Record data/libassa-3.5.1/tests/bufio_testc.cpp:122:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int open (); data/libassa-3.5.1/tests/bufio_testc.cpp:141: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_t3_data[FMAXSIZE]; data/libassa-3.5.1/tests/bufio_testc.cpp:211: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 hn [64]; data/libassa-3.5.1/tests/bufio_testc.cpp:262:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (m_conn.open (tout, ASSA::async, &m_reactor) < 0) { data/libassa-3.5.1/tests/bufio_testc.cpp:317:11: [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). SvrProxy::open () data/libassa-3.5.1/tests/bufio_tests.cpp:69: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). int open (void); data/libassa-3.5.1/tests/bufio_tests.cpp:125:27: [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). Assure_exit (m_lsock->open (laddr) == 0); data/libassa-3.5.1/tests/bufio_tests.cpp:140: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). Reflector::open (void) data/libassa-3.5.1/tests/bufio_tests.cpp:172: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[1416]; // Max data frame with 60-bytes TCP options. data/libassa-3.5.1/tests/charinbuffer_test.cpp:140: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). virtual int open (); data/libassa-3.5.1/tests/charinbuffer_test.cpp:180: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). virtual int open (); data/libassa-3.5.1/tests/charinbuffer_test.cpp:214: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). virtual int open (); data/libassa-3.5.1/tests/charinbuffer_test.cpp:281:27: [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). Assure_exit (m_acceptor->open (m_address) == 0); data/libassa-3.5.1/tests/charinbuffer_test.cpp:286:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (m_connector_t1.open (tv, ASSA::async, REACTOR) < 0) { data/libassa-3.5.1/tests/charinbuffer_test.cpp:291:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (m_connector_t2.open (tv, ASSA::async, REACTOR) < 0) { data/libassa-3.5.1/tests/charinbuffer_test.cpp:435:8: [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). Task1::open () data/libassa-3.5.1/tests/charinbuffer_test.cpp:571:8: [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). Task2::open () data/libassa-3.5.1/tests/charinbuffer_test.cpp:711:11: [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). Loopback::open () data/libassa-3.5.1/tests/connector2_test.cpp:88: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). virtual int open (); data/libassa-3.5.1/tests/connector2_test.cpp:140:1: [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 () data/libassa-3.5.1/tests/connector2_test.cpp:289: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). if (m_connector.open (timeout) < 0) { data/libassa-3.5.1/tests/connector_test.cpp:28:6: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int open (void) { return 0; } data/libassa-3.5.1/tests/daytime.cpp:88:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). virtual int open (void); data/libassa-3.5.1/tests/daytime.cpp:143:1: [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 (void) data/libassa-3.5.1/tests/daytime.cpp:242:30: [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). Assure_exit (m_listener->open (addr) == 0); data/libassa-3.5.1/tests/echos.cpp:77: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). virtual int open (); data/libassa-3.5.1/tests/echos.cpp:119:1: [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 () data/libassa-3.5.1/tests/echos.cpp:171:27: [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). Assure_exit (m_acceptor->open (address) == 0); data/libassa-3.5.1/tests/echoxdr_testc.cpp:245: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 page [4096]; data/libassa-3.5.1/tests/echoxdr_testc.cpp:273: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). Assure_exit (stream.open (AF_INET)); data/libassa-3.5.1/tests/echoxdr_testc.cpp:355:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). assert (stream.open (AF_INET)); data/libassa-3.5.1/tests/echoxdr_tests.cpp:84: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). int open (void); // Called by Acceptor when new client data/libassa-3.5.1/tests/echoxdr_tests.cpp:108:23: [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). Assure_exit (m_acc->open (la) == 0); data/libassa-3.5.1/tests/echoxdr_tests.cpp:131:1: [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 (void) data/libassa-3.5.1/tests/glops_test.cpp:530: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 cfg_name [256]; data/libassa-3.5.1/tests/glops_test.cpp:535:2: [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 (cfg_name, "/tmp/glops_test.%d", getpid ()); data/libassa-3.5.1/tests/glops_test.cpp:538:11: [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). cfg_file.open (cfg_name, std::ios::out); data/libassa-3.5.1/tests/inifile_test.cpp:148: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). test_file.open (m_test_fname.c_str (), std::ios::out); data/libassa-3.5.1/tests/logger_test.cpp:106: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 [size]; data/libassa-3.5.1/tests/pidflock_test.cpp:546:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((m_fp = fopen (LOCK_FILE, "r")) == NULL) { data/libassa-3.5.1/tests/pidflock_test.cpp:626:20: [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). Assure_exit (sem.open (key) != -1); data/libassa-3.5.1/tests/pipe_test.cpp:241: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). if (pipe->open (cmd.c_str (), "r") == NULL) { data/libassa-3.5.1/tests/pipe_test.cpp:260: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 [128]; data/libassa-3.5.1/tests/pipe_test.cpp:287: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). if (pipe->open (cmd.c_str (), "r") == NULL) { data/libassa-3.5.1/tests/pipe_test.cpp:307: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 [128]; data/libassa-3.5.1/tests/pq_test.cpp:183: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]; data/libassa-3.5.1/tests/pq_test.cpp:199: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). case 'r': rand_limit = atoi(optarg); break; data/libassa-3.5.1/tests/pq_test.cpp:200:23: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 'n': rand_nm = atoi(optarg); break; data/libassa-3.5.1/tests/pq_test.cpp:217: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). logger.open (logfile.c_str ()); data/libassa-3.5.1/tests/pq_test.cpp:225:3: [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(buf, "rand_%d_%d.dat", rand_nm, rand_limit); data/libassa-3.5.1/tests/sb_testc.cpp:141: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). virtual int open (); data/libassa-3.5.1/tests/sb_testc.cpp:180: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). virtual int open (); data/libassa-3.5.1/tests/sb_testc.cpp:199: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 m_buffer [FMAXSIZE]; data/libassa-3.5.1/tests/sb_testc.cpp:263:1: [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 () data/libassa-3.5.1/tests/sb_testc.cpp:365:1: [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 () data/libassa-3.5.1/tests/sb_testc.cpp:372:11: [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_source.open (SBTESTCLIENT->get_input_file ().c_str ()); data/libassa-3.5.1/tests/sb_testc.cpp:501:27: [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). Assure_exit (m_acceptor->open (listen_addr) == 0); data/libassa-3.5.1/tests/sb_testc.cpp:511: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_connector.open (); data/libassa-3.5.1/tests/sb_tests.cpp:99: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). virtual int open (); data/libassa-3.5.1/tests/sb_tests.cpp:136: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). virtual int open (); data/libassa-3.5.1/tests/sb_tests.cpp:205:1: [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 () data/libassa-3.5.1/tests/sb_tests.cpp:290: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). m_sink.open (fname); data/libassa-3.5.1/tests/sb_tests.cpp:299:1: [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 () data/libassa-3.5.1/tests/sb_tests.cpp:310: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_connector.open (); data/libassa-3.5.1/tests/sb_tests.cpp:332: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 [bufsz]; data/libassa-3.5.1/tests/sb_tests.cpp:426:27: [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). Assure_exit (m_acceptor->open (listen_addr) == 0); data/libassa-3.5.1/tests/smoker.cpp:169: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 [128]; data/libassa-3.5.1/tests/ttcp_assa.cpp:154:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stats[128]; data/libassa-3.5.1/tests/ttcp_assa.cpp:224:13: [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). nbuf = atoi(optarg); data/libassa-3.5.1/tests/ttcp_assa.cpp:227:15: [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). buflen = atoi(optarg); data/libassa-3.5.1/tests/ttcp_assa.cpp:233:13: [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). port = atoi(optarg); data/libassa-3.5.1/tests/ttcp_assa.cpp:242:17: [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). bufalign = atoi(optarg); data/libassa-3.5.1/tests/ttcp_assa.cpp:245:18: [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). bufoffset = atoi(optarg); data/libassa-3.5.1/tests/ttcp_assa.cpp:249:20: [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). sockbufsize = atoi(optarg); data/libassa-3.5.1/tests/ttcp_assa.cpp:306:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!lsock->open (AF_INET)) data/libassa-3.5.1/tests/ttcp_assa.cpp:521: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 obuf[50]; data/libassa-3.5.1/tests/ttcp_assa.cpp:524:2: [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(obuf, "%.2f GB", b / 1024.0 / 1024.0 / 1024.0); data/libassa-3.5.1/tests/ttcp_assa.cpp:528:2: [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(obuf, "%.2f KB", b / 1024.0); data/libassa-3.5.1/tests/ttcp_assa.cpp:531:2: [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(obuf, "%.2f MB", b / 1024.0 / 1024.0); data/libassa-3.5.1/tests/ttcp_assa.cpp:534:2: [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(obuf, "%.2f Gbit", b * 8.0 / 1024.0 / 1024.0 / 1024.0); data/libassa-3.5.1/tests/ttcp_assa.cpp:537:2: [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(obuf, "%.2f Kbit", b * 8.0 / 1024.0); data/libassa-3.5.1/tests/ttcp_assa.cpp:540:2: [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(obuf, "%.2f Mbit", b * 8.0 / 1024.0 / 1024.0); data/libassa-3.5.1/tests/ttcp_assa.cpp:604: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 line[132]; data/libassa-3.5.1/tests/ttcp_assa.cpp:660:6: [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(outp,"%d.%01d", tdiff.tv_sec, data/libassa-3.5.1/tests/ttcp_assa.cpp:667:6: [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(outp,"%d.%01d", tdiff.tv_sec, data/libassa-3.5.1/tests/ttcp_assa.cpp:678:6: [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(outp,"%d%%", (int) (t*100 / ((ms ? ms : 1)))); data/libassa-3.5.1/tests/ttcp_assa.cpp:685:6: [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(outp,"%d", i); data/libassa-3.5.1/tests/ttcp_assa.cpp:690:6: [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(outp,"%d", data/libassa-3.5.1/tests/ttcp_assa.cpp:696:6: [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(outp,"%d", t == 0 ? 0 : data/libassa-3.5.1/tests/ttcp_assa.cpp:703:6: [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(outp,"%d", t == 0 ? 0 : data/libassa-3.5.1/tests/ttcp_assa.cpp:710:6: [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(outp,"%d", r1->ru_maxrss/2); data/libassa-3.5.1/tests/ttcp_assa.cpp:715:6: [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(outp,"%d", r1->ru_majflt-r0->ru_majflt); data/libassa-3.5.1/tests/ttcp_assa.cpp:720:6: [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(outp,"%d", r1->ru_minflt-r0->ru_minflt); data/libassa-3.5.1/tests/ttcp_assa.cpp:725:6: [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(outp,"%d", r1->ru_inblock-r0->ru_inblock); data/libassa-3.5.1/tests/ttcp_assa.cpp:730:6: [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(outp,"%d", r1->ru_oublock-r0->ru_oublock); data/libassa-3.5.1/tests/ttcp_assa.cpp:734:6: [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(outp,"%d+%d", r1->ru_nvcsw-r0->ru_nvcsw, data/libassa-3.5.1/tests/ttcp_assa.cpp:773:2: [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(cp,"%d:", i); data/libassa-3.5.1/tests/ttcp_assa.cpp:776:2: [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(cp,"%d%d", (i/60) / 10, (i/60) % 10); data/libassa-3.5.1/tests/ttcp_assa.cpp:780:2: [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(cp,"%d", i / 60); data/libassa-3.5.1/tests/ttcp_assa.cpp:785: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(cp,"%d%d", i / 10, i % 10); data/libassa-3.5.1/utils/assa-genesis.cpp:100:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char assa_version [64]; data/libassa-3.5.1/utils/assa-genesis.cpp:1231: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 release[128]; data/libassa-3.5.1/utils/assa-genesis.cpp:1240:2: [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 (assa_version, "%d.%d", ASSA_MAJOR_VERSION, ASSA_MINOR_VERSION); data/libassa-3.5.1/utils/assa-hexdump.cpp:146: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 [4096]; data/libassa-3.5.1/utils/bytereader.cpp:59: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). virtual int open (void); data/libassa-3.5.1/utils/bytereader.cpp:101:11: [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). BTReader::open (void) data/libassa-3.5.1/utils/bytereader.cpp:126: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[81]; data/libassa-3.5.1/utils/bytereader.cpp:181:27: [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). Assure_exit (m_acceptor->open (listening_address) == 0); data/libassa-3.5.1/assa/CharInBuffer.cpp:90:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (s_.read (&c, 1) == 1) data/libassa-3.5.1/assa/CommonUtils.cpp:133:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). r += strlen (ret); data/libassa-3.5.1/assa/CommonUtils.cpp:150: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). r += strlen (ret); data/libassa-3.5.1/assa/CommonUtils.cpp:156: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). r += strlen (ret); data/libassa-3.5.1/assa/CommonUtils.cpp:170:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (varname, in, end-in); data/libassa-3.5.1/assa/CommonUtils.cpp:178:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (varname, in, end-in); data/libassa-3.5.1/assa/ConUDPSocket.cpp:64:1: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(char* packet_, const unsigned int size_) data/libassa-3.5.1/assa/ConUDPSocket.cpp:67:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = ::read(getHandler(), packet_, size_); data/libassa-3.5.1/assa/ConUDPSocket.h:54:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read (char* buf_, const unsigned int size_); data/libassa-3.5.1/assa/FileLogger.cpp:151: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). m_bytecount += strlen (msgbuf_ptr); data/libassa-3.5.1/assa/FileLogger.cpp:177:22: [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). m_bytecount += ::strlen ("---v---\n"); data/libassa-3.5.1/assa/GenServer.cpp:134:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cp += strlen(argv[0]); // position at the end data/libassa-3.5.1/assa/INETAddress.cpp:165:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (host_) == 0) { data/libassa-3.5.1/assa/IPv4Socket.cpp:134: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). m_path = new char[strlen(p)+1]; data/libassa-3.5.1/assa/IPv4Socket.cpp:231:1: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read (char* packet_, const unsigned int size_) data/libassa-3.5.1/assa/IPv4Socket.h:123:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read (char* buf_, const unsigned int size_); data/libassa-3.5.1/assa/IniFile.cpp:63:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (::strlen (inbuf) == 0 || m_comment_pttrn.match (inbuf) == 0) { data/libassa-3.5.1/assa/MemDump.cpp:93:4: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. sprintf (hex++," "); data/libassa-3.5.1/assa/MemDump.cpp:100:4: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. sprintf (ascii++,"\n"); data/libassa-3.5.1/assa/PidFileLock.cpp:144:8: [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 (mypid.str ().c_str ()); data/libassa-3.5.1/assa/PidFileLock.cpp:328:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read (m_fd, buf, 64) > 0) { data/libassa-3.5.1/assa/Regexp.cpp:26:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). ::strncpy (m_pattern, pattern_.c_str (), pattern_.size ()); data/libassa-3.5.1/assa/Socket.cpp:317:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((b = read (buf, PGSIZE))) { data/libassa-3.5.1/assa/Socket.cpp:324:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ( (b = read (&c, 1)) == 0 ) { data/libassa-3.5.1/assa/Socket.cpp:367:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read ((char* ) &c, len) == len) { data/libassa-3.5.1/assa/Socket.cpp:393:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (len-- && read (&c, 1) == 1) { data/libassa-3.5.1/assa/Socket.cpp:405:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read ((char*) &val, sizeof(short)) == sizeof(short)) { data/libassa-3.5.1/assa/Socket.cpp:419:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read ((char*) &val, sizeof(u_short)) == sizeof(u_short)) { data/libassa-3.5.1/assa/Socket.cpp:441:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read ( (char* ) &val, typesz) == typesz) {\ data/libassa-3.5.1/assa/Socket.cpp:475:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read ((char*) &val, sizeof(float)) == sizeof(float)) { data/libassa-3.5.1/assa/Socket.cpp:492:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read ((char*) &val, sizeof(double)) == sizeof(double)) { data/libassa-3.5.1/assa/Socket.h:185:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual int read (char* buf_, const u_int size_); data/libassa-3.5.1/assa/Socket.h:551:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Socket::read(char* /*buf_*/, const u_int /*size_*/) data/libassa-3.5.1/assa/TimeVal.cpp:159: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). sprintf (buf + strlen(buf), data/libassa-3.5.1/assa/TimeVal.cpp:182:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sprintf (buf + strlen(buf), ".%03ld", millisec ()); data/libassa-3.5.1/assa/TimeVal.cpp:201:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sprintf (buf + strlen(buf), ".%03ld", millisec ()); data/libassa-3.5.1/assa/TimeVal.cpp:220:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sprintf (buf + strlen(buf), ".%03ld", millisec ()); data/libassa-3.5.1/assa/UNIXAddress.cpp:29:14: [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 ( (len = strlen(socket_name_)) > sizeof(m_address.sun_path) ) { data/libassa-3.5.1/assa/UNIXAddress.cpp:44: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). size_t len = strlen(sa_un->sun_path); data/libassa-3.5.1/assa/xdrIOBuffer.cpp:42:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((ret = s_.read (b_.m_ptr, expected)) <= 0) data/libassa-3.5.1/examples/logserver/client/LogClient.cpp:99:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer = &line [strlen (line) - delta + 1]; data/libassa-3.5.1/examples/logserver/monitor/LogConn.cpp:76:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((ret = s.read (buf, 256)) < 0) { data/libassa-3.5.1/examples/logserver/server/MonitorConn.cpp:87:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). s.write (abort_msg, strlen (abort_msg)); data/libassa-3.5.1/examples/logserver/server/MonitorConn.cpp:91: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). s.write (msg_, ::strlen (msg_)); data/libassa-3.5.1/examples/logserver/server/MonitorConn.cpp:113:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((ret = s.read (&c, 1)) == 1 && m_iolen < MAXMSGLEN) { data/libassa-3.5.1/tests/bufio_testc.cpp:351:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Assure_exit (s.read (&t1_resp, 1) == 1 && t1 == t1_resp); data/libassa-3.5.1/tests/bufio_testc.cpp:468: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). int len = strlen(buf); data/libassa-3.5.1/tests/bufio_testc.cpp:570: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). int len = strlen(buf); data/libassa-3.5.1/tests/bufio_tests.cpp:188:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rval = s.read (buf, len); data/libassa-3.5.1/tests/bufio_tests.cpp:206:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = s.read (buf, bsz); data/libassa-3.5.1/tests/connector2_test.cpp:176:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((ret = s.read (nextbyte, expected)) > 0) { data/libassa-3.5.1/tests/echos.cpp:135:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((ret = s.read (&c, 1) == 1)) { data/libassa-3.5.1/tests/echoxdr_testc.cpp:320:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ( stream && stream.read (page, 4096) > 0 ) { data/libassa-3.5.1/tests/logger_test.cpp:128: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). (md.getMemDump () == NULL ? -1 : strlen (md.getMemDump ())))); data/libassa-3.5.1/tests/memdump_test.cpp:37: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). MemDump dump1(random, strlen(random)); data/libassa-3.5.1/tests/memdump_test.cpp:41: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). MemDump dump2(random_60, strlen(random_60)); data/libassa-3.5.1/tests/memdump_test.cpp:45: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). MemDump dump3(random_32, strlen(random_32)); data/libassa-3.5.1/tests/pipe_test.cpp:268:4: [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). strlen (buf), m_line_count++, buf)); data/libassa-3.5.1/tests/pipe_test.cpp:317:3: [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). strlen (buf), m_line_count++, buf)); data/libassa-3.5.1/tests/reactor_test.cpp:95:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read (0, &c, 1); data/libassa-3.5.1/tests/sb_tests.cpp:336:47: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (get_stream () && (len = get_stream ().read (buf, bufsz)) > 0) data/libassa-3.5.1/tests/ttcp_assa.cpp:434:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while((cnt=read(0,buf,buflen)) > 0 && data/libassa-3.5.1/tests/ttcp_assa.cpp:609:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy( str, line, len ); data/libassa-3.5.1/tests/ttcp_assa.cpp:808:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cnt = sock->read ((char*) buf_, (u_int)count); data/libassa-3.5.1/tests/ttcp_assa.cpp:873:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nread = sock->read (bufp, n-count); data/libassa-3.5.1/utils/assa-hexdump.cpp:157:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). instream.read (buf, 4096); data/libassa-3.5.1/utils/bytereader.cpp:129:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((len = s.read (buf, 80)) > 0) ANALYSIS SUMMARY: Hits = 341 Lines analyzed = 35072 in approximately 0.97 seconds (36223 lines/second) Physical Source Lines of Code (SLOC) = 21289 Hits@level = [0] 29 [1] 67 [2] 204 [3] 51 [4] 19 [5] 0 Hits@level+ = [0+] 370 [1+] 341 [2+] 274 [3+] 70 [4+] 19 [5+] 0 Hits/KSLOC@level+ = [0+] 17.3799 [1+] 16.0177 [2+] 12.8705 [3+] 3.28808 [4+] 0.89248 [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.