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/suil-0.10.8/src/dylib.h Examining data/suil-0.10.8/src/gtk2_in_qt4.cpp Examining data/suil-0.10.8/src/gtk2_in_qt5.cpp Examining data/suil-0.10.8/src/host.c Examining data/suil-0.10.8/src/instance.c Examining data/suil-0.10.8/src/qt4_in_gtk2.cpp Examining data/suil-0.10.8/src/qt5_in_gtk.cpp Examining data/suil-0.10.8/src/suil_internal.h Examining data/suil-0.10.8/src/win_in_gtk2.cpp Examining data/suil-0.10.8/src/x11.c Examining data/suil-0.10.8/src/x11_in_gtk2.c Examining data/suil-0.10.8/src/x11_in_gtk3.c Examining data/suil-0.10.8/src/x11_in_qt4.cpp Examining data/suil-0.10.8/src/x11_in_qt5.cpp Examining data/suil-0.10.8/suil/suil.h FINAL RESULTS: data/suil-0.10.8/src/suil_internal.h:35:31: [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. #define SUIL_ERRORF(fmt, ...) fprintf(stderr, "suil error: " fmt, __VA_ARGS__) data/suil-0.10.8/src/dylib.h:33:9: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. return LoadLibrary(filename); data/suil-0.10.8/src/suil_internal.h:107:31: [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. const char* const env_dir = getenv("SUIL_MODULE_DIR"); data/suil-0.10.8/src/suil_internal.h:109:31: [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). const size_t path_len = strlen(mod_dir) data/suil-0.10.8/src/suil_internal.h:110:5: [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(SUIL_DIR_SEP SUIL_MODULE_PREFIX SUIL_MODULE_EXT) data/suil-0.10.8/src/suil_internal.h:111:5: [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(module_name) ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 3530 in approximately 0.16 seconds (22717 lines/second) Physical Source Lines of Code (SLOC) = 2517 Hits@level = [0] 1 [1] 3 [2] 0 [3] 2 [4] 1 [5] 0 Hits@level+ = [0+] 7 [1+] 6 [2+] 3 [3+] 3 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 2.78109 [1+] 2.38379 [2+] 1.1919 [3+] 1.1919 [4+] 0.397298 [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.