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/capnproto-0.8.0/src/capnp/compat/json.h
Examining data/capnproto-0.8.0/src/capnp/compat/json.capnp.h
Examining data/capnproto-0.8.0/src/capnp/compat/std-iterator.h
Examining data/capnproto-0.8.0/src/capnp/compat/json.c++
Examining data/capnproto-0.8.0/src/capnp/compat/json.capnp.c++
Examining data/capnproto-0.8.0/src/capnp/compat/json-test.c++
Examining data/capnproto-0.8.0/src/capnp/compiler/type-id.h
Examining data/capnproto-0.8.0/src/capnp/compiler/type-id.c++
Examining data/capnproto-0.8.0/src/capnp/compiler/error-reporter.h
Examining data/capnproto-0.8.0/src/capnp/compiler/error-reporter.c++
Examining data/capnproto-0.8.0/src/capnp/compiler/lexer.capnp.h
Examining data/capnproto-0.8.0/src/capnp/compiler/lexer.capnp.c++
Examining data/capnproto-0.8.0/src/capnp/compiler/lexer.h
Examining data/capnproto-0.8.0/src/capnp/compiler/lexer.c++
Examining data/capnproto-0.8.0/src/capnp/compiler/grammar.capnp.h
Examining data/capnproto-0.8.0/src/capnp/compiler/grammar.capnp.c++
Examining data/capnproto-0.8.0/src/capnp/compiler/parser.h
Examining data/capnproto-0.8.0/src/capnp/compiler/parser.c++
Examining data/capnproto-0.8.0/src/capnp/compiler/node-translator.h
Examining data/capnproto-0.8.0/src/capnp/compiler/node-translator.c++
Examining data/capnproto-0.8.0/src/capnp/compiler/compiler.h
Examining data/capnproto-0.8.0/src/capnp/compiler/compiler.c++
Examining data/capnproto-0.8.0/src/capnp/compiler/module-loader.h
Examining data/capnproto-0.8.0/src/capnp/compiler/module-loader.c++
Examining data/capnproto-0.8.0/src/capnp/compiler/capnp.c++
Examining data/capnproto-0.8.0/src/capnp/compiler/evolution-test.c++
Examining data/capnproto-0.8.0/src/capnp/compiler/lexer-test.c++
Examining data/capnproto-0.8.0/src/capnp/compiler/type-id-test.c++
Examining data/capnproto-0.8.0/src/capnp/compiler/capnpc-c++.c++
Examining data/capnproto-0.8.0/src/capnp/compiler/capnpc-capnp.c++
Examining data/capnproto-0.8.0/src/capnp/c++.capnp.h
Examining data/capnproto-0.8.0/src/capnp/common.h
Examining data/capnproto-0.8.0/src/capnp/blob.h
Examining data/capnproto-0.8.0/src/capnp/endian.h
Examining data/capnproto-0.8.0/src/capnp/layout.h
Examining data/capnproto-0.8.0/src/capnp/orphan.h
Examining data/capnproto-0.8.0/src/capnp/list.h
Examining data/capnproto-0.8.0/src/capnp/any.h
Examining data/capnproto-0.8.0/src/capnp/message.h
Examining data/capnproto-0.8.0/src/capnp/capability.h
Examining data/capnproto-0.8.0/src/capnp/membrane.h
Examining data/capnproto-0.8.0/src/capnp/schema.capnp.h
Examining data/capnproto-0.8.0/src/capnp/stream.capnp.h
Examining data/capnproto-0.8.0/src/capnp/schema-lite.h
Examining data/capnproto-0.8.0/src/capnp/schema.h
Examining data/capnproto-0.8.0/src/capnp/schema-loader.h
Examining data/capnproto-0.8.0/src/capnp/schema-parser.h
Examining data/capnproto-0.8.0/src/capnp/dynamic.h
Examining data/capnproto-0.8.0/src/capnp/pretty-print.h
Examining data/capnproto-0.8.0/src/capnp/serialize.h
Examining data/capnproto-0.8.0/src/capnp/serialize-async.h
Examining data/capnproto-0.8.0/src/capnp/serialize-packed.h
Examining data/capnproto-0.8.0/src/capnp/serialize-text.h
Examining data/capnproto-0.8.0/src/capnp/pointer-helpers.h
Examining data/capnproto-0.8.0/src/capnp/generated-header-support.h
Examining data/capnproto-0.8.0/src/capnp/raw-schema.h
Examining data/capnproto-0.8.0/src/capnp/rpc-prelude.h
Examining data/capnproto-0.8.0/src/capnp/rpc.h
Examining data/capnproto-0.8.0/src/capnp/rpc-twoparty.h
Examining data/capnproto-0.8.0/src/capnp/rpc.capnp.h
Examining data/capnproto-0.8.0/src/capnp/rpc-twoparty.capnp.h
Examining data/capnproto-0.8.0/src/capnp/persistent.capnp.h
Examining data/capnproto-0.8.0/src/capnp/ez-rpc.h
Examining data/capnproto-0.8.0/src/capnp/test-util.c++
Examining data/capnproto-0.8.0/src/capnp/test-util.h
Examining data/capnproto-0.8.0/src/capnp/serialize-async.c++
Examining data/capnproto-0.8.0/src/capnp/capability.c++
Examining data/capnproto-0.8.0/src/capnp/membrane.c++
Examining data/capnproto-0.8.0/src/capnp/dynamic-capability.c++
Examining data/capnproto-0.8.0/src/capnp/rpc.c++
Examining data/capnproto-0.8.0/src/capnp/rpc.capnp.c++
Examining data/capnproto-0.8.0/src/capnp/rpc-twoparty.c++
Examining data/capnproto-0.8.0/src/capnp/rpc-twoparty.capnp.c++
Examining data/capnproto-0.8.0/src/capnp/persistent.capnp.c++
Examining data/capnproto-0.8.0/src/capnp/ez-rpc.c++
Examining data/capnproto-0.8.0/src/capnp/c++.capnp.c++
Examining data/capnproto-0.8.0/src/capnp/blob.c++
Examining data/capnproto-0.8.0/src/capnp/arena.h
Examining data/capnproto-0.8.0/src/capnp/arena.c++
Examining data/capnproto-0.8.0/src/capnp/layout.c++
Examining data/capnproto-0.8.0/src/capnp/list.c++
Examining data/capnproto-0.8.0/src/capnp/any.c++
Examining data/capnproto-0.8.0/src/capnp/message.c++
Examining data/capnproto-0.8.0/src/capnp/schema.capnp.c++
Examining data/capnproto-0.8.0/src/capnp/stream.capnp.c++
Examining data/capnproto-0.8.0/src/capnp/serialize.c++
Examining data/capnproto-0.8.0/src/capnp/serialize-packed.c++
Examining data/capnproto-0.8.0/src/capnp/schema.c++
Examining data/capnproto-0.8.0/src/capnp/schema-loader.c++
Examining data/capnproto-0.8.0/src/capnp/dynamic.c++
Examining data/capnproto-0.8.0/src/capnp/stringify.c++
Examining data/capnproto-0.8.0/src/capnp/schema-parser.c++
Examining data/capnproto-0.8.0/src/capnp/serialize-text.c++
Examining data/capnproto-0.8.0/src/capnp/afl-testcase.c++
Examining data/capnproto-0.8.0/src/capnp/common-test.c++
Examining data/capnproto-0.8.0/src/capnp/blob-test.c++
Examining data/capnproto-0.8.0/src/capnp/endian-test.c++
Examining data/capnproto-0.8.0/src/capnp/endian-fallback-test.c++
Examining data/capnproto-0.8.0/src/capnp/endian-reverse-test.c++
Examining data/capnproto-0.8.0/src/capnp/layout-test.c++
Examining data/capnproto-0.8.0/src/capnp/any-test.c++
Examining data/capnproto-0.8.0/src/capnp/message-test.c++
Examining data/capnproto-0.8.0/src/capnp/encoding-test.c++
Examining data/capnproto-0.8.0/src/capnp/orphan-test.c++
Examining data/capnproto-0.8.0/src/capnp/serialize-test.c++
Examining data/capnproto-0.8.0/src/capnp/serialize-packed-test.c++
Examining data/capnproto-0.8.0/src/capnp/fuzz-test.c++
Examining data/capnproto-0.8.0/src/capnp/canonicalize-test.c++
Examining data/capnproto-0.8.0/src/capnp/capability-test.c++
Examining data/capnproto-0.8.0/src/capnp/membrane-test.c++
Examining data/capnproto-0.8.0/src/capnp/schema-test.c++
Examining data/capnproto-0.8.0/src/capnp/schema-loader-test.c++
Examining data/capnproto-0.8.0/src/capnp/schema-parser-test.c++
Examining data/capnproto-0.8.0/src/capnp/dynamic-test.c++
Examining data/capnproto-0.8.0/src/capnp/stringify-test.c++
Examining data/capnproto-0.8.0/src/capnp/serialize-async-test.c++
Examining data/capnproto-0.8.0/src/capnp/serialize-text-test.c++
Examining data/capnproto-0.8.0/src/capnp/rpc-test.c++
Examining data/capnproto-0.8.0/src/capnp/rpc-twoparty-test.c++
Examining data/capnproto-0.8.0/src/capnp/ez-rpc-test.c++
Examining data/capnproto-0.8.0/src/kj/compat/gtest.h
Examining data/capnproto-0.8.0/src/kj/compat/url.h
Examining data/capnproto-0.8.0/src/kj/compat/http.h
Examining data/capnproto-0.8.0/src/kj/compat/gzip.h
Examining data/capnproto-0.8.0/src/kj/compat/readiness-io.h
Examining data/capnproto-0.8.0/src/kj/compat/tls.h
Examining data/capnproto-0.8.0/src/kj/compat/gzip.c++
Examining data/capnproto-0.8.0/src/kj/compat/url.c++
Examining data/capnproto-0.8.0/src/kj/compat/http.c++
Examining data/capnproto-0.8.0/src/kj/compat/readiness-io.c++
Examining data/capnproto-0.8.0/src/kj/compat/tls.c++
Examining data/capnproto-0.8.0/src/kj/compat/url-test.c++
Examining data/capnproto-0.8.0/src/kj/compat/http-test.c++
Examining data/capnproto-0.8.0/src/kj/compat/gzip-test.c++
Examining data/capnproto-0.8.0/src/kj/compat/readiness-io-test.c++
Examining data/capnproto-0.8.0/src/kj/compat/tls-test.c++
Examining data/capnproto-0.8.0/src/kj/parse/common.h
Examining data/capnproto-0.8.0/src/kj/parse/char.h
Examining data/capnproto-0.8.0/src/kj/parse/char.c++
Examining data/capnproto-0.8.0/src/kj/parse/common-test.c++
Examining data/capnproto-0.8.0/src/kj/parse/char-test.c++
Examining data/capnproto-0.8.0/src/kj/std/iostream.h
Examining data/capnproto-0.8.0/src/kj/std/iostream-test.c++
Examining data/capnproto-0.8.0/src/kj/common.h
Examining data/capnproto-0.8.0/src/kj/units.h
Examining data/capnproto-0.8.0/src/kj/memory.h
Examining data/capnproto-0.8.0/src/kj/refcount.h
Examining data/capnproto-0.8.0/src/kj/array.h
Examining data/capnproto-0.8.0/src/kj/vector.h
Examining data/capnproto-0.8.0/src/kj/string.h
Examining data/capnproto-0.8.0/src/kj/string-tree.h
Examining data/capnproto-0.8.0/src/kj/hash.h
Examining data/capnproto-0.8.0/src/kj/table.h
Examining data/capnproto-0.8.0/src/kj/map.h
Examining data/capnproto-0.8.0/src/kj/encoding.h
Examining data/capnproto-0.8.0/src/kj/exception.h
Examining data/capnproto-0.8.0/src/kj/debug.h
Examining data/capnproto-0.8.0/src/kj/arena.h
Examining data/capnproto-0.8.0/src/kj/io.h
Examining data/capnproto-0.8.0/src/kj/tuple.h
Examining data/capnproto-0.8.0/src/kj/one-of.h
Examining data/capnproto-0.8.0/src/kj/function.h
Examining data/capnproto-0.8.0/src/kj/mutex.h
Examining data/capnproto-0.8.0/src/kj/thread.h
Examining data/capnproto-0.8.0/src/kj/threadlocal.h
Examining data/capnproto-0.8.0/src/kj/filesystem.h
Examining data/capnproto-0.8.0/src/kj/async-prelude.h
Examining data/capnproto-0.8.0/src/kj/async.h
Examining data/capnproto-0.8.0/src/kj/async-inl.h
Examining data/capnproto-0.8.0/src/kj/time.h
Examining data/capnproto-0.8.0/src/kj/timer.h
Examining data/capnproto-0.8.0/src/kj/async-unix.h
Examining data/capnproto-0.8.0/src/kj/async-win32.h
Examining data/capnproto-0.8.0/src/kj/async-io.h
Examining data/capnproto-0.8.0/src/kj/main.h
Examining data/capnproto-0.8.0/src/kj/test.h
Examining data/capnproto-0.8.0/src/kj/windows-sanity.h
Examining data/capnproto-0.8.0/src/kj/miniposix.h
Examining data/capnproto-0.8.0/src/kj/async-io-internal.h
Examining data/capnproto-0.8.0/src/kj/async.c++
Examining data/capnproto-0.8.0/src/kj/async-unix.c++
Examining data/capnproto-0.8.0/src/kj/async-win32.c++
Examining data/capnproto-0.8.0/src/kj/async-io.c++
Examining data/capnproto-0.8.0/src/kj/async-io-unix.c++
Examining data/capnproto-0.8.0/src/kj/async-io-win32.c++
Examining data/capnproto-0.8.0/src/kj/timer.c++
Examining data/capnproto-0.8.0/src/kj/test.c++
Examining data/capnproto-0.8.0/src/kj/common.c++
Examining data/capnproto-0.8.0/src/kj/units.c++
Examining data/capnproto-0.8.0/src/kj/memory.c++
Examining data/capnproto-0.8.0/src/kj/refcount.c++
Examining data/capnproto-0.8.0/src/kj/array.c++
Examining data/capnproto-0.8.0/src/kj/string.c++
Examining data/capnproto-0.8.0/src/kj/string-tree.c++
Examining data/capnproto-0.8.0/src/kj/hash.c++
Examining data/capnproto-0.8.0/src/kj/table.c++
Examining data/capnproto-0.8.0/src/kj/encoding.c++
Examining data/capnproto-0.8.0/src/kj/exception.c++
Examining data/capnproto-0.8.0/src/kj/debug.c++
Examining data/capnproto-0.8.0/src/kj/arena.c++
Examining data/capnproto-0.8.0/src/kj/io.c++
Examining data/capnproto-0.8.0/src/kj/mutex.c++
Examining data/capnproto-0.8.0/src/kj/thread.c++
Examining data/capnproto-0.8.0/src/kj/time.c++
Examining data/capnproto-0.8.0/src/kj/filesystem.c++
Examining data/capnproto-0.8.0/src/kj/filesystem-disk-win32.c++
Examining data/capnproto-0.8.0/src/kj/test-helpers.c++
Examining data/capnproto-0.8.0/src/kj/main.c++
Examining data/capnproto-0.8.0/src/kj/common-test.c++
Examining data/capnproto-0.8.0/src/kj/memory-test.c++
Examining data/capnproto-0.8.0/src/kj/refcount-test.c++
Examining data/capnproto-0.8.0/src/kj/array-test.c++
Examining data/capnproto-0.8.0/src/kj/string-test.c++
Examining data/capnproto-0.8.0/src/kj/string-tree-test.c++
Examining data/capnproto-0.8.0/src/kj/table-test.c++
Examining data/capnproto-0.8.0/src/kj/map-test.c++
Examining data/capnproto-0.8.0/src/kj/encoding-test.c++
Examining data/capnproto-0.8.0/src/kj/exception-test.c++
Examining data/capnproto-0.8.0/src/kj/debug-test.c++
Examining data/capnproto-0.8.0/src/kj/arena-test.c++
Examining data/capnproto-0.8.0/src/kj/units-test.c++
Examining data/capnproto-0.8.0/src/kj/tuple-test.c++
Examining data/capnproto-0.8.0/src/kj/one-of-test.c++
Examining data/capnproto-0.8.0/src/kj/function-test.c++
Examining data/capnproto-0.8.0/src/kj/io-test.c++
Examining data/capnproto-0.8.0/src/kj/mutex-test.c++
Examining data/capnproto-0.8.0/src/kj/time-test.c++
Examining data/capnproto-0.8.0/src/kj/threadlocal-test.c++
Examining data/capnproto-0.8.0/src/kj/filesystem-test.c++
Examining data/capnproto-0.8.0/src/kj/test-test.c++
Examining data/capnproto-0.8.0/src/kj/async-test.c++
Examining data/capnproto-0.8.0/src/kj/async-xthread-test.c++
Examining data/capnproto-0.8.0/src/kj/async-unix-test.c++
Examining data/capnproto-0.8.0/src/kj/async-unix-xthread-test.c++
Examining data/capnproto-0.8.0/src/kj/async-win32-test.c++
Examining data/capnproto-0.8.0/src/kj/async-win32-xthread-test.c++
Examining data/capnproto-0.8.0/src/kj/async-io-test.c++
Examining data/capnproto-0.8.0/src/kj/filesystem-disk-test.c++
Examining data/capnproto-0.8.0/src/kj/filesystem-disk-unix.c++

