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/notcurses-2.0.7+dfsg.1/include/notcurses/direct.h
Examining data/notcurses-2.0.7+dfsg.1/include/notcurses/nckeys.h
Examining data/notcurses-2.0.7+dfsg.1/include/notcurses/notcurses.h
Examining data/notcurses-2.0.7+dfsg.1/rust/build/stdout.c
Examining data/notcurses-2.0.7+dfsg.1/rust/build/wrapper.h
Examining data/notcurses-2.0.7+dfsg.1/src/demo/all.c
Examining data/notcurses-2.0.7+dfsg.1/src/demo/boxdemo.c
Examining data/notcurses-2.0.7+dfsg.1/src/demo/chunli.c
Examining data/notcurses-2.0.7+dfsg.1/src/demo/demo.c
Examining data/notcurses-2.0.7+dfsg.1/src/demo/demo.h
Examining data/notcurses-2.0.7+dfsg.1/src/demo/dragon.c
Examining data/notcurses-2.0.7+dfsg.1/src/demo/eagle.c
Examining data/notcurses-2.0.7+dfsg.1/src/demo/fallin.c
Examining data/notcurses-2.0.7+dfsg.1/src/demo/grid.c
Examining data/notcurses-2.0.7+dfsg.1/src/demo/highcon.c
Examining data/notcurses-2.0.7+dfsg.1/src/demo/hud.c
Examining data/notcurses-2.0.7+dfsg.1/src/demo/input.c
Examining data/notcurses-2.0.7+dfsg.1/src/demo/intro.c
Examining data/notcurses-2.0.7+dfsg.1/src/demo/keller.c
Examining data/notcurses-2.0.7+dfsg.1/src/demo/luigi.c
Examining data/notcurses-2.0.7+dfsg.1/src/demo/mojibake.c
Examining data/notcurses-2.0.7+dfsg.1/src/demo/normal.c
Examining data/notcurses-2.0.7+dfsg.1/src/demo/outro.c
Examining data/notcurses-2.0.7+dfsg.1/src/demo/qrcode.c
Examining data/notcurses-2.0.7+dfsg.1/src/demo/reel.c
Examining data/notcurses-2.0.7+dfsg.1/src/demo/sliding.c
Examining data/notcurses-2.0.7+dfsg.1/src/demo/trans.c
Examining data/notcurses-2.0.7+dfsg.1/src/demo/unicodeblocks.c
Examining data/notcurses-2.0.7+dfsg.1/src/demo/view.c
Examining data/notcurses-2.0.7+dfsg.1/src/demo/whiteout.c
Examining data/notcurses-2.0.7+dfsg.1/src/demo/xray.c
Examining data/notcurses-2.0.7+dfsg.1/src/demo/yield.c
Examining data/notcurses-2.0.7+dfsg.1/src/demo/zoo.c
Examining data/notcurses-2.0.7+dfsg.1/src/fetch/main.c
Examining data/notcurses-2.0.7+dfsg.1/src/input/input.cpp
Examining data/notcurses-2.0.7+dfsg.1/src/lib/blit.c
Examining data/notcurses-2.0.7+dfsg.1/src/lib/blitset.h
Examining data/notcurses-2.0.7+dfsg.1/src/lib/debug.c
Examining data/notcurses-2.0.7+dfsg.1/src/lib/direct.cpp
Examining data/notcurses-2.0.7+dfsg.1/src/lib/egcpool.h
Examining data/notcurses-2.0.7+dfsg.1/src/lib/fade.c
Examining data/notcurses-2.0.7+dfsg.1/src/lib/fd.c
Examining data/notcurses-2.0.7+dfsg.1/src/lib/ffmpeg.cpp
Examining data/notcurses-2.0.7+dfsg.1/src/lib/ffmpeg.h
Examining data/notcurses-2.0.7+dfsg.1/src/lib/fill.c
Examining data/notcurses-2.0.7+dfsg.1/src/lib/input.c
Examining data/notcurses-2.0.7+dfsg.1/src/lib/internal.h
Examining data/notcurses-2.0.7+dfsg.1/src/lib/layout.c
Examining data/notcurses-2.0.7+dfsg.1/src/lib/linux.c
Examining data/notcurses-2.0.7+dfsg.1/src/lib/menu.c
Examining data/notcurses-2.0.7+dfsg.1/src/lib/metric.c
Examining data/notcurses-2.0.7+dfsg.1/src/lib/notcurses.c
Examining data/notcurses-2.0.7+dfsg.1/src/lib/oiio.cpp
Examining data/notcurses-2.0.7+dfsg.1/src/lib/oiio.h
Examining data/notcurses-2.0.7+dfsg.1/src/lib/plot.cpp
Examining data/notcurses-2.0.7+dfsg.1/src/lib/plot.h
Examining data/notcurses-2.0.7+dfsg.1/src/lib/reader.c
Examining data/notcurses-2.0.7+dfsg.1/src/lib/reel.c
Examining data/notcurses-2.0.7+dfsg.1/src/lib/render.c
Examining data/notcurses-2.0.7+dfsg.1/src/lib/selector.c
Examining data/notcurses-2.0.7+dfsg.1/src/lib/terminfo.c
Examining data/notcurses-2.0.7+dfsg.1/src/lib/visual-details.h
Examining data/notcurses-2.0.7+dfsg.1/src/lib/visual.cpp
Examining data/notcurses-2.0.7+dfsg.1/src/libcpp/FDPlane.cc
Examining data/notcurses-2.0.7+dfsg.1/src/libcpp/Menu.cc
Examining data/notcurses-2.0.7+dfsg.1/src/libcpp/MultiSelector.cc
Examining data/notcurses-2.0.7+dfsg.1/src/libcpp/NotCurses.cc
Examining data/notcurses-2.0.7+dfsg.1/src/libcpp/Plane.cc
Examining data/notcurses-2.0.7+dfsg.1/src/libcpp/Plot.cc
Examining data/notcurses-2.0.7+dfsg.1/src/libcpp/Reel.cc
Examining data/notcurses-2.0.7+dfsg.1/src/libcpp/Root.cc
Examining data/notcurses-2.0.7+dfsg.1/src/libcpp/Selector.cc
Examining data/notcurses-2.0.7+dfsg.1/src/libcpp/Subproc.cc
Examining data/notcurses-2.0.7+dfsg.1/src/libcpp/Tablet.cc
Examining data/notcurses-2.0.7+dfsg.1/src/libcpp/Utilities.cc
Examining data/notcurses-2.0.7+dfsg.1/src/poc/blitters.c
Examining data/notcurses-2.0.7+dfsg.1/src/poc/blocks.cpp
Examining data/notcurses-2.0.7+dfsg.1/src/poc/cjkscroll.c
Examining data/notcurses-2.0.7+dfsg.1/src/poc/direct-input.c
Examining data/notcurses-2.0.7+dfsg.1/src/poc/direct.c
Examining data/notcurses-2.0.7+dfsg.1/src/poc/dirgb.c
Examining data/notcurses-2.0.7+dfsg.1/src/poc/dirlines.c
Examining data/notcurses-2.0.7+dfsg.1/src/poc/fileroller.c
Examining data/notcurses-2.0.7+dfsg.1/src/poc/geom.c
Examining data/notcurses-2.0.7+dfsg.1/src/poc/gradients.c
Examining data/notcurses-2.0.7+dfsg.1/src/poc/linuxconjammer.c
Examining data/notcurses-2.0.7+dfsg.1/src/poc/linuxconsole.c
Examining data/notcurses-2.0.7+dfsg.1/src/poc/mathtext.cpp
Examining data/notcurses-2.0.7+dfsg.1/src/poc/menu.c
Examining data/notcurses-2.0.7+dfsg.1/src/poc/multiselect.c
Examining data/notcurses-2.0.7+dfsg.1/src/poc/ncpp_build.cpp
Examining data/notcurses-2.0.7+dfsg.1/src/poc/ncpp_build_exceptions.cpp
Examining data/notcurses-2.0.7+dfsg.1/src/poc/pixels.c
Examining data/notcurses-2.0.7+dfsg.1/src/poc/procroller.c
Examining data/notcurses-2.0.7+dfsg.1/src/poc/qrcode.c
Examining data/notcurses-2.0.7+dfsg.1/src/poc/reader.cpp
Examining data/notcurses-2.0.7+dfsg.1/src/poc/reel.cpp
Examining data/notcurses-2.0.7+dfsg.1/src/poc/resize.cpp
Examining data/notcurses-2.0.7+dfsg.1/src/poc/rgb.c
Examining data/notcurses-2.0.7+dfsg.1/src/poc/rgbbg.cpp
Examining data/notcurses-2.0.7+dfsg.1/src/poc/rotator.c
Examining data/notcurses-2.0.7+dfsg.1/src/poc/scroll.c
Examining data/notcurses-2.0.7+dfsg.1/src/poc/selector.c
Examining data/notcurses-2.0.7+dfsg.1/src/poc/sgr-direct.c
Examining data/notcurses-2.0.7+dfsg.1/src/poc/sgr-full.c
Examining data/notcurses-2.0.7+dfsg.1/src/poc/sgr.c
Examining data/notcurses-2.0.7+dfsg.1/src/poc/unidamage.cpp
Examining data/notcurses-2.0.7+dfsg.1/src/poc/visual.cpp
Examining data/notcurses-2.0.7+dfsg.1/src/poc/vizdirect.c
Examining data/notcurses-2.0.7+dfsg.1/src/poc/wcwidth.c
Examining data/notcurses-2.0.7+dfsg.1/src/poc/widestomp.cpp
Examining data/notcurses-2.0.7+dfsg.1/src/poc/zalgo.c
Examining data/notcurses-2.0.7+dfsg.1/src/tetris/background.h
Examining data/notcurses-2.0.7+dfsg.1/src/tetris/clear.h
Examining data/notcurses-2.0.7+dfsg.1/src/tetris/gravity.h
Examining data/notcurses-2.0.7+dfsg.1/src/tetris/lock.h
Examining data/notcurses-2.0.7+dfsg.1/src/tetris/main.cpp
Examining data/notcurses-2.0.7+dfsg.1/src/tetris/main.h
Examining data/notcurses-2.0.7+dfsg.1/src/tetris/movedown.h
Examining data/notcurses-2.0.7+dfsg.1/src/tetris/movelateral.h
Examining data/notcurses-2.0.7+dfsg.1/src/tetris/newpiece.h
Examining data/notcurses-2.0.7+dfsg.1/src/tetris/rotate.h
Examining data/notcurses-2.0.7+dfsg.1/src/tetris/score.h
Examining data/notcurses-2.0.7+dfsg.1/src/tetris/stain.h
Examining data/notcurses-2.0.7+dfsg.1/src/tetris/stuck.h
Examining data/notcurses-2.0.7+dfsg.1/src/tetris/ticker.h
Examining data/notcurses-2.0.7+dfsg.1/src/view/view.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/Exceptions.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/Ncpp.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/blit.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/cell.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/channel.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/direct.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/egcpool.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/fade.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/fds.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/fills.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/geom.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/input.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/internal.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/layout.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/libunistring.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/main.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/main.h
Examining data/notcurses-2.0.7+dfsg.1/tests/menu.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/metric.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/ncplane.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/notcurses.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/palette.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/plot.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/reader.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/reel.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/reelgaps.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/resize.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/rotate.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/scrolling.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/selector.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/version.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/visual.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/wide.cpp
Examining data/notcurses-2.0.7+dfsg.1/tests/zaxis.cpp

