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/ffe-0.3.9/src/parserc.c
Examining data/ffe-0.3.9/src/ffe.c
Examining data/ffe-0.3.9/src/xmalloc.c
Examining data/ffe-0.3.9/src/anonymize.c
Examining data/ffe-0.3.9/src/ffe.h
Examining data/ffe-0.3.9/src/level.c
Examining data/ffe-0.3.9/src/execute.c
Examining data/ffe-0.3.9/src/endian.c

FINAL RESULTS:

data/ffe-0.3.9/src/execute.c:228:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
       sprintf(command,ffe_open,file);
data/ffe-0.3.9/src/execute.c:235:14:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
          if(execl(SHELL_CMD, "sh", "-c", command, NULL) == -1) panic("Starting a shell with execl failed",command,strerror(errno));
data/ffe-0.3.9/src/execute.c:1339:14:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
          if(execl(SHELL_CMD, "sh", "-c", p->command, NULL) == -1) panic("Starting a shell with execl failed",p->command,strerror(errno));
data/ffe-0.3.9/src/execute.c:1529:29:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                            sprintf(pb,pf,(int) *(int8_t *) data);
data/ffe-0.3.9/src/execute.c:1533:29:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                            sprintf(pb,pf,(int) *(int16_t *) data);
data/ffe-0.3.9/src/execute.c:1537:29:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                            sprintf(pb,pf,(long int) *(int32_t *) data);
data/ffe-0.3.9/src/execute.c:1541:29:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                            sprintf(pb,pf,(long long int) *(int64_t *) data);
data/ffe-0.3.9/src/execute.c:1551:29:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                            sprintf(pb,pf,(unsigned int) *(uint8_t *) data);
data/ffe-0.3.9/src/execute.c:1555:29:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                            sprintf(pb,pf,(unsigned int) *(uint16_t *) data);
data/ffe-0.3.9/src/execute.c:1559:29:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                            sprintf(pb,pf,(unsigned long int) *(uint32_t *) data);
data/ffe-0.3.9/src/execute.c:1563:29:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                            sprintf(pb,pf,(unsigned long long int) *(uint64_t *) data);
data/ffe-0.3.9/src/execute.c:1843:13:  [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(conv_buffer,CONV_BUF_SIZE,f->conversion,atoi(start));
data/ffe-0.3.9/src/execute.c:1846:13:  [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(conv_buffer,CONV_BUF_SIZE,f->conversion,atol(start));
data/ffe-0.3.9/src/execute.c:1849:13:  [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(conv_buffer,CONV_BUF_SIZE,f->conversion,atoll(start));
data/ffe-0.3.9/src/execute.c:1853:13:  [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(conv_buffer,CONV_BUF_SIZE,f->conversion,atof(start));
data/ffe-0.3.9/src/execute.c:1856:13:  [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(conv_buffer,CONV_BUF_SIZE,f->conversion,strtold(start,NULL));
data/ffe-0.3.9/src/execute.c:1861:13:  [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(conv_buffer,CONV_BUF_SIZE,f->conversion,start);
data/ffe-0.3.9/src/ffe.c:183:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(result,home);
data/ffe-0.3.9/src/ffe.c:184:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat(result,PATH_SEPARATOR_STRING);
data/ffe-0.3.9/src/ffe.c:185:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat(result,file);
data/ffe-0.3.9/src/ffe.c:927:14:  [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(s,name);
data/ffe-0.3.9/src/ffe.c:929:14:  [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(s,value);
data/ffe-0.3.9/src/ffe.c:963:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(file_names,f->name);
data/ffe-0.3.9/src/parserc.c:338:12:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        if(execl(SHELL_CMD, "sh", "-c", command, NULL) == -1) panic("Starting a shell with execl failed",command,strerror(errno));
data/ffe-0.3.9/src/parserc.c:359:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(command,cs_temp_file);
data/ffe-0.3.9/src/parserc.c:360:8:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if(system(command) == -1) panic("Command failed",command,strerror(errno));
data/ffe-0.3.9/src/parserc.c:847:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(r,home);
data/ffe-0.3.9/src/parserc.c:848:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(r,&path[1]);
data/ffe-0.3.9/src/parserc.c:1404:29:  [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(anon_name,values[1]);
data/ffe-0.3.9/src/ffe.c:169:12:  [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.
    home = getenv("HOME");
data/ffe-0.3.9/src/ffe.c:173:16:  [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.
        home = getenv("FFE_HOME");
data/ffe-0.3.9/src/ffe.c:176:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
            home = getenv("USERPROFILE");
data/ffe-0.3.9/src/ffe.c:924:12:  [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(getenv(name) == NULL)
data/ffe-0.3.9/src/ffe.c:1003:19:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((opt = getopt_long(argc,argv,short_opts,long_opts,NULL)) != -1)
data/ffe-0.3.9/src/ffe.c:1005:19:  [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 ((opt = getopt(argc,argv,short_opts)) != -1)
data/ffe-0.3.9/src/ffe.c:1130:16:  [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.
    ffe_open = getenv("FFEOPEN");
data/ffe-0.3.9/src/parserc.c:351:20:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
    cs_temp_file = tempnam(NULL,"ffe");
data/ffe-0.3.9/src/parserc.c:842:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *home = getenv("HOME");
data/ffe-0.3.9/src/anonymize.c:181:24:  [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(nbuffer,&buffer[f->bposition],copy_length);
data/ffe-0.3.9/src/anonymize.c:242: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(&buffer[f->bposition],scrambled_data,scramble_len);
data/ffe-0.3.9/src/anonymize.c:246: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(&buffer[f->bposition + quoted],scrambled_data,scramble_len);
data/ffe-0.3.9/src/anonymize.c:258:21:  [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[f->bposition],scrambled_data,scramble_len);
data/ffe-0.3.9/src/anonymize.c:380: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(hash,p,outlen);
data/ffe-0.3.9/src/anonymize.c:412:21:  [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 unsigned char hash[HASH_BUFFER_LEN]; 
data/ffe-0.3.9/src/anonymize.c:440:95:  [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).
            hash_length = md_hash(hash,normalized_length,normalized_field,a->key_length > 0 ? atoi(a->key) : 16);
data/ffe-0.3.9/src/anonymize.c:444:95:  [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).
            hash_length = md_hash(hash,normalized_length,normalized_field,a->key_length > 0 ? atoi(a->key) : 16);
data/ffe-0.3.9/src/anonymize.c:460: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(&normalized_field[a->start - 1],scramble,scramble_len);
data/ffe-0.3.9/src/anonymize.c:463: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(&normalized_field[normalized_length + a->start - scramble_len + 1],scramble,scramble_len);
data/ffe-0.3.9/src/endian.c:151: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(target,s,bytes);
data/ffe-0.3.9/src/execute.c:109: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 debug_file[128];
data/ffe-0.3.9/src/execute.c:223: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[1024];
data/ffe-0.3.9/src/execute.c:559: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(t,s,length);
data/ffe-0.3.9/src/execute.c:1014: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 num[64];
data/ffe-0.3.9/src/execute.c:1039: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(num,"%ld",current_file_lineno);
data/ffe-0.3.9/src/execute.c:1043: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(num,"%ld",current_total_lineno);
data/ffe-0.3.9/src/execute.c:1047: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(num,"%lld",current_offset);
data/ffe-0.3.9/src/execute.c:1051: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(num,"%lld",current_file_offset);
data/ffe-0.3.9/src/execute.c:1569: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(pb,"%f",(double) *(float *) data);
data/ffe-0.3.9/src/execute.c:1573: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(pb,"%f",(double) *(double *) data);
data/ffe-0.3.9/src/execute.c:1843:62:  [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).
            snprintf(conv_buffer,CONV_BUF_SIZE,f->conversion,atoi(start));
data/ffe-0.3.9/src/execute.c:1846:62:  [2] (integer) atol:
  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).
            snprintf(conv_buffer,CONV_BUF_SIZE,f->conversion,atol(start));
data/ffe-0.3.9/src/execute.c:1959:29:  [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(num,"%ld",current_file_lineno);
data/ffe-0.3.9/src/execute.c:1963:29:  [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(num,"%ld",current_total_lineno);
data/ffe-0.3.9/src/execute.c:1967:29:  [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(num,"%lld",current_offset);
data/ffe-0.3.9/src/execute.c:1971:29:  [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(num,"%lld",current_file_offset);
data/ffe-0.3.9/src/execute.c:1977:33:  [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(num,"%d",pf->f->position + (s->type[0] != SEPARATED ? 1 : 0));
data/ffe-0.3.9/src/execute.c:2622:5:  [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(debug_file,"ffe_error_%d.log",(int) getpid());
data/ffe-0.3.9/src/ffe.c:425: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 num[64];
data/ffe-0.3.9/src/ffe.c:551: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(num,"%d",ordinal);
data/ffe-0.3.9/src/ffe.h:308: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 type[3]; /* [0] = f,b or s,[1] = separator, [2] = asterisk or 0 */
data/ffe-0.3.9/src/parserc.c:79:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *values[100];            /* poister to option name and parameters */
data/ffe-0.3.9/src/parserc.c:358:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(command," > ");
data/ffe-0.3.9/src/parserc.c:361:11:  [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).
    ret = fopen(cs_temp_file,"r");
data/ffe-0.3.9/src/parserc.c:936: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 num[5];
data/ffe-0.3.9/src/parserc.c:1260: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 anon_name[100];
data/ffe-0.3.9/src/parserc.c:1650:43:  [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).
                            field_count = atoi(values[1]);
data/ffe-0.3.9/src/parserc.c:1682:54:  [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).
                            c_record->level->level = atoi(values[1]);
data/ffe-0.3.9/src/xmalloc.c:61:11:  [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).
    ret = fopen(name,mode);
data/ffe-0.3.9/src/execute.c:244:23:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          ungetchar = fgetc(ret);
data/ffe-0.3.9/src/execute.c:311:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            c = fgetc(input_fp);
data/ffe-0.3.9/src/execute.c:366:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        ret = strlen(orig_s);
data/ffe-0.3.9/src/execute.c:1765: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).
    int search_len = strlen(search);
data/ffe-0.3.9/src/execute.c:2019:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            lookup_len = strlen(lookup_value);
data/ffe-0.3.9/src/ffe.c:182:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            result = xmalloc(strlen(home) + strlen(file) + strlen(PATH_SEPARATOR_STRING) + 2);
data/ffe-0.3.9/src/ffe.c:182:45:  [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).
            result = xmalloc(strlen(home) + strlen(file) + strlen(PATH_SEPARATOR_STRING) + 2);
data/ffe-0.3.9/src/ffe.c:182:60:  [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).
            result = xmalloc(strlen(home) + strlen(file) + strlen(PATH_SEPARATOR_STRING) + 2);
data/ffe-0.3.9/src/ffe.c:731:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    e->value_len = strlen(e->value);
data/ffe-0.3.9/src/ffe.c:753: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).
            ccount = strlen(line);
data/ffe-0.3.9/src/ffe.c:926:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
             char *s = xmalloc(strlen(name)+strlen(value)+2);
data/ffe-0.3.9/src/ffe.c:926:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
             char *s = xmalloc(strlen(name)+strlen(value)+2);
data/ffe-0.3.9/src/ffe.c:928:14:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
             strcat(s,"=");
data/ffe-0.3.9/src/ffe.c:957: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).
        used += strlen(f->name) + 1;
data/ffe-0.3.9/src/ffe.c:964:29:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        if(f->next != NULL) strcat(file_names," ");
data/ffe-0.3.9/src/parserc.c:293:16:  [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(s))
data/ffe-0.3.9/src/parserc.c:353: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((size_t) (strlen(command) + 4 + strlen(cs_temp_file)) > command_len)
data/ffe-0.3.9/src/parserc.c:353:40:  [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((size_t) (strlen(command) + 4 + strlen(cs_temp_file)) > command_len)
data/ffe-0.3.9/src/parserc.c:355:33:  [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).
        command_len = (size_t) (strlen(command) + 4 + strlen(cs_temp_file));
data/ffe-0.3.9/src/parserc.c:355:55:  [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).
        command_len = (size_t) (strlen(command) + 4 + strlen(cs_temp_file));
data/ffe-0.3.9/src/parserc.c:390:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            c = getc(child);
data/ffe-0.3.9/src/parserc.c:393:28:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                while((c = getc(child)) == '\n');
data/ffe-0.3.9/src/parserc.c:412:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        c = getc(fp);
data/ffe-0.3.9/src/parserc.c:418:21:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                c = getc(fp);
data/ffe-0.3.9/src/parserc.c:844:63:  [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(*path == '~' && strncmp(&path[1],PATH_SEPARATOR_STRING,strlen(PATH_SEPARATOR_STRING)) == 0 && home != NULL)
data/ffe-0.3.9/src/parserc.c:846:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        r = xmalloc(strlen(home) + strlen(path));
data/ffe-0.3.9/src/parserc.c:846:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        r = xmalloc(strlen(home) + strlen(path));
data/ffe-0.3.9/src/parserc.c:886:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            line_len = strlen(line);
data/ffe-0.3.9/src/parserc.c:1385:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            c_field->length = strlen(c_field->const_data);

ANALYSIS SUMMARY:

Hits = 107
Lines analyzed = 7341 in approximately 0.20 seconds (37535 lines/second)
Physical Source Lines of Code (SLOC) = 6223
Hits@level = [0] 135 [1]  29 [2]  40 [3]   9 [4]  29 [5]   0
Hits@level+ = [0+] 242 [1+] 107 [2+]  78 [3+]  38 [4+]  29 [5+]   0
Hits/KSLOC@level+ = [0+] 38.888 [1+] 17.1943 [2+] 12.5341 [3+] 6.10638 [4+] 4.66013 [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.