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/notification-daemon-3.20.0/src/nd-notification-box.h Examining data/notification-daemon-3.20.0/src/nd-notification.h Examining data/notification-daemon-3.20.0/src/nd-queue.c Examining data/notification-daemon-3.20.0/src/nd-bubble.c Examining data/notification-daemon-3.20.0/src/nd-daemon.c Examining data/notification-daemon-3.20.0/src/nd-queue.h Examining data/notification-daemon-3.20.0/src/nd-main.c Examining data/notification-daemon-3.20.0/src/nd-daemon.h Examining data/notification-daemon-3.20.0/src/nd-notification-box.c Examining data/notification-daemon-3.20.0/src/nd-fd-notifications.h Examining data/notification-daemon-3.20.0/src/nd-stack.h Examining data/notification-daemon-3.20.0/src/nd-notification.c Examining data/notification-daemon-3.20.0/src/nd-stack.c Examining data/notification-daemon-3.20.0/src/nd-fd-notifications.c Examining data/notification-daemon-3.20.0/src/nd-bubble.h FINAL RESULTS: data/notification-daemon-3.20.0/src/nd-notification.c:467:23: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. char *realpath; data/notification-daemon-3.20.0/src/nd-notification.c:470:60: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. pixbuf = gdk_pixbuf_new_from_file_at_size (realpath, size, size, NULL); data/notification-daemon-3.20.0/src/nd-notification.c:471:25: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. g_free (realpath); ANALYSIS SUMMARY: Hits = 3 Lines analyzed = 6590 in approximately 0.17 seconds (39189 lines/second) Physical Source Lines of Code (SLOC) = 4743 Hits@level = [0] 0 [1] 0 [2] 0 [3] 3 [4] 0 [5] 0 Hits@level+ = [0+] 3 [1+] 3 [2+] 3 [3+] 3 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 0.632511 [1+] 0.632511 [2+] 0.632511 [3+] 0.632511 [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.