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/ibus-m17n-1.4.3/src/engine.c Examining data/ibus-m17n-1.4.3/src/engine.h Examining data/ibus-m17n-1.4.3/src/m17nutil.c Examining data/ibus-m17n-1.4.3/src/m17nutil.h Examining data/ibus-m17n-1.4.3/src/main.c Examining data/ibus-m17n-1.4.3/src/minput_list.c Examining data/ibus-m17n-1.4.3/src/setup.c Examining data/ibus-m17n-1.4.3/src/test.c FINAL RESULTS: data/ibus-m17n-1.4.3/src/m17nutil.c:303:34: [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). cnode->config.rank = atoi (sub_node->text); data/ibus-m17n-1.4.3/src/engine.c:647:16: [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 (buf && strlen (buf)) { data/ibus-m17n-1.4.3/src/engine.c:965:23: [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 (status && strlen (status)) { data/ibus-m17n-1.4.3/src/setup.c:79: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). strlen (text)); ANALYSIS SUMMARY: Hits = 4 Lines analyzed = 2441 in approximately 0.09 seconds (26791 lines/second) Physical Source Lines of Code (SLOC) = 1973 Hits@level = [0] 3 [1] 3 [2] 1 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 7 [1+] 4 [2+] 1 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 3.5479 [1+] 2.02737 [2+] 0.506842 [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.