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/execline-2.6.1.1/src/execline/background.c
Examining data/execline-2.6.1.1/src/execline/backtick.c
Examining data/execline-2.6.1.1/src/execline/define.c
Examining data/execline-2.6.1.1/src/execline/dollarat.c
Examining data/execline-2.6.1.1/src/execline/elgetopt.c
Examining data/execline-2.6.1.1/src/execline/elgetpositionals.c
Examining data/execline-2.6.1.1/src/execline/elglob.c
Examining data/execline-2.6.1.1/src/execline/emptyenv.c
Examining data/execline-2.6.1.1/src/execline/envfile.c
Examining data/execline-2.6.1.1/src/execline/exec.c
Examining data/execline-2.6.1.1/src/execline/execline-cd.c
Examining data/execline-2.6.1.1/src/execline/execline-umask.c
Examining data/execline-2.6.1.1/src/execline/execlineb.c
Examining data/execline-2.6.1.1/src/execline/exit.c
Examining data/execline-2.6.1.1/src/execline/export.c
Examining data/execline-2.6.1.1/src/execline/fdblock.c
Examining data/execline-2.6.1.1/src/execline/fdclose.c
Examining data/execline-2.6.1.1/src/execline/fdmove.c
Examining data/execline-2.6.1.1/src/execline/fdreserve.c
Examining data/execline-2.6.1.1/src/execline/fdswap.c
Examining data/execline-2.6.1.1/src/execline/forbacktickx.c
Examining data/execline-2.6.1.1/src/execline/foreground.c
Examining data/execline-2.6.1.1/src/execline/forstdin.c
Examining data/execline-2.6.1.1/src/execline/forx.c
Examining data/execline-2.6.1.1/src/execline/getcwd.c
Examining data/execline-2.6.1.1/src/execline/getpid.c
Examining data/execline-2.6.1.1/src/execline/heredoc.c
Examining data/execline-2.6.1.1/src/execline/homeof.c
Examining data/execline-2.6.1.1/src/execline/if.c
Examining data/execline-2.6.1.1/src/execline/ifelse.c
Examining data/execline-2.6.1.1/src/execline/ifte.c
Examining data/execline-2.6.1.1/src/execline/ifthenelse.c
Examining data/execline-2.6.1.1/src/execline/importas.c
Examining data/execline-2.6.1.1/src/execline/loopwhilex.c
Examining data/execline-2.6.1.1/src/execline/multidefine.c
Examining data/execline-2.6.1.1/src/execline/multisubstitute.c
Examining data/execline-2.6.1.1/src/execline/pipeline.c
Examining data/execline-2.6.1.1/src/execline/piperw.c
Examining data/execline-2.6.1.1/src/execline/redirfd.c
Examining data/execline-2.6.1.1/src/execline/runblock.c
Examining data/execline-2.6.1.1/src/execline/shift.c
Examining data/execline-2.6.1.1/src/execline/trap.c
Examining data/execline-2.6.1.1/src/execline/tryexec.c
Examining data/execline-2.6.1.1/src/execline/unexport.c
Examining data/execline-2.6.1.1/src/execline/wait.c
Examining data/execline-2.6.1.1/src/execline/withstdinas.c
Examining data/execline-2.6.1.1/src/include-local/exlsn.h
Examining data/execline-2.6.1.1/src/include/execline/execline.h
Examining data/execline-2.6.1.1/src/libexecline/el_execsequence.c
Examining data/execline-2.6.1.1/src/libexecline/el_getstrict.c
Examining data/execline-2.6.1.1/src/libexecline/el_parse.c
Examining data/execline-2.6.1.1/src/libexecline/el_parse_from_buffer.c
Examining data/execline-2.6.1.1/src/libexecline/el_parse_from_string.c
Examining data/execline-2.6.1.1/src/libexecline/el_popenv.c
Examining data/execline-2.6.1.1/src/libexecline/el_pushenv.c
Examining data/execline-2.6.1.1/src/libexecline/el_semicolon.c
Examining data/execline-2.6.1.1/src/libexecline/el_spawn0.c
Examining data/execline-2.6.1.1/src/libexecline/el_spawn1.c
Examining data/execline-2.6.1.1/src/libexecline/el_substandrun.c
Examining data/execline-2.6.1.1/src/libexecline/el_substandrun_str.c
Examining data/execline-2.6.1.1/src/libexecline/el_substitute.c
Examining data/execline-2.6.1.1/src/libexecline/el_transform.c
Examining data/execline-2.6.1.1/src/libexecline/el_vardupl.c
Examining data/execline-2.6.1.1/src/libexecline/exlp.c
Examining data/execline-2.6.1.1/src/libexecline/exlsn_define.c
Examining data/execline-2.6.1.1/src/libexecline/exlsn_elglob.c
Examining data/execline-2.6.1.1/src/libexecline/exlsn_exlp.c
Examining data/execline-2.6.1.1/src/libexecline/exlsn_free.c
Examining data/execline-2.6.1.1/src/libexecline/exlsn_importas.c
Examining data/execline-2.6.1.1/src/libexecline/exlsn_main.c
Examining data/execline-2.6.1.1/src/libexecline/exlsn_multidefine.c
Examining data/execline-2.6.1.1/src/posix/posix-cd.c
Examining data/execline-2.6.1.1/src/posix/posix-umask.c

