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/intercal-0.30/etc/IFFI/IFFI.c
Examining data/intercal-0.30/etc/IFFI/IFFI.h
Examining data/intercal-0.30/src/convickt.c
Examining data/intercal-0.30/src/uncommon.c
Examining data/intercal-0.30/src/ick.h
Examining data/intercal-0.30/src/fiddle.c
Examining data/intercal-0.30/src/feh.h
Examining data/intercal-0.30/src/fiddle.h
Examining data/intercal-0.30/src/bin2c.c
Examining data/intercal-0.30/src/unravel.c
Examining data/intercal-0.30/src/yuk.c
Examining data/intercal-0.30/src/ick_lose.c
Examining data/intercal-0.30/src/ick_ec.c
Examining data/intercal-0.30/src/uncommon.h
Examining data/intercal-0.30/src/pick1.h
Examining data/intercal-0.30/src/arrgghh.c
Examining data/intercal-0.30/src/perpet.c
Examining data/intercal-0.30/src/cesspool.c
Examining data/intercal-0.30/src/ick_lose.h
Examining data/intercal-0.30/src/sizes.h
Examining data/intercal-0.30/src/feh2.c
Examining data/intercal-0.30/src/dekludge.c
Examining data/intercal-0.30/src/numerals.c
Examining data/intercal-0.30/src/ick_bool.h
Examining data/intercal-0.30/src/pickwrap.c
Examining data/intercal-0.30/src/ick-wrap.c
Examining data/intercal-0.30/src/ick_ec.h
Examining data/intercal-0.30/src/oil.h
Examining data/intercal-0.30/src/clc-cset.c
Examining data/intercal-0.30/src/yuk.h
Examining data/intercal-0.30/src/pick2.h
Examining data/intercal-0.30/prebuilt/lexer.c
Examining data/intercal-0.30/prebuilt/oil-oil.c
Examining data/intercal-0.30/prebuilt/parser.h
Examining data/intercal-0.30/prebuilt/parser.c
Examining data/intercal-0.30/pit/explib/syslibc.c
Examining data/intercal-0.30/pit/explib/compunex.c
Examining data/intercal-0.30/pit/explib/ecto_b98.c

FINAL RESULTS:

data/intercal-0.30/prebuilt/lexer.c:1092:2:  [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(textlines[iyylineno], linebuf);
data/intercal-0.30/prebuilt/oil-oil.c:86: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).
  if(t) strcpy(t,s);
