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/daisy-player-12.1/src/daisy-player.c
Examining data/daisy-player-12.1/src/ncx.c
Examining data/daisy-player-12.1/src/opf.c
Examining data/daisy-player-12.1/src/daisy2.02.c
Examining data/daisy-player-12.1/src/playfile.c
Examining data/daisy-player-12.1/src/paranoia.c
Examining data/daisy-player-12.1/src/daisy3.c
Examining data/daisy-player-12.1/src/pactl/src/strbuf.h
Examining data/daisy-player-12.1/src/pactl/src/strlist.h
Examining data/daisy-player-12.1/src/pactl/src/i18n.h
Examining data/daisy-player-12.1/src/pactl/src/core-util.c
Examining data/daisy-player-12.1/src/pactl/src/core-util.h
Examining data/daisy-player-12.1/src/pactl/src/core-error.h
Examining data/daisy-player-12.1/src/pactl/src/pactl-set-cmd.c
Examining data/daisy-player-12.1/src/pactl/src/socket.h
Examining data/daisy-player-12.1/src/pactl/src/strbuf.c
Examining data/daisy-player-12.1/src/pactl/src/macro.h
Examining data/daisy-player-12.1/src/pactl/src/pactl.c
Examining data/daisy-player-12.1/src/audiocd.c
Examining data/daisy-player-12.1/src/madplay/resample.c
Examining data/daisy-player-12.1/src/madplay/player.c
Examining data/daisy-player-12.1/src/madplay/audio.h
Examining data/daisy-player-12.1/src/madplay/global.h
Examining data/daisy-player-12.1/src/madplay/rgain.c
Examining data/daisy-player-12.1/src/madplay/crc.h
Examining data/daisy-player-12.1/src/madplay/version.h
Examining data/daisy-player-12.1/src/madplay/tag.c
Examining data/daisy-player-12.1/src/madplay/version.c
Examining data/daisy-player-12.1/src/madplay/resample.h
Examining data/daisy-player-12.1/src/madplay/crc.c
Examining data/daisy-player-12.1/src/madplay/audio.c
Examining data/daisy-player-12.1/src/madplay/audio_wave.c
Examining data/daisy-player-12.1/src/madplay/filter.h
Examining data/daisy-player-12.1/src/madplay/madtest.c
Examining data/daisy-player-12.1/src/madplay/tag.h
Examining data/daisy-player-12.1/src/madplay/filter.c
Examining data/daisy-player-12.1/src/madplay/rgain.h
Examining data/daisy-player-12.1/src/madplay/gettext.h
Examining data/daisy-player-12.1/src/madplay/madplay.c
Examining data/daisy-player-12.1/src/madplay/audio_cdda.c
Examining data/daisy-player-12.1/src/madplay/player.h
Examining data/daisy-player-12.1/src/gettext.h
Examining data/daisy-player-12.1/src/daisy.h
Examining data/daisy-player-12.1/src/common.c

FINAL RESULTS:

