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/vala-panel-appmenu-0.7.6+dfsg1/lib/dbusmenu-importer/debug.c Examining data/vala-panel-appmenu-0.7.6+dfsg1/lib/dbusmenu-importer/debug.h Examining data/vala-panel-appmenu-0.7.6+dfsg1/lib/dbusmenu-importer/definitions.h Examining data/vala-panel-appmenu-0.7.6+dfsg1/lib/dbusmenu-importer/importer.c Examining data/vala-panel-appmenu-0.7.6+dfsg1/lib/dbusmenu-importer/importer.h Examining data/vala-panel-appmenu-0.7.6+dfsg1/lib/dbusmenu-importer/item.c Examining data/vala-panel-appmenu-0.7.6+dfsg1/lib/dbusmenu-importer/item.h Examining data/vala-panel-appmenu-0.7.6+dfsg1/lib/dbusmenu-importer/item-pixbuf.c Examining data/vala-panel-appmenu-0.7.6+dfsg1/lib/dbusmenu-importer/model.c Examining data/vala-panel-appmenu-0.7.6+dfsg1/lib/dbusmenu-importer/model.h Examining data/vala-panel-appmenu-0.7.6+dfsg1/lib/dbusmenu-importer/section.c Examining data/vala-panel-appmenu-0.7.6+dfsg1/lib/dbusmenu-importer/section.h Examining data/vala-panel-appmenu-0.7.6+dfsg1/lib/dbusmenu-importer/test.c Examining data/vala-panel-appmenu-0.7.6+dfsg1/lib/dbusmenu-importer/utils.c Examining data/vala-panel-appmenu-0.7.6+dfsg1/lib/dbusmenu-importer/utils.h Examining data/vala-panel-appmenu-0.7.6+dfsg1/lib/launcher.c Examining data/vala-panel-appmenu-0.7.6+dfsg1/lib/launcher.h Examining data/vala-panel-appmenu-0.7.6+dfsg1/lib/libwnck-aux.c Examining data/vala-panel-appmenu-0.7.6+dfsg1/lib/libwnck-aux.h Examining data/vala-panel-appmenu-0.7.6+dfsg1/lib/matcher.c Examining data/vala-panel-appmenu-0.7.6+dfsg1/lib/matcher.h FINAL RESULTS: data/vala-panel-appmenu-0.7.6+dfsg1/lib/dbusmenu-importer/utils.c:30:2: [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. sscanf(g_action_get_name(G_ACTION(action)), ACTION_PREFIX "%u", &id); data/vala-panel-appmenu-0.7.6+dfsg1/lib/dbusmenu-importer/utils.c:45:2: [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. sscanf(g_action_get_name(G_ACTION(action)), ACTION_PREFIX "%u", &id); data/vala-panel-appmenu-0.7.6+dfsg1/lib/dbusmenu-importer/utils.c:64:2: [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. sscanf(id_str, ACTION_PREFIX "%u", &id); data/vala-panel-appmenu-0.7.6+dfsg1/lib/launcher.c:111:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open(filename, O_RDONLY); data/vala-panel-appmenu-0.7.6+dfsg1/lib/launcher.c:65: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). if (uri_scheme != NULL && strlen(uri_scheme) <= 0) data/vala-panel-appmenu-0.7.6+dfsg1/lib/launcher.c:112:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool rr = read(fd, ret, 1024); ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 3493 in approximately 0.15 seconds (24015 lines/second) Physical Source Lines of Code (SLOC) = 2723 Hits@level = [0] 0 [1] 2 [2] 1 [3] 0 [4] 3 [5] 0 Hits@level+ = [0+] 6 [1+] 6 [2+] 4 [3+] 3 [4+] 3 [5+] 0 Hits/KSLOC@level+ = [0+] 2.20345 [1+] 2.20345 [2+] 1.46897 [3+] 1.10173 [4+] 1.10173 [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.