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/libjconv-2.8/compat.c Examining data/libjconv-2.8/conv.c Examining data/libjconv-2.8/info.c Examining data/libjconv-2.8/jconv.c Examining data/libjconv-2.8/jconv.h FINAL RESULTS: data/libjconv-2.8/conv.c:261:31: [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. printf ("%02x ", ((unsigned char *)src)[i]); data/libjconv-2.8/info.c:106: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 buffer[1024]; data/libjconv-2.8/info.c:108:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(conffile, "r"); data/libjconv-2.8/info.c:194:17: [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. codes = (const char **)jconv_locales[current_locale].pref_codesets; data/libjconv-2.8/conv.c:242:48: [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). error_code = jconv_alloc_conv_autodetect(src, strlen(src), data/libjconv-2.8/conv.c:260:19: [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). for (i = 0; i <= strlen (src); i++) { data/libjconv-2.8/info.c:124:7: [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 (strlen(jconv_locales[i].name) == name_len && data/libjconv-2.8/info.c:142:49: [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). current_locale = jconv_info_query(locale_name, strlen(locale_name)); data/libjconv-2.8/info.c:237:15: [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). fwrite(dest, strlen(dest), 1, stdout); ANALYSIS SUMMARY: Hits = 9 Lines analyzed = 694 in approximately 0.05 seconds (12893 lines/second) Physical Source Lines of Code (SLOC) = 567 Hits@level = [0] 16 [1] 5 [2] 4 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 25 [1+] 9 [2+] 4 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 44.0917 [1+] 15.873 [2+] 7.05467 [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.