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/libnotify-0.7.9/libnotify/internal.h
Examining data/libnotify-0.7.9/libnotify/notification.c
Examining data/libnotify-0.7.9/libnotify/notification.h
Examining data/libnotify-0.7.9/libnotify/notify.c
Examining data/libnotify-0.7.9/libnotify/notify.h
Examining data/libnotify-0.7.9/tests/test-action-icons.c
Examining data/libnotify-0.7.9/tests/test-basic.c
Examining data/libnotify-0.7.9/tests/test-default-action.c
Examining data/libnotify-0.7.9/tests/test-error.c
Examining data/libnotify-0.7.9/tests/test-image.c
Examining data/libnotify-0.7.9/tests/test-markup.c
Examining data/libnotify-0.7.9/tests/test-multi-actions.c
Examining data/libnotify-0.7.9/tests/test-persistence.c
Examining data/libnotify-0.7.9/tests/test-removal.c
Examining data/libnotify-0.7.9/tests/test-replace-widget.c
Examining data/libnotify-0.7.9/tests/test-replace.c
Examining data/libnotify-0.7.9/tests/test-resident.c
Examining data/libnotify-0.7.9/tests/test-rtl.c
Examining data/libnotify-0.7.9/tests/test-server-info.c
Examining data/libnotify-0.7.9/tests/test-size-changes.c
Examining data/libnotify-0.7.9/tests/test-transient.c
Examining data/libnotify-0.7.9/tests/test-urgency.c
Examining data/libnotify-0.7.9/tests/test-xy-actions.c
Examining data/libnotify-0.7.9/tests/test-xy-stress.c
Examining data/libnotify-0.7.9/tests/test-xy.c
Examining data/libnotify-0.7.9/tools/notify-send.c

FINAL RESULTS:

data/libnotify-0.7.9/libnotify/notification.c:445:41:  [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.
                        path_filename = realpath (base_path, NULL);
data/libnotify-0.7.9/tests/test-xy-stress.c:74:13:  [3] (random) g_random_int_range:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        x = g_random_int_range (0, screen_x2);
data/libnotify-0.7.9/tests/test-xy-stress.c:75:13:  [3] (random) g_random_int_range:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        y = g_random_int_range (0, screen_y2);

ANALYSIS SUMMARY:

Hits = 3
Lines analyzed = 3806 in approximately 0.29 seconds (13005 lines/second)
Physical Source Lines of Code (SLOC) = 2325
Hits@level = [0]  66 [1]   0 [2]   0 [3]   3 [4]   0 [5]   0
Hits@level+ = [0+]  69 [1+]   3 [2+]   3 [3+]   3 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 29.6774 [1+] 1.29032 [2+] 1.29032 [3+] 1.29032 [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.