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/supercat-0.5.7/src/spc.c
Examining data/supercat-0.5.7/src/spc.h

FINAL RESULTS:

data/supercat-0.5.7/src/spc.c:141:5:  [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.
    vsnprintf (buf, BUFSIZ, fmt, ap);
data/supercat-0.5.7/src/spc.c:191:9:  [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 (q, s);
data/supercat-0.5.7/src/spc.c:300:13:  [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 (opt_config, optarg);
data/supercat-0.5.7/src/spc.c:305:13:  [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 (opt_directory, optarg);
data/supercat-0.5.7/src/spc.c:310:13:  [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 (opt_type, optarg);
data/supercat-0.5.7/src/spc.c:333:9:  [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 (inp_file, av [optind]);
data/supercat-0.5.7/src/spc.c:362:13:  [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 (opt_config, av [i]);
data/supercat-0.5.7/src/spc.c:368:13:  [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 (opt_directory, av [i]);
data/supercat-0.5.7/src/spc.c:421:13:  [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 (opt_directory, p);
data/supercat-0.5.7/src/spc.c:441:13:  [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 (opt_config, p);
data/supercat-0.5.7/src/spc.c:448:13:  [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 (opt_type, av [i]);
data/supercat-0.5.7/src/spc.c:462:13:  [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 (opt_type, p);
data/supercat-0.5.7/src/spc.c:474:13:  [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 (inp_file, av [i]);
data/supercat-0.5.7/src/spc.c:494:5:  [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 (typ_suffix, inp_file);
data/supercat-0.5.7/src/spc.c:521:5:  [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 (typ_suffix, p);
data/supercat-0.5.7/src/spc.c:549:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (string, "./.%s", file);
data/supercat-0.5.7/src/spc.c:555:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (string, "%s/.spcrc/%s", home, file);
data/supercat-0.5.7/src/spc.c:557:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (string, "%s/.spcrc/spcrc", home);
data/supercat-0.5.7/src/spc.c:562:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (string, "%s/%s", opt_directory, file);
data/supercat-0.5.7/src/spc.c:564:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (string, "%s/spcrc", opt_directory);
data/supercat-0.5.7/src/spc.c:568:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (string, "%s/%s", SYSTEM_DIRECTORY, file);
data/supercat-0.5.7/src/spc.c:570:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (string, "%s/spcrc", SYSTEM_DIRECTORY);
data/supercat-0.5.7/src/spc.c:595:13:  [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 (temp, home);
data/supercat-0.5.7/src/spc.c:596:13:  [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 (temp, opt_config+1);
data/supercat-0.5.7/src/spc.c:611:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (opt_config, "spcrc-%s", opt_type);
data/supercat-0.5.7/src/spc.c:622:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (opt_config, "spcrc-%s", typ_suffix);
data/supercat-0.5.7/src/spc.c:1030:13:  [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 (b, spc->htmrgb);      b += spc->htmlen;
data/supercat-0.5.7/src/spc.c:1133:13:  [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 (&buffer [COLUMN_HTMRGB], (opt_reverse) ? "Black" : "White");
data/supercat-0.5.7/src/spc.c:1146:9:  [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 (spc->htmrgb,&buffer [COLUMN_HTMRGB]);
data/supercat-0.5.7/src/spc.c:1187:13:  [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 (spc->string, buffer+COLUMN_CREGEX);
data/supercat-0.5.7/src/spc.c:276:22:  [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.
        switch ((c = getopt_long (ac, av, "c:C:dDe:E:hmnrRSt:vw", opt_tbl, &opt_idx))) {
data/supercat-0.5.7/src/spc.c:545:20:  [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   *home = getenv ("HOME");
data/supercat-0.5.7/src/spc.c:592: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.
            if (!(home = getenv ("HOME")))
data/supercat-0.5.7/src/spc.c:139: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 [BUFSIZ];
data/supercat-0.5.7/src/spc.c:178:19:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if (!Fp) Fp = tmpfile ();
data/supercat-0.5.7/src/spc.c:212:19:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if (!Fp) Fp = tmpfile ();
data/supercat-0.5.7/src/spc.c:534:16:  [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 (!(rc = fopen (file, "r")))         return (0);
data/supercat-0.5.7/src/spc.c:544: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    string [1024];
data/supercat-0.5.7/src/spc.c:1000:17:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      case '<': strcpy (b, "&lt;"); b += 4; break;
data/supercat-0.5.7/src/spc.c:1001:17:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      case '>': strcpy (b, "&gt;"); b += 4; break;
data/supercat-0.5.7/src/spc.c:1002:17:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      case '"': strcpy (b, "&quot;"); b += 6; break;
data/supercat-0.5.7/src/spc.c:1003:18:  [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.
      case '\'': strcpy (b, "&apos;"); b += 6; break;
data/supercat-0.5.7/src/spc.c:1004:17:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      case '&': strcpy (b, "&amp;"); b += 5; break;
data/supercat-0.5.7/src/spc.c:1013: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   output [BUFFER*4];
data/supercat-0.5.7/src/spc.c:1026:17:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                strcpy (b, "</font>");
data/supercat-0.5.7/src/spc.c:1029:13:  [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 (b, "<font color=\""); b += 13;
data/supercat-0.5.7/src/spc.c:1031:13:  [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 (b, "\">");            b += 2;
data/supercat-0.5.7/src/spc.c:1039: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 (b, "</font>");
data/supercat-0.5.7/src/spc.c:1051: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   output [BUFFER*2];
data/supercat-0.5.7/src/spc.c:1099:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        buffer [BUFFER], *p;
data/supercat-0.5.7/src/spc.c:1251:20:  [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 (!(in = fopen (inp_file, "r")))
data/supercat-0.5.7/src/spc.c:1261: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        string [BUFFER];
data/supercat-0.5.7/src/spc.c:1262: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        aryidx [BUFFER];
data/supercat-0.5.7/src/spc.c:143: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).
        snprintf (buf + strlen(buf), BUFSIZ - strlen(buf), ": %s", strerror (error));
data/supercat-0.5.7/src/spc.c:143: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).
        snprintf (buf + strlen(buf), BUFSIZ - strlen(buf), ": %s", strerror (error));
data/supercat-0.5.7/src/spc.c:144:5:  [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 (buf, "\n");
data/supercat-0.5.7/src/spc.c:180: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).
    if ( (strlen (str) < 5) || (str [3] != ',') ) {
data/supercat-0.5.7/src/spc.c:189: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).
        q = malloc (strlen (s)+3);
data/supercat-0.5.7/src/spc.c:190:9:  [1] (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 character.
        strcpy (q, "(");
data/supercat-0.5.7/src/spc.c:192:9:  [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 (q, ")");
data/supercat-0.5.7/src/spc.c:214: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).
    if ( (strlen (str) < 11) || (str [3] != ',') || (str [5] != ',') || (str [7] != ',' || (str [9] != ',') ) ) {
data/supercat-0.5.7/src/spc.c:299: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).
            opt_config = malloc (strlen (optarg)+1);
data/supercat-0.5.7/src/spc.c:304: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).
            opt_directory = malloc (strlen (optarg)+1);
data/supercat-0.5.7/src/spc.c:309: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).
            opt_type = malloc (strlen (optarg)+1);
data/supercat-0.5.7/src/spc.c:332: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).
        inp_file = malloc (strlen (av [optind])+1);
data/supercat-0.5.7/src/spc.c:361: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).
            opt_config = malloc (strlen (av [i])+1);
data/supercat-0.5.7/src/spc.c:367: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).
            opt_directory = malloc (strlen (av [i])+1);
data/supercat-0.5.7/src/spc.c:385: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).
        if (!strncmp (av [i], "--cmd-s", strlen ("--cmd-s"))) {
data/supercat-0.5.7/src/spc.c:386: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).
            p = av [i] + strlen ("--cmd-s");
data/supercat-0.5.7/src/spc.c:398: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).
        if (!strncmp (av [i], "--cmd-l", strlen ("--cmd-l"))) {
data/supercat-0.5.7/src/spc.c:399: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).
            p = av [i] + strlen ("--cmd-l");
data/supercat-0.5.7/src/spc.c:411: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 (!strncmp (av [i], "--config-dir", strlen ("--config-dir"))) {
data/supercat-0.5.7/src/spc.c:412: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).
            p = av [i] + strlen ("--config-dir");
data/supercat-0.5.7/src/spc.c:420: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).
            opt_directory = malloc (strlen (p)+1);
data/supercat-0.5.7/src/spc.c:425:43:  [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 (av [i], "--config", strlen ("--config"))) {
data/supercat-0.5.7/src/spc.c:426: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).
            p = av [i] + strlen ("--config");
data/supercat-0.5.7/src/spc.c:440: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).
            opt_config = malloc (strlen (p)+1);
data/supercat-0.5.7/src/spc.c:447: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).
            opt_type = malloc (strlen (av [i])+1);
data/supercat-0.5.7/src/spc.c:452: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 (av [i], "--type", strlen ("--type"))) {
data/supercat-0.5.7/src/spc.c:453: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).
            p = av [i] + strlen ("--type");
data/supercat-0.5.7/src/spc.c:461: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).
            opt_type = malloc (strlen (p)+1);
data/supercat-0.5.7/src/spc.c:473: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).
            inp_file = malloc (strlen (av [i])+1);
data/supercat-0.5.7/src/spc.c:493: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).
    typ_suffix = malloc (strlen (inp_file)+1);
data/supercat-0.5.7/src/spc.c:502: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).
    p = &typ_suffix [strlen (typ_suffix)-1];
data/supercat-0.5.7/src/spc.c:594: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).
            temp = malloc (strlen (home)+strlen (opt_config)+1);
data/supercat-0.5.7/src/spc.c:594: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).
            temp = malloc (strlen (home)+strlen (opt_config)+1);
data/supercat-0.5.7/src/spc.c:610: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).
        opt_config = malloc (strlen (opt_type)+7);
data/supercat-0.5.7/src/spc.c:621: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).
        opt_config = malloc (strlen (typ_suffix)+7);
data/supercat-0.5.7/src/spc.c:749: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).
    int      m = strlen (spc->string);
data/supercat-0.5.7/src/spc.c:1109: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).
    spc->htmlen = strlen (spc->htmrgb);
data/supercat-0.5.7/src/spc.c:1120: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).
        n = strlen (buffer);
data/supercat-0.5.7/src/spc.c:1145: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).
        spc->htmrgb = malloc (strlen (&buffer [COLUMN_HTMRGB]) + 1);
data/supercat-0.5.7/src/spc.c:1147: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).
        spc->htmlen = strlen (spc->htmrgb);
data/supercat-0.5.7/src/spc.c:1179: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).
            n=strlen (buffer+COLUMN_CREGEX-1);
data/supercat-0.5.7/src/spc.c:1186:35:  [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).
            spc->string = malloc (strlen (buffer+COLUMN_CREGEX-1));
data/supercat-0.5.7/src/spc.c:1279: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).
        string [n=strlen (string)-1] = 0;

ANALYSIS SUMMARY:

Hits = 96
Lines analyzed = 1381 in approximately 0.07 seconds (18422 lines/second)
Physical Source Lines of Code (SLOC) = 1072
Hits@level = [0]  27 [1]  43 [2]  20 [3]   3 [4]  30 [5]   0
Hits@level+ = [0+] 123 [1+]  96 [2+]  53 [3+]  33 [4+]  30 [5+]   0
Hits/KSLOC@level+ = [0+] 114.739 [1+] 89.5522 [2+] 49.4403 [3+] 30.7836 [4+] 27.9851 [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.