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/pyraf-2.1.15/src/xutil.c
Examining data/pyraf-2.1.15/src/sscanfmodule.c

FINAL RESULTS:

data/pyraf-2.1.15/src/sscanfmodule.c:92: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 scanset[1 << BITSPERCHAR];
data/pyraf-2.1.15/src/sscanfmodule.c:115: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 *s, *start, *end, mfwbuf[FWBUFSIZE + 1];
data/pyraf-2.1.15/src/sscanfmodule.c:197:17:  [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(start, inptr, width);
data/pyraf-2.1.15/src/xutil.c:28:1:  [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 XErrorMsg[80];
data/pyraf-2.1.15/src/xutil.c:30:1:  [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 ErrorMsg[120];
data/pyraf-2.1.15/src/sscanfmodule.c:131: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).
    inplen = strlen(input);
data/pyraf-2.1.15/src/xutil.c:48:7:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
      strncat(ErrorMsg,ErrorPrefix, 20); \
data/pyraf-2.1.15/src/xutil.c:49:7:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
      strncat(ErrorMsg,XErrorMsg, 80); \
data/pyraf-2.1.15/src/xutil.c:67:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
  strncat(XErrorMsg,IOError,80);

ANALYSIS SUMMARY:

Hits = 9
Lines analyzed = 907 in approximately 0.07 seconds (12351 lines/second)
Physical Source Lines of Code (SLOC) = 656
Hits@level = [0]  14 [1]   4 [2]   5 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  23 [1+]   9 [2+]   5 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 35.061 [1+] 13.7195 [2+] 7.62195 [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.