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/fnfx-0.3/src/fnfx_init.c
Examining data/fnfx-0.3/src/fnfx_misc.c
Examining data/fnfx-0.3/src/fnfxd_misc.c
Examining data/fnfx-0.3/src/fnfx.c
Examining data/fnfx-0.3/src/fnfx.h
Examining data/fnfx-0.3/src/fnfx_cfg.c
Examining data/fnfx-0.3/src/fnfxd.c
Examining data/fnfx-0.3/src/fnfxd_acpi.c
Examining data/fnfx-0.3/src/fnfxd_cfg.c
Examining data/fnfx-0.3/src/fnfxd_cmds.c
Examining data/fnfx-0.3/src/fnfxd_init.c

FINAL RESULTS:

data/fnfx-0.3/src/fnfx.c:100:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vfprintf(stdout, fmt, args);
data/fnfx-0.3/src/fnfx.c:121:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, fmt, args);
data/fnfx-0.3/src/fnfx.c:169:5:  [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(stdout, PROGRAM " " VERSION " (c) 2003, 2004 " AUTHOR "\n");
data/fnfx-0.3/src/fnfx_cfg.c:54:64:  [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.
extern void debug(const char *fmt, ...) __attribute__ ((format(printf, 1, 2)));
data/fnfx-0.3/src/fnfx_cfg.c:55:64:  [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.
extern void fatal(const char *fmt, ...) __attribute__ ((format(printf, 1, 2)));
data/fnfx-0.3/src/fnfx_cfg.c:82:13:  [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.
            system(command);
data/fnfx-0.3/src/fnfx_cfg.c:105: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(daemon_cfg->keymap.fnkey[i].client_command, command);
data/fnfx-0.3/src/fnfx_cfg.c:119: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(daemon_cfg->keymap.fnkey[i].client_command, command);
data/fnfx-0.3/src/fnfx_cfg.c:222:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(config_file, "%s%1c%s%1c", getenv("HOME"), '/', CONFIGFILE, '\0');
data/fnfx-0.3/src/fnfx_misc.c:46:64:  [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.
extern void debug(const char *fmt, ...) __attribute__ ((format(printf, 1, 2)));
data/fnfx-0.3/src/fnfx_misc.c:47:64:  [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.
extern void fatal(const char *fmt, ...) __attribute__ ((format(printf, 1, 2)));
data/fnfx-0.3/src/fnfxd.c:104:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vfprintf(stdout, fmt, args);
data/fnfx-0.3/src/fnfxd.c:125:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, fmt, args);
data/fnfx-0.3/src/fnfxd.c:140:5:  [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(stdout, PROGRAM " " VERSION " (c) 2003, 2004 " AUTHOR "\n");
data/fnfx-0.3/src/fnfxd_acpi.c:49:64:  [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.
extern void debug(const char *fmt, ...) __attribute__ ((format(printf, 1, 2)));
data/fnfx-0.3/src/fnfxd_acpi.c:50:64:  [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.
extern void fatal(const char *fmt, ...) __attribute__ ((format(printf, 1, 2)));
data/fnfx-0.3/src/fnfxd_cfg.c:57:64:  [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.
extern void debug(const char *fmt, ...) __attribute__ ((format(printf, 1, 2)));
data/fnfx-0.3/src/fnfxd_cfg.c:58:64:  [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.
extern void fatal(const char *fmt, ...) __attribute__ ((format(printf, 1, 2)));
data/fnfx-0.3/src/fnfxd_cfg.c:138: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(cfg->keymap.fnkey[i].command, command);
data/fnfx-0.3/src/fnfxd_cfg.c:248:17:  [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(cfg->mixer.device, mixer);
data/fnfx-0.3/src/fnfxd_cmds.c:66:64:  [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.
extern void debug(const char *fmt, ...) __attribute__ ((format(printf, 1, 2)));
data/fnfx-0.3/src/fnfxd_cmds.c:67:64:  [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.
extern void fatal(const char *fmt, ...) __attribute__ ((format(printf, 1, 2)));
data/fnfx-0.3/src/fnfxd_misc.c:47:64:  [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.
extern void debug(const char *fmt, ...) __attribute__ ((format(printf, 1, 2)));
data/fnfx-0.3/src/fnfxd_misc.c:48:64:  [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.
extern void fatal(const char *fmt, ...) __attribute__ ((format(printf, 1, 2)));
data/fnfx-0.3/src/fnfx.c:244:21:  [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 ((i = getopt(ac, av, "dhn")) != -1) {
data/fnfx-0.3/src/fnfx_cfg.c:222:40:  [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.
    sprintf(config_file, "%s%1c%s%1c", getenv("HOME"), '/', CONFIGFILE, '\0');
data/fnfx-0.3/src/fnfxd.c:255:21:  [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 ((i = getopt(ac, av, "dhn")) != -1) {
data/fnfx-0.3/src/fnfx.h:96: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[MIXER_SIZE+1];
data/fnfx-0.3/src/fnfx.h:103: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 command[CMD_SIZE+1];
data/fnfx-0.3/src/fnfx.h:104: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 client_command[CMD_SIZE+1];
data/fnfx-0.3/src/fnfx.h:105: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 descr[LINE_SIZE+1];
data/fnfx-0.3/src/fnfx_cfg.c:77:13:  [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 command[CMD_SIZE+2];
data/fnfx-0.3/src/fnfx_cfg.c:168: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 fnkey_descr[LINE_SIZE];
data/fnfx-0.3/src/fnfx_cfg.c:169: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 command[CMD_SIZE];
data/fnfx-0.3/src/fnfx_cfg.c:219: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 config_file[LINE_SIZE];
data/fnfx-0.3/src/fnfx_cfg.c:220: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 line[LINE_SIZE];
data/fnfx-0.3/src/fnfx_cfg.c:224: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 ((f = fopen(config_file, "r"))) {
data/fnfx-0.3/src/fnfx_init.c:153: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((config->shmem.addr + CCFG_OFFSET), (void *) config,
data/fnfx-0.3/src/fnfxd_acpi.c:150:25:  [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).
    cfg->acpi.proc_fd = fopen(ACPI_KEYS, "r+");
data/fnfx-0.3/src/fnfxd_cfg.c:190: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 fnkey_descr[LINE_SIZE];
data/fnfx-0.3/src/fnfxd_cfg.c:191: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 command[CMD_SIZE];
data/fnfx-0.3/src/fnfxd_cfg.c:237: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 mixer[MIXER_SIZE];
data/fnfx-0.3/src/fnfxd_cfg.c:249:32:  [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).
                mixer_device = fopen(cfg->mixer.device, "r+");
data/fnfx-0.3/src/fnfxd_cfg.c:280: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 defaults[LINE_SIZE];
data/fnfx-0.3/src/fnfxd_cfg.c:314: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 line[LINE_SIZE];
data/fnfx-0.3/src/fnfxd_cfg.c:316: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 ((f = fopen(KEYMAP, "r"))) {
data/fnfx-0.3/src/fnfxd_cfg.c:335: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 ((f = fopen(CONFIGFILE, "r"))) {
data/fnfx-0.3/src/fnfxd_cmds.c:88:17:  [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).
    int mixer = open(cfg->mixer.device, O_RDONLY);
data/fnfx-0.3/src/fnfxd_cmds.c:101:17:  [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).
    int mixer = open(cfg->mixer.device, O_RDWR);
data/fnfx-0.3/src/fnfxd_cmds.c:172:9:  [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).
    f = fopen(ACPI_LCD, "r");
data/fnfx-0.3/src/fnfxd_cmds.c:188:9:  [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).
    f = fopen(ACPI_LCD, "r+");
data/fnfx-0.3/src/fnfxd_cmds.c:208:9:  [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).
    f = fopen(ACPI_LCD, "r+");
data/fnfx-0.3/src/fnfxd_cmds.c:228:9:  [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).
    f = fopen(ACPI_LCD, "r+");
data/fnfx-0.3/src/fnfxd_cmds.c:246:15:  [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).
    FILE *f = fopen(ACPI_FAN, "r");
data/fnfx-0.3/src/fnfxd_cmds.c:261:15:  [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).
    FILE *f = fopen(ACPI_FAN, "r+");
data/fnfx-0.3/src/fnfxd_cmds.c:280:15:  [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).
    FILE *f = fopen(ACPI_VIDEO, "r+");
data/fnfx-0.3/src/fnfxd_cmds.c:332:15:  [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).
    FILE *f = fopen(ACPI_VIDEO, "r");
data/fnfx-0.3/src/fnfxd_cmds.c:358:15:  [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).
    FILE *f = fopen(ACPI_SLEEP, "r+");
data/fnfx-0.3/src/fnfxd_cmds.c:361:6:  [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).
	f = fopen(ACPI_STATE, "r+");
data/fnfx-0.3/src/fnfxd_cmds.c:400:15:  [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).
    FILE *f = fopen(ACPI_CPU, "r+");
data/fnfx-0.3/src/fnfxd_cmds.c:420:15:  [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).
    FILE *f = fopen(ACPI_CPU, "r");
data/fnfx-0.3/src/fnfxd_cmds.c:435:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[64];
data/fnfx-0.3/src/fnfxd_cmds.c:437:15:  [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).
    FILE *f = fopen(ACPI_BLUETOOTH, "r+");
data/fnfx-0.3/src/fnfxd_cmds.c:462:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[64];
data/fnfx-0.3/src/fnfxd_cmds.c:464:15:  [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).
    FILE *f = fopen(ACPI_BLUETOOTH, "r");
data/fnfx-0.3/src/fnfxd_init.c:127:9:  [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).
    f = fopen(PIDFILE, "r+");
data/fnfx-0.3/src/fnfxd_init.c:181: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((config->shmem.addr + DCFG_OFFSET), (void *) config,
data/fnfx-0.3/src/fnfxd_init.c:216:9:  [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).
    f = fopen(PIDFILE, "w");
data/fnfx-0.3/src/fnfxd_init.c:242:11:  [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 *acpi_proc_keys[10] = {
data/fnfx-0.3/src/fnfxd_init.c:256: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).
        if ((f = fopen(acpi_proc_keys[i], "r+"))) {
data/fnfx-0.3/src/fnfx_cfg.c:75: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).
        strlen(daemon_cfg->keymap.fnkey[i].client_command)) {
data/fnfx-0.3/src/fnfx_cfg.c:180: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).
            if ((strlen(fnkey_descr)) && (strlen(command))) {
data/fnfx-0.3/src/fnfx_cfg.c:180:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if ((strlen(fnkey_descr)) && (strlen(command))) {
data/fnfx-0.3/src/fnfx_cfg.c:185:27:  [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).
                          strlen(fnkey_descr)))) {
data/fnfx-0.3/src/fnfx_cfg.c:186: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).
                        if (strlen(command)) {
data/fnfx-0.3/src/fnfx_cfg.c:193:29:  [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(daemon_cfg->keymap.fnkey[i].client_command,
data/fnfx-0.3/src/fnfx_cfg.c:261:21:  [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(daemon_cfg->keymap.fnkey[i].client_command, "");
data/fnfx-0.3/src/fnfx_cfg.c:279:21:  [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(daemon_cfg->keymap.fnkey[i].client_command, "");
data/fnfx-0.3/src/fnfx_cfg.c:297:21:  [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(daemon_cfg->keymap.fnkey[i].client_command, "");
data/fnfx-0.3/src/fnfx_cfg.c:322: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).
            strlen(daemon_cfg->keymap.fnkey[i].client_command)) {
data/fnfx-0.3/src/fnfx_cfg.c:323:13:  [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(daemon_cfg->keymap.fnkey[i].client_command, "");
data/fnfx-0.3/src/fnfx_cfg.c:325: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).
            if (strlen(daemon_cfg->keymap.fnkey[i].command))
data/fnfx-0.3/src/fnfx_misc.c:143: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).
            strlen(daemon_cfg->keymap.fnkey[i].client_command))
data/fnfx-0.3/src/fnfxd.c:236:13:  [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(300000);
data/fnfx-0.3/src/fnfxd_acpi.c:178:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    if (strlen(cfg->keymap.fnkey[fnkey_pos].client_command)) {
data/fnfx-0.3/src/fnfxd_cfg.c:117:3:  [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).
		strlen(cfg->keymap.fnkey[i].descr));
data/fnfx-0.3/src/fnfxd_cfg.c:118: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).
            if (!strlen(cfg->keymap.fnkey[i].descr))
data/fnfx-0.3/src/fnfxd_cfg.c:206:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                      strlen(fnkey_descr)))) {
data/fnfx-0.3/src/fnfxd_cfg.c:207:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    if (strlen(command)) {
data/fnfx-0.3/src/fnfxd_cfg.c:216:25:  [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(cfg->keymap.fnkey[i].command, "");
data/fnfx-0.3/src/fnfxd_cfg.c:247: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).
            if (strlen(mixer)) {
data/fnfx-0.3/src/fnfxd_cfg.c:290: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).
            if (strlen(defaults)) {
data/fnfx-0.3/src/fnfxd_cfg.c:374:21:  [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(cfg->keymap.fnkey[i].command, "");
data/fnfx-0.3/src/fnfxd_cfg.c:388:21:  [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(cfg->keymap.fnkey[i].command, "");
data/fnfx-0.3/src/fnfxd_cfg.c:403:21:  [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(cfg->keymap.fnkey[i].command, "");
data/fnfx-0.3/src/fnfxd_cfg.c:426: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).
            strlen(cfg->keymap.fnkey[i].client_command)) {
data/fnfx-0.3/src/fnfxd_cfg.c:427:13:  [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(cfg->keymap.fnkey[i].client_command, "");
data/fnfx-0.3/src/fnfxd_cfg.c:429: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).
            if (strlen(cfg->keymap.fnkey[i].command))

ANALYSIS SUMMARY:

Hits = 98
Lines analyzed = 3244 in approximately 0.13 seconds (25853 lines/second)
Physical Source Lines of Code (SLOC) = 1811
Hits@level = [0]  52 [1]  28 [2]  43 [3]   3 [4]  24 [5]   0
Hits@level+ = [0+] 150 [1+]  98 [2+]  70 [3+]  27 [4+]  24 [5+]   0
Hits/KSLOC@level+ = [0+] 82.8272 [1+] 54.1137 [2+] 38.6527 [3+] 14.9089 [4+] 13.2523 [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.