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/r-cran-nleqslv-3.3.2/src/nwout.c
Examining data/r-cran-nleqslv-3.3.2/src/nleqslv.c
Examining data/r-cran-nleqslv-3.3.2/src/init.c

FINAL RESULTS:

data/r-cran-nleqslv-3.3.2/src/nleqslv.c:101:17:  [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.
        case 1: sprintf(msg, "Function criterion near zero"); break;
data/r-cran-nleqslv-3.3.2/src/nleqslv.c:102:17:  [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.
        case 2: sprintf(msg, "x-values within tolerance 'xtol'"); break;
data/r-cran-nleqslv-3.3.2/src/nleqslv.c:103:17:  [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.
        case 3: sprintf(msg, "No better point found (algorithm has stalled)"); break;
data/r-cran-nleqslv-3.3.2/src/nleqslv.c:104:17:  [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.
        case 4: sprintf(msg, "Iteration limit exceeded"); break;
data/r-cran-nleqslv-3.3.2/src/nleqslv.c:105:17:  [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.
        case 5: sprintf(msg, "Jacobian is too ill-conditioned (1/condition=%7.1e) (see allowSingular option)",getjacond()); break;
data/r-cran-nleqslv-3.3.2/src/nleqslv.c:106:17:  [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.
        case 6: sprintf(msg, "Jacobian is singular (1/condition=%7.1e) (see allowSingular option)",getjacond()); break;
data/r-cran-nleqslv-3.3.2/src/nleqslv.c:107:17:  [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.
        case 7: sprintf(msg, "Jacobian is completely unusable (all zero entries?)"); break;
data/r-cran-nleqslv-3.3.2/src/nleqslv.c:108: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.
        case -10: sprintf(msg, "User supplied Jacobian most likely incorrect"); break;
data/r-cran-nleqslv-3.3.2/src/nleqslv.c:109:18:  [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.
        default: sprintf(msg, "'termcd' == %d should *NEVER* be returned! Please report bug to <bhh@xs4all.nl>.", termcd);
data/r-cran-nleqslv-3.3.2/src/nleqslv.c:229:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    message[256];

ANALYSIS SUMMARY:

Hits = 10
Lines analyzed = 885 in approximately 0.04 seconds (24530 lines/second)
Physical Source Lines of Code (SLOC) = 615
Hits@level = [0]   0 [1]   0 [2]  10 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  10 [1+]  10 [2+]  10 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 16.2602 [1+] 16.2602 [2+] 16.2602 [3+]   0 [4+]   0 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.