data/daisy-player-12.1/src/audiocd.c:30:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf (cd, "cddbget -c %s -I -d 2> /dev/null", misc->cd_dev);
data/daisy-player-12.1/src/audiocd.c:31:8:  [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.
   r = popen (cd, "r");
data/daisy-player-12.1/src/common.c:27:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
   if (access (xml_file, R_OK))
data/daisy-player-12.1/src/common.c:102:12:  [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.
   switch (system ("reset"));
data/daisy-player-12.1/src/common.c:133:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
         sprintf (path, "%s/%s", dir, namelist[n]->d_name);
data/daisy-player-12.1/src/common.c:135:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
         sprintf (path, "%s/%s", dir, namelist[n]->d_name);
data/daisy-player-12.1/src/common.c:138:10:  [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 (found, path);
data/daisy-player-12.1/src/common.c:153:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf (new_dir, "%s/%s", dir, namelist[n]->d_name);
data/daisy-player-12.1/src/common.c:155:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf (new_dir, "%s/%s", dir, namelist[n]->d_name);
data/daisy-player-12.1/src/common.c:183:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
         sprintf (found, "%s/%s\n", dir_name, entry->d_name);
data/daisy-player-12.1/src/common.c:196:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
         sprintf (path, "%s/%s", dir_name, entry->d_name);
data/daisy-player-12.1/src/common.c:198:10:  [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 (found, get_dir_content (misc, path, search_str));
data/daisy-player-12.1/src/common.c:216:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy (misc->ncx_name,
data/daisy-player-12.1/src/common.c:219:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy (misc->opf_name,
data/daisy-player-12.1/src/common.c:362:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf (misc->ncc_html, "%s/ncc.html", misc->daisy_mp);
data/daisy-player-12.1/src/common.c:391:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf (str, "%s/%s", misc->daisy_mp, namelist[n]->d_name);
data/daisy-player-12.1/src/common.c:555: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 (misc->cmd) != 0)
data/daisy-player-12.1/src/common.c:562:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf (str, "%s: %s\n", misc->cmd, strerror (e));
data/daisy-player-12.1/src/common.c:575:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf (my_attribute->class, "%s", attr);
data/daisy-player-12.1/src/common.c:937:35:  [4] (misc) cuserid:
  Exactly what cuserid() does is poorly defined (e.g., some systems use the
  effective uid, like Linux, while others like System V use the real uid).
  Thus, you can't trust what it does. It's certainly not portable (The
  cuserid function was included in the 1988 version of POSIX, but removed
  from the 1990 version). Also, if passed a non-null parameter, there's a
  risk of a buffer overflow if the passed-in buffer is not at least L_cuserid
  characters long (CWE-120). Use getpwuid(geteuid()) and extract the desired
  information instead.
      if (strcmp (grp->gr_mem[n], cuserid (NULL)) == 0)
data/daisy-player-12.1/src/common.c:960: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.
   if ((p = popen ("LANG=C /usr/bin/pactl list sinks", "r")) == NULL)
data/daisy-player-12.1/src/common.c:1003:35:  [4] (misc) cuserid:
  Exactly what cuserid() does is poorly defined (e.g., some systems use the
  effective uid, like Linux, while others like System V use the real uid).
  Thus, you can't trust what it does. It's certainly not portable (The
  cuserid function was included in the 1988 version of POSIX, but removed
  from the 1990 version). Also, if passed a non-null parameter, there's a
  risk of a buffer overflow if the passed-in buffer is not at least L_cuserid
  characters long (CWE-120). Use getpwuid(geteuid()) and extract the desired
  information instead.
      if (strcmp (grp->gr_mem[n], cuserid (NULL)) == 0)
data/daisy-player-12.1/src/common.c:1034: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.
      if ((p = popen ("LANGUAGE=C /usr/bin/pactl list sinks", "r")) == NULL)
data/daisy-player-12.1/src/common.c:1086: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 (sink_info[n] + 53, strcasestr (str, "Mute:"));
data/daisy-player-12.1/src/common.c:1097: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 (sink_info[n] + 63, strstr (str, "Volume:"));
data/daisy-player-12.1/src/common.c:1106: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 (sink_info[n], str + x);
data/daisy-player-12.1/src/daisy-player.c:474:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf (out_file, "%s/%s.wav", pw->pw_dir, label);
data/daisy-player-12.1/src/daisy-player.c:475:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
   while (access (out_file, R_OK) == 0)
data/daisy-player-12.1/src/daisy-player.c:512:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf (out_cdr, "%s/out.cdr", misc->tmp_dir);
data/daisy-player-12.1/src/daisy-player.c:514:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf (complete_cdr, "%s/complete.cdr", misc->tmp_dir);
data/daisy-player-12.1/src/daisy-player.c:537:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if (access (misc->current_audio_file, R_OK) == -1)
data/daisy-player-12.1/src/daisy-player.c:960:12:  [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.
   switch (system ("reset"));
data/daisy-player-12.1/src/daisy-player.c:976:12:  [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.
   switch (system (misc->cmd));
data/daisy-player-12.1/src/daisy-player.c:1349:19:  [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.
         switch  (system (misc->cmd));
data/daisy-player-12.1/src/daisy-player.c:1888:16:  [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 (misc->discinfo_title, misc->label);
data/daisy-player-12.1/src/daisy-player.c:1940:16:  [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 (daisy[i].label, misc->label);
data/daisy-player-12.1/src/daisy-player.c:2131:18:  [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.
         switch (system ("cddbget -c null > /dev/null 2>&1"))
data/daisy-player-12.1/src/daisy-player.c:2167:12:  [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.
   switch (system ("clear"));
data/daisy-player-12.1/src/daisy-player.c:2181:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if (access (argv[optind], R_OK) == -1)
data/daisy-player-12.1/src/daisy-player.c:2186:18:  [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.
         switch (system ("clear"));
data/daisy-player-12.1/src/daisy-player.c:2224:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf (misc.daisy_mp, "%s/%s",
data/daisy-player-12.1/src/daisy-player.c:2244:14:  [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 (misc.cmd) == 0x7f00)
data/daisy-player-12.1/src/daisy-player.c:2265:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf (misc.daisy_mp, "%s/%s", misc.tmp_dir, dirent->d_name);
data/daisy-player-12.1/src/daisy-player.c:2288:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if (access (misc.cd_dev, R_OK) == -1)
data/daisy-player-12.1/src/daisy-player.c:2320:15:  [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.
      switch (system (misc.cmd));
data/daisy-player-12.1/src/daisy-player.c:2375:27:  [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.
                  switch (system (misc.cmd));
data/daisy-player-12.1/src/daisy-player.c:2451:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if (access (DISCINFO_HTML, R_OK) == 0)
data/daisy-player-12.1/src/daisy-player.c:2456:14:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
         if (access (misc.ncc_html, R_OK) == 0)
data/daisy-player-12.1/src/daisy-player.c:2536:22:  [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 (daisy[i].last_id, my_attribute.id);
data/daisy-player-12.1/src/madplay/madplay.c:78:3:  [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, message, args);
data/daisy-player-12.1/src/madplay/player.c:228: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, format, args);
data/daisy-player-12.1/src/ncx.c:94:16:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
               sprintf (daisy[misc->current].smil_file, "%s/%s",
data/daisy-player-12.1/src/ncx.c:184:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf (daisy[misc->current].smil_file, "%s/%s",
data/daisy-player-12.1/src/opf.c:291:16:  [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 (misc->daisy_title, misc->label);
data/daisy-player-12.1/src/pactl/src/core-util.c:309:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    ret = vsnprintf(str, size, format, ap);
data/daisy-player-12.1/src/pactl/src/pactl.c:170:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (str, _("%s"),
data/daisy-player-12.1/src/pactl/src/pactl.c:189:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (sink_info[i->index] + 52, " Muted: %3s Volume:%s",
data/daisy-player-12.1/src/pactl/src/strbuf.c:171:13:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        r = vsnprintf(CHUNK_TO_TEXT(c), size, format, ap);
data/daisy-player-12.1/src/daisy-player.c:2101:18:  [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, "c:d:hijnvyONT")) != -1)
data/daisy-player-12.1/src/madplay/audio.c:213:29:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  mad_fixed_t output, mask, random;
data/daisy-player-12.1/src/madplay/audio.c:233:26:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  random  = prng(dither->random);
data/daisy-player-12.1/src/madplay/audio.c:234:14:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  output += (random & mask) - (dither->random & mask);
data/daisy-player-12.1/src/madplay/audio.c:234:40:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  output += (random & mask) - (dither->random & mask);
data/daisy-player-12.1/src/madplay/audio.c:236:20:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  dither->random = random;
data/daisy-player-12.1/src/madplay/audio.h:83:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  mad_fixed_t random;
data/daisy-player-12.1/src/pactl/src/core-util.c:436:9:  [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.
    e = getenv("XDG_SESSION_ID");
data/daisy-player-12.1/src/pactl/src/core-util.c:562:19:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
        if (!(r = realpath(path, NULL)))
data/daisy-player-12.1/src/pactl/src/core-util.c:575:19:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
        if (!(t = realpath(path, path_buf))) {
data/daisy-player-12.1/src/audiocd.c:54:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         char l[MAX_STR + 1];
data/daisy-player-12.1/src/audiocd.c:110: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 (daisy[misc->current].label, "Track %2d", misc->current + 1);
data/daisy-player-12.1/src/common.c:22: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 sink_info[10][100];
data/daisy-player-12.1/src/common.c:39:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char str[MAX_STR];
data/daisy-player-12.1/src/common.c:48:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char str[MAX_STR];
data/daisy-player-12.1/src/common.c:76:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         char hex[10];
data/daisy-player-12.1/src/common.c:570:4:  [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 attr[MAX_STR - 1];
data/daisy-player-12.1/src/common.c:596:31:  [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).
      misc->elapsed_seconds = atoi (attr);
data/daisy-player-12.1/src/common.c:621: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).
      misc->current = atoi (attr);
data/daisy-player-12.1/src/common.c:625:21:  [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).
      misc->level = atoi ((char *) attr);
data/daisy-player-12.1/src/common.c:634:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char name[MAX_STR], content[MAX_STR];
data/daisy-player-12.1/src/common.c:660:30:  [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).
         misc->total_pages = atoi (content);
data/daisy-player-12.1/src/common.c:666:30:  [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).
         misc->total_pages = atoi (content);
data/daisy-player-12.1/src/common.c:668:30:  [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).
         misc->total_pages = atoi (content);
data/daisy-player-12.1/src/common.c:670:30:  [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).
         misc->total_pages = atoi (content);
data/daisy-player-12.1/src/common.c:699:33:  [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).
      misc->pulseaudio_device = atoi (attr);
data/daisy-player-12.1/src/common.c:784:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char str[MAX_STR];
data/daisy-player-12.1/src/common.c:849:4:  [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 pn[15];
data/daisy-player-12.1/src/common.c:865:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   if (atoi (pn) == 0 || atoi (pn) > misc->total_pages)
data/daisy-player-12.1/src/common.c:865:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   if (atoi (pn) == 0 || atoi (pn) > misc->total_pages)
data/daisy-player-12.1/src/common.c:883:47:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      if (daisy[misc->current].page_number == atoi (pn))
data/daisy-player-12.1/src/common.c:895:46:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      if (daisy[misc->playing].page_number < atoi (pn))
data/daisy-player-12.1/src/common.c:904:40:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      if (misc->current_page_number == atoi (pn))
data/daisy-player-12.1/src/common.c:912: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).
      if (misc->current_page_number > atoi (pn))
data/daisy-player-12.1/src/common.c:979:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      if (atoi (str + 6) == misc->pulseaudio_device)
data/daisy-player-12.1/src/common.c:1060:17:  [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).
                atoi (sink_info[n]) == misc->pulseaudio_device)
data/daisy-player-12.1/src/common.c:1081: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 (sink_info[n] + 4, str, len);
data/daisy-player-12.1/src/common.c:1128:36:  [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).
         misc->pulseaudio_device = atoi (sink_info[current_sink]);
data/daisy-player-12.1/src/common.c:1143: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 dev[5];
data/daisy-player-12.1/src/common.c:1146: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 (dev, "%d", atoi (sink_info[current_sink]));
data/daisy-player-12.1/src/common.c:1146:33:  [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).
            sprintf (dev, "%d", atoi (sink_info[current_sink]));
data/daisy-player-12.1/src/common.c:1160: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 dev[5];
data/daisy-player-12.1/src/common.c:1163: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 (dev, "%d", atoi (sink_info[current_sink]));
data/daisy-player-12.1/src/common.c:1163:33:  [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).
            sprintf (dev, "%d", atoi (sink_info[current_sink]));
data/daisy-player-12.1/src/common.c:1172: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 dev[5];
data/daisy-player-12.1/src/common.c:1175: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 (dev, "%d", atoi (sink_info[current_sink]));
data/daisy-player-12.1/src/common.c:1175:33:  [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).
            sprintf (dev, "%d", atoi (sink_info[current_sink]));
data/daisy-player-12.1/src/daisy-player.c:26:4:  [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[MAX_CMD];
data/daisy-player-12.1/src/daisy-player.c:58:4:  [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 begin_str[MAX_STR], *begin, *orig_begin, *end;
data/daisy-player-12.1/src/daisy-player.c:110:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   return atoi (h) * 3600 + atoi (m) * 60 + (float) atof (s);
data/daisy-player-12.1/src/daisy-player.c:110:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   return atoi (h) * 3600 + atoi (m) * 60 + (float) atof (s);
data/daisy-player-12.1/src/daisy-player.c:392:4:  [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 tempo_str[15], begin[20], duration[20];
data/daisy-player-12.1/src/daisy-player.c:408:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char dev[5];
data/daisy-player-12.1/src/daisy-player.c:416: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 (dev, "%d", misc->pulseaudio_device);
data/daisy-player-12.1/src/daisy-player.c:433:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char str[MAX_STR];
data/daisy-player-12.1/src/daisy-player.c:442:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char str[MAX_STR];
data/daisy-player-12.1/src/daisy-player.c:469:4:  [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 begin[20], duration[20];
data/daisy-player-12.1/src/daisy-player.c:478:7:  [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 (out_file, ".wav");
data/daisy-player-12.1/src/daisy-player.c:515:8:  [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).
   w = open (complete_cdr, O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
data/daisy-player-12.1/src/daisy-player.c:522:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buffer[BUF_SIZE];
data/daisy-player-12.1/src/daisy-player.c:548:11:  [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).
      r = open (out_cdr, O_RDONLY);
data/daisy-player-12.1/src/daisy-player.c:595:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char dev[5];
data/daisy-player-12.1/src/daisy-player.c:597: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 (dev, "%d", misc->pulseaudio_device);
data/daisy-player-12.1/src/daisy-player.c:906:4:  [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[MAX_STR];
data/daisy-player-12.1/src/daisy-player.c:933:4:  [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[MAX_STR];
data/daisy-player-12.1/src/daisy-player.c:1057:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         char dev[5];
data/daisy-player-12.1/src/daisy-player.c:1059:10:  [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 (dev, "%d", misc->pulseaudio_device);
data/daisy-player-12.1/src/daisy-player.c:1090:4:  [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 time_str[10];
data/daisy-player-12.1/src/daisy-player.c:1143:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char dev[5];
data/daisy-player-12.1/src/daisy-player.c:1145: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 (dev, "%d", misc->pulseaudio_device);
data/daisy-player-12.1/src/daisy-player.c:1250:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char dev[5];
data/daisy-player-12.1/src/daisy-player.c:1252: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 (dev, "%d", misc->pulseaudio_device);
data/daisy-player-12.1/src/daisy-player.c:1291: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 dev[5];
data/daisy-player-12.1/src/daisy-player.c:1293: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 (dev, "%d", misc->pulseaudio_device);
data/daisy-player-12.1/src/daisy-player.c:1404:16:  [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 dev[5];
data/daisy-player-12.1/src/daisy-player.c:1406:16:  [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 (dev, "%d", misc->pulseaudio_device);
data/daisy-player-12.1/src/daisy-player.c:1448: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 pa[25];
data/daisy-player-12.1/src/daisy-player.c:1451: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 (pa, "%d", misc->pulseaudio_device);
data/daisy-player-12.1/src/daisy-player.c:1523: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 dev[5];
data/daisy-player-12.1/src/daisy-player.c:1566: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 (dev, "%d", misc->pulseaudio_device);
data/daisy-player-12.1/src/daisy-player.c:1582: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 dev[5];
data/daisy-player-12.1/src/daisy-player.c:1612: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 (dev, "%d", misc->pulseaudio_device);
data/daisy-player-12.1/src/daisy-player.c:1687: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 pa[25];
data/daisy-player-12.1/src/daisy-player.c:1690: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 (pa, "%d", misc->pulseaudio_device);
data/daisy-player-12.1/src/daisy-player.c:1699: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 pa[25];
data/daisy-player-12.1/src/daisy-player.c:1702: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 (pa, "%d", misc->pulseaudio_device);
data/daisy-player-12.1/src/daisy-player.c:1813: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 (! (proc = fopen ("/proc/mounts", "r")))
data/daisy-player-12.1/src/daisy-player.c:1843:4:  [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[MAX_STR];
data/daisy-player-12.1/src/daisy-player.c:1867:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char str[MAX_STR];
data/daisy-player-12.1/src/daisy-player.c:1911: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 str[MAX_STR];
data/daisy-player-12.1/src/daisy-player.c:2037:4:  [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[MAX_STR], DISCINFO_HTML[MAX_STR];
data/daisy-player-12.1/src/daisy-player.c:2110:35:  [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).
         misc.pulseaudio_device = atoi (optarg);
data/daisy-player-12.1/src/daisy-player.c:2422:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char str[MAX_STR];
data/daisy-player-12.1/src/daisy-player.c:2569:27:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
   if ((misc.tmp_wav_fd = mkstemp (misc.tmp_wav)) == 01)
data/daisy-player-12.1/src/daisy.h:82:4:  [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 class[MAX_STR], label[MAX_STR + 1];
data/daisy-player-12.1/src/daisy.h:83:4:  [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 first_id[MAX_STR], last_id[MAX_STR];
data/daisy-player-12.1/src/daisy.h:92:4:  [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 class[MAX_STR],
data/daisy-player-12.1/src/daisy.h:136:4:  [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 ncc_html[MAX_STR], ncc_totalTime[MAX_STR], ocr_language[5];
data/daisy-player-12.1/src/daisy.h:137:4:  [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 daisy_version[MAX_STR], daisy_title[MAX_STR], daisy_language[MAX_STR];
data/daisy-player-12.1/src/daisy.h:139:4:  [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 tag[MAX_TAG], *label;
data/daisy-player-12.1/src/daisy.h:141:4:  [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 bookmark_title[MAX_STR], search_str[30];
data/daisy-player-12.1/src/daisy.h:142:4:  [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 cd_dev[MAX_STR];
data/daisy-player-12.1/src/daisy.h:143:4:  [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 cddb_flag, opf_name[MAX_STR], ncx_name[MAX_STR];
data/daisy-player-12.1/src/daisy.h:144:4:  [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 *current_audio_file, tmp_wav[MAX_STR + 1], mcn[MAX_STR];
data/daisy-player-12.1/src/daisy.h:145:4:  [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 xmlversion[MAX_STR + 1];
data/daisy-player-12.1/src/daisy.h:146:4:  [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[MAX_CMD + 1], str[MAX_STR + 1];
data/daisy-player-12.1/src/daisy.h:157:4:  [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 discinfo_title[MAX_STR + 1];
data/daisy-player-12.1/src/daisy2.02.c:45:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char str[MAX_STR];
data/daisy-player-12.1/src/daisy2.02.c:77:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      if (*misc->label && atoi (misc->label) != 0)
data/daisy-player-12.1/src/daisy2.02.c:81:38:  [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).
         misc->current_page_number = atoi (misc->label);
data/daisy-player-12.1/src/daisy2.02.c:92:38:  [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).
         misc->current_page_number = atoi (misc->label);
data/daisy-player-12.1/src/daisy2.02.c:130:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         char str[MAX_STR];
data/daisy-player-12.1/src/daisy2.02.c:305:33:  [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).
         daisy[i].page_number = atoi (misc->label);
data/daisy-player-12.1/src/daisy3.c:79:44:  [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).
               misc->current_page_number = atoi (misc->label);
data/daisy-player-12.1/src/daisy3.c:94:44:  [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).
               misc->current_page_number = atoi (misc->label);
data/daisy-player-12.1/src/daisy3.c:176:38:  [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).
         misc->current_page_number = atoi (misc->label);
data/daisy-player-12.1/src/daisy3.c:232:38:  [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).
         misc->current_page_number = atoi (misc->label);
data/daisy-player-12.1/src/gettext.h:218: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 msg_ctxt_id[msgctxt_len + msgid_len];
data/daisy-player-12.1/src/gettext.h:220:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[1024];
data/daisy-player-12.1/src/gettext.h:229: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 (msg_ctxt_id, msgctxt, msgctxt_len - 1);
data/daisy-player-12.1/src/gettext.h:231: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 (msg_ctxt_id + msgctxt_len, msgid, msgid_len);
data/daisy-player-12.1/src/gettext.h:266: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 msg_ctxt_id[msgctxt_len + msgid_len];
data/daisy-player-12.1/src/gettext.h:268:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[1024];
data/daisy-player-12.1/src/gettext.h:277: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 (msg_ctxt_id, msgctxt, msgctxt_len - 1);
data/daisy-player-12.1/src/gettext.h:279: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 (msg_ctxt_id + msgctxt_len, msgid, msgid_len);
data/daisy-player-12.1/src/madplay/audio_cdda.c:44: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).
    outfile = fopen(init->path, "wb");
data/daisy-player-12.1/src/madplay/audio_cdda.c:91:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[MAX_NSAMPLES * 2 * 2];
data/daisy-player-12.1/src/madplay/audio_cdda.c:107: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.
    unsigned char padding[CD_FRAMESZ * 2 * 2];
data/daisy-player-12.1/src/madplay/audio_wave.c:51: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).
    outfile = fopen(init->path, "wb");
data/daisy-player-12.1/src/madplay/audio_wave.c:104:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char chunk[8 + 16];
data/daisy-player-12.1/src/madplay/audio_wave.c:129:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(&chunk[0], "fmt ", 4);		/* chunkID */
data/daisy-player-12.1/src/madplay/audio_wave.c:193:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[MAX_NSAMPLES * 4 * 2];
data/daisy-player-12.1/src/madplay/audio_wave.c:213:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char dword[4];
data/daisy-player-12.1/src/madplay/global.h:48:5:  [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 open(char const *, int, ...);
data/daisy-player-12.1/src/madplay/player.c:325: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(input->data, input->fdm + posn, left);
data/daisy-player-12.1/src/madplay/player.c:873:24:  [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).
  player->input.fd   = open(file, O_RDONLY | O_BINARY);
data/daisy-player-12.1/src/madplay/resample.c:77: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(new, old, nsamples * sizeof(mad_fixed_t));
data/daisy-player-12.1/src/madplay/tag.c:160: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[6];
data/daisy-player-12.1/src/madplay/tag.c:164: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(str, version, 5);
data/daisy-player-12.1/src/madplay/tag.h:46:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char toc[100];  /* 100-point seek table */
data/daisy-player-12.1/src/madplay/tag.h:149: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 encoder[21];
data/daisy-player-12.1/src/opf.c:77: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 (daisy[i].label, "%d", i + 1);
data/daisy-player-12.1/src/pactl/src/core-util.c:61: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(b, s, k);
data/daisy-player-12.1/src/pactl/src/core-util.c:102: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[64];
data/daisy-player-12.1/src/pactl/src/core-util.c:112: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(str, v, (size_t) len + 1);
data/daisy-player-12.1/src/pactl/src/pactl-set-cmd.c:13: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 sink_info[10][100];
data/daisy-player-12.1/src/pactl/src/pactl-set-cmd.c:25: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 (sink_info, pactl (argv[1], argv[2], argv[3]), 1000);
data/daisy-player-12.1/src/pactl/src/pactl.c:45: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.
extern char sink_info[10][100];
data/daisy-player-12.1/src/pactl/src/pactl.c:143: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/daisy-player-12.1/src/pactl/src/strbuf.c:81: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(e, CHUNK_TO_TEXT(c), c->length);
data/daisy-player-12.1/src/pactl/src/strbuf.c:150: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(CHUNK_TO_TEXT(c), t, l);
data/daisy-player-12.1/src/paranoia.c:72:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char path[MAX_STR + 1];
data/daisy-player-12.1/src/playfile.c:72: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 *args[10];
data/daisy-player-12.1/src/audiocd.c:29: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).
   cd = malloc ( strlen (misc->cd_dev) + 50);
data/daisy-player-12.1/src/audiocd.c:39:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         strncpy (misc->bookmark_title, strchr (str, '=') + 1, MAX_STR - 1);
data/daisy-player-12.1/src/audiocd.c:46:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         strncpy (misc->daisy_title, strchr (str, '=') + 1, MAX_STR - 1);
data/daisy-player-12.1/src/audiocd.c:60:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         strncpy (daisy[i].label, strchr (str, '=') + 1, 80);
data/daisy-player-12.1/src/audiocd.c:65:14:  [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 (daisy[i].label) - daisy[i].x >= 65)
data/daisy-player-12.1/src/audiocd.c:111: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).
      x = strlen (dir) + 25;
data/daisy-player-12.1/src/common.c:72:26:  [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).
   for (i = 0; i < (int) strlen (file) - 2; i++)
data/daisy-player-12.1/src/common.c:131: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).
      path = malloc (strlen (dir) + strlen (namelist[n]->d_name) + 2);
data/daisy-player-12.1/src/common.c:131:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      path = malloc (strlen (dir) + strlen (namelist[n]->d_name) + 2);
data/daisy-player-12.1/src/common.c:132: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).
      if (dir[strlen (dir) - 1] == '/')
data/daisy-player-12.1/src/common.c:151:28:  [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).
         new_dir = malloc (strlen (dir) + strlen (namelist[n]->d_name) + 2);
data/daisy-player-12.1/src/common.c:151: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).
         new_dir = malloc (strlen (dir) + strlen (namelist[n]->d_name) + 2);
data/daisy-player-12.1/src/common.c:152: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 (dir[strlen (dir) - 1] != '/')
data/daisy-player-12.1/src/common.c:182:26:  [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).
         found = malloc (strlen (dir_name) + strlen (entry->d_name) + 5);
data/daisy-player-12.1/src/common.c:182:46:  [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).
         found = malloc (strlen (dir_name) + strlen (entry->d_name) + 5);
data/daisy-player-12.1/src/common.c:184: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).
         found[strlen (found) - 1] = 0;
data/daisy-player-12.1/src/common.c:195: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).
         path = malloc (strlen (dir_name) + strlen (entry->d_name) + 10);
data/daisy-player-12.1/src/common.c:195: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).
         path = malloc (strlen (dir_name) + strlen (entry->d_name) + 10);
data/daisy-player-12.1/src/common.c:291:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
   strncpy (misc->daisy_version, "2.02", 4);
data/daisy-player-12.1/src/common.c:390: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).
      str = malloc (strlen (misc->daisy_mp) + strlen (namelist[n]->d_name) + 5);
data/daisy-player-12.1/src/common.c:390: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).
      str = malloc (strlen (misc->daisy_mp) + strlen (namelist[n]->d_name) + 5);
data/daisy-player-12.1/src/common.c:448:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
      strncpy (misc->daisy_version, "3", 2);
data/daisy-player-12.1/src/common.c:449:8:  [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 (misc->ncx_name) < 4)
data/daisy-player-12.1/src/common.c:454:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
      strncpy (misc->daisy_version, "3", 2);
data/daisy-player-12.1/src/common.c:455:8:  [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 (misc->opf_name) < 4)
data/daisy-player-12.1/src/common.c:561: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).
      str = malloc (strlen (misc->cmd) + strlen (strerror (e)) + 10);
data/daisy-player-12.1/src/common.c:561: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).
      str = malloc (strlen (misc->cmd) + strlen (strerror (e)) + 10);
data/daisy-player-12.1/src/common.c:579:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (my_attribute->clip_begin, attr, MAX_STR - 1);
data/daisy-player-12.1/src/common.c:583:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (my_attribute->clip_begin, attr, MAX_STR - 1);
data/daisy-player-12.1/src/common.c:587:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (my_attribute->clip_end, attr, MAX_STR - 1);
data/daisy-player-12.1/src/common.c:591:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (my_attribute->clip_end, attr, MAX_STR - 1);
data/daisy-player-12.1/src/common.c:600:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (my_attribute->href, attr, MAX_STR - 1);
data/daisy-player-12.1/src/common.c:629:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (my_attribute->media_type, attr, MAX_STR - 1);
data/daisy-player-12.1/src/common.c:637:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (attr, (char *) xmlTextReaderGetAttribute
data/daisy-player-12.1/src/common.c:640:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         strncpy (name, attr, MAX_STR - 1);
data/daisy-player-12.1/src/common.c:645:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         strncpy (content, attr, MAX_STR - 1);
data/daisy-player-12.1/src/common.c:647:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         strncpy (misc->daisy_version, content, MAX_STR - 1);
data/daisy-player-12.1/src/common.c:650:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         strncpy (misc->daisy_title, content, MAX_STR - 1);
data/daisy-player-12.1/src/common.c:651:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         strncpy (misc->bookmark_title, content, MAX_STR - 1);
data/daisy-player-12.1/src/common.c:674:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         strncpy (misc->ncc_totalTime, content, MAX_STR - 1);
data/daisy-player-12.1/src/common.c:682:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (my_attribute->playorder, attr, MAX_STR - 1);
data/daisy-player-12.1/src/common.c:694:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (my_attribute->smilref, attr, MAX_STR - 1);
data/daisy-player-12.1/src/common.c:703:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (misc->ocr_language, attr, 5);
data/daisy-player-12.1/src/common.c:707:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (misc->cd_dev, attr, MAX_STR - 1);
data/daisy-player-12.1/src/common.c:729:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (my_attribute->toc, attr, MAX_STR - 1);
data/daisy-player-12.1/src/common.c:733:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (my_attribute->value, attr, MAX_STR - 1);
data/daisy-player-12.1/src/common.c:792:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (misc->tag, (char *) xmlTextReaderConstName (reader),
data/daisy-player-12.1/src/common.c:816: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).
      phrase_len = strlen ((char *) xmlTextReaderConstValue (reader));
data/daisy-player-12.1/src/common.c:828: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).
      for (x = strlen (misc->label) - 1; x >= 0 && isspace (misc->label[x]);
data/daisy-player-12.1/src/common.c:1054: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).
            len = strlen (str) - 6 - 1;
data/daisy-player-12.1/src/common.c:1058:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy (sink_info[n], &str[6], len);
data/daisy-player-12.1/src/common.c:1078: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 (str) > 19)
data/daisy-player-12.1/src/common.c:1080: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).
            len = strlen (str) + 3;
data/daisy-player-12.1/src/common.c:1095:26:  [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).
            sink_info[n][strlen (sink_info[n]) - 1] = ' ';
data/daisy-player-12.1/src/common.c:1096:26:  [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).
            sink_info[n][strlen (sink_info[n])] = ' ';
data/daisy-player-12.1/src/common.c:1099: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).
            for (x = strlen (str); x >= 0; x--)
data/daisy-player-12.1/src/common.c:1103: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).
            for (x = strlen (str); x >= 0; x--)
data/daisy-player-12.1/src/daisy-player.c:66:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy (begin_str, orig_begin,  MAX_STR - 1);
data/daisy-player-12.1/src/daisy-player.c:127: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).
   len = strlen (pw->pw_dir) + strlen (misc->bookmark_title) +
data/daisy-player-12.1/src/daisy-player.c:127: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).
   len = strlen (pw->pw_dir) + strlen (misc->bookmark_title) +
data/daisy-player-12.1/src/daisy-player.c:128: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).
         strlen (get_mcn (misc)) + 100;
data/daisy-player-12.1/src/daisy-player.c:173: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).
                   strlen (misc->daisy_mp) + strlen (my_attribute->src) + 5);
data/daisy-player-12.1/src/daisy-player.c:173:46:  [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 (misc->daisy_mp) + strlen (my_attribute->src) + 5);
data/daisy-player-12.1/src/daisy-player.c:202:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
            strncpy (my_attribute->clip_begin, "0", 2);
data/daisy-player-12.1/src/daisy-player.c:212: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).
               len = strlen (pw->pw_dir) + strlen (misc->bookmark_title) +
data/daisy-player-12.1/src/daisy-player.c:212:44:  [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 (pw->pw_dir) + strlen (misc->bookmark_title) +
data/daisy-player-12.1/src/daisy-player.c:213: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).
                     strlen (get_mcn (misc)) + 100;
data/daisy-player-12.1/src/daisy-player.c:367: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).
      x = strlen (daisy[i].label) + daisy[i].x;
data/daisy-player-12.1/src/daisy-player.c:473: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).
   out_file = malloc (strlen (pw->pw_dir) + strlen (label) + 10);
data/daisy-player-12.1/src/daisy-player.c:473: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).
   out_file = malloc (strlen (pw->pw_dir) + strlen (label) + 10);
data/daisy-player-12.1/src/daisy-player.c:477:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      out_file = realloc (out_file, strlen (out_file) + 5);
data/daisy-player-12.1/src/daisy-player.c:511: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).
   out_cdr = malloc (strlen (misc->tmp_dir) + 10);
data/daisy-player-12.1/src/daisy-player.c:513: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).
   complete_cdr = malloc (strlen (misc->tmp_dir) + 20);
data/daisy-player-12.1/src/daisy-player.c:549:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      while ((in = read (r, &buffer, BUF_SIZE)) > 0)
data/daisy-player-12.1/src/daisy-player.c:619: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).
   str = malloc (strlen (daisy[current].label) + 10);
data/daisy-player-12.1/src/daisy-player.c:1117:14:  [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 (time_str) == 0 || strlen (time_str) == 5)
data/daisy-player-12.1/src/daisy-player.c:1117: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 (strlen (time_str) == 0 || strlen (time_str) == 5)
data/daisy-player-12.1/src/daisy-player.c:1119: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 (time_str) == 0)
data/daisy-player-12.1/src/daisy-player.c:1126: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).
      if (strlen (time_str) == 0)
data/daisy-player-12.1/src/daisy-player.c:1240: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).
      if (strlen (daisy[misc->current].label) + daisy[misc->current].x > 60)
data/daisy-player-12.1/src/daisy-player.c:1555: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).
                  len = strlen (pw->pw_dir) +
data/daisy-player-12.1/src/daisy-player.c:1556: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).
                        strlen (misc->bookmark_title) +
data/daisy-player-12.1/src/daisy-player.c:1557: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).
                        strlen (get_mcn (misc) + 100);
data/daisy-player-12.1/src/daisy-player.c:1769: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).
               len = strlen (pw->pw_dir) +
data/daisy-player-12.1/src/daisy-player.c:1770: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).
                     strlen (misc->bookmark_title) +
data/daisy-player-12.1/src/daisy-player.c:1771: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).
                     strlen (get_mcn (misc)) + 100;
data/daisy-player-12.1/src/daisy-player.c:1890: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).
                       80 - strlen (misc->discinfo_title),
data/daisy-player-12.1/src/daisy-player.c:1903:38:  [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).
         daisy[i].filename = malloc (strlen (misc->daisy_mp) +
data/daisy-player-12.1/src/daisy-player.c:1904: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).
                             strlen (my_attribute->href) + 5);
data/daisy-player-12.1/src/daisy-player.c:2068:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
   strncpy (misc.cd_dev, "/dev/sr0", MAX_STR - 1);
data/daisy-player-12.1/src/daisy-player.c:2106:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         strncpy (misc.cd_dev, optarg, MAX_STR - 1);
data/daisy-player-12.1/src/daisy-player.c:2161:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (misc.cd_dev, c_opt, MAX_STR - 1);
data/daisy-player-12.1/src/daisy-player.c:2223: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).
               strlen (get_current_dir_name ()) + strlen (argv[optind]) + 5);
data/daisy-player-12.1/src/daisy-player.c:2223:51:  [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 (get_current_dir_name ()) + strlen (argv[optind]) + 5);
data/daisy-player-12.1/src/daisy-player.c:2264: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).
                     strlen (misc.tmp_dir) + strlen (dirent->d_name) + 5);
data/daisy-player-12.1/src/daisy-player.c:2264:46:  [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 (misc.tmp_dir) + strlen (dirent->d_name) + 5);
data/daisy-player-12.1/src/daisy-player.c:2393:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy (misc.bookmark_title, "Audio-CD", MAX_STR - 1);
data/daisy-player-12.1/src/daisy-player.c:2394:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy (misc.daisy_title, "Audio-CD", MAX_STR - 1);
data/daisy-player-12.1/src/daisy-player.c:2486:22:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                     strncpy (misc.bookmark_title, misc.label, MAX_STR - 1);
data/daisy-player-12.1/src/daisy-player.c:2500:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
            strncpy (misc.daisy_version, "3", 2);
data/daisy-player-12.1/src/daisy-player.c:2557:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (misc.bookmark_title, misc.daisy_title, MAX_STR - 1);
data/daisy-player-12.1/src/daisy-player.c:2582:8:  [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 (misc.daisy_title) + strlen (str) >= 80)
data/daisy-player-12.1/src/daisy-player.c:2582: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).
   if (strlen (misc.daisy_title) + strlen (str) >= 80)
data/daisy-player-12.1/src/daisy-player.c:2584: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).
                 80 - strlen (misc.daisy_title) - 4, "... ");