FINAL RESULTS:

data/capnproto-0.8.0/src/kj/filesystem-disk-test.c++:553:18:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
  KJ_EXPECT(dir->readlink(Path("foo")) == "bar/qux/../baz");
data/capnproto-0.8.0/src/kj/filesystem-disk-test.c++:585:18:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
  KJ_EXPECT(dir->readlink(Path("foo")) == "corge");
data/capnproto-0.8.0/src/kj/filesystem-test.c++:637:18:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
  KJ_EXPECT(dir->readlink(Path("foo")) == "bar/qux/../baz");
data/capnproto-0.8.0/src/kj/filesystem-test.c++:671:18:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
  KJ_EXPECT(dir->readlink(Path("foo")) == "corge");
data/capnproto-0.8.0/src/kj/filesystem.c++:565:27:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
String ReadableDirectory::readlink(PathPtr path) const {
data/capnproto-0.8.0/src/kj/filesystem.h:567:10:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
  String readlink(PathPtr path) const;
data/capnproto-0.8.0/src/capnp/compiler/capnp.c++:569:11:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
          execlp(exeName.cStr(), exeName.cStr(), nullptr);
data/capnproto-0.8.0/src/capnp/compiler/capnp.c++:585:11:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
          execl(exeName.cStr(), exeName.cStr(), nullptr);
data/capnproto-0.8.0/src/capnp/compiler/parser.c++:978:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat(buffer, target->value.cStr());
data/capnproto-0.8.0/src/kj/async-io-unix.c++:723:7:  [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(result.addr.unixDomain.sun_path, path.cStr());
data/capnproto-0.8.0/src/kj/exception.c++:290:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (access("/proc/self/exe", R_OK) < 0) {
data/capnproto-0.8.0/src/kj/exception.c++:298:7:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  p = popen(str("addr2line -e /proc/", getpid(), "/exe ", strTrace).cStr(), "r");
data/capnproto-0.8.0/src/kj/exception.c++:302:7:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  p = popen(str("xcrun atos -p ", getpid(), ' ', strTrace).cStr(), "r");
data/capnproto-0.8.0/src/kj/exception.c++:312:7:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  p = popen(str("addr2line -e '", exePosixPath, "' ", strTrace).cStr(), "r");
data/capnproto-0.8.0/src/kj/filesystem-disk-win32.c++:308:74:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
void* win32Mmap(HANDLE handle, MmapRange range, DWORD pageProtect, DWORD access) {
data/capnproto-0.8.0/src/kj/filesystem-disk-win32.c++:313:48:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  void* mapping = MapViewOfFile(mappingHandle, access,
data/capnproto-0.8.0/src/kj/filesystem-disk-win32.c++:930:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        access,
data/capnproto-0.8.0/src/kj/string.c++:301:9:  [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/capnproto-0.8.0/src/kj/string.c++:301:18:  [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/capnproto-0.8.0/src/capnp/compiler/evolution-test.c++:891:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(seed);
data/capnproto-0.8.0/src/capnp/compiler/node-translator.c++:37:10:  [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.
  return getenv("CAPNP_IGNORE_ISSUE_344") == nullptr;
data/capnproto-0.8.0/src/capnp/fuzz-test.c++:40:7:  [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.
  if (getenv("CAPNP_SKIP_FUZZ_TEST") != nullptr) {
data/capnproto-0.8.0/src/kj/exception.c++:277:25:  [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.
  const char* preload = getenv("LD_PRELOAD");
data/capnproto-0.8.0/src/kj/filesystem-disk-unix.c++:1673: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.
    const char* pwd = getenv("PWD");
data/capnproto-0.8.0/src/kj/main.c++:53:21:  [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.
      cleanShutdown(getenv("KJ_CLEAN_SHUTDOWN") != nullptr) {
data/capnproto-0.8.0/src/capnp/any-test.c++:163:5:  [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(sb.getDataSection().begin(), r.getDataSection().begin(), r.getDataSection().size());
data/capnproto-0.8.0/src/capnp/blob-test.c++:46: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 c[4] = "baz";
data/capnproto-0.8.0/src/capnp/blob.h:169:10:  [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.
  static char nulstr[1];
data/capnproto-0.8.0/src/capnp/compat/json.c++:1409:5:  [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(dataOut.begin(), dataIn.begin(), kj::min(dataOut.size(), dataIn.size()));
data/capnproto-0.8.0/src/capnp/compiler/capnp.c++:1021:9:  [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(words.begin(), allBytes.begin(), words.size() * sizeof(word));
data/capnproto-0.8.0/src/capnp/compiler/compiler.c++:454: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(result.begin(), parent.displayName.begin(), separatorPos);
data/capnproto-0.8.0/src/capnp/compiler/compiler.c++:456: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(result.begin() + separatorPos + 1, declName.begin(), declName.size());
data/capnproto-0.8.0/src/capnp/compiler/lexer.c++:105:5:  [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(pos, line.begin(), line.size());
data/capnproto-0.8.0/src/capnp/compiler/node-translator.c++:2931:13:  [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(text.get().begin(), data->begin(), data->size());
data/capnproto-0.8.0/src/capnp/compiler/node-translator.c++:2963:15:  [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(copy.begin(), data->begin(), data->size());
data/capnproto-0.8.0/src/capnp/compiler/parser.c++:56:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  KJ_SYSCALL(fd = open("/dev/urandom", O_RDONLY));
data/capnproto-0.8.0/src/capnp/compiler/parser.c++:976:17:  [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[64];
data/capnproto-0.8.0/src/capnp/compiler/parser.c++:977:17:  [2] (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). Risk is low because the source is a constant string.
                strcpy(buffer, "targets");
data/capnproto-0.8.0/src/capnp/compiler/type-id.c++:363: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(&ctx.buffer[used], data, size);
data/capnproto-0.8.0/src/capnp/compiler/type-id.c++:367:5:  [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(&ctx.buffer[used], data, free);
data/capnproto-0.8.0/src/capnp/compiler/type-id.c++:378: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(ctx.buffer, data, size);
data/capnproto-0.8.0/src/capnp/dynamic.c++:46: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(&result, &value, sizeof(value));
data/capnproto-0.8.0/src/capnp/dynamic.c++:54: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(&result, &value, sizeof(value));
data/capnproto-0.8.0/src/capnp/dynamic.c++:60: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(&result, &value, sizeof(value));
data/capnproto-0.8.0/src/capnp/dynamic.c++:66: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(&result, &value, sizeof(value));
data/capnproto-0.8.0/src/capnp/dynamic.c++:1506: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(this, &other, sizeof(*this));
data/capnproto-0.8.0/src/capnp/dynamic.c++:1536: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(this, &other, sizeof(*this));
data/capnproto-0.8.0/src/capnp/dynamic.c++:1591: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(this, &other, sizeof(*this));
data/capnproto-0.8.0/src/capnp/dynamic.c++:1625: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(this, &other, sizeof(*this));
data/capnproto-0.8.0/src/capnp/endian.h:122:5:  [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(&result, &swapped, sizeof(T));
data/capnproto-0.8.0/src/capnp/endian.h:127:5:  [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(&raw, &newValue, sizeof(T));
data/capnproto-0.8.0/src/capnp/endian.h:143:5:  [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(&result, &swapped, sizeof(T));
data/capnproto-0.8.0/src/capnp/endian.h:148:5:  [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(&raw, &newValue, sizeof(T));
data/capnproto-0.8.0/src/capnp/endian.h:162:5:  [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(&result, &swapped, sizeof(T));
data/capnproto-0.8.0/src/capnp/endian.h:167:5:  [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(&raw, &newValue, sizeof(T));
data/capnproto-0.8.0/src/capnp/endian.h:214:5:  [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(&result, &raw, sizeof(T));
data/capnproto-0.8.0/src/capnp/endian.h:219:5:  [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(&raw, &newValue, sizeof(T));
data/capnproto-0.8.0/src/capnp/endian.h:240:5:  [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(&result, &raw, sizeof(T));
data/capnproto-0.8.0/src/capnp/endian.h:245:5:  [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(&raw, &newValue, sizeof(T));
data/capnproto-0.8.0/src/capnp/endian.h:272:5:  [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(&result, &raw, sizeof(T));
data/capnproto-0.8.0/src/capnp/endian.h:277:5:  [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(&raw, &newValue, sizeof(T));
data/capnproto-0.8.0/src/capnp/layout.c++:401:32:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    if (count != ZERO * BYTES) memcpy(to, from, unbound(count / BYTES));
data/capnproto-0.8.0/src/capnp/layout.c++:405:32:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    if (count != ZERO * WORDS) memcpy(to, from, unbound(count * BYTES_PER_WORD / BYTES));
data/capnproto-0.8.0/src/capnp/layout.c++:410:35:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    if (count != ZERO * POINTERS) memcpy(to, from, unbound(count * BYTES_PER_POINTER  / BYTES));
data/capnproto-0.8.0/src/capnp/layout.c++:415:5:  [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(to, from, sizeof(*from));
data/capnproto-0.8.0/src/capnp/layout.c++:421:28:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    if (from.size() != 0u) memcpy(to, from.begin(), from.size() * sizeof(from[0]));
data/capnproto-0.8.0/src/capnp/layout.c++:425:28:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    if (from.size() != 0u) memcpy(to, from.begin(), from.size() * sizeof(from[0]));
data/capnproto-0.8.0/src/capnp/layout.c++:428:28:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    if (from.size() != 0u) memcpy(to, from.begin(), from.size() * sizeof(from[0]));
data/capnproto-0.8.0/src/capnp/layout.h:268: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(&i, &value, sizeof(value));
data/capnproto-0.8.0/src/capnp/layout.h:282: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(&i, &value, sizeof(value));
data/capnproto-0.8.0/src/capnp/layout.h:296: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(&result, &value, sizeof(value));
data/capnproto-0.8.0/src/capnp/layout.h:305: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(&result, &value, sizeof(value));
data/capnproto-0.8.0/src/capnp/message-test.c++:182: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[16];
data/capnproto-0.8.0/src/capnp/orphan-test.c++:216: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(orphan.get().begin(), "12345678", 8);
data/capnproto-0.8.0/src/capnp/schema-loader.c++:1774: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(copy.begin(), values.begin(), values.size() * sizeof(T));
data/capnproto-0.8.0/src/capnp/serialize-packed-test.c++:68:5:  [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(buffer, data.data() + readPos, amount);
data/capnproto-0.8.0/src/capnp/serialize-packed-test.c++:98:5:  [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(unpackedWords.begin(), unpackedUnaligned.begin(), unpackedUnaligned.size());
data/capnproto-0.8.0/src/capnp/serialize-packed.c++:146:9:  [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(out, in, runLength);
data/capnproto-0.8.0/src/capnp/serialize-packed.c++:151:9:  [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(out, in, inRemaining);
data/capnproto-0.8.0/src/capnp/serialize-packed.c++:414:9:  [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(out, runStart, count);
data/capnproto-0.8.0/src/capnp/serialize-test.c++:72: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(result.asBytes().begin(), input.asBytes().begin(), input.asBytes().size());
data/capnproto-0.8.0/src/capnp/serialize-test.c++:97: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(serializedWithSuffix.begin(), serialized.begin(), serialized.size() * sizeof(word));
data/capnproto-0.8.0/src/capnp/serialize-test.c++:137: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(serializedWithSuffix.begin(), serialized.begin(), serialized.size() * sizeof(word));
data/capnproto-0.8.0/src/capnp/serialize-test.c++:176: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(serializedWithSuffix.begin(), serialized.begin(), serialized.size() * sizeof(word));
data/capnproto-0.8.0/src/capnp/serialize-test.c++:213:5:  [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(buffer, pos, amount);
data/capnproto-0.8.0/src/capnp/serialize-test.c++:378:5:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
int mkstemp(char *tpl) {
data/capnproto-0.8.0/src/capnp/serialize-test.c++:385:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open(tpl, O_RDWR | O_CREAT | O_EXCL | O_TEMPORARY | O_BINARY, 0700);
data/capnproto-0.8.0/src/capnp/serialize-test.c++:407:19:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  kj::AutoCloseFd tmpfile(mkstemp(filename));
data/capnproto-0.8.0/src/capnp/serialize-test.c++:407:27:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  kj::AutoCloseFd tmpfile(mkstemp(filename));
data/capnproto-0.8.0/src/capnp/serialize-test.c++:408:13:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  ASSERT_GE(tmpfile.get(), 0);
data/capnproto-0.8.0/src/capnp/serialize-test.c++:419:22:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    writeMessageToFd(tmpfile.get(), builder);
data/capnproto-0.8.0/src/capnp/serialize-test.c++:425:22:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    writeMessageToFd(tmpfile.get(), builder);
data/capnproto-0.8.0/src/capnp/serialize-test.c++:428:9:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  lseek(tmpfile, 0, SEEK_SET);
data/capnproto-0.8.0/src/capnp/serialize-test.c++:431:34:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    StreamFdMessageReader reader(tmpfile.get());
data/capnproto-0.8.0/src/capnp/serialize-test.c++:436:34:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    StreamFdMessageReader reader(tmpfile.get());
data/capnproto-0.8.0/src/capnp/serialize.c++:141:5:  [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(dst, segment.begin(), segment.size() * sizeof(word));
data/capnproto-0.8.0/src/capnp/stringify.c++:88: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 flat[maxInlineValueSize + 1];
data/capnproto-0.8.0/src/kj/arena.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(data, content.cStr(), content.size() + 1);
data/capnproto-0.8.0/src/kj/array.h:700: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(pos, start, reinterpret_cast<byte*>(end) - reinterpret_cast<byte*>(start));
data/capnproto-0.8.0/src/kj/array.h:710: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(pos, start, reinterpret_cast<const byte*>(end) - reinterpret_cast<const byte*>(start));
data/capnproto-0.8.0/src/kj/async-io-test.c++:62: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 receiveBuffer[4];
data/capnproto-0.8.0/src/kj/async-io-test.c++:160: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 receiveBuffer[4];
data/capnproto-0.8.0/src/kj/async-io-test.c++:178: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 receiveBuffer1[4];
data/capnproto-0.8.0/src/kj/async-io-test.c++:179: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 receiveBuffer2[4];
data/capnproto-0.8.0/src/kj/async-io-test.c++:207: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 receiveBuffer1[4];
data/capnproto-0.8.0/src/kj/async-io-test.c++:208: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 receiveBuffer2[4];
data/capnproto-0.8.0/src/kj/async-io-test.c++:247: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 receiveBuffer1[4];
data/capnproto-0.8.0/src/kj/async-io-test.c++:248: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 receiveBuffer2[4];
data/capnproto-0.8.0/src/kj/async-io-test.c++:337: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 receiveBuffer[7];
data/capnproto-0.8.0/src/kj/async-io-test.c++:380: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[4];
data/capnproto-0.8.0/src/kj/async-io-test.c++:392: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 buffer[4];
data/capnproto-0.8.0/src/kj/async-io-test.c++:456: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[4];
data/capnproto-0.8.0/src/kj/async-io-test.c++:470: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 buffer[4];
data/capnproto-0.8.0/src/kj/async-io-test.c++:520: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 buf[4];
data/capnproto-0.8.0/src/kj/async-io-test.c++:529: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[4];
data/capnproto-0.8.0/src/kj/async-io-test.c++:542: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 buf[4];
data/capnproto-0.8.0/src/kj/async-io-test.c++:548: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[4];
data/capnproto-0.8.0/src/kj/async-io-test.c++:596: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[4];
data/capnproto-0.8.0/src/kj/async-io-test.c++:786:30:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  KJ_SYSCALL(originalDirFd = open(".", O_RDONLY | O_DIRECTORY | O_CLOEXEC));
data/capnproto-0.8.0/src/kj/async-io-test.c++:827:5:  [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(addr6.sin6_addr.s6_addr, bytes, 16);
data/capnproto-0.8.0/src/kj/async-io-test.c++:980:5:  [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(buffer, bytes.begin(), n);
data/capnproto-0.8.0/src/kj/async-io-test.c++:1040: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[4];
data/capnproto-0.8.0/src/kj/async-io-test.c++:1759: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 buffer[4];
data/capnproto-0.8.0/src/kj/async-io-test.c++:2579: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 buffer[4];
data/capnproto-0.8.0/src/kj/async-io-test.c++:2601: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 buffer[4];
data/capnproto-0.8.0/src/kj/async-io-unix.c++:528: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(CMSG_DATA(cmsg), fds.begin(), fds.asBytes().size());
data/capnproto-0.8.0/src/kj/async-io-unix.c++:604:5:  [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(&addr.generic, sockaddr, len);
data/capnproto-0.8.0/src/kj/async-io-unix.c++:674:9:  [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[INET6_ADDRSTRLEN];
data/capnproto-0.8.0/src/kj/async-io-unix.c++:683:9:  [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[INET6_ADDRSTRLEN];
data/capnproto-0.8.0/src/kj/async-io-unix.c++:744: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(result.addr.unixDomain.sun_path + 1, path.cStr(), path.size() + 1);
data/capnproto-0.8.0/src/kj/async-io-unix.c++:848: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.
      char buffer[INET6_ADDRSTRLEN];
data/capnproto-0.8.0/src/kj/async-io-unix.c++:849: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(buffer, addrPart.begin(), addrPart.size());
data/capnproto-0.8.0/src/kj/async-io-unix.c++:1036:11:  [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(&addr.addr.generic, cur->ai_addr, cur->ai_addrlen);
data/capnproto-0.8.0/src/kj/async-io-unix.c++:1456: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(extra.begin() + extraSize, pieces[i].begin(), pieces[i].size());
data/capnproto-0.8.0/src/kj/async-io-win32.c++:462:5:  [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(&addr.generic, sockaddr, len);
data/capnproto-0.8.0/src/kj/async-io-win32.c++:530:9:  [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[16];
data/capnproto-0.8.0/src/kj/async-io-win32.c++:539:9:  [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[46];
data/capnproto-0.8.0/src/kj/async-io-win32.c++:643: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[64];
data/capnproto-0.8.0/src/kj/async-io-win32.c++:646: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(buffer, addrPart.begin(), addrPart.size());
data/capnproto-0.8.0/src/kj/async-io-win32.c++:855:11:  [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(&addr.addr.generic, cur->ai_addr, cur->ai_addrlen);
data/capnproto-0.8.0/src/kj/async-io.c++:170: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(out.begin() + pos, part.begin(), n);
data/capnproto-0.8.0/src/kj/async-io.c++:641:11:  [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(readBuffer.begin(), writeBuffer.begin(), n);
data/capnproto-0.8.0/src/kj/async-io.c++:667:9:  [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(readBuffer.begin(), writeBuffer.begin(), n);
data/capnproto-0.8.0/src/kj/async-io.c++:1078:11:  [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(readBuffer.begin(), data.begin(), n);
data/capnproto-0.8.0/src/kj/async-io.c++:1099:11:  [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(readBuffer.begin(), data.begin(), n);
data/capnproto-0.8.0/src/kj/async-io.c++:2145:5:  [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(readBuffer.begin(), bytes.begin(), amount);
data/capnproto-0.8.0/src/kj/async-io.c++:2719: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(addr.begin(), pattern.begin(), slashPos);
data/capnproto-0.8.0/src/kj/async-io.c++:2743: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(this->bits, bits.begin(), byteCount);
data/capnproto-0.8.0/src/kj/async-io.c++:2826: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 result[128];
data/capnproto-0.8.0/src/kj/async-unix-test.c++:297: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 buffer[4096];
data/capnproto-0.8.0/src/kj/async-unix-test.c++:479: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 buffer[4096];
data/capnproto-0.8.0/src/kj/async-unix-test.c++:853: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 junk[16];
data/capnproto-0.8.0/src/kj/async-unix.c++:883: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 junk[256];
data/capnproto-0.8.0/src/kj/compat/gzip-test.c++:54:5:  [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(buffer, bytes.begin(), n);
data/capnproto-0.8.0/src/kj/compat/gzip-test.c++:79:5:  [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(buffer, bytes.begin(), n);
data/capnproto-0.8.0/src/kj/compat/gzip-test.c++:153: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 text[16];
data/capnproto-0.8.0/src/kj/compat/gzip-test.c++:196: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 text[16];
data/capnproto-0.8.0/src/kj/compat/http-test.c++:1078: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(buffer, body.begin(), n);
data/capnproto-0.8.0/src/kj/compat/http-test.c++:1993: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 buffer[3];
data/capnproto-0.8.0/src/kj/compat/http-test.c++:2769:5:  [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(buffer, unread.begin(), amount);
data/capnproto-0.8.0/src/kj/compat/http-test.c++:3113: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 buffer[16];
data/capnproto-0.8.0/src/kj/compat/http.c++:72: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.
    unsigned char buffer[64];
data/capnproto-0.8.0/src/kj/compat/http.c++:102:20:  [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 unsigned char buffer[64]
data/capnproto-0.8.0/src/kj/compat/http.c++:109:18:  [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.
        unsigned char c[64];
data/capnproto-0.8.0/src/kj/compat/http.c++:116:5:  [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(block, buffer, 64);
data/capnproto-0.8.0/src/kj/compat/http.c++:261:9:  [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(&context->buffer[j], data, (i = 64 - j));
data/capnproto-0.8.0/src/kj/compat/http.c++:271:5:  [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(&context->buffer[j], &data[i], len - i);
data/capnproto-0.8.0/src/kj/compat/http.c++:278: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.
    unsigned char digest[20],
data/capnproto-0.8.0/src/kj/compat/http.c++:284: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.
    unsigned char finalcount[8];
data/capnproto-0.8.0/src/kj/compat/http.c++:1225: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(buffer, leftover.begin(), maxBytes);
data/capnproto-0.8.0/src/kj/compat/http.c++:1230: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(buffer, leftover.begin(), leftover.size());
data/capnproto-0.8.0/src/kj/compat/http.c++:1346:11:  [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(newBuffer.begin(), headerBuffer.begin(), headerBuffer.size());
data/capnproto-0.8.0/src/kj/compat/http.c++:1419:15:  [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(newBuffer.begin(), headerBuffer.begin(), headerBuffer.size());
data/capnproto-0.8.0/src/kj/compat/http.c++:2126: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(payload.begin() + 2, reason.begin(), reason.size());
data/capnproto-0.8.0/src/kj/compat/http.c++:2226:11:  [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(message.begin() + offset, fragment.begin(), fragment.size());
data/capnproto-0.8.0/src/kj/compat/http.c++:2298: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(payloadTarget, recvData.begin(), payloadLen);
data/capnproto-0.8.0/src/kj/compat/http.c++:2303: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(payloadTarget, recvData.begin(), recvData.size());
data/capnproto-0.8.0/src/kj/compat/http.c++:2320:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    Mask(const byte* ptr) { memcpy(maskBytes, ptr, 4); }
data/capnproto-0.8.0/src/kj/compat/http.c++:2335: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(output, maskBytes, 4);
data/capnproto-0.8.0/src/kj/compat/http.c++:2840:11:  [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(copy.begin(), arr.begin(), arr.size());
data/capnproto-0.8.0/src/kj/compat/http.c++:2985: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(copy.begin(), message.begin(), message.size());
data/capnproto-0.8.0/src/kj/compat/readiness-io-test.c++:33: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[4];
data/capnproto-0.8.0/src/kj/compat/readiness-io-test.c++:101: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[4];
data/capnproto-0.8.0/src/kj/compat/readiness-io-test.c++:129: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 dummy[8192];
data/capnproto-0.8.0/src/kj/compat/readiness-io-test.c++:139: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[3];
data/capnproto-0.8.0/src/kj/compat/readiness-io-test.c++:172: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 dummy[8192];
data/capnproto-0.8.0/src/kj/compat/readiness-io-test.c++:182: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[2];
data/capnproto-0.8.0/src/kj/compat/readiness-io.c++:28: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(dst.begin(), src.begin(), n);
data/capnproto-0.8.0/src/kj/compat/tls-test.c++:341: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[4];
data/capnproto-0.8.0/src/kj/compat/tls-test.c++:363: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[4];
data/capnproto-0.8.0/src/kj/compat/tls-test.c++:466: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[4];
data/capnproto-0.8.0/src/kj/compat/tls-test.c++:586: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 buf[4];
data/capnproto-0.8.0/src/kj/compat/tls-test.c++:612: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 buffer[4096];
data/capnproto-0.8.0/src/kj/compat/tls.c++:57: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 message[1024];
data/capnproto-0.8.0/src/kj/compat/tls.c++:726:5:  [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(buf, p->begin(), result);
data/capnproto-0.8.0/src/kj/debug-test.c++:83: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.
      char buf[1024];
data/capnproto-0.8.0/src/kj/debug-test.c++:193: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 buffer[32];
data/capnproto-0.8.0/src/kj/debug-test.c++:194:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(buffer, "%d", line);
data/capnproto-0.8.0/src/kj/debug.c++:253: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[256];
data/capnproto-0.8.0/src/kj/debug.c++:262: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[256];
data/capnproto-0.8.0/src/kj/encoding.c++:263: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(&result, &array, sizeof(array));
data/capnproto-0.8.0/src/kj/encoding.c++:292:5:  [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(result.begin(), text.begin(), text.size());
data/capnproto-0.8.0/src/kj/encoding.c++:997:5:  [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(copy.begin(), output.begin(), n);
data/capnproto-0.8.0/src/kj/exception.c++:304:3:  [2] (buffer) wchar_t:
  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.
  wchar_t exeWinPath[MAX_PATH];
data/capnproto-0.8.0/src/kj/exception.c++:308: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 exePosixPath[MAX_PATH * 2];
data/capnproto-0.8.0/src/kj/exception.c++:319: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 line[512];
data/capnproto-0.8.0/src/kj/exception.c++:752: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(trace, other.trace, sizeof(trace[0]) * traceCount);
data/capnproto-0.8.0/src/kj/exception.c++:782:5:  [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(trace + traceCount, newTrace.begin(), newTrace.asBytes().size());
data/capnproto-0.8.0/src/kj/filesystem-disk-test.c++:59:3:  [2] (buffer) wchar_t:
  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.
  wchar_t wtmpdir[MAX_PATH + 1];
data/capnproto-0.8.0/src/kj/filesystem-disk-test.c++:99: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(result.begin(), path.begin(), path.asBytes().size() - sizeof(wchar_t));
data/capnproto-0.8.0/src/kj/filesystem-disk-test.c++:101: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(result.begin() + path.size(), file, len * sizeof(wchar_t));
data/capnproto-0.8.0/src/kj/filesystem-disk-test.c++:212:19:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  KJ_SYSCALL(fd = mkstemp(filename));
data/capnproto-0.8.0/src/kj/filesystem-disk-test.c++:227:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    KJ_SYSCALL(fd = open(filename.cStr(), O_RDONLY));
data/capnproto-0.8.0/src/kj/filesystem-disk-unix.c++:1661:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    KJ_SYSCALL(newFd = open(dir, O_RDONLY | MAYBE_O_CLOEXEC | MAYBE_O_DIRECTORY));
data/capnproto-0.8.0/src/kj/filesystem-disk-win32.c++:147: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(result.begin(), path.begin(), path.asBytes().size() - sizeof(wchar_t));
data/capnproto-0.8.0/src/kj/filesystem-disk-win32.c++:149: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(result.begin() + path.size(), file, len * sizeof(wchar_t));
data/capnproto-0.8.0/src/kj/filesystem-disk-win32.c++:1516:9:  [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 name[2] = { static_cast<char>('A' + i), ':' };
data/capnproto-0.8.0/src/kj/filesystem.c++:147:5:  [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(ptr, p.begin(), p.size());
data/capnproto-0.8.0/src/kj/filesystem.c++:257:5:  [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(ptr, p.begin(), p.size());
data/capnproto-0.8.0/src/kj/filesystem.c++:467: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 tmp[4];
data/capnproto-0.8.0/src/kj/filesystem.c++:468: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(tmp, part.begin(), 3);
data/capnproto-0.8.0/src/kj/filesystem.c++:803:5:  [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(buffer.begin(), lock->bytes.begin() + offset, readSize);
data/capnproto-0.8.0/src/kj/filesystem.c++:841:5:  [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(lock->bytes.begin() + offset, data.begin(), data.size());
data/capnproto-0.8.0/src/kj/filesystem.c++:915:9:  [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(newBytes.begin(), bytes.begin(), size);
data/capnproto-0.8.0/src/kj/function.h:232:18:  [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.
  alignas(void*) char space[2 * sizeof(void*)];
data/capnproto-0.8.0/src/kj/io-test.c++:54: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[7];
data/capnproto-0.8.0/src/kj/io-test.c++:131:5:  [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(buffer, bytes.begin(), n);
data/capnproto-0.8.0/src/kj/io.c++:62: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 scratch[8192];
data/capnproto-0.8.0/src/kj/io.c++:86:9:  [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(pos, p.begin(), BLOCK_SIZE);
data/capnproto-0.8.0/src/kj/io.c++:89: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(pos, part.begin(), n);
data/capnproto-0.8.0/src/kj/io.c++:142:5:  [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(dst, bufferAvailable.begin(), n);
data/capnproto-0.8.0/src/kj/io.c++:147:5:  [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(dst, bufferAvailable.begin(), bufferAvailable.size());
data/capnproto-0.8.0/src/kj/io.c++:158: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(dst, buffer.begin(), fromSecondBuffer);
data/capnproto-0.8.0/src/kj/io.c++:219: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(bufferPos, src, size);
data/capnproto-0.8.0/src/kj/io.c++:223: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(bufferPos, src, available);
data/capnproto-0.8.0/src/kj/io.c++:229: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(buffer.begin(), src, size);
data/capnproto-0.8.0/src/kj/io.c++:251: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(dst, array.begin(), n);
data/capnproto-0.8.0/src/kj/io.c++:281:5:  [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(fillPos, src, size);
data/capnproto-0.8.0/src/kj/io.c++:311:5:  [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(fillPos, src, size);
data/capnproto-0.8.0/src/kj/io.c++:320: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(newVector.begin(), vector.begin(), fillPos - vector.begin());
data/capnproto-0.8.0/src/kj/main.c++:128:24:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    size_t finalSize = MultiByteToWideChar(
data/capnproto-0.8.0/src/kj/parse/char.c++:45: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(pos, digits.begin(), digits.size());
data/capnproto-0.8.0/src/kj/parse/char.c++:49:5:  [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(pos, f->begin(), f->size());
data/capnproto-0.8.0/src/kj/parse/char.c++:57:5:  [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(pos, get<1>(*e).begin(), get<1>(*e).size());
data/capnproto-0.8.0/src/kj/parse/char.h:222:5:  [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(result.begin() + 1, rest.begin(), rest.size());
data/capnproto-0.8.0/src/kj/std/iostream-test.c++:49: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[7];
data/capnproto-0.8.0/src/kj/std/iostream-test.c++:68: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[9];
data/capnproto-0.8.0/src/kj/std/iostream-test.c++:88: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[9];
data/capnproto-0.8.0/src/kj/string-test.c++:45: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[3] = {'f', 'o', 'o'};
data/capnproto-0.8.0/src/kj/string-test.c++:51: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(f.begin(), buf, 3);
data/capnproto-0.8.0/src/kj/string-test.c++:206: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[256];
data/capnproto-0.8.0/src/kj/string-test.c++:213: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[5];
data/capnproto-0.8.0/src/kj/string-tree.c++:41:9:  [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(text.begin() + (i - 1) * delim.size(), delim.begin(), delim.size());
data/capnproto-0.8.0/src/kj/string-tree.c++:58:5:  [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(target, text.begin(), text.size());
data/capnproto-0.8.0/src/kj/string-tree.c++:67:5:  [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(target, text.begin(), size);
data/capnproto-0.8.0/src/kj/string.c++:133:5:  [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(buffer, value, size);
data/capnproto-0.8.0/src/kj/string.c++:395:5:  [2] (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). Risk is low because the source is a constant string.
    strcpy(buffer, "inf");
data/capnproto-0.8.0/src/kj/string.c++:398:5:  [2] (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). Risk is low because the source is a constant string.
    strcpy(buffer, "-inf");
data/capnproto-0.8.0/src/kj/string.c++:401:5:  [2] (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). Risk is low because the source is a constant string.
    strcpy(buffer, "nan");
data/capnproto-0.8.0/src/kj/string.c++:454:5:  [2] (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). Risk is low because the source is a constant string.
    strcpy(buffer, "inf");
data/capnproto-0.8.0/src/kj/string.c++:457:5:  [2] (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). Risk is low because the source is a constant string.
    strcpy(buffer, "-inf");
data/capnproto-0.8.0/src/kj/string.c++:460:5:  [2] (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). Risk is low because the source is a constant string.
    strcpy(buffer, "nan");
data/capnproto-0.8.0/src/kj/string.h:437: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(pos, delim, delimLen);
data/capnproto-0.8.0/src/kj/table.h:1034:50:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
inline void acopy(T* to, T* from, size_t size) { memcpy(to, from, size * sizeof(T)); }
data/capnproto-0.8.0/src/capnp/afl-testcase.c++:110:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    KJ_ASSERT(equal);
data/capnproto-0.8.0/src/capnp/blob-test.c++:57:59:  [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).
  return Data::Reader(reinterpret_cast<const byte*>(str), strlen(str));
data/capnproto-0.8.0/src/capnp/blob.h:114:47:  [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).
  inline Builder(char* value): content(value, strlen(value) + 1) {}
data/capnproto-0.8.0/src/capnp/compiler/capnp.c++:1036:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        unpacker.read(words.asBytes().begin(), words.asBytes().size());
data/capnproto-0.8.0/src/capnp/compiler/capnpc-capnp.c++:619:53:  [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).
              auto target = kj::str(fieldName.slice(strlen("targets")));
data/capnproto-0.8.0/src/capnp/compiler/compiler.c++:1155:47:  [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).
        kj::StringPtr symbolName = name.slice(strlen("builtin"));
data/capnproto-0.8.0/src/capnp/compiler/parser.c++:59:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  KJ_SYSCALL(n = read(fd, &result, sizeof(result)), "/dev/urandom");
data/capnproto-0.8.0/src/capnp/compiler/parser.c++:979:24:  [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).
                buffer[strlen("targets")] += 'A' - 'a';
data/capnproto-0.8.0/src/capnp/rpc-twoparty-test.c++:542:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  kj::Promise<size_t> read(void* buffer, size_t minBytes, size_t maxBytes) override {
data/capnproto-0.8.0/src/capnp/rpc-twoparty-test.c++:543:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return inner->read(buffer, minBytes, maxBytes);
data/capnproto-0.8.0/src/capnp/serialize-async-test.c++:55:23:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
inline void delay() { usleep(5000); }
data/capnproto-0.8.0/src/capnp/serialize-async.c++:37:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  kj::Promise<bool> read(kj::AsyncInputStream& inputStream, kj::ArrayPtr<word> scratchSpace);
data/capnproto-0.8.0/src/capnp/serialize-async.c++:71:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
kj::Promise<bool> AsyncMessageReader::read(kj::AsyncInputStream& inputStream,
data/capnproto-0.8.0/src/capnp/serialize-async.c++:122:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return inputStream.read(moreSizes.begin(), moreSizes.size() * sizeof(moreSizes[0]))
data/capnproto-0.8.0/src/capnp/serialize-async.c++:170:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return inputStream.read(scratchSpace.begin(), totalWords * sizeof(word));
data/capnproto-0.8.0/src/capnp/serialize-async.c++:179:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  auto promise = reader->read(input, scratchSpace);
data/capnproto-0.8.0/src/capnp/serialize-async.c++:191:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  auto promise = reader->read(input, scratchSpace);
data/capnproto-0.8.0/src/capnp/serialize-packed-test.c++:124:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    packedIn.InputStream::read(roundTrip.begin(), roundTrip.size());
data/capnproto-0.8.0/src/capnp/serialize-packed-test.c++:139:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      packedIn.InputStream::read(roundTrip.begin(), roundTrip.size());
data/capnproto-0.8.0/src/capnp/serialize-packed-test.c++:185:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    packedIn.InputStream::read(&*roundTrip.begin(), roundTrip.size());
data/capnproto-0.8.0/src/capnp/serialize-packed.c++:156:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        inner.read(out, runLength);
data/capnproto-0.8.0/src/capnp/serialize-test.c++:379:21:  [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).
  char* end = tpl + strlen(tpl);
data/capnproto-0.8.0/src/capnp/serialize-test.c++:395: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).
    memset(end, 'X', strlen(end));
data/capnproto-0.8.0/src/capnp/serialize.c++:169:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  inputStream.read(firstWord, sizeof(firstWord));
data/capnproto-0.8.0/src/capnp/serialize.c++:186:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    inputStream.read(moreSizes.begin(), moreSizes.size() * sizeof(moreSizes[0]));
data/capnproto-0.8.0/src/capnp/serialize.c++:225:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    inputStream.read(scratchSpace.begin(), totalWords * sizeof(word));
data/capnproto-0.8.0/src/capnp/serialize.c++:228:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    readPos += inputStream.read(readPos, segment0Size * sizeof(word), totalWords * sizeof(word));
data/capnproto-0.8.0/src/capnp/serialize.c++:257:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      readPos += inputStream.read(readPos, segmentEnd - readPos, allEnd - readPos);
data/capnproto-0.8.0/src/capnp/test-util.h:69:59:  [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).
  return Data::Reader(reinterpret_cast<const byte*>(str), strlen(str));
data/capnproto-0.8.0/src/kj/async-io-test.c++:396:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  KJ_NONBLOCKING_SYSCALL(n = read(in1, buffer, 4));
data/capnproto-0.8.0/src/kj/async-io-test.c++:402:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  KJ_NONBLOCKING_SYSCALL(n = read(in1, buffer, 4));
data/capnproto-0.8.0/src/kj/async-io-test.c++:409:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  KJ_NONBLOCKING_SYSCALL(n = read(in2, buffer, 4));
data/capnproto-0.8.0/src/kj/async-io-test.c++:474:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  KJ_NONBLOCKING_SYSCALL(n = read(in1, buffer, 4));
data/capnproto-0.8.0/src/kj/async-io-test.c++:480:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  KJ_NONBLOCKING_SYSCALL(n = read(in1, buffer, 4));
data/capnproto-0.8.0/src/kj/async-io-test.c++:487:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  KJ_NONBLOCKING_SYSCALL(n = read(in2, buffer, 4));
data/capnproto-0.8.0/src/kj/async-io-test.c++:493:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  KJ_NONBLOCKING_SYSCALL(n = read(in2, buffer, 4));
data/capnproto-0.8.0/src/kj/async-io-test.c++:500:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  KJ_NONBLOCKING_SYSCALL(n = read(in3, buffer, 4));
data/capnproto-0.8.0/src/kj/async-io-test.c++:593:34:  [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).
  KJ_SYSCALL(sendto(fd, message, strlen(message), 0,
data/capnproto-0.8.0/src/kj/async-io-unix.c++:304:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      KJ_NONBLOCKING_SYSCALL(n = ::read(fd, buffer, maxBytes)) {
data/capnproto-0.8.0/src/kj/async-io-unix.c++:716:34:  [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).
      StringPtr path = str.slice(strlen("unix:"));
data/capnproto-0.8.0/src/kj/async-io-unix.c++:719:33:  [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).
      KJ_REQUIRE(path.size() == strlen(path.cStr()),
data/capnproto-0.8.0/src/kj/async-io-unix.c++:737:34:  [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).
      StringPtr path = str.slice(strlen("unix-abstract:"));
data/capnproto-0.8.0/src/kj/async-io-unix.c++:925:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Promise<Array<SocketAddress>> read() {
data/capnproto-0.8.0/src/kj/async-io-unix.c++:949:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return read();
data/capnproto-0.8.0/src/kj/async-io-unix.c++:1055:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return reader->read().attach(kj::mv(reader));
data/capnproto-0.8.0/src/kj/async-io-win32.c++:226:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Promise<size_t> read(void* buffer, size_t minBytes, size_t maxBytes) override {
data/capnproto-0.8.0/src/kj/async-io-win32.c++:742:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Promise<Array<SocketAddress>> read() {
data/capnproto-0.8.0/src/kj/async-io-win32.c++:766:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return read();
data/capnproto-0.8.0/src/kj/async-io-win32.c++:878:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return reader->read().attach(kj::mv(reader));
data/capnproto-0.8.0/src/kj/async-io.c++:55:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Promise<void> AsyncInputStream::read(void* buffer, size_t bytes) {
data/capnproto-0.8.0/src/kj/async-io.c++:56:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return read(buffer, bytes, bytes).then([](size_t) {});
data/capnproto-0.8.0/src/kj/async-io.c++:59:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Promise<size_t> AsyncInputStream::read(void* buffer, size_t minBytes, size_t maxBytes) {
data/capnproto-0.8.0/src/kj/async-io.c++:2269:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  kj::Promise<size_t> read(void* buffer, size_t minBytes, size_t maxBytes) override {
data/capnproto-0.8.0/src/kj/async-io.c++:2271:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      return s->get()->read(buffer, minBytes, maxBytes);
data/capnproto-0.8.0/src/kj/async-io.c++:2274:43:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return KJ_ASSERT_NONNULL(stream)->read(buffer, minBytes, maxBytes);
data/capnproto-0.8.0/src/kj/async-io.h:54:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  virtual Promise<size_t> read(void* buffer, size_t minBytes, size_t maxBytes);
data/capnproto-0.8.0/src/kj/async-io.h:57:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Promise<void> read(void* buffer, size_t bytes);
data/capnproto-0.8.0/src/kj/async-unix-test.c++:51:23:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
inline void delay() { usleep(10000); }
data/capnproto-0.8.0/src/kj/async-unix-test.c++:299:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  KJ_SYSCALL(n = read(infd, &buffer, sizeof(buffer)));
data/capnproto-0.8.0/src/kj/async-unix-test.c++:481:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    KJ_NONBLOCKING_SYSCALL(n = read(infd, &buffer, sizeof(buffer)));
data/capnproto-0.8.0/src/kj/async-unix-test.c++:855:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    KJ_SYSCALL(n = read(fds[0], junk, 16));
data/capnproto-0.8.0/src/kj/async-unix.c++:613:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        KJ_NONBLOCKING_SYSCALL(n = read(signalFd, &siginfo, sizeof(siginfo)));
data/capnproto-0.8.0/src/kj/async-unix.c++:637:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      KJ_NONBLOCKING_SYSCALL(n = read(eventFd, &value, sizeof(value)));
data/capnproto-0.8.0/src/kj/async-unix.c++:886:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            KJ_NONBLOCKING_SYSCALL(n = read(pollfds[i].fd, junk, sizeof(junk)));
data/capnproto-0.8.0/src/kj/async-xthread-test.c++:35:23:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
inline void delay() { usleep(10000); }
data/capnproto-0.8.0/src/kj/compat/http-test.c++:351:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Promise<size_t> read(void* buffer, size_t minBytes, size_t maxBytes) override {
data/capnproto-0.8.0/src/kj/compat/http-test.c++:352:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return inner.read(buffer, minBytes, kj::max(minBytes, kj::min(limit, maxBytes)));
data/capnproto-0.8.0/src/kj/compat/http-test.c++:527:49:  [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).
    return pipe.ends[1]->write(SIMPLE_RESPONSE, strlen(SIMPLE_RESPONSE));
data/capnproto-0.8.0/src/kj/compat/http-test.c++:1867:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  kj::Promise<size_t> read(void* buffer, size_t minBytes, size_t maxBytes) override {
data/capnproto-0.8.0/src/kj/compat/http-test.c++:1868:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return in->read(buffer, minBytes, maxBytes);
data/capnproto-0.8.0/src/kj/compat/http-test.c++:1994:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  pipe2.ends[1]->read(buffer, 3).wait(waitScope);
data/capnproto-0.8.0/src/kj/compat/http-test.c++:3277:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  kj::Promise<size_t> read(void* buffer, size_t minBytes, size_t maxBytes) override {
data/capnproto-0.8.0/src/kj/compat/http-test.c++:3278:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return inner->read(buffer, minBytes, maxBytes);
data/capnproto-0.8.0/src/kj/compat/http.c++:440:67:  [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).
  SHA1Update(&ctx, reinterpret_cast<const byte*>(WEBSOCKET_GUID), strlen(WEBSOCKET_GUID));
data/capnproto-0.8.0/src/kj/compat/http.c++:1363:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      readPromise = inner.read(headerBuffer.begin() + bufferEnd, 1, maxBytes);
data/capnproto-0.8.0/src/kj/compat/readiness-io-test.c++:34:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  auto readPromise = pipe.in->read(buf, 3, 4);
data/capnproto-0.8.0/src/kj/compat/readiness-io-test.c++:63:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  size_t n = pipe.in->read(buf.begin(), totalWritten, buf.size()).wait(io.waitScope);
data/capnproto-0.8.0/src/kj/compat/readiness-io-test.c++:89:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  size_t n = pipe.in->read(buf.begin(), totalWritten, buf.size()).wait(io.waitScope);
data/capnproto-0.8.0/src/kj/compat/readiness-io-test.c++:102:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  KJ_ASSERT(in.read(kj::ArrayPtr<char>(buf).asBytes()) == nullptr);
data/capnproto-0.8.0/src/kj/compat/readiness-io-test.c++:107:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  KJ_ASSERT(KJ_ASSERT_NONNULL(in.read(kj::ArrayPtr<char>(buf).asBytes())) == 3);
data/capnproto-0.8.0/src/kj/compat/readiness-io-test.c++:115:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    finalRead = in.read(kj::ArrayPtr<char>(buf).asBytes());
data/capnproto-0.8.0/src/kj/compat/readiness-io-test.c++:142:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    auto result = in.read(kj::ArrayPtr<char>(buf).asBytes());
data/capnproto-0.8.0/src/kj/compat/readiness-io-test.c++:158:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    finalRead = in.read(kj::ArrayPtr<char>(buf).asBytes());
data/capnproto-0.8.0/src/kj/compat/readiness-io-test.c++:185:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    auto result = in.read(kj::ArrayPtr<char>(buf).asBytes());
data/capnproto-0.8.0/src/kj/compat/readiness-io-test.c++:201:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    finalRead = in.read(kj::ArrayPtr<char>(buf).asBytes());
data/capnproto-0.8.0/src/kj/compat/readiness-io.c++:38:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
kj::Maybe<size_t> ReadyInputStreamWrapper::read(kj::ArrayPtr<byte> dst) {
data/capnproto-0.8.0/src/kj/compat/readiness-io.h:39:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  kj::Maybe<size_t> read(kj::ArrayPtr<byte> dst);
data/capnproto-0.8.0/src/kj/compat/tls-test.c++:342:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  server->read(&buf, 3).wait(test.io.waitScope);
data/capnproto-0.8.0/src/kj/compat/tls-test.c++:366:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  server->read(&buf, 3).wait(test.io.waitScope);
data/capnproto-0.8.0/src/kj/compat/tls-test.c++:372:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  server->read(&buf, 3).wait(test.io.waitScope);
data/capnproto-0.8.0/src/kj/compat/tls-test.c++:375:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  server->read(&buf, 3).wait(test.io.waitScope);
data/capnproto-0.8.0/src/kj/compat/tls-test.c++:378:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  auto readPromise = server->read(&buf, 3);
data/capnproto-0.8.0/src/kj/compat/tls-test.c++:401:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  auto promise = stream.read(buf.begin(), buf.size());
data/capnproto-0.8.0/src/kj/compat/tls-test.c++:467:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  server->read(&buf, 3).wait(test.io.waitScope);
data/capnproto-0.8.0/src/kj/compat/tls-test.c++:587:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    server->read(&buf, 3).wait(test.io.waitScope);
data/capnproto-0.8.0/src/kj/compat/tls.c++:306:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        .read(kj::arrayPtr(out, outl).asBytes())) {
data/capnproto-0.8.0/src/kj/debug-test.c++:85:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ssize_t n = read(pipeFds[0], buf, sizeof(buf));
data/capnproto-0.8.0/src/kj/debug.c++:378:18:  [1] (buffer) wcslen:
  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 len = wcslen(desc);
data/capnproto-0.8.0/src/kj/exception.c++:335:18:  [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 len = strlen(line);
data/capnproto-0.8.0/src/kj/filesystem-disk-test.c++:97:16:  [1] (buffer) wcslen:
  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 len = wcslen(file) + 1;
data/capnproto-0.8.0/src/kj/filesystem-disk-test.c++:163:67:  [1] (buffer) wcslen:
  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 utf8Name = decodeWideString(arrayPtr(data.cFileName, wcslen(data.cFileName)));
data/capnproto-0.8.0/src/kj/filesystem-disk-test.c++:897:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    KJ_EXPECT(copy->read(0, buf) == 7);
data/capnproto-0.8.0/src/kj/filesystem-disk-test.c++:900:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    KJ_EXPECT(copy->read(1 << 20, buf) == 6);
data/capnproto-0.8.0/src/kj/filesystem-disk-test.c++:903:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    KJ_EXPECT(copy->read(1 << 19, buf) == 7);
data/capnproto-0.8.0/src/kj/filesystem-disk-test.c++:911:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  KJ_EXPECT(file->read(1 << 20, buf) == 7);
data/capnproto-0.8.0/src/kj/filesystem-disk-test.c++:919:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    KJ_EXPECT(copy->read(0, buf) == 7);
data/capnproto-0.8.0/src/kj/filesystem-disk-test.c++:922:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    KJ_EXPECT(copy->read(1 << 20, buf) == 7);
data/capnproto-0.8.0/src/kj/filesystem-disk-test.c++:925:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    KJ_EXPECT(copy->read(1 << 19, buf) == 7);
data/capnproto-0.8.0/src/kj/filesystem-disk-test.c++:945:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  KJ_EXPECT(file->read(1 << 20, buf) == 7);
data/capnproto-0.8.0/src/kj/filesystem-disk-unix.c++:332:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  size_t read(uint64_t offset, ArrayPtr<byte> buffer) const {
data/capnproto-0.8.0/src/kj/filesystem-disk-unix.c++:1497:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  size_t read(uint64_t offset, ArrayPtr<byte> buffer) const override {
data/capnproto-0.8.0/src/kj/filesystem-disk-unix.c++:1498:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return DiskHandle::read(offset, buffer);
data/capnproto-0.8.0/src/kj/filesystem-disk-unix.c++:1530:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  size_t read(uint64_t offset, ArrayPtr<byte> buffer) const override {
data/capnproto-0.8.0/src/kj/filesystem-disk-unix.c++:1531:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return DiskHandle::read(offset, buffer);
data/capnproto-0.8.0/src/kj/filesystem-disk-win32.c++:145:16:  [1] (buffer) wcslen:
  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 len = wcslen(file) + 1;
data/capnproto-0.8.0/src/kj/filesystem-disk-win32.c++:390:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  size_t read(uint64_t offset, ArrayPtr<byte> buffer) const {
data/capnproto-0.8.0/src/kj/filesystem-disk-win32.c++:597:65:  [1] (buffer) wcslen:
  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).
          arrayPtr(reinterpret_cast<char16_t*>(data.cFileName), wcslen(data.cFileName)));
data/capnproto-0.8.0/src/kj/filesystem-disk-win32.c++:1329:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  size_t read(uint64_t offset, ArrayPtr<byte> buffer) const override {
data/capnproto-0.8.0/src/kj/filesystem-disk-win32.c++:1330:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return DiskHandle::read(offset, buffer);
data/capnproto-0.8.0/src/kj/filesystem-disk-win32.c++:1371:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  size_t read(uint64_t offset, ArrayPtr<byte> buffer) const override {
data/capnproto-0.8.0/src/kj/filesystem-disk-win32.c++:1372:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return DiskHandle::read(offset, buffer);
data/capnproto-0.8.0/src/kj/filesystem.c++:304:14:  [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).
  KJ_REQUIRE(strlen(part.begin()) == part.size(), "NUL character in path component", part);
data/capnproto-0.8.0/src/kj/filesystem.c++:322: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).
    KJ_REQUIRE(strlen(str.begin()) == str.size(), "NUL character in path component", str) {
data/capnproto-0.8.0/src/kj/filesystem.c++:490:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  size_t n = read(0, result.asBytes());
data/capnproto-0.8.0/src/kj/filesystem.c++:500:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  size_t n = read(0, result.asBytes());
data/capnproto-0.8.0/src/kj/filesystem.c++:523:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    size_t n = from.read(fromOffset, kj::arrayPtr(buffer, kj::min(sizeof(buffer), size)));
data/capnproto-0.8.0/src/kj/filesystem.c++:795:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  size_t read(uint64_t offset, ArrayPtr<byte> buffer) const override {
data/capnproto-0.8.0/src/kj/filesystem.c++:823:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    size_t actual = read(offset, result);
data/capnproto-0.8.0/src/kj/filesystem.c++:892:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    size_t n = from.read(fromOffset, lock->bytes.slice(offset, end));
data/capnproto-0.8.0/src/kj/filesystem.h:416:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  virtual size_t read(uint64_t offset, ArrayPtr<byte> buffer) const = 0;
data/capnproto-0.8.0/src/kj/io-test.c++:55:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  in.read(buf, 6);
data/capnproto-0.8.0/src/kj/io.c++:51:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
size_t InputStream::read(void* buffer, size_t minBytes, size_t maxBytes) {
data/capnproto-0.8.0/src/kj/io.c++:65:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(scratch, amount);
data/capnproto-0.8.0/src/kj/io.c++:156:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      size_t n = inner.read(buffer.begin(), minBytes, buffer.size());
data/capnproto-0.8.0/src/kj/io.c++:164:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      return fromFirstBuffer + inner.read(dst, minBytes, maxBytes);
data/capnproto-0.8.0/src/kj/io.c++:176:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      size_t n = inner.read(buffer.begin(), bytes, buffer.size());
data/capnproto-0.8.0/src/kj/io.c++:348:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    KJ_SYSCALL(n = miniposix::read(fd, pos, max - pos), fd);
data/capnproto-0.8.0/src/kj/io.h:41:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  size_t read(void* buffer, size_t minBytes, size_t maxBytes);
data/capnproto-0.8.0/src/kj/io.h:61:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  inline void read(void* buffer, size_t bytes) { read(buffer, bytes, bytes); }
data/capnproto-0.8.0/src/kj/io.h:61:50:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  inline void read(void* buffer, size_t bytes) { read(buffer, bytes, bytes); }
data/capnproto-0.8.0/src/kj/miniposix.h:56:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
inline ssize_t read(int fd, void* buffer, size_t size) {
data/capnproto-0.8.0/src/kj/miniposix.h:91:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
using ::read;
data/capnproto-0.8.0/src/kj/mutex-test.c++:51:23:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
inline void delay() { usleep(10000); }
data/capnproto-0.8.0/src/kj/std/iostream-test.c++:50:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  in.read(buf, 6);
data/capnproto-0.8.0/src/kj/std/iostream-test.c++:91:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    in.read(buf, 8, 8);
data/capnproto-0.8.0/src/kj/std/iostream.h:73:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    stream_.read((char*)buffer, maxBytes);
data/capnproto-0.8.0/src/kj/string.c++:344:29:  [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).
    memmove(target, buffer, strlen(buffer) + 1);
data/capnproto-0.8.0/src/kj/string.c++:356:33:  [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).
    memmove(buffer, buffer + 1, strlen(buffer + 1) + 1);
data/capnproto-0.8.0/src/kj/string.c++:382:24:  [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).
    memmove(ptr, ptr2, strlen(ptr2) + 1);
data/capnproto-0.8.0/src/kj/string.c++:492:18:  [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).
  result.setSize(strlen(FloatToBuffer(f, result.begin())));
data/capnproto-0.8.0/src/kj/string.c++:498:18:  [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).
  result.setSize(strlen(DoubleToBuffer(f, result.begin())));
data/capnproto-0.8.0/src/kj/string.h:72:55:  [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).
  inline StringPtr(const char* value): content(value, strlen(value) + 1) {}
data/capnproto-0.8.0/src/kj/string.h:341:83:  [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).
  inline ArrayPtr<const char> operator*(const char* s) const { return arrayPtr(s, strlen(s)); }
data/capnproto-0.8.0/src/kj/string.h:424:21:  [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 delimLen = strlen(delim);
data/capnproto-0.8.0/src/kj/string.h:591:28:  [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).
  return heapString(value, strlen(value));
data/capnproto-0.8.0/src/kj/time-test.c++:57:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
  usleep(d / kj::MICROSECONDS);

ANALYSIS SUMMARY:

Hits = 420
Lines analyzed = 170389 in approximately 4.34 seconds (39283 lines/second)
Physical Source Lines of Code (SLOC) = 125890
Hits@level = [0]  13 [1] 156 [2] 239 [3]   6 [4]  13 [5]   6
Hits@level+ = [0+] 433 [1+] 420 [2+] 264 [3+]  25 [4+]  19 [5+]   6
Hits/KSLOC@level+ = [0+] 3.43951 [1+] 3.33625 [2+] 2.09707 [3+] 0.198586 [4+] 0.150925 [5+] 0.0476607
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.