FINAL RESULTS:

data/notcurses-2.0.7+dfsg.1/include/notcurses/direct.h:58:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  __attribute__ ((format (printf, 4, 5)));
data/notcurses-2.0.7+dfsg.1/include/notcurses/notcurses.h:1559:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  __attribute__ ((format (printf, 2, 3)));
data/notcurses-2.0.7+dfsg.1/include/notcurses/notcurses.h:1572:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  __attribute__ ((format (printf, 4, 5)));
data/notcurses-2.0.7+dfsg.1/include/notcurses/notcurses.h:1586:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  __attribute__ ((format (printf, 4, 5)));
data/notcurses-2.0.7+dfsg.1/include/notcurses/notcurses.h:1599:27:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  __attribute__ ((format (printf, 2, 3)));
data/notcurses-2.0.7+dfsg.1/src/demo/demo.c:47:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(path, datadir);
data/notcurses-2.0.7+dfsg.1/src/demo/demo.c:49:3:  [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(path, datum);
data/notcurses-2.0.7+dfsg.1/src/demo/demo.c:376:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stdout, fmt, va);
data/notcurses-2.0.7+dfsg.1/src/fetch/main.c:96:13:  [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.
  FILE* p = popen(cmdline, "re");
data/notcurses-2.0.7+dfsg.1/src/input/input.cpp:275:17:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          if(n->printf(-1, NCAlign::Right, " x: %d y: %d", ni.x, ni.y) < 0){
data/notcurses-2.0.7+dfsg.1/src/lib/fd.c:315:5:  [4] (shell) execv:
  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.
    execv(bin, arg);
data/notcurses-2.0.7+dfsg.1/src/lib/fd.c:350:5:  [4] (shell) execvp:
  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.
    execvp(bin, arg);
data/notcurses-2.0.7+dfsg.1/src/lib/internal.h:817:10:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  }else{ fprintf(stderr, "%s:%d:" fmt, __func__, __LINE__, ##__VA_ARGS__); } \
data/notcurses-2.0.7+dfsg.1/src/lib/internal.h:823:10:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  }else{ fprintf(stderr, "%s:%d:" fmt, __func__, __LINE__, ##__VA_ARGS__); } \
data/notcurses-2.0.7+dfsg.1/src/lib/notcurses.c:1559:13:  [4] (format) vsnprintf:
  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.
  int ret = vsnprintf(buf, size, format, ap);
data/notcurses-2.0.7+dfsg.1/src/lib/notcurses.c:1573:5:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    vsprintf(buf, format, vacopy);
data/notcurses-2.0.7+dfsg.1/src/lib/notcurses.c:2341:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, fmt, va);
data/notcurses-2.0.7+dfsg.1/src/poc/blocks.cpp:38:11:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    if(n->printf(0, 0, "arrrrp?") < 0){
data/notcurses-2.0.7+dfsg.1/src/poc/mathtext.cpp:14:8:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    n->printf(0, NCAlign::Right, "∮E⋅da=Q,n→∞,∑f(i)=∏g(i)⎧⎡⎛┌─────┐⎞⎤⎫");
data/notcurses-2.0.7+dfsg.1/src/poc/mathtext.cpp:15:8:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    n->printf(1, NCAlign::Right, "⎪⎢⎜│a²+b³ ⎟⎥⎪");
data/notcurses-2.0.7+dfsg.1/src/poc/mathtext.cpp:16:8:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    n->printf(2, NCAlign::Right, "∀x∈ℝ:⌈x⌉=−⌊−x⌋,α∧¬β=¬(¬α∨β)⎪⎢⎜│───── ⎟⎥⎪");
data/notcurses-2.0.7+dfsg.1/src/poc/mathtext.cpp:17:8:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    n->printf(3, NCAlign::Right, "⎪⎢⎜⎷ c₈   ⎟⎥⎪");
data/notcurses-2.0.7+dfsg.1/src/poc/mathtext.cpp:18:8:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    n->printf(4, NCAlign::Right, "ℕ⊆ℕ₀⊂ℤ⊂ℚ⊂ℝ⊂ℂ(z̄=ℜ(z)−ℑ(z)⋅𝑖)⎨⎢⎜       ⎟⎥⎬");
data/notcurses-2.0.7+dfsg.1/src/poc/mathtext.cpp:19:8:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    n->printf(5, NCAlign::Right, "⎪⎢⎜ ∞     ⎟⎥⎪");
data/notcurses-2.0.7+dfsg.1/src/poc/mathtext.cpp:20:8:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    n->printf(6, NCAlign::Right, "⊥<a≠b≡c≤d≪⊤⇒(⟦A⟧⇔⟪B⟫)⎪⎢⎜ ⎲     ⎟⎥⎪");
data/notcurses-2.0.7+dfsg.1/src/poc/mathtext.cpp:21:8:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    n->printf(7, NCAlign::Right, "⎪⎢⎜ ⎳aⁱ-bⁱ⎟⎥⎪");
data/notcurses-2.0.7+dfsg.1/src/poc/mathtext.cpp:22:8:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    n->printf(8, NCAlign::Right, "2H₂+O₂⇌2H₂O,R=4.7kΩ,⌀200µm⎩⎣⎝i=1    ⎠⎦⎭");
data/notcurses-2.0.7+dfsg.1/src/poc/reader.cpp:70:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      (*n)->printf(0, 0, "Scroll: %lc Cursor: %03d/%03d Viewgeom: %03d/%03d Textgeom: %03d/%03d",
data/notcurses-2.0.7+dfsg.1/src/poc/reel.cpp:58:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  p->printf(1, 1, "%d %p lines: %d (showing: %d)", tctx->getIdx(), _t, tctx->getLines(), ret);
data/notcurses-2.0.7+dfsg.1/src/tetris/background.h:13:16:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    stdplane_->printf(1, 1, "couldn't load %s", BackgroundFile.c_str());
data/notcurses-2.0.7+dfsg.1/src/tetris/background.h:33:16:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  scoreplane_->printf(0, 1, "%s", getpwuid(geteuid())->pw_name);
data/notcurses-2.0.7+dfsg.1/src/tetris/score.h:2:16:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  scoreplane_->printf(1, 0, "level: %02d score: %ju", level_, static_cast<uintmax_t>(score_));
data/notcurses-2.0.7+dfsg.1/src/view/view.cpp:79:11:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    stdn->printf(0, NCAlign::Left, "frame %06d\u2026 (%s)", marsh->framecount,
data/notcurses-2.0.7+dfsg.1/src/view/view.cpp:115:11:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    stdn->printf(0, NCAlign::Right, "%02jd:%02jd:%02jd.%04jd",
data/notcurses-2.0.7+dfsg.1/src/view/view.cpp:313:19:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            stdn->printf(0, NCAlign::Center, "press key to advance");
data/notcurses-2.0.7+dfsg.1/src/demo/all.c:60:30:  [3] (random) random:
  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.
                             random() % 192 + 64,
data/notcurses-2.0.7+dfsg.1/src/demo/all.c:61:30:  [3] (random) random:
  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.
                             random() % 192 + 64,
data/notcurses-2.0.7+dfsg.1/src/demo/all.c:62:30:  [3] (random) random:
  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.
                             random() % 192 + 64);
data/notcurses-2.0.7+dfsg.1/src/demo/demo.c:260:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while((c = getopt_long(argc, argv, "VhickJ:l:r:d:f:p:m:", longopts, &lidx)) != EOF){
data/notcurses-2.0.7+dfsg.1/src/demo/demo.c:343: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(time(NULL)); // a classic blunder lol
data/notcurses-2.0.7+dfsg.1/src/demo/demo.c:387: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.
                  spec, getenv("TERM"), rows, cols) < 0);
data/notcurses-2.0.7+dfsg.1/src/demo/eagle.c:167:17:  [3] (random) random:
  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.
    e[i].yoff = random() % ((truey - height) / 2);
data/notcurses-2.0.7+dfsg.1/src/demo/eagle.c:192:20:  [3] (random) random:
  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.
      e[i].yoff += random() % (2 + i) - 1;
data/notcurses-2.0.7+dfsg.1/src/demo/eagle.c:199:21:  [3] (random) random:
  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.
      e[i].xoff += (random() % scale) + 1;
data/notcurses-2.0.7+dfsg.1/src/demo/fallin.c:85:13:  [3] (random) random:
  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.
  int pos = random() % (count + 1);
data/notcurses-2.0.7+dfsg.1/src/demo/fallin.c:123:14:  [3] (random) random:
  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.
      newy = random() % (maxy - 1) + 2;
data/notcurses-2.0.7+dfsg.1/src/demo/fallin.c:124:14:  [3] (random) random:
  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.
      newx = random() % (maxx - 1) + 2;
data/notcurses-2.0.7+dfsg.1/src/demo/qrcode.c:16:18:  [3] (random) random:
  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.
    size_t len = random() % sizeof(data) + 1;
data/notcurses-2.0.7+dfsg.1/src/demo/qrcode.c:20:16:  [3] (random) random:
  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.
      long r = random();
data/notcurses-2.0.7+dfsg.1/src/demo/qrcode.c:31:30:  [3] (random) random:
  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.
      ncplane_set_fg_rgb8(n, random() % 255 + 1, random() % 255 + 1, random() % 255 + 1); 
data/notcurses-2.0.7+dfsg.1/src/demo/qrcode.c:31:50:  [3] (random) random:
  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.
      ncplane_set_fg_rgb8(n, random() % 255 + 1, random() % 255 + 1, random() % 255 + 1); 
data/notcurses-2.0.7+dfsg.1/src/demo/qrcode.c:31:70:  [3] (random) random:
  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.
      ncplane_set_fg_rgb8(n, random() % 255 + 1, random() % 255 + 1, random() % 255 + 1); 
data/notcurses-2.0.7+dfsg.1/src/demo/reel.c:125:17:  [3] (random) random:
  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.
    ts.tv_sec = random() % 2 + MINSECONDS;
data/notcurses-2.0.7+dfsg.1/src/demo/reel.c:126:18:  [3] (random) random:
  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.
    ts.tv_nsec = random() % 1000000000;
data/notcurses-2.0.7+dfsg.1/src/demo/reel.c:128:18:  [3] (random) random:
  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.
    int action = random() % 5;
data/notcurses-2.0.7+dfsg.1/src/demo/reel.c:160:17:  [3] (random) random:
  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.
  tctx->lines = random() % 10 + 2; // FIXME a nice gaussian would be swell
data/notcurses-2.0.7+dfsg.1/src/demo/reel.c:161:15:  [3] (random) random:
  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.
  tctx->rgb = random() % (1u << 24u);
data/notcurses-2.0.7+dfsg.1/src/demo/sliding.c:53:14:  [3] (random) random:
  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.
  int hole = random() % chunkcount;
data/notcurses-2.0.7+dfsg.1/src/demo/sliding.c:69:19:  [3] (random) random:
  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.
      direction = random() % 4;
data/notcurses-2.0.7+dfsg.1/src/demo/sliding.c:206:14:  [3] (random) random:
  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.
    int i0 = random() % chunkcount;
data/notcurses-2.0.7+dfsg.1/src/demo/sliding.c:207:14:  [3] (random) random:
  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.
    int i1 = random() % chunkcount;
data/notcurses-2.0.7+dfsg.1/src/demo/sliding.c:209:12:  [3] (random) random:
  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.
      i1 = random() % chunkcount;
data/notcurses-2.0.7+dfsg.1/src/demo/trans.c:106:14:  [3] (random) random:
  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.
  int yoff = random() % (dimy - ny - 2) + 1; // don't start atop a border
data/notcurses-2.0.7+dfsg.1/src/demo/trans.c:107:14:  [3] (random) random:
  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.
  int xoff = random() % (dimx - nx - 2) + 1;
data/notcurses-2.0.7+dfsg.1/src/demo/trans.c:128:14:  [3] (random) random:
  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.
  int velx = random() % 4 + 1;
data/notcurses-2.0.7+dfsg.1/src/demo/trans.c:129:14:  [3] (random) random:
  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.
  int vely = random() % 4 + 1;
data/notcurses-2.0.7+dfsg.1/src/demo/unicodeblocks.c:42:13:  [3] (random) random:
  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.
  int rbg = random() % 20;
data/notcurses-2.0.7+dfsg.1/src/demo/whiteout.c:80:10:  [3] (random) random:
  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.
  s->y = random() % dimy;
data/notcurses-2.0.7+dfsg.1/src/demo/whiteout.c:81:10:  [3] (random) random:
  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.
  s->x = random() % dimx;
data/notcurses-2.0.7+dfsg.1/src/demo/whiteout.c:104:21:  [3] (random) random:
  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.
    int direction = random() % 4;
data/notcurses-2.0.7+dfsg.1/src/demo/whiteout.c:483:20:  [3] (random) random:
  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.
        s = strs + random() % ((sizeof(strs) / sizeof(*strs)) - 1);
data/notcurses-2.0.7+dfsg.1/src/demo/yield.c:47:15:  [3] (random) random:
  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.
      int x = random() % (vx);
data/notcurses-2.0.7+dfsg.1/src/demo/yield.c:48:15:  [3] (random) random:
  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.
      int y = random() % (vy);
data/notcurses-2.0.7+dfsg.1/src/demo/yield.c:61:33:  [3] (random) random:
  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.
      ncpixel_set_rgb8(&pixel, (random() % 128) + 128, 0, ncpixel_b(pixel) / 4);
data/notcurses-2.0.7+dfsg.1/src/fetch/main.c:45:17:  [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.
  fi->desktop = getenv("XDG_CURRENT_DESKTOP");
data/notcurses-2.0.7+dfsg.1/src/fetch/main.c:46:15:  [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.
  fi->shell = getenv("SHELL");
data/notcurses-2.0.7+dfsg.1/src/fetch/main.c:47:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  fi->term = getenv("TERM");
data/notcurses-2.0.7+dfsg.1/src/fetch/main.c:48:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  fi->lang = getenv("LANG");
data/notcurses-2.0.7+dfsg.1/src/fetch/main.c:183: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.
  if( (fi->username = getenv("LOGNAME")) ){
data/notcurses-2.0.7+dfsg.1/src/lib/notcurses.c:814:24:  [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* lang = getenv("LANG");
data/notcurses-2.0.7+dfsg.1/src/lib/terminfo.c:19: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* cterm = getenv("COLORTERM");
data/notcurses-2.0.7+dfsg.1/src/poc/dirgb.c:36:6:  [3] (random) random:
  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.
  if(random() % 2){
data/notcurses-2.0.7+dfsg.1/src/poc/dirgb.c:41:6:  [3] (random) random:
  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.
  if(random() % 16 == 0){
data/notcurses-2.0.7+dfsg.1/src/poc/ncpp_build.cpp:40:17:  [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.
	Direct direct (getenv ("TERM"));
data/notcurses-2.0.7+dfsg.1/src/poc/ncpp_build_exceptions.cpp:41:17:  [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.
	Direct direct (getenv ("TERM"));
data/notcurses-2.0.7+dfsg.1/src/poc/reel.cpp:77:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while((c = getopt_long(argc, argv, "l:b:t:m:h", longopts, nullptr)) != -1){
data/notcurses-2.0.7+dfsg.1/src/tetris/main.h:32:3:  [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(time(nullptr));
data/notcurses-2.0.7+dfsg.1/src/tetris/newpiece.h:13:20:  [3] (random) random:
  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.
  const int tidx = random() % 7;
data/notcurses-2.0.7+dfsg.1/src/tetris/newpiece.h:18:47:  [3] (random) random:
  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.
  const int xoff = x / 2 - BOARD_WIDTH + 2 * (random() % (BOARD_WIDTH / 2));
data/notcurses-2.0.7+dfsg.1/src/view/view.cpp:183:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while((c = getopt(argc, argv, "hql:d:s:b:m:kL")) != -1){
data/notcurses-2.0.7+dfsg.1/tests/main.cpp:102:22:  [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* lang = getenv("LANG");
data/notcurses-2.0.7+dfsg.1/tests/main.cpp:108:22:  [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* term = getenv("TERM");
data/notcurses-2.0.7+dfsg.1/tests/notcurses.cpp:23:17:  [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.
    auto stry = getenv("LINES");
data/notcurses-2.0.7+dfsg.1/tests/notcurses.cpp:28:17:  [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.
    auto strx = getenv("COLUMNS");
data/notcurses-2.0.7+dfsg.1/include/notcurses/notcurses.h:1525: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 warr[2] = { w, L'\0' };
data/notcurses-2.0.7+dfsg.1/include/notcurses/notcurses.h:1539: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 warr[2] = { w, L'\0' };
data/notcurses-2.0.7+dfsg.1/src/demo/all.c:42:7:  [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 w[2] = { wc, L'\0', };
data/notcurses-2.0.7+dfsg.1/src/demo/chunli.c:14: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 file[20];
data/notcurses-2.0.7+dfsg.1/src/demo/chunli.c:60: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 file[20];
data/notcurses-2.0.7+dfsg.1/src/demo/demo.c:294:28:  [2] (misc) fopen:
  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).
        if((*json_output = fopen(optarg, "wb")) == NULL){
data/notcurses-2.0.7+dfsg.1/src/demo/demo.c:313:30:  [2] (misc) fopen:
  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).
        if((opts->renderfp = fopen(optarg, "wb")) == NULL){
data/notcurses-2.0.7+dfsg.1/src/demo/demo.c:346:22:  [2] (misc) fopen:
  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).
    opts->renderfp = fopen(renderfile, "wb");
data/notcurses-2.0.7+dfsg.1/src/demo/demo.c:416: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 timebuf[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/src/demo/demo.c:417: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 tfpsbuf[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/src/demo/demo.c:418: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 totalbuf[BPREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/src/demo/demo.c:419: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 rtimebuf[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/src/demo/input.c:100: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(ni, &q->ni, sizeof(*ni));
data/notcurses-2.0.7+dfsg.1/src/demo/input.c:111: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(&nq->ni, ni, sizeof(*ni));
data/notcurses-2.0.7+dfsg.1/src/demo/qrcode.c:9: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 data[128];
data/notcurses-2.0.7+dfsg.1/src/demo/qrcode.c:21: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(data + done, &r, sizeof(r));
data/notcurses-2.0.7+dfsg.1/src/demo/reel.c:65: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 cchbuf[2];
data/notcurses-2.0.7+dfsg.1/src/demo/sliding.c:97: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/notcurses-2.0.7+dfsg.1/src/demo/unicodeblocks.c:63: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 utf8arr[MB_CUR_MAX * 3 + 5];
data/notcurses-2.0.7+dfsg.1/src/demo/unicodeblocks.c:80:9:  [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(utf8arr, "  ");
data/notcurses-2.0.7+dfsg.1/src/fetch/main.c:23: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 hostname[_POSIX_HOST_NAME_MAX];
data/notcurses-2.0.7+dfsg.1/src/fetch/main.c:73:19:  [2] (misc) fopen:
  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).
  FILE* cpuinfo = fopen("/proc/cpuinfo", "re");
data/notcurses-2.0.7+dfsg.1/src/fetch/main.c:78: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[BUFSIZ];
data/notcurses-2.0.7+dfsg.1/src/fetch/main.c:139:18:  [2] (misc) fopen:
  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).
  FILE* osinfo = fopen("/etc/os-release", "re");
data/notcurses-2.0.7+dfsg.1/src/fetch/main.c:143: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[BUFSIZ];
data/notcurses-2.0.7+dfsg.1/src/fetch/main.c:343: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 totalmet[BPREFIXSTRLEN + 1], usedmet[BPREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/src/lib/blit.c:612: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(&rgbas[0], (dat + (linesize * visy) + (visx * bpp / CHAR_BIT)), sizeof(*rgbas));
data/notcurses-2.0.7+dfsg.1/src/lib/blit.c:614: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(&rgbas[1], (dat + (linesize * visy) + ((visx + 1) * bpp / CHAR_BIT)), sizeof(*rgbas));
data/notcurses-2.0.7+dfsg.1/src/lib/blit.c:616: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(&rgbas[3], (dat + (linesize * (visy + 1)) + ((visx + 1) * bpp / CHAR_BIT)), sizeof(*rgbas));
data/notcurses-2.0.7+dfsg.1/src/lib/blit.c:618: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(&rgbas[5], (dat + (linesize * (visy + 2)) + ((visx + 1) * bpp / CHAR_BIT)), sizeof(*rgbas));
data/notcurses-2.0.7+dfsg.1/src/lib/blit.c:623: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(&rgbas[2], (dat + (linesize * (visy + 1)) + (visx * bpp / CHAR_BIT)), sizeof(*rgbas));
data/notcurses-2.0.7+dfsg.1/src/lib/blit.c:625: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(&rgbas[4], (dat + (linesize * (visy + 2)) + (visx * bpp / CHAR_BIT)), sizeof(*rgbas));
data/notcurses-2.0.7+dfsg.1/src/lib/blit.c:766: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 egc[4] = { 0xe2, 0xa0, 0x80, 0x00 };
data/notcurses-2.0.7+dfsg.1/src/lib/direct.cpp:299: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(&oldtermios, &termio, sizeof(termio));
data/notcurses-2.0.7+dfsg.1/src/lib/direct.cpp:521: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 cbuf[L_ctermid + 1];
data/notcurses-2.0.7+dfsg.1/src/lib/direct.cpp:525:10:  [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).
  return open(cbuf, O_RDWR | O_CLOEXEC);
data/notcurses-2.0.7+dfsg.1/src/lib/direct.cpp:814: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 hl[WCHAR_MAX_UTF8BYTES + 1];
data/notcurses-2.0.7+dfsg.1/src/lib/direct.cpp:815: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 vl[WCHAR_MAX_UTF8BYTES + 1];
data/notcurses-2.0.7+dfsg.1/src/lib/egcpool.h:178: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(pool->pool + curpos, egc, len - 1);
data/notcurses-2.0.7+dfsg.1/src/lib/egcpool.h:284: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->pool, src->pool, src->poolsize);
data/notcurses-2.0.7+dfsg.1/src/lib/ffmpeg.cpp:195: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(sframe, inf, sizeof(*sframe));
data/notcurses-2.0.7+dfsg.1/src/lib/ffmpeg.cpp:341: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(&activevopts, vopts, sizeof(*vopts));
data/notcurses-2.0.7+dfsg.1/src/lib/ffmpeg.cpp:443: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(sframe, inframe, sizeof(*inframe));
data/notcurses-2.0.7+dfsg.1/src/lib/fill.c:621: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(src, data, len);
data/notcurses-2.0.7+dfsg.1/src/lib/input.c:241: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 cpoint[MB_CUR_MAX];
data/notcurses-2.0.7+dfsg.1/src/lib/input.c: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(&scratchmask, sigmask, sizeof(*sigmask));
data/notcurses-2.0.7+dfsg.1/src/lib/internal.h:273:12:  [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 inputbuf[BUFSIZ];
data/notcurses-2.0.7+dfsg.1/src/lib/internal.h:656: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(ret, src, len);
data/notcurses-2.0.7+dfsg.1/src/lib/internal.h:933: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(s, egc, *bytes);
data/notcurses-2.0.7+dfsg.1/src/lib/internal.h:934: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(s + *bytes, LTRMARK, sizeof(LTRMARK));
data/notcurses-2.0.7+dfsg.1/src/lib/internal.h:957: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(&c->gcluster, gcluster, bytes);
data/notcurses-2.0.7+dfsg.1/src/lib/menu.c:538: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(ni, &sec->items[itemidx].shortcut, sizeof(*ni));
data/notcurses-2.0.7+dfsg.1/src/lib/menu.c:570: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(ni, &sec->items[itemidx].shortcut, sizeof(*ni));
data/notcurses-2.0.7+dfsg.1/src/lib/metric.c:72:19:  [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.
      sprintfed = sprintf(buf, "%ju%lc", val / dv, (wint_t)prefixes[consumed - 1]);
data/notcurses-2.0.7+dfsg.1/src/lib/metric.c:74:19:  [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.
      sprintfed = sprintf(buf, "%.2f%lc", (double)val / dv, (wint_t)prefixes[consumed - 1]);
data/notcurses-2.0.7+dfsg.1/src/lib/metric.c:86:19:  [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.
      sprintfed = sprintf(buf, "%ju%lc", val / decimal, (wint_t)subprefixes[consumed - 1]);
data/notcurses-2.0.7+dfsg.1/src/lib/metric.c:88:19:  [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.
      sprintfed = sprintf(buf, "%ju", val / decimal);
data/notcurses-2.0.7+dfsg.1/src/lib/metric.c:92:19:  [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.
      sprintfed = sprintf(buf, "%.2f%lc", (double)val / decimal, (wint_t)subprefixes[consumed - 1]);
data/notcurses-2.0.7+dfsg.1/src/lib/metric.c:94:19:  [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.
      sprintfed = sprintf(buf, "%.2f", (double)val / decimal);
data/notcurses-2.0.7+dfsg.1/src/lib/notcurses.c:27:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  *major = atoi(NOTCURSES_VERSION_MAJOR);
data/notcurses-2.0.7+dfsg.1/src/lib/notcurses.c:28:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  *minor = atoi(NOTCURSES_VERSION_MINOR);
data/notcurses-2.0.7+dfsg.1/src/lib/notcurses.c:29:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  *patch = atoi(NOTCURSES_VERSION_PATCH);
data/notcurses-2.0.7+dfsg.1/src/lib/notcurses.c:30:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  *tweak = atoi(NOTCURSES_VERSION_TWEAK);
data/notcurses-2.0.7+dfsg.1/src/lib/notcurses.c:588: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(fb + copyoff, preserved + sourceidx, sizeof(*fb) * keeplenx);
data/notcurses-2.0.7+dfsg.1/src/lib/notcurses.c:718: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(stats, &nc->stats, sizeof(*stats));
data/notcurses-2.0.7+dfsg.1/src/lib/notcurses.c:727: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(stats, &nc->stats, sizeof(*stats));
data/notcurses-2.0.7+dfsg.1/src/lib/notcurses.c:759: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 prefixbuf[BPREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/src/lib/notcurses.c:849:10:  [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).
    fd = open("/dev/tty", O_RDWR | O_CLOEXEC);
data/notcurses-2.0.7+dfsg.1/src/lib/notcurses.c:1093: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 totalbuf[BPREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/src/lib/notcurses.c:1094: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 minbuf[BPREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/src/lib/notcurses.c:1095: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 maxbuf[BPREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/src/lib/notcurses.c:1096: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 avgbuf[BPREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/src/lib/notcurses.c:1493: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(c, src, sizeof(*src));
data/notcurses-2.0.7+dfsg.1/src/lib/notcurses.c:1965: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(p, &nc->palette, sizeof(*p));
data/notcurses-2.0.7+dfsg.1/src/lib/notcurses.c:2292: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(ret + retlen - 1, c, clen);
data/notcurses-2.0.7+dfsg.1/src/lib/oiio.cpp:20:42:  [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).
  ncv->details.image = OIIO::ImageInput::open(filename);
data/notcurses-2.0.7+dfsg.1/src/lib/oiio.cpp:159: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(&activevopts, vopts, sizeof(*vopts));
data/notcurses-2.0.7+dfsg.1/src/lib/plot.h:157:8:  [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[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/src/lib/reader.c:372: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 wbuf[WCHAR_MAX_UTF8BYTES + 1];
data/notcurses-2.0.7+dfsg.1/src/lib/reel.c:769: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(&nr->ropts, ropts, sizeof(*ropts));
data/notcurses-2.0.7+dfsg.1/src/lib/render.c:611: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 rgbbuf[20] = RGBESC1 " " RGBESC2;
data/notcurses-2.0.7+dfsg.1/src/poc/direct-input.c:14: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 utf8[5] = {};
data/notcurses-2.0.7+dfsg.1/src/poc/fileroller.c:52: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(*argv, O_RDONLY|O_CLOEXEC);
data/notcurses-2.0.7+dfsg.1/src/poc/linuxconjammer.c:25:12:  [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(dev, O_RDWR | O_CLOEXEC);
data/notcurses-2.0.7+dfsg.1/src/poc/linuxconsole.c:26:12:  [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(dev, O_RDWR | O_CLOEXEC);
data/notcurses-2.0.7+dfsg.1/src/poc/linuxconsole.c:48:12:  [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 cmap[48];
data/notcurses-2.0.7+dfsg.1/tests/egcpool.cpp:122: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 mb[MB_CUR_MAX + 1];
data/notcurses-2.0.7+dfsg.1/tests/egcpool.cpp:141: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 mb[MB_CUR_MAX + 1];
data/notcurses-2.0.7+dfsg.1/tests/egcpool.cpp:161: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 mb[MB_CUR_MAX + 1];
data/notcurses-2.0.7+dfsg.1/tests/egcpool.cpp:193: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 mb[MB_CUR_MAX + 1];
data/notcurses-2.0.7+dfsg.1/tests/egcpool.cpp:220: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 mb[MB_CUR_MAX + 1];
data/notcurses-2.0.7+dfsg.1/tests/fds.cpp:66: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("/dev/null", O_RDONLY|O_CLOEXEC);
data/notcurses-2.0.7+dfsg.1/tests/fds.cpp:84: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("/dev/null", O_RDONLY|O_CLOEXEC);
data/notcurses-2.0.7+dfsg.1/tests/main.cpp:60:12:  [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("/dev/tty", O_RDWR|O_CLOEXEC);
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:29: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[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:75: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[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp: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 buf[PREFIXSTRLEN + 1], gold[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:91:5:  [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(gold, "%.2fEi", ((double)(INTMAX_MAX - 1ull)) / (1ull << 60));
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:94:5:  [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(gold, "%.2fEi", ((double)(INTMAX_MAX - (1ull << 53))) / (1ull << 60));
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:97:5:  [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(gold, "%.2fEi", ((double)(INTMAX_MAX + 1ull)) / (1ull << 60));
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:104:5:  [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(gold, "%.2fEi", ((double)UINTMAX_MAX - (1ull << 53)) / (1ull << 60));
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:111: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 gold[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:112: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[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:134: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 gold[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:135: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[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:157: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 gold[BPREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:158: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[BPREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:180: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 gold[BPREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:181: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[BPREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:203: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 gold[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:204: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[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:226: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 gold[BPREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:227: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[BPREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:249: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 gold[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:250: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[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:272: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 gold[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:273: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[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:295: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 gold[BPREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:296: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[BPREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:324: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 gold[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:326: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[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:334: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 gold[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:336: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[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:344: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 gold[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:346: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[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:354: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 gold[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:356: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[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:364: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 gold[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:366: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[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:374: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 gold[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:376: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[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:384: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[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:428: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 gold[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:429: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[PREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:452: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 qbuf[IPREFIXSTRLEN + 1];
data/notcurses-2.0.7+dfsg.1/tests/version.cpp:9:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  CHECK(atoi(NOTCURSES_VERSION_MAJOR) == major);
data/notcurses-2.0.7+dfsg.1/tests/version.cpp:10:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  CHECK(atoi(NOTCURSES_VERSION_MINOR) == minor);
data/notcurses-2.0.7+dfsg.1/tests/version.cpp:11:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  CHECK(atoi(NOTCURSES_VERSION_PATCH) == patch);
data/notcurses-2.0.7+dfsg.1/tests/version.cpp:12:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  CHECK(atoi(NOTCURSES_VERSION_TWEAK) == tweak);
data/notcurses-2.0.7+dfsg.1/include/notcurses/notcurses.h:1418:26:  [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).
  const size_t mbytes = (wcslen(gclust) * WCHAR_MAX_UTF8BYTES) + 1;
data/notcurses-2.0.7+dfsg.1/include/notcurses/notcurses.h:1487:26:  [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).
  const size_t mbytes = (wcslen(gclustarr) * WCHAR_MAX_UTF8BYTES) + 1;
data/notcurses-2.0.7+dfsg.1/include/notcurses/notcurses.h:2611:40:  [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).
#define NCMETRICFWIDTH(x, cols) ((int)(strlen(x) - ncstrwidth(x) + (cols)))
data/notcurses-2.0.7+dfsg.1/src/demo/demo.c:46:23:  [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* path = malloc(strlen(datadir) + 1 + strlen(datum) + 1);
data/notcurses-2.0.7+dfsg.1/src/demo/demo.c:46:45:  [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* path = malloc(strlen(datadir) + 1 + strlen(datum) + 1);
data/notcurses-2.0.7+dfsg.1/src/demo/demo.c:48:3:  [1] (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). Risk is low because the
  source is a constant character.
  strcat(path, "/");
data/notcurses-2.0.7+dfsg.1/src/demo/demo.c:195:39:  [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).
  results = malloc(sizeof(*results) * strlen(spec));
data/notcurses-2.0.7+dfsg.1/src/demo/demo.c:199:41:  [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(results, 0, sizeof(*results) * strlen(spec));
data/notcurses-2.0.7+dfsg.1/src/demo/demo.c:200:15:  [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).
  democount = strlen(spec);
data/notcurses-2.0.7+dfsg.1/src/demo/demo.c:204:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  for(size_t i = 0 ; i < strlen(spec) ; ++i){
data/notcurses-2.0.7+dfsg.1/src/demo/demo.c:208:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  for(size_t i = 0 ; i < strlen(spec) ; ++i){
data/notcurses-2.0.7+dfsg.1/src/demo/demo.c:388:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  for(size_t i = 0 ; i < strlen(spec) ; ++i){
data/notcurses-2.0.7+dfsg.1/src/demo/demo.c:394:70:  [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).
                    results[i].stats.renders, results[i].timens, i < strlen(spec) - 1 ? "," : "") < 0);
data/notcurses-2.0.7+dfsg.1/src/demo/demo.c:421:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  for(size_t i = 0 ; i < strlen(spec) ; ++i){
data/notcurses-2.0.7+dfsg.1/src/demo/demo.c:535:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  for(size_t i = 0 ; i < strlen(spec) ; ++i){
data/notcurses-2.0.7+dfsg.1/src/demo/highcon.c:85:39:  [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).
    cell_load_char(n, &c, motto[out % strlen(motto)]);
data/notcurses-2.0.7+dfsg.1/src/demo/intro.c:95:76:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ncplane_putstr_aligned(ncp, rows / 2 - 4, NCALIGN_CENTER, s1) != (int)strlen(s1)){
data/notcurses-2.0.7+dfsg.1/src/demo/intro.c:99:77:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ncplane_putstr_aligned(ncp, rows / 2 - 3, NCALIGN_CENTER, str) != (int)strlen(str)){
data/notcurses-2.0.7+dfsg.1/src/demo/mojibake.c:3415: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).
  const int x = ncplane_align(n, NCALIGN_RIGHT, strlen(summary) + 2);
data/notcurses-2.0.7+dfsg.1/src/demo/mojibake.c:3523:12:  [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).
    cols = strlen(emoji) * 3 / 5; // best by test
data/notcurses-2.0.7+dfsg.1/src/demo/outro.c:121:13:  [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).
    .cols = strlen(str1) + 4,
data/notcurses-2.0.7+dfsg.1/src/demo/trans.c:33:13:  [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).
    .cols = strlen(msg) + 4,
data/notcurses-2.0.7+dfsg.1/src/demo/xray.c:21:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  const int len = strlen(leg[0]);
data/notcurses-2.0.7+dfsg.1/src/demo/zoo.c:180:97:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(ncplane_puttext(ncreader_plane(reader), -1, NCALIGN_LEFT, duped, &bytes) < 0 || bytes != strlen(duped)){
data/notcurses-2.0.7+dfsg.1/src/fetch/main.c:81:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(strncmp(buf, TAG, strlen(TAG)) == 0){
data/notcurses-2.0.7+dfsg.1/src/fetch/main.c:83: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).
        char* nl = strchr(buf + strlen(TAG), '\n');
data/notcurses-2.0.7+dfsg.1/src/fetch/main.c:85:38:  [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).
        fi->cpu_model = strdup(buf + strlen(TAG));
data/notcurses-2.0.7+dfsg.1/src/fetch/main.c:128:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  randrcurrent += strlen(" current ");
data/notcurses-2.0.7+dfsg.1/src/fetch/main.c:148:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(strncmp(buf, ID, strlen(ID)) == 0){
data/notcurses-2.0.7+dfsg.1/src/fetch/main.c:149:31:  [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* nl = strchr(buf + strlen(ID), '\n');
data/notcurses-2.0.7+dfsg.1/src/fetch/main.c:152: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).
        distro = buf + strlen(ID);
data/notcurses-2.0.7+dfsg.1/src/fetch/main.c:155:57:  [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).
    }else if(!fi->distro_pretty && strncmp(buf, PRETTY, strlen(PRETTY)) == 0){
data/notcurses-2.0.7+dfsg.1/src/fetch/main.c:156:31:  [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* nl = strchr(buf + strlen(PRETTY), '"');
data/notcurses-2.0.7+dfsg.1/src/fetch/main.c:159:42:  [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).
        fi->distro_pretty = strdup(buf + strlen(PRETTY));
data/notcurses-2.0.7+dfsg.1/src/input/input.cpp:239:29:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while(errno = 0, (r = nc->getc(true, &ni)) != (char32_t)-1){
data/notcurses-2.0.7+dfsg.1/src/lib/blit.c:437:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if(pool_blit_direct(&nc->pool, c, egc, strlen(egc), 1) <= 0){
data/notcurses-2.0.7+dfsg.1/src/lib/blit.c:637:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if(pool_blit_direct(&nc->pool, c, egc, strlen(egc), 1) <= 0){
data/notcurses-2.0.7+dfsg.1/src/lib/blit.c:769:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if(pool_blit_direct(&nc->pool, c, egc, strlen(egc), 1) <= 0){
data/notcurses-2.0.7+dfsg.1/src/lib/direct.cpp:153:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while(read(ttyfd, &in, 1) == 1){
data/notcurses-2.0.7+dfsg.1/src/lib/direct.cpp:392: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).
      if(fprintf(n->ttyfp, "%s", strlen(egc) == 0 ? " " : egc) < 0){
data/notcurses-2.0.7+dfsg.1/src/lib/egcpool.h:214:32:  [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).
    int r = mbrtowc(&wcs, egc, strlen(egc), &mbstate);
data/notcurses-2.0.7+dfsg.1/src/lib/egcpool.h:217:23:  [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).
              offset, strlen(egc), strerror(errno));
data/notcurses-2.0.7+dfsg.1/src/lib/fd.c:49:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      while((r = read(ncfp->fd, buf, BUFSIZ)) >= 0){
data/notcurses-2.0.7+dfsg.1/src/lib/ffmpeg.cpp:60:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(strncmp(ass, "Dialogue:", strlen("Dialogue:"))){
data/notcurses-2.0.7+dfsg.1/src/lib/input.c:76: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).
  if(esc[0] != NCKEY_ESC || strlen(esc) < 2){ // assume ESC prefix + content
data/notcurses-2.0.7+dfsg.1/src/lib/input.c:329:39:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while(!input_queue_full(nc) && (r = getc(nc->ttyinfp)) >= 0){
data/notcurses-2.0.7+dfsg.1/src/lib/internal.h:500:17:  [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 slen = strlen(seq);
data/notcurses-2.0.7+dfsg.1/src/lib/internal.h:534:17:  [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).
                strlen(seq), name, strerror(errno));
data/notcurses-2.0.7+dfsg.1/src/lib/internal.h:637:17:  [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 ulen = strlen(egc);
data/notcurses-2.0.7+dfsg.1/src/lib/linux.c:371: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).
    bool found[wcslen(s->ws)];
data/notcurses-2.0.7+dfsg.1/src/lib/linux.c:374:36:  [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).
      for(size_t widx = 0 ; widx < wcslen(s->ws) ; ++widx){
data/notcurses-2.0.7+dfsg.1/src/lib/linux.c:386:36:  [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).
      for(size_t widx = 0 ; widx < wcslen(s->ws) ; ++widx){
data/notcurses-2.0.7+dfsg.1/src/lib/menu.c:36: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).
    bytes += strlen(ALTMOD);
data/notcurses-2.0.7+dfsg.1/src/lib/menu.c:39: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).
    bytes += strlen(CTLMOD);
data/notcurses-2.0.7+dfsg.1/src/lib/notcurses.c:155:23:  [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).
  const size_t maxw = strlen(s) + 1;
data/notcurses-2.0.7+dfsg.1/src/lib/notcurses.c:1437:69:  [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 ncplane_put(n, y, x, egc, cols, c->stylemask, c->channels, strlen(egc));
data/notcurses-2.0.7+dfsg.1/src/lib/notcurses.c:2283:23:  [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 clen = strlen(c);
data/notcurses-2.0.7+dfsg.1/src/lib/notcurses.c:2387:26:  [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).
  const size_t mbytes = (wcslen(gclustarr) * WCHAR_MAX_UTF8BYTES) + 1;
data/notcurses-2.0.7+dfsg.1/src/lib/plot.h:168:63:  [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).
         ncplane_printf_yx(ncp, dimy - y - 1, PREFIXCOLUMNS - strlen(buf), "%s %s", buf, title.c_str());
data/notcurses-2.0.7+dfsg.1/src/lib/plot.h:170:63:  [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).
         ncplane_printf_yx(ncp, dimy - y - 1, PREFIXCOLUMNS - strlen(buf), "%s", buf);
data/notcurses-2.0.7+dfsg.1/src/poc/qrcode.c:9:57:  [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).
  int ver = ncplane_qrcode(n, NCBLIT_2x2, &y, &x, text, strlen(text));
data/notcurses-2.0.7+dfsg.1/src/poc/reader.cpp:57:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while(nc.getc(true, &ni) != (char32_t)-1){
data/notcurses-2.0.7+dfsg.1/src/poc/wcwidth.c:18:40:  [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 conv = mbrtowc(&w, arg, strlen(arg), &mbs);
data/notcurses-2.0.7+dfsg.1/src/tetris/main.h:5:34:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while(!gameover && (input = nc.getc(true, &ni)) != (char32_t)-1){
data/notcurses-2.0.7+dfsg.1/src/tetris/newpiece.h:15:23:  [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).
  const size_t cols = strlen(t->texture);
data/notcurses-2.0.7+dfsg.1/src/tetris/newpiece.h:28: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).
    for(size_t i = 0 ; i < strlen(t->texture) ; ++i){
data/notcurses-2.0.7+dfsg.1/src/view/view.cpp:134:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      keyp = nc.getc(&interval, nullptr, nullptr);
data/notcurses-2.0.7+dfsg.1/src/view/view.cpp:136:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      keyp = nc.getc();
data/notcurses-2.0.7+dfsg.1/src/view/view.cpp:143:21:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if((keyp = nc.getc(true)) == (char32_t)-1){
data/notcurses-2.0.7+dfsg.1/src/view/view.cpp:318:30:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            char32_t ie = nc.getc(true);
data/notcurses-2.0.7+dfsg.1/tests/fills.cpp:575:68:  [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).
    CHECK(0 < ncplane_qrcode(n_, NCBLIT_DEFAULT, &dimy, &dimx, qr, strlen(qr)));
data/notcurses-2.0.7+dfsg.1/tests/layout.cpp:30:20:  [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).
    CHECK(bytes == strlen(str));
data/notcurses-2.0.7+dfsg.1/tests/layout.cpp:54:20:  [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).
    CHECK(bytes == strlen(str));
data/notcurses-2.0.7+dfsg.1/tests/layout.cpp:78:20:  [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).
    CHECK(bytes == strlen(str));
data/notcurses-2.0.7+dfsg.1/tests/layout.cpp:104:20:  [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).
    CHECK(bytes == strlen(boundstr));
data/notcurses-2.0.7+dfsg.1/tests/layout.cpp:130:20:  [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).
    CHECK(bytes == strlen(boundstr));
data/notcurses-2.0.7+dfsg.1/tests/layout.cpp:156:20:  [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).
    CHECK(bytes == strlen(boundstr));
data/notcurses-2.0.7+dfsg.1/tests/layout.cpp:182:20:  [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).
    CHECK(bytes == strlen(boundstr));
data/notcurses-2.0.7+dfsg.1/tests/layout.cpp:209: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).
      CHECK(bytes == strlen(boundstr));
data/notcurses-2.0.7+dfsg.1/tests/layout.cpp:237:20:  [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).
    CHECK(bytes == strlen(boundstr));
data/notcurses-2.0.7+dfsg.1/tests/layout.cpp:265: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).
      CHECK(bytes == strlen(boundstr));
data/notcurses-2.0.7+dfsg.1/tests/layout.cpp:291:20:  [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).
    CHECK(bytes == strlen(boundstr));
data/notcurses-2.0.7+dfsg.1/tests/layout.cpp:317:20:  [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).
    CHECK(bytes == strlen(boundstr));
data/notcurses-2.0.7+dfsg.1/tests/layout.cpp:343:20:  [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).
    CHECK(bytes == strlen(boundstr));
data/notcurses-2.0.7+dfsg.1/tests/layout.cpp:369:20:  [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).
    CHECK(bytes == strlen(boundstr));
data/notcurses-2.0.7+dfsg.1/tests/layout.cpp:395:20:  [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).
    CHECK(bytes == strlen(boundstr));
data/notcurses-2.0.7+dfsg.1/tests/layout.cpp:421:20:  [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).
    CHECK(bytes == strlen(boundstr));
data/notcurses-2.0.7+dfsg.1/tests/layout.cpp:448: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).
      CHECK(bytes == strlen(boundstr));
data/notcurses-2.0.7+dfsg.1/tests/layout.cpp:477:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    CHECK(bytes < strlen(boundstr));
data/notcurses-2.0.7+dfsg.1/tests/layout.cpp:503:20:  [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).
    CHECK(bytes == strlen(boundstr));
data/notcurses-2.0.7+dfsg.1/tests/layout.cpp:535:20:  [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).
    CHECK(bytes == strlen(text));
data/notcurses-2.0.7+dfsg.1/tests/layout.cpp:570:20:  [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).
    CHECK(bytes == strlen(text));
data/notcurses-2.0.7+dfsg.1/tests/layout.cpp:606:20:  [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).
    CHECK(bytes == strlen(text));
data/notcurses-2.0.7+dfsg.1/tests/main.cpp:88:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if(strncmp(*argv_in, "--dt-", strlen("--dt-")) != 0)
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:12:17:  [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).
  REQUIRE(1 ==  strlen(decisep));
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:25:17:  [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).
  REQUIRE(1 ==  strlen(decisep));
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:445:19:  [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).
    }while(++i < (wcslen(smallsuffixes) - 3) * 3);
data/notcurses-2.0.7+dfsg.1/tests/metric.cpp:447:11:  [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).
    CHECK(wcslen(smallsuffixes) * 3 > i);
data/notcurses-2.0.7+dfsg.1/tests/ncplane.cpp:109:11:  [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).
    CHECK(strlen(cchar) == cell_load(n_, &c, cchar));
data/notcurses-2.0.7+dfsg.1/tests/ncplane.cpp:134:11:  [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).
    CHECK(strlen(s) == wrote);
data/notcurses-2.0.7+dfsg.1/tests/ncplane.cpp:361:13:  [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).
    REQUIRE(strlen(w1) == u1);
data/notcurses-2.0.7+dfsg.1/tests/ncplane.cpp:362:13:  [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).
    REQUIRE(strlen(w2) == u2);
data/notcurses-2.0.7+dfsg.1/tests/ncplane.cpp:524: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).
    REQUIRE(0 == ncplane_cursor_move_yx(n_, 1, dimx - strlen(STR2)));
data/notcurses-2.0.7+dfsg.1/tests/ncplane.cpp:539: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).
    CHECK(STR2[strlen(STR2) - 1] == testcell.gcluster);
data/notcurses-2.0.7+dfsg.1/tests/ncplane.cpp:592:54:  [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).
    CHECK(0 == ncplane_cursor_move_yx(n_, y + 1, x - strlen(STR2)));
data/notcurses-2.0.7+dfsg.1/tests/ncplane.cpp:595:54:  [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).
    CHECK(0 == ncplane_cursor_move_yx(n_, y + 2, x - strlen(STR3)));
data/notcurses-2.0.7+dfsg.1/tests/ncplane.cpp:606:37:  [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).
    CHECK(testcell.gcluster == STR1[strlen(STR1) - 1]);
data/notcurses-2.0.7+dfsg.1/tests/ncplane.cpp:609:37:  [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).
    CHECK(testcell.gcluster == STR2[strlen(STR2) - 1]);
data/notcurses-2.0.7+dfsg.1/tests/ncplane.cpp:612:37:  [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).
    CHECK(testcell.gcluster == STR3[strlen(STR3) - 1]);
data/notcurses-2.0.7+dfsg.1/tests/notcurses.cpp:16:17:  [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).
    REQUIRE(0 < strlen(ver));
data/notcurses-2.0.7+dfsg.1/tests/selector.cpp:56:11:  [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).
    CHECK(strlen(opts.title) + 4 == dimx);
data/notcurses-2.0.7+dfsg.1/tests/selector.cpp:79:11:  [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).
    CHECK(strlen(opts.secondary) + 2 == dimx);
data/notcurses-2.0.7+dfsg.1/tests/selector.cpp:102:11:  [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).
    CHECK(strlen(opts.footer) + 2 == dimx);
data/notcurses-2.0.7+dfsg.1/tests/wide.cpp:129: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).
    CHECK(0 == strlen(cell_extended_gcluster(n_, &c))); // should be nothing
data/notcurses-2.0.7+dfsg.1/tests/wide.cpp:135: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).
    CHECK(0 == strlen(cell_extended_gcluster(n_, &c)));
data/notcurses-2.0.7+dfsg.1/tests/wide.cpp:191: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).
      CHECK(0 == strlen(cell_extended_gcluster(n_, &c))); // should be nothing
data/notcurses-2.0.7+dfsg.1/tests/wide.cpp:943: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).
    CHECK(4 == strlen(cell_extended_gcluster(n_, &c)));
data/notcurses-2.0.7+dfsg.1/tests/wide.cpp:951: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).
    CHECK(4 == strlen(egc));
data/notcurses-2.0.7+dfsg.1/tests/wide.cpp:962: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).
    CHECK(4 == strlen(cell_extended_gcluster(n_, &c)));
data/notcurses-2.0.7+dfsg.1/tests/wide.cpp:970: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).
    CHECK(4 == strlen(egc));

ANALYSIS SUMMARY:

Hits = 353
Lines analyzed = 42460 in approximately 1.15 seconds (37056 lines/second)
Physical Source Lines of Code (SLOC) = 36642
Hits@level = [0] 268 [1] 120 [2] 139 [3]  59 [4]  35 [5]   0
Hits@level+ = [0+] 621 [1+] 353 [2+] 233 [3+]  94 [4+]  35 [5+]   0
Hits/KSLOC@level+ = [0+] 16.9478 [1+] 9.63375 [2+] 6.35882 [3+] 2.56536 [4+] 0.955188 [5+]   0
Dot directories skipped = 3 (--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.