data/daisy-player-12.1/src/daisy-player.c:2585:38:  [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).
   mvwprintw (misc.titlewin, 0, 80 - strlen (misc.daisy_title),
data/daisy-player-12.1/src/daisy2.02.c:32: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).
   src = malloc (strlen (misc->daisy_mp) + strlen (attr) + 3);
data/daisy-player-12.1/src/daisy2.02.c:32:44:  [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).
   src = malloc (strlen (misc->daisy_mp) + strlen (attr) + 3);
data/daisy-player-12.1/src/daisy2.02.c:159: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).
                    strlen (misc->daisy_mp) + strlen (my_attribute->src) + 5);
data/daisy-player-12.1/src/daisy2.02.c:159: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).
                    strlen (misc->daisy_mp) + strlen (my_attribute->src) + 5);
data/daisy-player-12.1/src/daisy2.02.c:178:19:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                  strncpy (daisy[misc->current].first_id, my_attribute->id,
data/daisy-player-12.1/src/daisy2.02.c:184: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).
                     strlen (misc->daisy_mp) + strlen (my_attribute->src) + 5);
data/daisy-player-12.1/src/daisy2.02.c:184:48:  [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 (misc->daisy_mp) + strlen (my_attribute->src) + 5);
data/daisy-player-12.1/src/daisy2.02.c:195:19:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                  strncpy (daisy[misc->current].last_id, my_attribute->id,
data/daisy-player-12.1/src/daisy2.02.c:234: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).
                    strlen (misc->daisy_mp) + strlen (my_attribute->src) + 5);
