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/lua-inotify-0.4+git20151119/linotify.c

FINAL RESULTS:

data/lua-inotify-0.4+git20151119/linotify.c:35: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[READ_BUFFER_SIZE];
data/lua-inotify-0.4+git20151119/linotify.c:116: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[1024];
data/lua-inotify-0.4+git20151119/linotify.c:119:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if((bytes = read(fd, buffer, 1024)) < 0) {
data/lua-inotify-0.4+git20151119/linotify.c:154:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if((context->bytes_remaining = read(fd, context->buffer, READ_BUFFER_SIZE)) < 0) {

ANALYSIS SUMMARY:

Hits = 4
Lines analyzed = 306 in approximately 0.01 seconds (20402 lines/second)
Physical Source Lines of Code (SLOC) = 235
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+] 17.0213 [1+] 17.0213 [2+] 8.51064 [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.