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/termit-3.1/src/callbacks.c Examining data/termit-3.1/src/callbacks.h Examining data/termit-3.1/src/configs.c Examining data/termit-3.1/src/configs.h Examining data/termit-3.1/src/keybindings.c Examining data/termit-3.1/src/keybindings.h Examining data/termit-3.1/src/lua_api.c Examining data/termit-3.1/src/lua_api.h Examining data/termit-3.1/src/lua_conf.c Examining data/termit-3.1/src/sessions.c Examining data/termit-3.1/src/sessions.h Examining data/termit-3.1/src/termit.c Examining data/termit-3.1/src/termit.h Examining data/termit-3.1/src/termit_core_api.c Examining data/termit-3.1/src/termit_core_api.h Examining data/termit-3.1/src/termit_preferences.c Examining data/termit-3.1/src/termit_style.c Examining data/termit-3.1/src/termit_style.h FINAL RESULTS: data/termit-3.1/src/termit.c:413:20: [3] (buffer) getopt_long: 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. int flag = getopt_long(argc, argv, "-hvi:n:c:r:T:", long_options, &option_index); data/termit-3.1/src/termit_core_api.c:710: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(pHandlerId, &handlerId, sizeof(handlerId)); data/termit-3.1/src/callbacks.c:97: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(searchRegex) == 0) { data/termit-3.1/src/keybindings.c:92:12: [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). while (strlen(token) > 0) { data/termit-3.1/src/keybindings.c:95:28: [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). modifier_len = strlen(termit_modifiers[i].name); data/termit-3.1/src/termit_core_api.c:80:54: [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). vte_terminal_feed(VTE_TERMINAL(pTab->vte), data, strlen(data)); data/termit-3.1/src/termit_core_api.c:85:60: [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). vte_terminal_feed_child(VTE_TERMINAL(pTab->vte), data, strlen(data)); data/termit-3.1/src/termit_core_api.c:285:13: [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). str[strlen(str) - 1] = '\0'; ANALYSIS SUMMARY: Hits = 8 Lines analyzed = 4480 in approximately 0.12 seconds (37751 lines/second) Physical Source Lines of Code (SLOC) = 3723 Hits@level = [0] 0 [1] 6 [2] 1 [3] 1 [4] 0 [5] 0 Hits@level+ = [0+] 8 [1+] 8 [2+] 2 [3+] 1 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 2.1488 [1+] 2.1488 [2+] 0.537201 [3+] 0.268601 [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.