data/daisy-player-12.1/src/daisy2.02.c:234: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).
                    strlen (misc->daisy_mp) + strlen (my_attribute->src) + 5);
data/daisy-player-12.1/src/daisy2.02.c:257:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy (daisy[i].label, misc->label, 80);
data/daisy-player-12.1/src/daisy2.02.c:339: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).
                   strlen (misc->daisy_mp) + strlen (my_attribute->href) + 5);
data/daisy-player-12.1/src/daisy2.02.c:339:46:  [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 (misc->daisy_mp) + strlen (my_attribute->href) + 5);
data/daisy-player-12.1/src/daisy3.c:41: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).
         file = malloc (strlen (misc->daisy_mp) +
data/daisy-player-12.1/src/daisy3.c:42: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).
                        strlen (my_attribute->src) + 5);
data/daisy-player-12.1/src/daisy3.c:188: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).
              (strlen (misc->daisy_mp) + strlen (my_attribute->src) + 3);
data/daisy-player-12.1/src/daisy3.c:188: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).
              (strlen (misc->daisy_mp) + strlen (my_attribute->src) + 3);
data/daisy-player-12.1/src/gettext.h:214: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).
  size_t msgctxt_len = strlen (msgctxt) + 1;
data/daisy-player-12.1/src/gettext.h:215: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).
  size_t msgid_len = strlen (msgid) + 1;
