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/ltpanel-0.2/src/drawing.h Examining data/ltpanel-0.2/src/lpanel.h Examining data/ltpanel-0.2/src/drawing.c Examining data/ltpanel-0.2/src/lpanel.c FINAL RESULTS: data/ltpanel-0.2/src/lpanel.c:795:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(matchme, "%s%%i", pattern); /* eg: -n=%i */ data/ltpanel-0.2/src/lpanel.c:796:6: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. if (sscanf(arg, matchme, &n) > 0) { data/ltpanel-0.2/src/lpanel.c:792: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 matchme[6]; data/ltpanel-0.2/src/lpanel.c:413: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(tk->name); ANALYSIS SUMMARY: Hits = 4 Lines analyzed = 1076 in approximately 0.04 seconds (23987 lines/second) Physical Source Lines of Code (SLOC) = 822 Hits@level = [0] 3 [1] 1 [2] 1 [3] 0 [4] 2 [5] 0 Hits@level+ = [0+] 7 [1+] 4 [2+] 3 [3+] 2 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 8.51582 [1+] 4.86618 [2+] 3.64964 [3+] 2.43309 [4+] 2.43309 [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.