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/pidgin-festival-2.4/src/festival.c

FINAL RESULTS:

data/pidgin-festival-2.4/src/festival.c:94:17:  [4] (shell) popen:
  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.
      which_pf= popen("which artsdsp 2>/dev/null","r");
data/pidgin-festival-2.4/src/festival.c:96:17:  [4] (shell) popen:
  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.
      which_pf= popen("which esddsp 2>/dev/null","r");
data/pidgin-festival-2.4/src/festival.c:98:17:  [4] (shell) popen:
  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.
      which_pf= popen("which aoss 2>/dev/null","r");
data/pidgin-festival-2.4/src/festival.c:100:17:  [4] (shell) popen:
  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.
      which_pf= popen("which artsdsp 2>/dev/null","r");
data/pidgin-festival-2.4/src/festival.c:362: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(prev_alias, alias);
data/pidgin-festival-2.4/src/festival.c:526:13:  [4] (shell) popen:
  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.
  which_pf= popen("which festival 2>/dev/null","r");
data/pidgin-festival-2.4/src/festival.c:537:16:  [4] (shell) popen:
  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.
  festival_pf= popen(proc,"w");
data/pidgin-festival-2.4/src/festival.c:60: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 prev_alias[80];
data/pidgin-festival-2.4/src/festival.c:92: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 sndserver[1024];
data/pidgin-festival-2.4/src/festival.c:136:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char url_buf[BUF_LEN * 4];
data/pidgin-festival-2.4/src/festival.c:463: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 sd[8];
data/pidgin-festival-2.4/src/festival.c:464: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(sd,"%2.1f",duration);
data/pidgin-festival-2.4/src/festival.c:525:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[1024];
data/pidgin-festival-2.4/src/festival.c:533:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char proc[1024];
data/pidgin-festival-2.4/src/festival.c:101:5:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    fscanf(which_pf,"%1023s",sndserver);
data/pidgin-festival-2.4/src/festival.c:354:7:  [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(stripped) <= purple_prefs_get_int("/plugins/gtk/festival/speaker/maxlength")) {
data/pidgin-festival-2.4/src/festival.c:527:3:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  fscanf(which_pf,"%1023s",line);

ANALYSIS SUMMARY:

Hits = 17
Lines analyzed = 812 in approximately 0.04 seconds (18778 lines/second)
Physical Source Lines of Code (SLOC) = 649
Hits@level = [0]   4 [1]   3 [2]   7 [3]   0 [4]   7 [5]   0
Hits@level+ = [0+]  21 [1+]  17 [2+]  14 [3+]   7 [4+]   7 [5+]   0
Hits/KSLOC@level+ = [0+] 32.3575 [1+] 26.1941 [2+] 21.5716 [3+] 10.7858 [4+] 10.7858 [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.