data/daisy-player-12.1/src/gettext.h:262: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).
  size_t msgctxt_len = strlen (msgctxt) + 1;
data/daisy-player-12.1/src/gettext.h:263: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).
  size_t msgid_len = strlen (msgid) + 1;
data/daisy-player-12.1/src/madplay/audio.c:81:4:  [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(prefixes[i].name) == (size_t) (ext - type))
data/daisy-player-12.1/src/madplay/global.h:46:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
signed long read(int, void *, unsigned long count);
data/daisy-player-12.1/src/madplay/player.c:361:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    len = read(input->fd, input->data + input->length,
data/daisy-player-12.1/src/ncx.c:68:16:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
               strncpy (misc->daisy_title, misc->label, MAX_STR - 1);
data/daisy-player-12.1/src/ncx.c:92:51:  [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).
                  daisy[misc->current].smil_file, strlen (misc->daisy_mp) +
data/daisy-player-12.1/src/ncx.c:93: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).
                  strlen (src) + 5);
data/daisy-player-12.1/src/ncx.c:136:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy (daisy[misc->current].first_id,
data/daisy-player-12.1/src/ncx.c:150:57:  [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).
                        (daisy[misc->current].xml_file, strlen
data/daisy-player-12.1/src/ncx.c:151:44:  [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).
                        (misc->daisy_mp) + strlen (my_attribute->src) + 5);
data/daisy-player-12.1/src/ncx.c:183: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).
               strlen (misc->daisy_mp) + strlen (my_attribute->src) + 5);
