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/libdbusmenu-18.10.20180917~bzr492+repack1/libdbusmenu-glib/client.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/libdbusmenu-glib/client.h
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/libdbusmenu-glib/client-menuitem.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/libdbusmenu-glib/client-menuitem.h
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/libdbusmenu-glib/client-private.h
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/libdbusmenu-glib/dbusmenu-glib.h
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/libdbusmenu-glib/defaults.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/libdbusmenu-glib/defaults.h
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/libdbusmenu-glib/menuitem.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/libdbusmenu-glib/menuitem.h
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/libdbusmenu-glib/menuitem-private.h
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/libdbusmenu-glib/menuitem-proxy.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/libdbusmenu-glib/menuitem-proxy.h
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/libdbusmenu-glib/server.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/libdbusmenu-glib/server.h
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/libdbusmenu-glib/types.h
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/libdbusmenu-gtk/client.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/libdbusmenu-gtk/client.h
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/libdbusmenu-gtk/dbusmenu-gtk.h
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/libdbusmenu-gtk/genericmenuitem.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/libdbusmenu-gtk/genericmenuitem.h
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/libdbusmenu-gtk/menu.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/libdbusmenu-gtk/menu.h
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/libdbusmenu-gtk/menuitem.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/libdbusmenu-gtk/menuitem.h
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/libdbusmenu-gtk/parser.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/libdbusmenu-gtk/parser.h
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/glib-server-nomenu.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/json-loader.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/json-loader.h
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-glib-events-client.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-glib-events-nogroup-client.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-glib-events-server.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-glib-layout-client.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-glib-layout.h
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-glib-layout-server.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-glib-objects.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-glib-properties-client.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-glib-properties.h
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-glib-properties-server.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-glib-proxy-client.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-glib-proxy.h
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-glib-proxy-proxy.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-glib-proxy-server.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-glib-simple-items.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-glib-submenu-client.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-glib-submenu.h
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-glib-submenu-server.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-gtk-label-client.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-gtk-label-server.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-gtk-objects.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-gtk-parser.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-gtk-remove-server.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-gtk-reorder-server.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-gtk-shortcut-client.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-gtk-shortcut-server.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-gtk-submenu-client.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-gtk-submenu-server.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-json-client.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-json-server.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tools/dbusmenu-dumper.c
Examining data/libdbusmenu-18.10.20180917~bzr492+repack1/tools/testapp/main.c

FINAL RESULTS:

data/libdbusmenu-18.10.20180917~bzr492+repack1/libdbusmenu-glib/menuitem.c:306:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	g_value_set_int(out, atoi(g_value_get_string(in)));
data/libdbusmenu-18.10.20180917~bzr492+repack1/libdbusmenu-glib/menuitem.c:1391:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		return atoi(string);
data/libdbusmenu-18.10.20180917~bzr492+repack1/tests/test-gtk-remove-server.c:48:7:  [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 buf[80];

ANALYSIS SUMMARY:

Hits = 3
Lines analyzed = 18167 in approximately 0.63 seconds (28612 lines/second)
Physical Source Lines of Code (SLOC) = 11186
Hits@level = [0]   0 [1]   0 [2]   3 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   3 [1+]   3 [2+]   3 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 0.268192 [1+] 0.268192 [2+] 0.268192 [3+]   0 [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.