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/ros-bond-core-1.8.6/bondcpp/include/bondcpp/BondSM_sm.h Examining data/ros-bond-core-1.8.6/bondcpp/include/bondcpp/bond.h Examining data/ros-bond-core-1.8.6/bondcpp/include/bondcpp/timeout.h Examining data/ros-bond-core-1.8.6/bondcpp/src/BondSM_sm.cpp Examining data/ros-bond-core-1.8.6/bondcpp/src/bond.cpp Examining data/ros-bond-core-1.8.6/bondcpp/src/timeout.cpp Examining data/ros-bond-core-1.8.6/smclib/include/smclib/statemap.h Examining data/ros-bond-core-1.8.6/test_bond/test/exercise_bond.cpp Examining data/ros-bond-core-1.8.6/test_bond/test/test_callbacks_cpp.cpp FINAL RESULTS: data/ros-bond-core-1.8.6/bondcpp/src/bond.cpp:61: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 uuid_str[40]; data/ros-bond-core-1.8.6/test_bond/test/exercise_bond.cpp:53: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 uuid_str[40]; data/ros-bond-core-1.8.6/test_bond/test/test_callbacks_cpp.cpp:52: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 uuid_str[40]; data/ros-bond-core-1.8.6/smclib/include/smclib/statemap.h:90:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void) std::strncpy(retval, s, MAX_NAME_LEN); ANALYSIS SUMMARY: Hits = 4 Lines analyzed = 2496 in approximately 0.07 seconds (34994 lines/second) Physical Source Lines of Code (SLOC) = 1618 Hits@level = [0] 0 [1] 1 [2] 3 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 4 [1+] 4 [2+] 3 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 2.47219 [1+] 2.47219 [2+] 1.85414 [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.