data/daisy-player-12.1/src/ncx.c:183: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).
               strlen (misc->daisy_mp) + strlen (my_attribute->src) + 5);
data/daisy-player-12.1/src/ncx.c:232:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy (daisy[misc->current].first_id, my_attribute->id,
data/daisy-player-12.1/src/ncx.c:294:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy (daisy[misc->current].first_id, my_attribute->id,
data/daisy-player-12.1/src/ncx.c:330:22:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                     strncpy (daisy[misc->current].label, misc->label,
data/daisy-player-12.1/src/ncx.c:331: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).
                           75 - strlen (daisy[misc->current].label));
data/daisy-player-12.1/src/opf.c:108:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         strncpy (daisy[i].label, misc->label, MAX_STR - 1);
data/daisy-player-12.1/src/opf.c:144:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         strncpy (daisy[i].first_id, my_attribute->id, MAX_STR);
data/daisy-player-12.1/src/opf.c:156:48:  [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).
               (daisy[misc->current].xml_file, strlen
data/daisy-player-12.1/src/opf.c:157:35:  [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).
               (misc->daisy_mp) + strlen (my_attribute->src) + 5);
data/daisy-player-12.1/src/opf.c:218:54:  [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).
            daisy[misc->current].smil_file = malloc (strlen
data/daisy-player-12.1/src/opf.c:219: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).
                         (misc->daisy_mp) + strlen (my_attribute->href) + 5);
