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/libev-4.33/ev.h
Examining data/libev-4.33/ev++.h
Examining data/libev-4.33/event.h
Examining data/libev-4.33/ev.c
Examining data/libev-4.33/event.c
Examining data/libev-4.33/ev_vars.h
Examining data/libev-4.33/ev_wrap.h
Examining data/libev-4.33/ev_epoll.c
Examining data/libev-4.33/ev_select.c
Examining data/libev-4.33/ev_poll.c
Examining data/libev-4.33/ev_kqueue.c
Examining data/libev-4.33/ev_port.c
Examining data/libev-4.33/ev_linuxaio.c
Examining data/libev-4.33/ev_iouring.c
Examining data/libev-4.33/ev_win32.c

FINAL RESULTS:

data/libev-4.33/ev.c:4779:11:  [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 (path, w->path);
data/libev-4.33/ev.c:3287:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
          && getenv ("LIBEV_FLAGS"))
data/libev-4.33/ev.c:3288:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        flags = atoi (getenv ("LIBEV_FLAGS"));
data/libev-4.33/ev.c:553:3:  [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 pad[128 - sizeof (uint32_t)];
data/libev-4.33/ev.c:1369:58:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
ecb_inline void ecb_poke_u16_u (void *ptr, uint16_t v) { memcpy (ptr, &v, sizeof (v)); }
data/libev-4.33/ev.c:1370:58:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
ecb_inline void ecb_poke_u32_u (void *ptr, uint32_t v) { memcpy (ptr, &v, sizeof (v)); }
data/libev-4.33/ev.c:1371:58:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
ecb_inline void ecb_poke_u64_u (void *ptr, uint64_t v) { memcpy (ptr, &v, sizeof (v)); }
data/libev-4.33/ev.c:1402:67:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
template<typename T> inline void ecb_poke_u    (void *ptr, T v) { memcpy (ptr, &v, sizeof (v)); }
data/libev-4.33/ev.c:1599:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&r, &x, 4);
data/libev-4.33/ev.c:1639:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&r, &x, 4);
data/libev-4.33/ev.c:1669:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&r, &x, 8);
data/libev-4.33/ev.c:1709:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&r, &x, 8);
data/libev-4.33/ev.c:2843:11:  [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 dummy[4];
data/libev-4.33/ev.c:3288:17:  [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).
        flags = atoi (getenv ("LIBEV_FLAGS"));
data/libev-4.33/ev.c:4778:11:  [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 path [4096];
data/libev-4.33/ev.c:4860:3:  [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 buf [EV_INOTIFY_BUFSIZE];
data/libev-4.33/ev.c:5550:34:  [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.
            cb (EV_A_ EV_STAT, ((char *)ANHE_w (timers [i])) - offsetof (struct ev_stat, timer));
data/libev-4.33/ev_select.c:155:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (vec_ro, vec_ri, fd_setsize);
data/libev-4.33/ev_select.c:156:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (vec_wo, vec_wi, fd_setsize);
data/libev-4.33/ev_select.c:164:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (vec_eo, vec_wi, fd_setsize);
data/libev-4.33/ev.c:1988:30:  [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).
  write (STDERR_FILENO, msg, strlen (msg));
data/libev-4.33/ev.c:2838:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          read (evpipe [1], &counter, sizeof (uint64_t));
data/libev-4.33/ev.c:2852:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          read (evpipe [0], &dummy, sizeof (dummy));
data/libev-4.33/ev.c:2954:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ssize_t res = read (sigfd, si, sizeof (si));
data/libev-4.33/ev.c:4776:51:  [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 ((errno == ENOENT || errno == EACCES) && strlen (w->path) < 4096)
data/libev-4.33/ev.c:4862:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  int len = read (fs_fd, buf, sizeof (buf));

ANALYSIS SUMMARY:

Hits = 26
Lines analyzed = 11090 in approximately 0.38 seconds (29372 lines/second)
Physical Source Lines of Code (SLOC) = 7815
Hits@level = [0]   2 [1]   6 [2]  17 [3]   2 [4]   1 [5]   0
Hits@level+ = [0+]  28 [1+]  26 [2+]  20 [3+]   3 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 3.58285 [1+] 3.32694 [2+] 2.55918 [3+] 0.383877 [4+] 0.127959 [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.