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/jzmq-3.1.0/builds/msvc/config.hpp Examining data/jzmq-3.1.0/src/main/c++/Context.cpp Examining data/jzmq-3.1.0/src/main/c++/Poller.cpp Examining data/jzmq-3.1.0/src/main/c++/Socket.cpp Examining data/jzmq-3.1.0/src/main/c++/ZMQ.cpp Examining data/jzmq-3.1.0/src/main/c++/jzmq.hpp Examining data/jzmq-3.1.0/src/main/c++/util.cpp Examining data/jzmq-3.1.0/src/main/c++/util.hpp Examining data/jzmq-3.1.0/src/main/c++/Event.cpp FINAL RESULTS: data/jzmq-3.1.0/src/main/c++/Event.cpp:81: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 addr[1025]; data/jzmq-3.1.0/src/main/c++/Event.cpp:94: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(paddr, zmq_msg_data(&addr_msg), len); data/jzmq-3.1.0/src/main/c++/Socket.cpp:254:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char optval[1024]; data/jzmq-3.1.0/src/main/c++/Socket.cpp:806:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read > 0) { data/jzmq-3.1.0/src/main/c++/Socket.cpp:807:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read = read > rem ? rem : read; data/jzmq-3.1.0/src/main/c++/Socket.cpp:807:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read = read > rem ? rem : read; data/jzmq-3.1.0/src/main/c++/Socket.cpp:809:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return read; data/jzmq-3.1.0/src/main/c++/Socket.cpp:818:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return read; ANALYSIS SUMMARY: Hits = 8 Lines analyzed = 1693 in approximately 0.12 seconds (13567 lines/second) Physical Source Lines of Code (SLOC) = 1252 Hits@level = [0] 0 [1] 5 [2] 3 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 8 [1+] 8 [2+] 3 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 6.38978 [1+] 6.38978 [2+] 2.39617 [3+] 0 [4+] 0 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.