data/daisy-player-12.1/src/pactl/src/core-util.c:56: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).
    k = strlen(s);
data/daisy-player-12.1/src/pactl/src/core-util.c:107: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).
    len = (int) strlen(v);
data/daisy-player-12.1/src/pactl/src/core-util.c:314: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).
        return strlen(str);
data/daisy-player-12.1/src/pactl/src/core-util.c:328: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).
    if (strlen(c) <= l)
data/daisy-player-12.1/src/pactl/src/core-util.c:409: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).
        } else if (strlen(c) < l-1) {
data/daisy-player-12.1/src/pactl/src/core-util.c:488: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).
    an = strlen(a);
data/daisy-player-12.1/src/pactl/src/core-util.c:646: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).
    l1 = strlen(s);
data/daisy-player-12.1/src/pactl/src/core-util.c:647: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).
    l2 = strlen(sfx);
data/daisy-player-12.1/src/pactl/src/core-util.c:660: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).
    l = strlen(pfx);
data/daisy-player-12.1/src/pactl/src/core-util.c:662: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).
    return strlen(s) >= l && strncmp(s, pfx, l) == 0;
data/daisy-player-12.1/src/pactl/src/pactl.c:165:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (sink_info[i->index], i->description, 70);
data/daisy-player-12.1/src/pactl/src/pactl.c:166:14:  [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).
    for (x = strlen (sink_info[i->index]); x < 55; x++)
data/daisy-player-12.1/src/pactl/src/pactl.c:308: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).
        vs[strlen(vs)-1] = 0;
data/daisy-player-12.1/src/pactl/src/pactl.c:312: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).
        vs[strlen(vs)-2] = 0;
data/daisy-player-12.1/src/pactl/src/strbuf.c:110:28:  [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).
    pa_strbuf_putsn(sb, t, strlen(t));

ANALYSIS SUMMARY:

Hits = 373
Lines analyzed = 12851 in approximately 0.46 seconds (27743 lines/second)
Physical Source Lines of Code (SLOC) = 9706
Hits@level = [0] 155 [1] 162 [2] 143 [3]  10 [4]  58 [5]   0
Hits@level+ = [0+] 528 [1+] 373 [2+] 211 [3+]  68 [4+]  58 [5+]   0
Hits/KSLOC@level+ = [0+] 54.3993 [1+] 38.4298 [2+] 21.7391 [3+] 7.00598 [4+] 5.97569 [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.