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/ruby-liquid-c-4.0.0/ext/liquid_c/block.c
Examining data/ruby-liquid-c-4.0.0/ext/liquid_c/block.h
Examining data/ruby-liquid-c-4.0.0/ext/liquid_c/lexer.c
Examining data/ruby-liquid-c-4.0.0/ext/liquid_c/lexer.h
Examining data/ruby-liquid-c-4.0.0/ext/liquid_c/liquid.c
Examining data/ruby-liquid-c-4.0.0/ext/liquid_c/liquid.h
Examining data/ruby-liquid-c-4.0.0/ext/liquid_c/parser.c
Examining data/ruby-liquid-c-4.0.0/ext/liquid_c/parser.h
Examining data/ruby-liquid-c-4.0.0/ext/liquid_c/tokenizer.c
Examining data/ruby-liquid-c-4.0.0/ext/liquid_c/tokenizer.h
Examining data/ruby-liquid-c-4.0.0/ext/liquid_c/variable.c
Examining data/ruby-liquid-c-4.0.0/ext/liquid_c/variable.h

FINAL RESULTS:

data/ruby-liquid-c-4.0.0/ext/liquid_c/lexer.c:5:7:  [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.
const char *symbol_names[TOKEN_END] = {
data/ruby-liquid-c-4.0.0/ext/liquid_c/lexer.h:37:14:  [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.
extern const char *symbol_names[TOKEN_END];
data/ruby-liquid-c-4.0.0/ext/liquid_c/lexer.c:44:26:  [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).
    size_t pattern_len = strlen(pattern);
data/ruby-liquid-c-4.0.0/ext/liquid_c/parser.c:44:22:  [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).
    size_t str_len = strlen(str);

ANALYSIS SUMMARY:

Hits = 4
Lines analyzed = 878 in approximately 0.03 seconds (27766 lines/second)
Physical Source Lines of Code (SLOC) = 699
Hits@level = [0]   0 [1]   2 [2]   2 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   4 [1+]   4 [2+]   2 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 5.72246 [1+] 5.72246 [2+] 2.86123 [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.