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/groonga-normalizer-mysql-1.1.4/normalizers/mysql_general_ci_table.h
Examining data/groonga-normalizer-mysql-1.1.4/normalizers/mysql.c
Examining data/groonga-normalizer-mysql-1.1.4/normalizers/mysql_unicode_900_as_ci_table.h
Examining data/groonga-normalizer-mysql-1.1.4/normalizers/mysql_unicode_520_ci_table.h
Examining data/groonga-normalizer-mysql-1.1.4/normalizers/mysql_unicode_ci_except_kana_ci_kana_with_voiced_sound_mark_table.h
Examining data/groonga-normalizer-mysql-1.1.4/normalizers/mysql_unicode_900_as_cs_table.h
Examining data/groonga-normalizer-mysql-1.1.4/normalizers/mysql_unicode_520_ci_except_kana_ci_kana_with_voiced_sound_mark_table.h
Examining data/groonga-normalizer-mysql-1.1.4/normalizers/mysql_unicode_900_ja_as_cs_ks_table.h
Examining data/groonga-normalizer-mysql-1.1.4/normalizers/mysql_unicode_900_ai_ci_table.h
Examining data/groonga-normalizer-mysql-1.1.4/normalizers/mysql_unicode_ci_table.h
Examining data/groonga-normalizer-mysql-1.1.4/normalizers/mysql_unicode_900_ja_as_cs_table.h

FINAL RESULTS:

data/groonga-normalizer-mysql-1.1.4/normalizers/mysql.c:54:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  define snprintf _snprintf
data/groonga-normalizer-mysql-1.1.4/normalizers/mysql.c:54:20:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  define snprintf _snprintf
data/groonga-normalizer-mysql-1.1.4/normalizers/mysql.c:277:5:  [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 formatted_byte[FORMATTED_BYTE_BUFFER_SIZE];
data/groonga-normalizer-mysql-1.1.4/normalizers/mysql.c:447:5:  [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[SNIPPET_BUFFER_SIZE];
data/groonga-normalizer-mysql-1.1.4/normalizers/mysql.c:255: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).
  string_length = strlen(string);
data/groonga-normalizer-mysql-1.1.4/normalizers/mysql.c:260:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
  strncat(buffer, string, buffer_length);
data/groonga-normalizer-mysql-1.1.4/normalizers/mysql.c:283:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(formatted_byte, "0x00", FORMATTED_BYTE_BUFFER_SIZE);
data/groonga-normalizer-mysql-1.1.4/normalizers/mysql.c:784:27:  [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).
    (raw_string_length == strlen(c_string) &&                   \

ANALYSIS SUMMARY:

Hits = 8
Lines analyzed = 39542 in approximately 1.82 seconds (21732 lines/second)
Physical Source Lines of Code (SLOC) = 38255
Hits@level = [0]   1 [1]   4 [2]   2 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]   9 [1+]   8 [2+]   4 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 0.235263 [1+] 0.209123 [2+] 0.104561 [3+] 0.0522807 [4+] 0.0522807 [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.