FINAL RESULTS:

data/execline-2.6.1.1/src/execline/dollarat.c:39:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  x = getenv("#") ;
data/execline-2.6.1.1/src/execline/dollarat.c:46:9:  [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.
    x = getenv(fmt) ;
data/execline-2.6.1.1/src/execline/execlineb.c:139:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char const *x = getenv("EXECLINE_STRICT") ;
data/execline-2.6.1.1/src/libexecline/el_getstrict.c:13:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char const *x = getenv("EXECLINE_STRICT") ;
data/execline-2.6.1.1/src/posix/posix-cd.c:46: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.
  if (!argc) where = getenv("HOME") ;
data/execline-2.6.1.1/src/posix/posix-cd.c:52: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.
      where = getenv("OLDPWD") ;
data/execline-2.6.1.1/src/posix/posix-cd.c:60:26:  [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.
    char const *cdpath = getenv("CDPATH") ;
data/execline-2.6.1.1/src/posix/posix-cd.c:100:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char const *x = getenv("PWD") ;
data/execline-2.6.1.1/src/execline/background.c:60: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 fmt[PID_FMT + 2] = "!=" ;
data/execline-2.6.1.1/src/execline/dollarat.c:44: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 fmt[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/elgetopt.c:28: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 const *args[n+1] ;
data/execline-2.6.1.1/src/execline/elgetopt.c:32: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 fmt[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/elgetopt.c:40: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 hmpf[11] = "ELGETOPT_?" ;
data/execline-2.6.1.1/src/execline/elgetopt.c:50: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 fmt[UINT_FMT]  ;
data/execline-2.6.1.1/src/execline/elgetopt.c:56: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 fmt[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/elgetopt.c:61: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 const *const list[1] = { "ELGETOPT_" } ;
data/execline-2.6.1.1/src/execline/elgetopt.c:62: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 const *v[envlen] ;
data/execline-2.6.1.1/src/execline/emptyenv.c:65: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 const *newenv[2] = { 0, 0 } ;
data/execline-2.6.1.1/src/execline/emptyenv.c:77: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.
    static char const *const list[12] = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "#", "ELGETOPT_" } ;
data/execline-2.6.1.1/src/execline/emptyenv.c:83:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char const *v[envlen - n + 1] ;
data/execline-2.6.1.1/src/execline/envfile.c:129: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 fmt[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/envfile.c:177: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[BUFFER_INSIZE] ;
data/execline-2.6.1.1/src/execline/exec.c:40: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 dashed[n+2] ;
data/execline-2.6.1.1/src/execline/exec.c:42: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(dashed+1, argv[0], n+1) ;
data/execline-2.6.1.1/src/execline/execlineb.c:32: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 fmt[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/execlineb.c:43: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 fmt[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/execlineb.c:109: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[BUFFER_INSIZE] ;
data/execline-2.6.1.1/src/execline/execlineb.c:132: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 fmt[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/execlineb.c:156: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 fmtn[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/execlineb.c:157: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 fmta[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/execlineb.c:172: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 fmt[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/execlineb.c:185: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 const *v[nc+1] ;
data/execline-2.6.1.1/src/execline/execlineb.c:191: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.
      static char const *const list[11] = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "#" } ;
data/execline-2.6.1.1/src/execline/execlineb.c: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 const *w[envlen] ;
data/execline-2.6.1.1/src/execline/export.c:20: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 fmt[len1 + len2 + 2] ;
data/execline-2.6.1.1/src/execline/export.c:21: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(fmt, argv[1], len1) ;
data/execline-2.6.1.1/src/execline/export.c:23: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(fmt + len1 + 1, argv[2], len2 + 1) ;
data/execline-2.6.1.1/src/execline/fdreserve.c:37: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 modif[12 * n] ;  /* enough for n times "FDaaaa=bbbb\0" */
data/execline-2.6.1.1/src/execline/forbacktickx.c:68: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 const *newargv[argc + 18] ;
data/execline-2.6.1.1/src/execline/forbacktickx.c:69: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 fmt[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/forstdin.c:92: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 const *newenv[envlen + 2] ;
data/execline-2.6.1.1/src/execline/forstdin.c:95: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(modif.s, argv[0], modifstart - 1) ;
data/execline-2.6.1.1/src/execline/forx.c:89: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 const *newenv[envlen + 2] ;
data/execline-2.6.1.1/src/execline/forx.c:95: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 modif[varlen + vallen + 2] ;
data/execline-2.6.1.1/src/execline/forx.c:96: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(modif, x, varlen) ;
data/execline-2.6.1.1/src/execline/forx.c:98: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(modif + varlen + 1, argv[i], vallen) ;
data/execline-2.6.1.1/src/execline/getpid.c:22: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 fmt[UINT_FMT + len + 2] ;
data/execline-2.6.1.1/src/execline/getpid.c:23: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(fmt, argv[1], len) ;
data/execline-2.6.1.1/src/execline/if.c:45: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 fmt[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/ifelse.c:47: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 fmt[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/ifte.c:46: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 fmt[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/ifthenelse.c:53: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 fmt[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/pipeline.c:69: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 fmt[PID_FMT + 2] = "!=" ;
data/execline-2.6.1.1/src/execline/redirfd.c:55: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 fmt[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/runblock.c:58: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 fmt[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/runblock.c:66:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char fmtb[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/runblock.c:67:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char fmti[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/runblock.c:94: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 fmt[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/runblock.c:107: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 fmt[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/runblock.c:117:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char fmtb[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/runblock.c:118:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char fmtn[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/runblock.c:142: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 const *list[11] = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "#" } ;
data/execline-2.6.1.1/src/execline/runblock.c:148: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 const *w[envlen - popped + 1] ;
data/execline-2.6.1.1/src/execline/shift.c:57: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 fmtn[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/shift.c:58: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 fmtsharp[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/shift.c:78: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 fmt[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/shift.c:82: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 fmti[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/shift.c:91: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 fmti[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/shift.c:92: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 fmtp[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/shift.c:108: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 fmt[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/shift.c:113: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 fmu[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/trap.c:23: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.
static char const *const *argvs[SKALIBS_NSIG] ; /* initted with 0s */
data/execline-2.6.1.1/src/execline/trap.c:106: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 fmt[UINT_FMT] ;
data/execline-2.6.1.1/src/execline/trap.c:118: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 modif[2 + PID_FMT] = "!=" ;
data/execline-2.6.1.1/src/execline/trap.c:120: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 const *newenvp[envlen + 2] ;
data/execline-2.6.1.1/src/execline/tryexec.c:13: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 const *env_zero[1] = { 0 } ;
data/execline-2.6.1.1/src/execline/tryexec.c:53: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 dashed[n+2] ;
data/execline-2.6.1.1/src/execline/tryexec.c:55: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(dashed+1, dom[0], n+1) ;
data/execline-2.6.1.1/src/libexecline/el_execsequence.c:15: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 fmt[UINT_FMT + 1] = "?=" ;
data/execline-2.6.1.1/src/libexecline/el_execsequence.c:20: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(fmt+2, "127", 3) ;
data/execline-2.6.1.1/src/libexecline/el_parse.c:13:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static unsigned char const class[256] = "`aaaaaaaaadaaaaaaaaaaaaaaaaaaaaaafcbffffffffffffjhhhhhhhiifffffffmmmmmmfffffffffffffffffffffeffffggmmmgfffffffkfffkfkfkflffnfoffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" ;
data/execline-2.6.1.1/src/libexecline/el_popenv.c:30: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 fmt[UINT_FMT+1] = ":" ;
data/execline-2.6.1.1/src/libexecline/el_pushenv.c:32: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 fmt[UINT_FMT+1] = ":" ;
data/execline-2.6.1.1/src/libexecline/el_semicolon.c:24: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 fmt1[UINT_FMT] ;
data/execline-2.6.1.1/src/libexecline/el_semicolon.c:25: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 fmt2[UINT_FMT] ;
data/execline-2.6.1.1/src/libexecline/el_spawn0.c:11: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.
    static char const *const newargv[3] = { EXECLINE_BINPREFIX "exit", "0", 0 } ;
data/execline-2.6.1.1/src/libexecline/el_spawn1.c:11: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.
    static char const *const newargv[3] = { EXECLINE_BINPREFIX "exit", "0", 0 } ;
data/execline-2.6.1.1/src/libexecline/el_substandrun_str.c:20: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 const *v[r + 1] ;
data/execline-2.6.1.1/src/libexecline/el_substitute.c:42:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char const class[5] = "\0\\${}" ;
data/execline-2.6.1.1/src/libexecline/el_substitute.c:43:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static unsigned char const table[6][5] =
data/execline-2.6.1.1/src/libexecline/exlp.c:30: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 fmta[UINT_FMT] ;
data/execline-2.6.1.1/src/libexecline/exlp.c:31: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 fmtn[UINT_FMT] ;
data/execline-2.6.1.1/src/libexecline/exlp.c:50: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 fmt[UINT_FMT] ;
data/execline-2.6.1.1/src/posix/posix-umask.c:26: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 fmt[18] ;
data/execline-2.6.1.1/src/execline/backtick.c:77:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t reallen = strlen(modif.s) ;
data/execline-2.6.1.1/src/execline/backtick.c:91: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 (!stralloc_catb(&modif, def, strlen(def)+1))
data/execline-2.6.1.1/src/execline/dollarat.c:57: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).
      if (!netstring_put(buffer_1, x, strlen(x), &written))
data/execline-2.6.1.1/src/execline/exec.c:39: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).
    size_t n = strlen(argv[0]) ;
data/execline-2.6.1.1/src/execline/execline-umask.c:16:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  umask(m) ;
data/execline-2.6.1.1/src/execline/execlineb.c:36:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!stralloc_catb(&info.values, dollar0, strlen(dollar0) + 1)) goto err ;
data/execline-2.6.1.1/src/execline/execlineb.c:45:74:  [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 (!stralloc_catb(&info.values, i < argc ? argv[i] : "", i < argc ? strlen(argv[i]) + 1 : 1)) goto err ;
data/execline-2.6.1.1/src/execline/export.c:15:10:  [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).
  len1 = strlen(argv[1]) ;
data/execline-2.6.1.1/src/execline/export.c:19: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).
    size_t len2 = strlen(argv[2]) ;
data/execline-2.6.1.1/src/execline/forstdin.c:73:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        case 'd' : delim = l.arg ; delimlen = strlen(delim) ; break ;
data/execline-2.6.1.1/src/execline/forstdin.c:91: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).
    size_t modifstart = strlen(argv[0]) + 1 ;
data/execline-2.6.1.1/src/execline/forx.c:86:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t varlen = strlen(x) ;
data/execline-2.6.1.1/src/execline/forx.c:94: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 vallen = strlen(argv[i]) ;
data/execline-2.6.1.1/src/execline/getpid.c:17:9:  [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).
  len = strlen(argv[1]) ;
data/execline-2.6.1.1/src/execline/heredoc.c:46:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t len = strlen(argv[1]) ;
data/execline-2.6.1.1/src/execline/tryexec.c:52: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).
    size_t n = strlen(dom[0]) ;
data/execline-2.6.1.1/src/execline/unexport.c:15:9:  [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).
  len = strlen(argv[1]) ;
data/execline-2.6.1.1/src/execline/withstdinas.c:46:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t reallen = strlen(modif.s) ;
data/execline-2.6.1.1/src/execline/withstdinas.c:60: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 (!stralloc_catb(&modif, def, strlen(def)+1))
data/execline-2.6.1.1/src/libexecline/el_popenv.c:16:12:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    size_t equal, colon, j = 0 ;
data/execline-2.6.1.1/src/libexecline/el_popenv.c:20:9:  [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).
    j = strlen(list[j]) ;
data/execline-2.6.1.1/src/libexecline/el_popenv.c:23:18:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    if (!envp[i][equal]) goto badenv ;
data/execline-2.6.1.1/src/libexecline/el_popenv.c:24:18:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    if (colon >= equal) { count++ ; continue ; }
data/execline-2.6.1.1/src/libexecline/el_popenv.c:25:59:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    if (colon + 1 + uint_scan(envp[i] + colon + 1, &n) != equal) goto copyit ;
data/execline-2.6.1.1/src/libexecline/el_popenv.c:34:38:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    if (!stralloc_catb(sa, envp[i] + equal, strlen(envp[i] + equal) + 1)) goto err ;
data/execline-2.6.1.1/src/libexecline/el_popenv.c:34: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).
    if (!stralloc_catb(sa, envp[i] + equal, strlen(envp[i] + equal) + 1)) goto err ;
data/execline-2.6.1.1/src/libexecline/el_popenv.c:34:62:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    if (!stralloc_catb(sa, envp[i] + equal, strlen(envp[i] + equal) + 1)) goto err ;
data/execline-2.6.1.1/src/libexecline/el_popenv.c:37: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).
    if (!stralloc_catb(sa, envp[i], strlen(envp[i]) + 1)) goto err ;
data/execline-2.6.1.1/src/libexecline/el_pushenv.c:16:12:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    size_t equal, colon, j = 0 ;
data/execline-2.6.1.1/src/libexecline/el_pushenv.c:20:9:  [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).
    j = strlen(list[j]) ;
data/execline-2.6.1.1/src/libexecline/el_pushenv.c:23:18:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    if (!envp[i][equal]) goto badenv ;
data/execline-2.6.1.1/src/libexecline/el_pushenv.c:24:18:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    if (colon >= equal)
data/execline-2.6.1.1/src/libexecline/el_pushenv.c:26:39:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
      if (!stralloc_catb(sa, envp[i], equal)
data/execline-2.6.1.1/src/libexecline/el_pushenv.c:33:61:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
      if (colon + 1 + uint_scan(envp[i] + colon + 1, &n) != equal) goto copyit ;
data/execline-2.6.1.1/src/libexecline/el_pushenv.c:38:38:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    if (!stralloc_catb(sa, envp[i] + equal, strlen(envp[i] + equal) + 1)) goto err ;
data/execline-2.6.1.1/src/libexecline/el_pushenv.c:38: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).
    if (!stralloc_catb(sa, envp[i] + equal, strlen(envp[i] + equal) + 1)) goto err ;
data/execline-2.6.1.1/src/libexecline/el_pushenv.c:38:62:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    if (!stralloc_catb(sa, envp[i] + equal, strlen(envp[i] + equal) + 1)) goto err ;
data/execline-2.6.1.1/src/libexecline/el_pushenv.c:41: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).
    if (!stralloc_catb(sa, envp[i], strlen(envp[i]) + 1)) goto err ;
data/execline-2.6.1.1/src/libexecline/el_substitute.c:121:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t plen = strlen(p) ;
data/execline-2.6.1.1/src/libexecline/el_vardupl.c:9: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).
  for (; i < len ; i += strlen(s + i) + 1)
data/execline-2.6.1.1/src/libexecline/exlp.c:44: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).
   || !stralloc_catb(&info->values, x, strlen(x) + 1)
data/execline-2.6.1.1/src/libexecline/exlp.c:60: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).
     || !stralloc_catb(&info->values, x, strlen(x) + 1)
data/execline-2.6.1.1/src/libexecline/exlp.c:64: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).
  blah.value = poszero + strlen(info->values.s + poszero) + 1 ;
data/execline-2.6.1.1/src/libexecline/exlsn_define.c:35:44:  [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 (!stralloc_catb(&info->vars, argv[0], strlen(argv[0]) + 1)) return -1 ;
data/execline-2.6.1.1/src/libexecline/exlsn_elglob.c:49:44:  [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 (!stralloc_catb(&info->vars, argv[0], strlen(argv[0]) + 1)) return -1 ;
data/execline-2.6.1.1/src/libexecline/exlsn_elglob.c:64:58:  [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 (!stralloc_catb(&info->values, pglob.gl_pathv[i], strlen(pglob.gl_pathv[i]) + 1))
data/execline-2.6.1.1/src/libexecline/exlsn_importas.c:45:44:  [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 (!stralloc_catb(&info->vars, argv[0], strlen(argv[0]) + 1)) return -1 ;
data/execline-2.6.1.1/src/libexecline/exlsn_importas.c:54: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 (!stralloc_catb(&info->modifs, argv[1], strlen(argv[1]) + 1)) goto err ;
data/execline-2.6.1.1/src/libexecline/exlsn_multidefine.c:60: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 (!stralloc_catb(&info->vars, argv[i], strlen(argv[i]) + 1)) goto err ;
data/execline-2.6.1.1/src/libexecline/exlsn_multidefine.c:65: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 (i < max) pos += strlen(info->values.s + pos) + 1 ;
data/execline-2.6.1.1/src/posix/posix-cd.c:64: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).
      size_t len = strlen(cdpath) ;
data/execline-2.6.1.1/src/posix/posix-cd.c:103: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).
      size_t len = strlen(x) ;
data/execline-2.6.1.1/src/posix/posix-cd.c:119:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (sa.len > PATH_MAX && strlen(where) < PATH_MAX && x && *x)
data/execline-2.6.1.1/src/posix/posix-cd.c:121: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).
      size_t len = strlen(x) ;
data/execline-2.6.1.1/src/posix/posix-umask.c:24:17:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  mode_t mode = umask(0) ;
data/execline-2.6.1.1/src/posix/posix-umask.c:115:27:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  unsigned int oldmode = ~umask(0) ;
data/execline-2.6.1.1/src/posix/posix-umask.c:172:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  umask(mode & 00777) ;

ANALYSIS SUMMARY:

Hits = 151
Lines analyzed = 4475 in approximately 0.23 seconds (19433 lines/second)
Physical Source Lines of Code (SLOC) = 4017
Hits@level = [0]   0 [1]  57 [2]  86 [3]   8 [4]   0 [5]   0
Hits@level+ = [0+] 151 [1+] 151 [2+]  94 [3+]   8 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 37.5902 [1+] 37.5902 [2+] 23.4005 [3+] 1.99154 [4+]   0 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.