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/libglade2-2.6.4/tests/test-value-parse.c Examining data/libglade2-2.6.4/tests/test-libglade-gtk.c Examining data/libglade2-2.6.4/test-libglade.c Examining data/libglade2-2.6.4/glade/glade.h Examining data/libglade2-2.6.4/glade/glade-xml.h Examining data/libglade2-2.6.4/glade/glade-gtk.c Examining data/libglade2-2.6.4/glade/glade-init.h Examining data/libglade2-2.6.4/glade/glade-private.h Examining data/libglade2-2.6.4/glade/glade-xml.c Examining data/libglade2-2.6.4/glade/glade-parser.h Examining data/libglade2-2.6.4/glade/glade-build.h Examining data/libglade2-2.6.4/glade/glade-parser.c Examining data/libglade2-2.6.4/glade/glade-init.c FINAL RESULTS: data/libglade2-2.6.4/glade/glade-init.c:88:2: [2] (buffer) wchar_t: 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. wchar_t wcbfr[1000]; data/libglade2-2.6.4/glade/glade-init.c:95:2: [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 cpbfr[1000]; data/libglade2-2.6.4/glade/glade-xml.c:1404:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(prop_info, parent_info, data/libglade2-2.6.4/glade/glade-xml.c:1407:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&prop_info[count], array->data, data/libglade2-2.6.4/glade/glade-xml.c:1853:6: [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[50]; data/libglade2-2.6.4/glade/glade-gtk.c:162:45: [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). gtk_text_buffer_set_text (buffy, value, strlen (value)); data/libglade2-2.6.4/glade/glade-gtk.c:426:43: [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). c = g_utf8_get_char_validated (value, strlen (value)); data/libglade2-2.6.4/glade/glade-gtk.c:499:24: [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). items_end = &items[strlen (items)]; data/libglade2-2.6.4/glade/glade-init.c:66:54: [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). strncmp (configure_time_path, GLADE_PREFIX "/", strlen (GLADE_PREFIX) + 1) == 0) { data/libglade2-2.6.4/glade/glade-init.c:68:31: [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). configure_time_path + strlen (GLADE_PREFIX), data/libglade2-2.6.4/glade/glade-xml.c:541:37: [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 (!strncmp (data->name, name, strlen (data->name))) ANALYSIS SUMMARY: Hits = 11 Lines analyzed = 6091 in approximately 0.44 seconds (13743 lines/second) Physical Source Lines of Code (SLOC) = 4312 Hits@level = [0] 0 [1] 6 [2] 5 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 11 [1+] 11 [2+] 5 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 2.55102 [1+] 2.55102 [2+] 1.15955 [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.