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/fcitx-chewing-0.2.3/src/config.c Examining data/fcitx-chewing-0.2.3/src/eim.c Examining data/fcitx-chewing-0.2.3/src/eim.h FINAL RESULTS: data/fcitx-chewing-0.2.3/src/eim.c:437:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(FcitxInputStateGetOutputString(input), str); data/fcitx-chewing-0.2.3/src/eim.c:256:18: [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 *) builtin_keymaps[chewing->config.layout])); data/fcitx-chewing-0.2.3/src/eim.c:374:13: [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(zuin_str) == 0 && strlen(buf_str) == 0 && index == 0) data/fcitx-chewing-0.2.3/src/eim.c:374:38: [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(zuin_str) == 0 && strlen(buf_str) == 0 && index == 0) data/fcitx-chewing-0.2.3/src/eim.c:493:25: [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(buf_str) == 0) ANALYSIS SUMMARY: Hits = 5 Lines analyzed = 659 in approximately 0.04 seconds (15952 lines/second) Physical Source Lines of Code (SLOC) = 488 Hits@level = [0] 0 [1] 3 [2] 1 [3] 0 [4] 1 [5] 0 Hits@level+ = [0+] 5 [1+] 5 [2+] 2 [3+] 1 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 10.2459 [1+] 10.2459 [2+] 4.09836 [3+] 2.04918 [4+] 2.04918 [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.