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/gnome-devel-docs-3.38.1/platform-demos/C/guitar-tuner/guitar-tuner.cc Examining data/gnome-devel-docs-3.38.1/platform-demos/C/guitar-tuner/guitar-tuner.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/message-board/message-board.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/scale.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/switch.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/example-custom-gsource.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/linkbutton.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/aboutdialog.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/spinner.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/separator.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/radiobutton.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/button.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/gmenu.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/statusbar.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/label.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/menubar.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/toolbar.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/paned.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/menubutton.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/scrolledwindow.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/dialog.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/messagedialog.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/test-custom-gsource.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/progressbar.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/image.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/togglebutton.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/textview.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/GtkApplicationWindow.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/entry.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/checkbutton.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/hello-in-C/hello-world.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/window.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/grid.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/combobox.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/spinbutton.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/samples/tooltip.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/photo-wall/photo-wall.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/image-viewer/image-viewer.c Examining data/gnome-devel-docs-3.38.1/platform-demos/C/image-viewer/image-viewer.cc FINAL RESULTS: data/gnome-devel-docs-3.38.1/platform-demos/C/samples/statusbar.c:20:3: [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 hold_output[20]; data/gnome-devel-docs-3.38.1/platform-demos/C/message-board/message-board.c:74:30: [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). tmp = g_base64_encode (CSS, strlen((gchar *) CSS)); ANALYSIS SUMMARY: Hits = 2 Lines analyzed = 3728 in approximately 1.39 seconds (2682 lines/second) Physical Source Lines of Code (SLOC) = 2360 Hits@level = [0] 0 [1] 1 [2] 1 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 2 [1+] 2 [2+] 1 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 0.847458 [1+] 0.847458 [2+] 0.423729 [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.