data/intercal-0.30/prebuilt/oil-oil.c:935:21:  [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.
#  define YYFPRINTF fprintf
data/intercal-0.30/prebuilt/oil-oil.c:2669:5:  [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.
    printf(firstopt?"  if((np":" &&\n     (np");
data/intercal-0.30/prebuilt/oil-oil.c:2678:5:  [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.
    printf(firstopt?"  if(np":" &&\n     np");
data/intercal-0.30/prebuilt/oil-oil.c:2686:5:  [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.
    printf(firstopt?"  if(np":" &&\n     np");
data/intercal-0.30/prebuilt/parser.c:1218:21:  [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.
#  define YYFPRINTF fprintf
data/intercal-0.30/src/clc-cset.c:126:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf,"%s.bin",fname);
data/intercal-0.30/src/clc-cset.c:180: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(cs->setname,fname);
data/intercal-0.30/src/feh2.c:2143:14:  [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.
      (void) fprintf(fp, /* same change as above (case rather than a label) */
data/intercal-0.30/src/ick_lose.c:42:9:  [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.
	(void) fprintf(stderr, m + 4, s, n);
data/intercal-0.30/src/ick_lose.c:44:9:  [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.
	(void) fprintf(stderr, m + 4, n);
data/intercal-0.30/src/ick_lose.c:63:12:  [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.
    (void) fprintf(stderr, m + 4, s, n);
data/intercal-0.30/src/ick_lose.c:65:12:  [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.
    (void) fprintf(stderr, m + 4, n);
data/intercal-0.30/src/perpet.c:77:8:  [4] (shell) system:
  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.
    st=system(x);}while(0)
data/intercal-0.30/src/perpet.c:1761:5:  [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(buffer,argv[optind]);
data/intercal-0.30/src/perpet.c:1767: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(buffer,libbuf);
data/intercal-0.30/src/perpet.c:1907:4:  [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(argv[optind],buf2);
data/intercal-0.30/src/perpet.c:2044:7:  [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,argv[0]);
data/intercal-0.30/src/uncommon.c:177:12:  [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.
  retval = vsnprintf(str, size, format, ap);
data/intercal-0.30/src/uncommon.c:179:12:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
  retval = vsprintf(str, format, ap);
data/intercal-0.30/src/uncommon.h:13:26:  [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, 3, 4)))
data/intercal-0.30/src/yuk.c:270: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.
	      printf(onewatch[yukvars[i].intername]==(char)2?
data/intercal-0.30/src/yuk.c:295: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.
	      printf(twowatch[yukvars[i].intername]==(char)2?
data/intercal-0.30/src/yuk.c:820:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    (void) sprintf(copyloc,"more < %s",tempcharp);
data/intercal-0.30/src/yuk.c:824:10:  [4] (shell) system:
  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.
	    if (system(copyloc) != 0) /* display the GNU GPL copyright */
data/intercal-0.30/etc/IFFI/IFFI.c:83:3:  [3] (random) srandom:
  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.
		srandom(tv.tv_nsec);
data/intercal-0.30/etc/IFFI/IFFI.c:91:3:  [3] (random) srandom:
  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.
		srandom(tv.tv_usec);
data/intercal-0.30/pit/explib/syslibc.c:160:18:  [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.
  if(!seededyet) srand(time(0));
data/intercal-0.30/pit/explib/syslibc.c:175:18:  [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.
  if(!seededyet) srand(time(0));
data/intercal-0.30/src/cesspool.c:841:26:  [3] (random) lrand48:
  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.
   return((unsigned int)(lrand48() % 100) < n);
data/intercal-0.30/src/convickt.c:67: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((unsigned)time(NULL));
data/intercal-0.30/src/convickt.c:95: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.
  if(!(ick_datadir=getenv("ICKDATADIR")))
data/intercal-0.30/src/ick-wrap.c:65: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(0));
data/intercal-0.30/src/perpet.c:193:5:  [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.
int getopt(int argc, char * const *argv, const char *options)
data/intercal-0.30/src/perpet.c:300:11:  [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* x=getenv(e);
data/intercal-0.30/src/perpet.c:320:15:  [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, ARGSTRING)) != EOF)
data/intercal-0.30/src/perpet.c:772:25:  [3] (random) lrand48:
  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 (!nocompilerbug && lrand48() % 10 == 0)
data/intercal-0.30/src/perpet.c:773:18:  [3] (random) lrand48:
  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.
    return (int)(lrand48() % ick_lineno);
data/intercal-0.30/src/perpet.c:1795: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 (!(includedir = getenv("ICKINCLUDEDIR")))
data/intercal-0.30/src/perpet.c:1797:18:  [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 (!(libdir = getenv("ICKLIBDIR")))
data/intercal-0.30/src/perpet.c:1799: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 (!(ick_sysdir = getenv("ICKSYSDIR")))
data/intercal-0.30/src/perpet.c:1801: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.
  if (!(ick_cskeldir = getenv("ICKCSKELDIR")))
data/intercal-0.30/src/perpet.c:1810: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.
  if (!(compiler = getenv("CC")))
data/intercal-0.30/src/perpet.c:1825: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((unsigned)time(NULL));
data/intercal-0.30/prebuilt/lexer.c:972: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 linebuf[YY_BUF_SIZE];
data/intercal-0.30/prebuilt/lexer.c:974: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 linebuf[YYLMAX];
data/intercal-0.30/prebuilt/lexer.c:3122: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 buf[MAXTEXT];
data/intercal-0.30/prebuilt/lexer.c:3123: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 thinbuf[MAXTEXT];
data/intercal-0.30/prebuilt/lexer.c:3139: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).
    return atoi(thinbuf);
data/intercal-0.30/prebuilt/oil-oil.c:131: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 optname[MAXOPTNAMELEN]="undefined";
data/intercal-0.30/prebuilt/oil-oil.c:1235: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 *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/intercal-0.30/prebuilt/oil-oil.c:1252: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 yyformat[sizeof yyunexpected
data/intercal-0.30/prebuilt/oil-oil.c:1442: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 yymsgbuf[128];
data/intercal-0.30/prebuilt/oil-oil.c:2602: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.
	static char buf[512];
data/intercal-0.30/prebuilt/oil-oil.c:2861:3:  [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(fname,"oilout%02x.c",filenumber);
data/intercal-0.30/prebuilt/parser.c:1518: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 *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/intercal-0.30/prebuilt/parser.c:1535: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 yyformat[sizeof yyunexpected
data/intercal-0.30/prebuilt/parser.c:1725: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 yymsgbuf[128];
data/intercal-0.30/src/cesspool.c:145: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[INTBUFSIZ], *cp;
data/intercal-0.30/src/cesspool.c:240: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 res[MAXROMANS], ovb[MAXROMANS];
data/intercal-0.30/src/cesspool.c:243:18:  [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 const char br_equiv[MAXDIGITS][4] =
data/intercal-0.30/src/cesspool.c:252:18:  [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 const char br_overbar[MAXDIGITS][4] =
data/intercal-0.30/src/cesspool.c:270: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.
	(void) strcpy(result, "_\n");
data/intercal-0.30/src/cesspool.c:332: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	result[2*MAXROMANS+1];
data/intercal-0.30/src/cesspool.c:747: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(&ick_first->save.onespot, from, sizeof(ick_type16));
data/intercal-0.30/src/cesspool.c:750: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(&ick_first->save.twospot, from, sizeof(ick_type32));
data/intercal-0.30/src/cesspool.c:760: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(ick_first->save.a->dims, a->dims,
data/intercal-0.30/src/cesspool.c:770: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(ick_first->save.a->data.tail,
data/intercal-0.30/src/cesspool.c:777: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(ick_first->save.a->data.hybrid,
data/intercal-0.30/src/cesspool.c:795: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(to, (const char *)&sp->save.onespot, sizeof(ick_type16));
data/intercal-0.30/src/cesspool.c:797: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(to, (const char *)&sp->save.twospot, sizeof(ick_type32));
data/intercal-0.30/src/cesspool.c:808:2:  [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(to, (const char*)sp->save.a, sizeof(ick_array));
data/intercal-0.30/src/clc-cset.c:78: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 set[4096]; /* allow up to 12 bits of data+shifts */
data/intercal-0.30/src/clc-cset.c:81: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 setname[9]; /* 8.3 filenames are enforced! */
data/intercal-0.30/src/clc-cset.c:82: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 bitorder[16];
data/intercal-0.30/src/clc-cset.c:103: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[13]; /* enough for an 8.3 filename */
data/intercal-0.30/src/feh2.c:252: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(&temp, &tuples[ick_lineno-distback1], sizeof(tuple));
data/intercal-0.30/src/feh2.c:253: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(&tuples[ick_lineno-distback1], &tuples[ick_lineno-distback2], sizeof(tuple));
data/intercal-0.30/src/feh2.c:254: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(&tuples[ick_lineno-distback2], &temp, sizeof(tuple));
data/intercal-0.30/src/feh2.c:462:22:  [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.
/*@observer@*/ const char *enablersm1[MAXTYPES+1] =
data/intercal-0.30/src/feh2.c:1695: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 buf[MAXNICEBUF];
data/intercal-0.30/src/ick.h:124:29:  [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.
/*@observer@*/ extern const char *enablersm1[MAXTYPES+1];
data/intercal-0.30/src/ick_lose.c:46:8:  [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).
    if(atoi(m)==778&&ick_coreonerr) /* AIS */
data/intercal-0.30/src/ick_lose.c:51:10:  [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).
    exit(atoi(m));
data/intercal-0.30/src/perpet.c:542: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 outputfilename[BUFSIZ];
data/intercal-0.30/src/perpet.c:1534: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 buffer[BUFSIZ];
data/intercal-0.30/src/perpet.c:1575: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 commandlinebuf[BUFSIZ];
data/intercal-0.30/src/perpet.c:1603: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 buffer[BUFSIZ];
data/intercal-0.30/src/perpet.c:1762:5:  [2] (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 string.
    strcat(buffer,".cio");
data/intercal-0.30/src/perpet.c:1771:3:  [2] (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 string.
  strcat(buffer," -lickec");
data/intercal-0.30/src/perpet.c:1781: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], buf2[BUFSIZ], *chp, yukcmdstr[BUFSIZ], path[BUFSIZ],
data/intercal-0.30/src/perpet.c:1890:17:  [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((tocopy = fopen(buf2,"wb")) == NULL)
data/intercal-0.30/src/uncommon.c:36:5:  [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).
  t=fopen(fname,mode);
data/intercal-0.30/src/uncommon.c:53: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 buf2[BUFSIZ];
data/intercal-0.30/src/uncommon.c:106: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 buf2[BUFSIZ];
data/intercal-0.30/src/unravel.c:223: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((void*)ickmt_cur->pc,(const void*)fakepc,sizeof(jmp_buf));
data/intercal-0.30/src/unravel.c:238: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((void *)ickmt_cur->pc,(const void *)fakepc,sizeof(jmp_buf));
data/intercal-0.30/src/unravel.c:244: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((void *)ickmt_cur->ick_next->pc,(const void *)fakepc,sizeof(jmp_buf));
data/intercal-0.30/src/unravel.c:320: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((void *)newthread->ick_next->pc,(const void *)fakepc,sizeof(jmp_buf));
data/intercal-0.30/src/unravel.c:340: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(ick_onespots, tvp, i * sizeof *ick_onespots);
data/intercal-0.30/src/unravel.c:346: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(ick_oo_onespots, tvp, i * sizeof *ick_oo_onespots);
data/intercal-0.30/src/unravel.c:352: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(ick_twospots, tvp, i * sizeof *ick_twospots);
data/intercal-0.30/src/unravel.c:358: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(ick_oo_twospots, tvp, i * sizeof *ick_oo_twospots);
data/intercal-0.30/src/unravel.c:364: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(ick_tails, tvp, i * sizeof *ick_tails);
data/intercal-0.30/src/unravel.c:369: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(ick_hybrids, tvp, i * sizeof *ick_hybrids);
data/intercal-0.30/src/unravel.c:374: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(ick_oneforget, tvp, i * sizeof *ick_oneforget);
data/intercal-0.30/src/unravel.c:379: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(ick_twoforget, tvp, i * sizeof *ick_twoforget);
data/intercal-0.30/src/unravel.c:384: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(ick_tailforget, tvp, i * sizeof *ick_tailforget);
data/intercal-0.30/src/unravel.c:389: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(ick_hyforget, tvp, i * sizeof *ick_hyforget);
data/intercal-0.30/src/unravel.c:405: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(a->dims, tvp, a->rank * sizeof *(a->dims));
data/intercal-0.30/src/unravel.c:414: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(a->data.tail, tvp, prod * sizeof(ick_type16));
data/intercal-0.30/src/unravel.c:431: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(a->dims, tvp, a->rank * sizeof(*(a->dims)));
data/intercal-0.30/src/unravel.c:440: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(a->data.hybrid, tvp, prod * sizeof(ick_type32));
data/intercal-0.30/src/unravel.c:453: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(isb,isb2,sizeof(ick_stashbox));
data/intercal-0.30/src/unravel.c:474: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(isb->save.a->dims, isb2->save.a->dims,
data/intercal-0.30/src/unravel.c:485:2:  [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(isb->save.a->data.tail, isb2->save.a->data.tail,
data/intercal-0.30/src/unravel.c:492:2:  [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(isb->save.a->data.hybrid, isb2->save.a->data.hybrid,
data/intercal-0.30/src/unravel.c:513: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(ick_next, tvp, ick_MAXNEXT * sizeof *ick_next);
data/intercal-0.30/src/unravel.c:762: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((void*)(ickmt_cur->ick_cjb), (const void*)ick_cjb, sizeof(jmp_buf));
data/intercal-0.30/src/unravel.c:767: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((void*)(ickmt_cur->pc), (const void*)pc, sizeof(jmp_buf));
data/intercal-0.30/src/unravel.c:817: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((void*)ick_cjb, (const void*)(ickmt_cur->ick_cjb), sizeof(jmp_buf));
data/intercal-0.30/src/yuk.c:73: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 buf[21];
data/intercal-0.30/src/yuk.c:202: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 copyloc[BUFSIZ+9];
data/intercal-0.30/etc/IFFI/IFFI.c:68: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).
	fungespace_load_string(ick_iffi_befungeString, strlen((const char*)ick_iffi_befungeString));
data/intercal-0.30/prebuilt/lexer.c:1007:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#undef getc
data/intercal-0.30/prebuilt/lexer.c:1008:5:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int getc(FILE *fp)
data/intercal-0.30/prebuilt/lexer.c:1089:36:  [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).
	textlines[iyylineno] = malloc(1 + strlen(linebuf));
data/intercal-0.30/prebuilt/lexer.c:1108:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  int c = getc(yyin); \
data/intercal-0.30/prebuilt/lexer.c:1226:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/intercal-0.30/prebuilt/lexer.c:2848: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).
	return yy_scan_bytes(yystr,strlen(yystr) );
data/intercal-0.30/prebuilt/oil-oil.c:85: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).
  char* t=malloc(strlen(s)+1);
data/intercal-0.30/prebuilt/oil-oil.c:1116: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).
#   define yystrlen strlen
data/intercal-0.30/prebuilt/oil-oil.c:2838:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  int c=getchar();
data/intercal-0.30/prebuilt/parser.c:1399: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).
#   define yystrlen strlen
data/intercal-0.30/src/bin2c.c:40:12:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while((c=getchar())!=EOF)
data/intercal-0.30/src/cesspool.c:156: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).
    n = strlen(buf) - 1;
data/intercal-0.30/src/cesspool.c:383:5:  [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(buf,"\n"); /* EOF inputs the null string in CLC-INTERCAL */
data/intercal-0.30/src/cesspool.c:490:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    v = ((c=fgetc(ick_cesspoolin)) == EOF) ? 256 :
data/intercal-0.30/src/clc-cset.c:107:6:  [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(fname)>8) return;
data/intercal-0.30/src/clc-cset.c:129:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ipf=fgetc;
data/intercal-0.30/src/convickt.c:99:12:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while((c=getchar())!=EOF)
data/intercal-0.30/src/perpet.c:204: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).
  memmove(argv[optind]+1,argv[optind]+2,strlen(argv[optind]+1));
data/intercal-0.30/src/perpet.c:503: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).
      (void) ick_snprintf_or_die(libbuf+strlen(libbuf),libbuf_size - strlen(libbuf),
data/intercal-0.30/src/perpet.c:503: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).
      (void) ick_snprintf_or_die(libbuf+strlen(libbuf),libbuf_size - strlen(libbuf),
data/intercal-0.30/src/perpet.c:506: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).
      (void) ick_snprintf_or_die(libbuf+strlen(libbuf),libbuf_size - strlen(libbuf),
data/intercal-0.30/src/perpet.c:506: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).
      (void) ick_snprintf_or_die(libbuf+strlen(libbuf),libbuf_size - strlen(libbuf),
data/intercal-0.30/src/perpet.c:564:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int c=getchar();
data/intercal-0.30/src/perpet.c:591: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).
  (void) ick_snprintf_or_die(libbuf+strlen(libbuf),libbuf_size - strlen(libbuf),
data/intercal-0.30/src/perpet.c:591:66:  [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).
  (void) ick_snprintf_or_die(libbuf+strlen(libbuf),libbuf_size - strlen(libbuf),
data/intercal-0.30/src/perpet.c:1631: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).
    int thisneedc = argv[optind][strlen(argv[optind])+2]=='9'?99:
data/intercal-0.30/src/perpet.c:1632: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).
      argv[optind][strlen(argv[optind])+2]=='1'?11:89;
data/intercal-0.30/src/perpet.c:1646: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).
       (argv[optind][strlen(argv[optind])+2]=='\0' /* a .c or .i file */
data/intercal-0.30/src/perpet.c:1647: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).
        ||argv[optind][strlen(argv[optind])+3]!='o')) /* not a .cio file */
data/intercal-0.30/src/perpet.c:1656:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      int inchar=fgetc(cioin);
data/intercal-0.30/src/perpet.c:1678:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  if((inchar=fgetc(cioin))!='C') continue;
data/intercal-0.30/src/perpet.c:1679:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  if((inchar=fgetc(cioin))!='K') continue;
data/intercal-0.30/src/perpet.c:1680:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  if((inchar=fgetc(cioin))!='_') continue;
data/intercal-0.30/src/perpet.c:1681:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  if((inchar=fgetc(cioin))!='E') continue;
data/intercal-0.30/src/perpet.c:1682:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  if((inchar=fgetc(cioin))!='C') continue;
data/intercal-0.30/src/perpet.c:1683:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  if((inchar=fgetc(cioin))!='_') continue;
data/intercal-0.30/src/perpet.c:1684:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  if((inchar=fgetc(cioin))!='P') continue;
data/intercal-0.30/src/perpet.c:1685:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  if((inchar=fgetc(cioin))!='P') continue;
data/intercal-0.30/src/perpet.c:1686:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  if((inchar=fgetc(cioin))!='_') continue;
data/intercal-0.30/src/perpet.c:1687:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  inchar=fgetc(cioin);
data/intercal-0.30/src/perpet.c:1693:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    while(fputc(fgetc(cioin),cioallec) != ')') toparencount++;
data/intercal-0.30/src/perpet.c:1725:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	inchar=fgetc(cioin);
data/intercal-0.30/src/perpet.c:1753: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).
  remspace = (long)(sizeof buffer - strlen(buffer) - 1);
data/intercal-0.30/src/perpet.c:1757: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).
    remspace -= strlen(argv[optind]) - 5; /* 5 for <space>.cio */
data/intercal-0.30/src/perpet.c:1760: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(buffer," ");
data/intercal-0.30/src/perpet.c:1764: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).
  remspace -= strlen(libbuf);
data/intercal-0.30/src/perpet.c:1768: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).
  remspace -= strlen(" -lickec");
data/intercal-0.30/src/perpet.c:1895:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    c2=fgetc(fromcopy);
data/intercal-0.30/src/perpet.c:2046:12:  [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.
      else strcpy(path,".");

ANALYSIS SUMMARY:

Hits = 174
Lines analyzed = 22232 in approximately 0.75 seconds (29475 lines/second)
Physical Source Lines of Code (SLOC) = 15776
Hits@level = [0] 791 [1]  50 [2]  79 [3]  19 [4]  26 [5]   0
Hits@level+ = [0+] 965 [1+] 174 [2+] 124 [3+]  45 [4+]  26 [5+]   0
Hits/KSLOC@level+ = [0+] 61.1689 [1+] 11.0294 [2+] 7.86004 [3+] 2.85243 [4+] 1.64807 [5+]   0
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.