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/brutefir-1.0o/asmprot.h
Examining data/brutefir-1.0o/bfconf.c
Examining data/brutefir-1.0o/bfconf.h
Examining data/brutefir-1.0o/bfconf_grammar.h
Examining data/brutefir-1.0o/bfio_alsa.c
Examining data/brutefir-1.0o/bfio_file.c
Examining data/brutefir-1.0o/bfio_jack.c
Examining data/brutefir-1.0o/bfio_oss.c
Examining data/brutefir-1.0o/bflogic_cli.c
Examining data/brutefir-1.0o/bflogic_eq.c
Examining data/brutefir-1.0o/bfmod.h
Examining data/brutefir-1.0o/bfrun.c
Examining data/brutefir-1.0o/bfrun.h
Examining data/brutefir-1.0o/bit.h
Examining data/brutefir-1.0o/brutefir.c
Examining data/brutefir-1.0o/convolver.h
Examining data/brutefir-1.0o/convolver_xmm.c
Examining data/brutefir-1.0o/dai.c
Examining data/brutefir-1.0o/dai.h
Examining data/brutefir-1.0o/defs.h
Examining data/brutefir-1.0o/delay.c
Examining data/brutefir-1.0o/delay.h
Examining data/brutefir-1.0o/dither.c
Examining data/brutefir-1.0o/dither.h
Examining data/brutefir-1.0o/dither_funs.h
Examining data/brutefir-1.0o/emalloc.c
Examining data/brutefir-1.0o/emalloc.h
Examining data/brutefir-1.0o/fdrw.h
Examining data/brutefir-1.0o/fftw_convfuns.h
Examining data/brutefir-1.0o/fftw_convolver.c
Examining data/brutefir-1.0o/firwindow.c
Examining data/brutefir-1.0o/firwindow.h
Examining data/brutefir-1.0o/inout.c
Examining data/brutefir-1.0o/inout.h
Examining data/brutefir-1.0o/log2.h
Examining data/brutefir-1.0o/numunion.h
Examining data/brutefir-1.0o/pinfo.h
Examining data/brutefir-1.0o/raw2real.h
Examining data/brutefir-1.0o/real2raw.h
Examining data/brutefir-1.0o/rendereq.h
Examining data/brutefir-1.0o/shmalloc.c
Examining data/brutefir-1.0o/shmalloc.h
Examining data/brutefir-1.0o/swap.h
Examining data/brutefir-1.0o/sysarch.h
Examining data/brutefir-1.0o/timermacros.h
Examining data/brutefir-1.0o/timestamp.h

FINAL RESULTS:

data/brutefir-1.0o/bfconf.c:169:2:  [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(real_path, PATH_SEPARATOR_STR);
data/brutefir-1.0o/bfconf.c:302:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(msg, "unexpected token, expected %s, got %s.\n",
data/brutefir-1.0o/bfconf.c:312:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(msg, "unrecognised %s: \"%s\".\n", name, string);
data/brutefir-1.0o/bfconf.c:352:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(msg, "At least one mandatory field is missing in %s.\n", name);
data/brutefir-1.0o/bfconf.c:894:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(msg, "cannot give filter %s in default configuration.\n",
data/brutefir-1.0o/bfconf.c:1435: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(default_config_file, tilde_expansion(yylval.string));
data/brutefir-1.0o/bfconf.c:1531: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(modules_path, tilde_expansion(yylval.string));
data/brutefir-1.0o/bfconf.c:1591: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(convolver_config, tilde_expansion(yylval.string));
data/brutefir-1.0o/bfconf.c:1653: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(current_filename, tilde_expansion(DEFAULT_BFCONF_NAME));
data/brutefir-1.0o/bfconf.c:2059: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(funname, name);
data/brutefir-1.0o/bfconf.c:2076:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(path, "%s%s%s", modules_path, name, suffix);
data/brutefir-1.0o/bfconf.c:2081:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(path, "/usr/local/lib/brutefir/%s%s", name, suffix);
data/brutefir-1.0o/bfconf.c:2085:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(path, "/usr/local/lib/%s%s", name, suffix);
data/brutefir-1.0o/bfconf.c:2089:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(path, "/usr/lib/brutefir/%s%s", name, suffix);
data/brutefir-1.0o/bfconf.c:2093:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(path, "/usr/lib/%s%s", name, suffix);
data/brutefir-1.0o/bfconf.c:2377:6:  [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(current_filename, default_config_file);
data/brutefir-1.0o/bfconf.c:2407:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(str, "too many %s.\n",
data/brutefir-1.0o/bfconf.c:2490: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(bfconf->channels[IO][virtch].name,
data/brutefir-1.0o/bfio_alsa.c:145:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(errstr, "  Could not get any hardware configuration: %s.\n",
data/brutefir-1.0o/bfio_alsa.c:158:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(errstr, "  Failed to set interleaved and non-interleaved "
data/brutefir-1.0o/bfio_alsa.c:171:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(errstr, "  Failed to set sample rate to %d Hz: %s.\n",
data/brutefir-1.0o/bfio_alsa.c:185:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(errstr, "  Failed to set sample format to %s: %s.\n",
data/brutefir-1.0o/bfio_alsa.c:192:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(errstr, "  Failed to set channel count to %d: %s.\n",
data/brutefir-1.0o/bfio_alsa.c:236:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(errstr, "  Failed to set start threshold: %s.\n",
data/brutefir-1.0o/bfio_alsa.c:246:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(errstr, "  Failed to set stop threshold: %s.\n",
data/brutefir-1.0o/bfio_alsa.c:254:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(errstr, "  Failed to set min avail to 1: %s.\n",
data/brutefir-1.0o/bfio_alsa.c:260:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(errstr, "  Unable to install sw params: %s.\n",
data/brutefir-1.0o/bfio_alsa.c:265:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(errstr, "  Unable to prepare audio: %s.\n", snd_strerror(err));
data/brutefir-1.0o/bfio_alsa.c:278: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.
        fprintf(stderr, "ALSA I/O: Parse error: " errstr);                     \
data/brutefir-1.0o/bfio_file.c:76: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.
        fprintf(stderr, "File I/O: Parse error: " errstr);                     \
data/brutefir-1.0o/bfio_file.c:542:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(printbuf, OUTTEXT_FORMAT, a[i++]);
data/brutefir-1.0o/bfio_file.c:615:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(s, OUTTEXT_FORMAT, 1.0);
data/brutefir-1.0o/bfio_jack.c:241: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.
        fprintf(stderr, "JACK I/O: Parse error: " errstr);                     \
data/brutefir-1.0o/bfio_jack.c:468:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(name, "%s-%d", io == IN ? "input" : "output", io_idx[io]++);
data/brutefir-1.0o/bfio_oss.c:61:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(errstr, "  Could not set fragment size: %s.\n",
data/brutefir-1.0o/bfio_oss.c:101:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(errstr, "  Could not set sample format: %s.\n",
data/brutefir-1.0o/bfio_oss.c:106:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(errstr, "  Sample format %s is not supported by the device.\n",
data/brutefir-1.0o/bfio_oss.c:114:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(errstr, "  Could not set channel count: %s.\n",
data/brutefir-1.0o/bfio_oss.c:127:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(errstr, "  Could not set sample rate: %s.\n", strerror(errno));
data/brutefir-1.0o/bfio_oss.c:141:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(errstr, "  Could not get fragment size: %s.\n",
data/brutefir-1.0o/bfio_oss.c:152: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.
        fprintf(stderr, "OSS I/O: Parse error: " errstr);                      \
data/brutefir-1.0o/bflogic_cli.c:434:3:  [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.
		fprintf(stream, (IO == IN) ? "      from inputs:  " :
data/brutefir-1.0o/bflogic_cli.c:456:3:  [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.
		fprintf(stream, (IO == IN) ? "      from filters: " :
data/brutefir-1.0o/bflogic_cli.c:764:2:  [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.
	fprintf(stream, HELP_TEXT);
data/brutefir-1.0o/bflogic_cli.c:1065:2:  [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.
	fprintf(stream, WELCOME_TEXT);
data/brutefir-1.0o/bflogic_cli.c:1066:2:  [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.
	fprintf(stream, PROMPT_TEXT);
data/brutefir-1.0o/bflogic_cli.c:1076:3:  [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.
		fprintf(stream, PROMPT_TEXT);
data/brutefir-1.0o/bflogic_eq.c:201: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.
        fprintf(stderr, "EQ: Parse error: " errstr);                           \
data/brutefir-1.0o/bflogic_eq.c:734:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(msg, "Coefficient with name \"%s\" does not exist.\n",
data/brutefir-1.0o/bflogic_eq.c:835:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(msg, "Write failed: %s.\n", strerror(errno));
data/brutefir-1.0o/bflogic_eq.c:844:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(msg, "Write failed: %s.\n", strerror(errno));
data/brutefir-1.0o/bflogic_eq.c:848:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(msg, "Write failed: %s.\n", strerror(errno));
data/brutefir-1.0o/brutefir.c:54:2:  [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.
	fprintf(stderr, PRESENTATION_STRING);
data/brutefir-1.0o/brutefir.c:55:2:  [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.
	fprintf(stderr, USAGE_STRING, argv[0]);
data/brutefir-1.0o/brutefir.c:60:2:  [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.
	fprintf(stderr, PRESENTATION_STRING);
data/brutefir-1.0o/pinfo.h:13:4:  [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.
   fprintf(stderr, format, ##args);
data/brutefir-1.0o/rendereq.h:76:9:  [4] (format) snprintf:
  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.
        snprintf(path, 1024, debug_dump_filter_path, eq->coeff[0]);
data/brutefir-1.0o/bfconf.c:141:17:  [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 ((homedir = getenv("HOME")) == NULL)
data/brutefir-1.0o/bfconf.c:63: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 filename[PATH_MAX];
data/brutefir-1.0o/bfconf.c:74: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 coeff_name[BF_MAXOBJECTNAME];
data/brutefir-1.0o/bfconf.c:75: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 *channel_name[2][BF_MAXCHANNELS];
data/brutefir-1.0o/bfconf.c:76: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 *filter_name[2][BF_MAXCHANNELS];
data/brutefir-1.0o/bfconf.c:83: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 *channel_name[BF_MAXCHANNELS];
data/brutefir-1.0o/bfconf.c:87: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 device_name[BF_MAXOBJECTNAME];
data/brutefir-1.0o/bfconf.c:101: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 default_config_file[PATH_MAX];
data/brutefir-1.0o/bfconf.c:102: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 current_filename[PATH_MAX];
data/brutefir-1.0o/bfconf.c:104: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 *logic_names[BF_MAXMODULES];
data/brutefir-1.0o/bfconf.c:123: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 real_path[PATH_MAX];
data/brutefir-1.0o/bfconf.c:187:19:  [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 ((stream = fopen(tilde_expansion(DEFAULT_BFCONF_NAME), "wt")) == NULL) {
data/brutefir-1.0o/bfconf.c:301: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 msg[4096];
data/brutefir-1.0o/bfconf.c:311: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 msg[4096];
data/brutefir-1.0o/bfconf.c:349: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 msg[200];
data/brutefir-1.0o/bfconf.c:573:9:  [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(&bflex[n].lexval, &yylval, sizeof(yylval));
data/brutefir-1.0o/bfconf.c:604: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(lexval, &config_params[config_params_pos].lexval,
data/brutefir-1.0o/bfconf.c:734:13:  [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(coeff, default_coeff, sizeof(struct coeff));
data/brutefir-1.0o/bfconf.c:746:6:  [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(coeff->coeff.name, "%d", intname);
data/brutefir-1.0o/bfconf.c:889: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 name[BF_MAXOBJECTNAME];
data/brutefir-1.0o/bfconf.c:891: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 msg[200];
data/brutefir-1.0o/bfconf.c:977: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(filter->filter.filters[io], io_array, len * sizeof(int));
data/brutefir-1.0o/bfconf.c:981: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(filter->filter.channels[io], io_array, len * sizeof(int));
data/brutefir-1.0o/bfconf.c:991: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 msg[200];
data/brutefir-1.0o/bfconf.c:997:13:  [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(filter, default_filter, sizeof(struct filter));
data/brutefir-1.0o/bfconf.c:1009:6:  [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(filter->filter.name, "%d", intname);
data/brutefir-1.0o/bfconf.c:1028:7:  [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(msg, "process is less than 0 "
data/brutefir-1.0o/bfconf.c:1112: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 name[BF_MAXOBJECTNAME];
data/brutefir-1.0o/bfconf.c:1119:13:  [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(iodev, default_iodev[io], sizeof(struct iodev));
data/brutefir-1.0o/bfconf.c:1123:13:  [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(iodev->ch.channel_selection,
data/brutefir-1.0o/bfconf.c:1137:6:  [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(iodev->channel_intname, io_array,
data/brutefir-1.0o/bfconf.c:1146: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(name, "%d", iodev->channel_intname[n]);
data/brutefir-1.0o/bfconf.c:1206: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(iodev->ch.channel_selection, io_array,
data/brutefir-1.0o/bfconf.c:1418: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 msg[200];
data/brutefir-1.0o/bfconf.c:1515:6:  [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(msg, "filter length is not within %d - %d "
data/brutefir-1.0o/bfconf.c:1578:13:  [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(msg, "invalid float_bits, must be %zd or %zd.\n",
data/brutefir-1.0o/bfconf.c:1659: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 ((yyin = fopen(current_filename, "rt")) == NULL) {
data/brutefir-1.0o/bfconf.c:1731: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 str[1024], *p, *s;
data/brutefir-1.0o/bfconf.c:1880: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 ((stream = fopen(coeff->filename,
data/brutefir-1.0o/bfconf.c:1963:17:  [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 filename[1024];                
data/brutefir-1.0o/bfconf.c:1964: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.
                sprintf(filename, "brutefir-%d-coeffs-%d.txt",
data/brutefir-1.0o/bfconf.c:2023: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 filename[1024];                
data/brutefir-1.0o/bfconf.c:2024:9:  [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(filename, "brutefir-%d-coeffs-%d.txt", getpid(), cindex);
data/brutefir-1.0o/bfconf.c:2113: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 path[BF_MAXOBJECTNAME + PATH_MAX + 100];
data/brutefir-1.0o/bfconf.c:2175: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 path[BF_MAXOBJECTNAME + PATH_MAX + 100];
data/brutefir-1.0o/bfconf.c:2203: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[1000];
data/brutefir-1.0o/bfconf.c:2208:19:  [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 ((stream = fopen("/proc/cpuinfo", "rt")) == NULL) {
data/brutefir-1.0o/bfconf.c:2344: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 str[200];
data/brutefir-1.0o/bfconf.c:2382:14:  [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 ((yyin = fopen(current_filename, "rt")) == NULL) {
data/brutefir-1.0o/bfconf.c:2882:6:  [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(bfconf->fproc[n].unique_channels[IO], channels[IO],
data/brutefir-1.0o/bfconf.c:2888: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(bfconf->fproc[n].filters, filters,
data/brutefir-1.0o/bfconf.c:2961: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(bfconf->fproc[n].filters, filters,
data/brutefir-1.0o/bfio_alsa.c:79:2:  [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(errstr, "  Invalid software period size (%d): must be a power "
data/brutefir-1.0o/bfio_alsa.c:138:2:  [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(errstr, "  Unsupported sample format.\n");
data/brutefir-1.0o/bfio_alsa.c:179:9:  [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(errstr, "  Failed to set sample rate to %d Hz, device "
data/brutefir-1.0o/bfio_alsa.c:200:2:  [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(errstr,
data/brutefir-1.0o/bfio_alsa.c:224:2:  [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(errstr, "  Could not set period size.\n");
data/brutefir-1.0o/bfio_alsa.c:228:2:  [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(errstr, "  Unable to install hw params.\n");
data/brutefir-1.0o/bfio_alsa.c:385: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 errstr[ERRORSIZE];
data/brutefir-1.0o/bfio_alsa.c:446: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(fd2as[pollfd.fd].channel_selection, channel_selection,
data/brutefir-1.0o/bfio_file.c:223:12:  [2] (misc) open:
  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 ((fd = open(settings->path, O_RDONLY | O_NONBLOCK |
data/brutefir-1.0o/bfio_file.c:276:12:  [2] (misc) open:
  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 ((fd = open(settings->path, O_WRONLY | O_CREAT | mode |
data/brutefir-1.0o/bfio_file.c:345: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(rs->text.buffer, parsebuf, rest);
data/brutefir-1.0o/bfio_file.c:497:9:  [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(ws->text.partial_buffer, &ws->text.buffer[whole * linelen],
data/brutefir-1.0o/bfio_file.c:611: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[1024];
data/brutefir-1.0o/bfio_jack.c:26: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 *port_name[BF_MAXCHANNELS];
data/brutefir-1.0o/bfio_jack.c:27: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 *local_port_name[BF_MAXCHANNELS];
data/brutefir-1.0o/bfio_jack.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 *dest_name[BF_MAXCHANNELS];
data/brutefir-1.0o/bfio_jack.c:432: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 *name, _name[128], longname[1024];
data/brutefir-1.0o/bfio_oss.c:96:2:  [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(errstr, "  Unsupported sample format.\n");
data/brutefir-1.0o/bfio_oss.c:119:9:  [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(errstr, "  Failed to open %d interleaved channels, device "
data/brutefir-1.0o/bfio_oss.c:134:9:  [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(errstr, "  Failed to set sample rate to %d Hz, device "
data/brutefir-1.0o/bfio_oss.c:254: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 errstr[ERRORSIZE];
data/brutefir-1.0o/bfio_oss.c:292:19:  [2] (misc) open:
  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 ((fd = open(devinfo->device, O_RDWR)) == -1) {
data/brutefir-1.0o/bfio_oss.c:307:19:  [2] (misc) open:
  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 ((fd = open(devinfo->device, devinfo->dir[BF_IN] ?
data/brutefir-1.0o/bflogic_cli.c:118: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 error[1024];
data/brutefir-1.0o/bflogic_cli.c:742:39:  [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).
                sleep_task.useconds = atoi(p) * 1000;
data/brutefir-1.0o/bflogic_cli.c:758: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(_sleep_task, &sleep_task, sizeof(struct sleep_task));
data/brutefir-1.0o/bflogic_cli.c:833: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(buf, cmd, len + 1);
data/brutefir-1.0o/bflogic_cli.c:989:20:  [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.
             const char inbuf[MAXCMDLINE],
data/brutefir-1.0o/bflogic_cli.c:990: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.
             char cmd[MAXCMDLINE])
data/brutefir-1.0o/bflogic_cli.c:1031: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 inbuf[MAXCMDLINE], cmd[MAXCMDLINE];
data/brutefir-1.0o/bflogic_cli.c:1049: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 inbuf[MAXCMDLINE], cmd[MAXCMDLINE];
data/brutefir-1.0o/bflogic_cli.c:1249:19:  [2] (misc) open:
  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 ((fd = open(lport, O_RDWR | O_NOCTTY)) == -1) {
data/brutefir-1.0o/bflogic_eq.c:52: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 msg[MSGSIZE];
data/brutefir-1.0o/bflogic_eq.c:569: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 rmsg[MSGSIZE], *p;
data/brutefir-1.0o/bflogic_eq.c:659: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.
                sprintf(p, "coefficient %d:\n band: ", eq->coeff[0]);
data/brutefir-1.0o/bflogic_eq.c:661: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.
                sprintf(p, "coefficient %d,%d:\n band: ",
data/brutefir-1.0o/bflogic_eq.c:668:21:  [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(p, "%6.1f", freq);
data/brutefir-1.0o/bflogic_eq.c:670:21:  [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(p, "%6.0f", freq);
data/brutefir-1.0o/bflogic_eq.c:674:13:  [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(p, "\n  mag: ");
data/brutefir-1.0o/bflogic_eq.c:677: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.
                sprintf(p, "%6.1f", 20 * log10(eq->mag[n]));
data/brutefir-1.0o/bflogic_eq.c:680:13:  [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(p, "\nphase: ");
data/brutefir-1.0o/bflogic_eq.c:683: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.
                sprintf(p, "%6.1f", M_PI * 180 * eq->phase[n]);
data/brutefir-1.0o/bflogic_eq.c:721:13:  [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(msg, "Invalid coefficient.\n");
data/brutefir-1.0o/bflogic_eq.c:742:13:  [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(msg, "Invalid number.\n");
data/brutefir-1.0o/bflogic_eq.c:756:9:  [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(msg, "The given coefficient is not controlled.\n");
data/brutefir-1.0o/bflogic_eq.c:770:9:  [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(msg, "Unknown command.\n");
data/brutefir-1.0o/bflogic_eq.c:781: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.
                sprintf(msg, "Invalid frequency/value list.\n");
data/brutefir-1.0o/bflogic_eq.c:786: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.
                sprintf(msg, "Frequency bands not sorted.\n");
data/brutefir-1.0o/bflogic_eq.c:793: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.
                sprintf(msg, "Invalid frequency/value list.\n");
data/brutefir-1.0o/bflogic_eq.c:799: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.
                sprintf(msg, "Invalid frequency/value list.\n");
data/brutefir-1.0o/bflogic_eq.c:824:13:  [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(msg, "At least one invalid frequency band.\n");
data/brutefir-1.0o/bflogic_eq.c:838:9:  [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(msg, "ok\n");
data/brutefir-1.0o/bfmod.h: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 name[BF_MAXOBJECTNAME];
data/brutefir-1.0o/bfmod.h:114: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 name[BF_MAXOBJECTNAME];
data/brutefir-1.0o/bfmod.h:119: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 name[BF_MAXOBJECTNAME];
data/brutefir-1.0o/bfrun.c:682: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 dummydata[1];
data/brutefir-1.0o/bfrun.c:780: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 dummydata[bfconf->n_processes];
data/brutefir-1.0o/bfrun.c:853: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 dummydata[bfconf->n_processes];
data/brutefir-1.0o/bfrun.c:991: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 dummydata[bfconf->n_processes - 1];
data/brutefir-1.0o/bfrun.c:1072: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 dummydata[1];
data/brutefir-1.0o/bfrun.c:1390:13:  [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(ocbuf[0], bfconf->coeffs_data[n][i], convbufsize);
data/brutefir-1.0o/bfrun.c:1951:4:  [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(mixbuf, ocbuf[0], fragsize * bfconf->realsize);
data/brutefir-1.0o/bfrun.c:2089: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 data[bfconf->n_processes];
data/brutefir-1.0o/bfrun.c:2138: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 dummydata[bfconf->n_processes];
data/brutefir-1.0o/bfrun.c:2686: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 **names[2];
data/brutefir-1.0o/bfrun.c:2705: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.
    return (const char **)names[io];
data/brutefir-1.0o/dai.c:1164: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(&rfds, &dev_fds[IN], sizeof(fd_set));
data/brutefir-1.0o/dai.c:1188: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(&readfds, &rfds, sizeof(fd_set));
data/brutefir-1.0o/dai.c:1451:9:  [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(&wfds, &clocked_wfds, sizeof(fd_set));
data/brutefir-1.0o/dai.c:1455:9:  [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(&wfds, &dev_fds[OUT], sizeof(fd_set));
data/brutefir-1.0o/dai.c:1459: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(&writefds, &wfds, sizeof(fd_set));
data/brutefir-1.0o/dai.c:1617:9:  [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(buf + sd->buf_offset + sd->buf_size - sd->buf_left,
data/brutefir-1.0o/dai.c:1625:13:  [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(copybuf, cbbufs[n], cnt);
data/brutefir-1.0o/dai.c:1669:9:  [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(cbbufs[0], buf + sd->buf_offset +
data/brutefir-1.0o/dai.c:1677:13:  [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(cbbufs[n], copybuf, cnt);
data/brutefir-1.0o/dai.c:1691: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 dummy[BF_MAXCHANNELS];
data/brutefir-1.0o/delay.c:86: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(dbuf, buf, n_samples * sample_size);
data/brutefir-1.0o/delay.c:137: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(buf, dbuf, n_samples * sample_size);
data/brutefir-1.0o/delay.c:248: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(db->rbuf, lastbuf + (db->fragsize - db->n_rest) * sample_size,
data/brutefir-1.0o/delay.c:432:9:  [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(cbuf_low, rest, blocksize);
data/brutefir-1.0o/delay.c:433:9:  [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(cbuf_high, &((uint8_t *)buf)[i], blocksize);
data/brutefir-1.0o/delay.c:434:9:  [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(rest, cbuf_high, blocksize);
data/brutefir-1.0o/delay.c:436:9:  [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(&((uint8_t *)buf)[i], cbuf_low, blocksize);
data/brutefir-1.0o/emalloc.c:31: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[100];
data/brutefir-1.0o/emalloc.c:34:19:  [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 ((stream = fopen("/proc/meminfo", "rt")) == NULL) {
data/brutefir-1.0o/emalloc.c:42:24:  [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).
            memtotal = atoi(&s[9]);
data/brutefir-1.0o/emalloc.c:44:23:  [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).
            memfree = atoi(&s[8]);
data/brutefir-1.0o/emalloc.c:46:23:  [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).
            buffers = atoi(&s[8]);
data/brutefir-1.0o/emalloc.c:48:22:  [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).
            cached = atoi(&s[7]);
data/brutefir-1.0o/emalloc.c:147: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(newstr, str, size);
data/brutefir-1.0o/fftw_convolver.c:192: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(&((uint8_t *)cbuf)[n_fft2 * realsize], next_cbuf, n_fft2 * realsize);
data/brutefir-1.0o/fftw_convolver.c:430: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(buffer_cbuf, &((uint8_t *)buffer_cbuf)[n_fft2 * realsize],
data/brutefir-1.0o/fftw_convolver.c:585: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(&((uint8_t *)dest)[n_fft2 * realsize], src, n_fft2 * realsize);
data/brutefir-1.0o/fftw_convolver.c:633:19:  [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 ((stream = fopen(filename, "wt")) == NULL) {
data/brutefir-1.0o/fftw_convolver.c:719: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(&((uint8_t *)tdc->coeffs)[blocklen * realsize], coeffs,
data/brutefir-1.0o/fftw_convolver.c:808:19:  [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 ((stream = fopen(config_filename, "rt")) == NULL) {
data/brutefir-1.0o/fftw_convolver.c:836:19:  [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 ((stream = fopen(config_filename, "wt")) == NULL) {
data/brutefir-1.0o/rendereq.h:26: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 path[1024];
data/brutefir-1.0o/rendereq.h:78:18:  [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).
        stream = fopen(path, "wt");
data/brutefir-1.0o/bfconf.c:131:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(real_path, path, PATH_MAX);
data/brutefir-1.0o/bfconf.c:148:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(real_path, &path[1], PATH_MAX);
data/brutefir-1.0o/bfconf.c:158:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(real_path, path, PATH_MAX);
data/brutefir-1.0o/bfconf.c:164:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(real_path, homedir, PATH_MAX - 2);
data/brutefir-1.0o/bfconf.c:165: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).
    pos = strlen(homedir);
data/brutefir-1.0o/bfconf.c:167: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).
	homedir[strlen(homedir)-1] != PATH_SEPARATOR_CHAR)
data/brutefir-1.0o/bfconf.c:173:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(&real_path[pos], &path[slashpos+1], PATH_MAX - pos - 1);
data/brutefir-1.0o/bfconf.c:175:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(&real_path[pos], &path[1], PATH_MAX - pos - 1);
data/brutefir-1.0o/bfconf.c:712:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(str, yylval.string, strmax);
data/brutefir-1.0o/bfconf.c:790:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		    strncpy(coeff->filename, yylval.string, PATH_MAX);
data/brutefir-1.0o/bfconf.c:1168:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(iodev->device_name, yylval.string, BF_MAXOBJECTNAME);
data/brutefir-1.0o/bfconf.c:1532: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).
	n = strlen(modules_path);
data/brutefir-1.0o/bfconf.c:2058: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).
    funname = alloca(strlen(name) + 1);
data/brutefir-1.0o/bfconf.c:2372:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(current_filename, filename, PATH_MAX);
data/brutefir-1.0o/bfconf.c:2379:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(current_filename, filename, PATH_MAX);
data/brutefir-1.0o/bfconf.c:3327:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(100000 - tv2.tv_usec);
data/brutefir-1.0o/bfio_file.c:351:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if ((retval = read(rs->text.filefd, filebuf, size)) == -1) {
data/brutefir-1.0o/bfio_file.c:429:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((retval = read(fd, &((uint8_t *)buf)[offset], count)) == -1) {
data/brutefir-1.0o/bfio_file.c:616: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).
    outtext_len = strlen(s);
data/brutefir-1.0o/bfio_jack.c:58: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).
    if (msg[strlen(msg)-1] ==  '\n') {
data/brutefir-1.0o/bfio_oss.c:416:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    count = read(fd, &((uint8_t *)buf)[offset], count);
data/brutefir-1.0o/bflogic_cli.c:275: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).
    p = s + strlen(s) - 1;
data/brutefir-1.0o/bflogic_cli.c:705: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).
			p += strlen(names[n]);
data/brutefir-1.0o/bflogic_cli.c:754:25:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                        usleep(sleep_task.useconds);
data/brutefir-1.0o/bflogic_cli.c:828: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).
    len = strlen(cmd);
data/brutefir-1.0o/bflogic_cli.c:994:12:  [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).
    slen = strlen(inbuf);
data/brutefir-1.0o/bflogic_cli.c:1365:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(s_un.sun_path, lport, sizeof(s_un.sun_path));
data/brutefir-1.0o/bflogic_eq.c:96: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).
    p = s + strlen(s) - 1;
data/brutefir-1.0o/bflogic_eq.c:664: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).
            p += strlen(p);
data/brutefir-1.0o/bflogic_eq.c:672: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 += strlen(p);
data/brutefir-1.0o/bflogic_eq.c:675: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).
            p += strlen(p);
data/brutefir-1.0o/bflogic_eq.c:678: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 += strlen(p);
data/brutefir-1.0o/bflogic_eq.c:681: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).
            p += strlen(p);
data/brutefir-1.0o/bflogic_eq.c:684: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 += strlen(p);
data/brutefir-1.0o/bflogic_eq.c:686:13:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
            sprintf(p, "\n");
data/brutefir-1.0o/bfmod.h:262:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int (*read)(int fd,
data/brutefir-1.0o/bfrun.c:332:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                   (ull_t)((D.i[n].d[i].read.ts_call - D.ts_start) / tsdiv),
data/brutefir-1.0o/bfrun.c:333:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                   D.i[n].d[i].read.fd,
data/brutefir-1.0o/bfrun.c:334:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                   D.i[n].d[i].read.buf,
data/brutefir-1.0o/bfrun.c:335:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                   D.i[n].d[i].read.offset,
data/brutefir-1.0o/bfrun.c:336:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                   D.i[n].d[i].read.count);
data/brutefir-1.0o/bfrun.c:338:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                   (ull_t)((D.i[n].d[i].read.ts_ret - D.ts_start) / tsdiv),
data/brutefir-1.0o/bfrun.c:339:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                   D.i[n].d[i].read.retval);
data/brutefir-1.0o/brutefir.c:85:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0);
data/brutefir-1.0o/dai.c:611:12:  [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 = strlen(msgstr) + 1;
data/brutefir-1.0o/dai.c:1045: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(params) + 1;    
data/brutefir-1.0o/dai.c:1262:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            dbg[dbg_pos].read.fd = fd;
data/brutefir-1.0o/dai.c:1263:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            dbg[dbg_pos].read.buf = buf + sd->buf_offset;
data/brutefir-1.0o/dai.c:1264:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            dbg[dbg_pos].read.offset = sd->buf_size - sd->buf_left;
data/brutefir-1.0o/dai.c:1265:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            dbg[dbg_pos].read.count = sd->buf_left;
data/brutefir-1.0o/dai.c:1266:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            timestamp(&dbg[dbg_pos].read.ts_call);
data/brutefir-1.0o/dai.c:1268:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    n = sd->module->read(fd, buf + sd->buf_offset, sd->buf_size -
data/brutefir-1.0o/dai.c:1271:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            timestamp(&dbg[dbg_pos].read.ts_ret);
data/brutefir-1.0o/dai.c:1272:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            dbg[dbg_pos].read.retval = n;
data/brutefir-1.0o/dai.h:89:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    } read;
data/brutefir-1.0o/emalloc.c:80:9:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
    p = memalign(ALIGNMENT, size < ALIGNMENT ? ALIGNMENT : size);
data/brutefir-1.0o/emalloc.c:99:9:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
    p = memalign(ALIGNMENT, size < ALIGNMENT ? ALIGNMENT : size);
data/brutefir-1.0o/emalloc.c:145: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 size = strlen(str) + 1;
data/brutefir-1.0o/fdrw.h:26:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((n = read(fd, &((uint8_t *)buf)[i], count - i)) < 1) {
data/brutefir-1.0o/rendereq.h:32:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(10000);

ANALYSIS SUMMARY:

Hits = 268
Lines analyzed = 17815 in approximately 0.49 seconds (36254 lines/second)
Physical Source Lines of Code (SLOC) = 15720
Hits@level = [0] 497 [1]  60 [2] 150 [3]   1 [4]  57 [5]   0
Hits@level+ = [0+] 765 [1+] 268 [2+] 208 [3+]  58 [4+]  57 [5+]   0
Hits/KSLOC@level+ = [0+] 48.6641 [1+] 17.0483 [2+] 13.2316 [3+] 3.68957 [4+] 3.62595 [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.