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/forked-daapd-26.4+dfsg1/sqlext/sqlext.c
Examining data/forked-daapd-26.4+dfsg1/src/artwork.c
Examining data/forked-daapd-26.4+dfsg1/src/artwork.h
Examining data/forked-daapd-26.4+dfsg1/src/artwork_legacy.c
Examining data/forked-daapd-26.4+dfsg1/src/avio_evbuffer.c
Examining data/forked-daapd-26.4+dfsg1/src/avio_evbuffer.h
Examining data/forked-daapd-26.4+dfsg1/src/cache.c
Examining data/forked-daapd-26.4+dfsg1/src/cache.h
Examining data/forked-daapd-26.4+dfsg1/src/commands.c
Examining data/forked-daapd-26.4+dfsg1/src/commands.h
Examining data/forked-daapd-26.4+dfsg1/src/conffile.c
Examining data/forked-daapd-26.4+dfsg1/src/conffile.h
Examining data/forked-daapd-26.4+dfsg1/src/daap_query.c
Examining data/forked-daapd-26.4+dfsg1/src/daap_query.h
Examining data/forked-daapd-26.4+dfsg1/src/db.c
Examining data/forked-daapd-26.4+dfsg1/src/db.h
Examining data/forked-daapd-26.4+dfsg1/src/db_init.c
Examining data/forked-daapd-26.4+dfsg1/src/db_init.h
Examining data/forked-daapd-26.4+dfsg1/src/db_upgrade.c
Examining data/forked-daapd-26.4+dfsg1/src/db_upgrade.h
Examining data/forked-daapd-26.4+dfsg1/src/dmap_common.c
Examining data/forked-daapd-26.4+dfsg1/src/dmap_common.h
Examining data/forked-daapd-26.4+dfsg1/src/evrtsp/evrtsp.h
Examining data/forked-daapd-26.4+dfsg1/src/evrtsp/log.h
Examining data/forked-daapd-26.4+dfsg1/src/evrtsp/rtsp-internal.h
Examining data/forked-daapd-26.4+dfsg1/src/evrtsp/rtsp.c
Examining data/forked-daapd-26.4+dfsg1/src/ffmpeg-compat.h
Examining data/forked-daapd-26.4+dfsg1/src/http.c
Examining data/forked-daapd-26.4+dfsg1/src/http.h
Examining data/forked-daapd-26.4+dfsg1/src/httpd.c
Examining data/forked-daapd-26.4+dfsg1/src/httpd.h
Examining data/forked-daapd-26.4+dfsg1/src/httpd_daap.c
Examining data/forked-daapd-26.4+dfsg1/src/httpd_daap.h
Examining data/forked-daapd-26.4+dfsg1/src/httpd_dacp.c
Examining data/forked-daapd-26.4+dfsg1/src/httpd_dacp.h
Examining data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c
Examining data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.h
Examining data/forked-daapd-26.4+dfsg1/src/httpd_oauth.c
Examining data/forked-daapd-26.4+dfsg1/src/httpd_oauth.h
Examining data/forked-daapd-26.4+dfsg1/src/httpd_rsp.c
Examining data/forked-daapd-26.4+dfsg1/src/httpd_rsp.h
Examining data/forked-daapd-26.4+dfsg1/src/httpd_streaming.c
Examining data/forked-daapd-26.4+dfsg1/src/httpd_streaming.h
Examining data/forked-daapd-26.4+dfsg1/src/inputs/file_http.c
Examining data/forked-daapd-26.4+dfsg1/src/inputs/pipe.c
Examining data/forked-daapd-26.4+dfsg1/src/inputs/spotify.c
Examining data/forked-daapd-26.4+dfsg1/src/lastfm.c
Examining data/forked-daapd-26.4+dfsg1/src/lastfm.h
Examining data/forked-daapd-26.4+dfsg1/src/library.c
Examining data/forked-daapd-26.4+dfsg1/src/library.h
Examining data/forked-daapd-26.4+dfsg1/src/library/filescanner.c
Examining data/forked-daapd-26.4+dfsg1/src/library/filescanner.h
Examining data/forked-daapd-26.4+dfsg1/src/library/filescanner_ffmpeg.c
Examining data/forked-daapd-26.4+dfsg1/src/library/filescanner_itunes.c
Examining data/forked-daapd-26.4+dfsg1/src/library/filescanner_playlist.c
Examining data/forked-daapd-26.4+dfsg1/src/library/filescanner_smartpl.c
Examining data/forked-daapd-26.4+dfsg1/src/listener.c
Examining data/forked-daapd-26.4+dfsg1/src/listener.h
Examining data/forked-daapd-26.4+dfsg1/src/logger.c
Examining data/forked-daapd-26.4+dfsg1/src/logger.h
Examining data/forked-daapd-26.4+dfsg1/src/main.c
Examining data/forked-daapd-26.4+dfsg1/src/mdns.h
Examining data/forked-daapd-26.4+dfsg1/src/mdns_avahi.c
Examining data/forked-daapd-26.4+dfsg1/src/mdns_dnssd.c
Examining data/forked-daapd-26.4+dfsg1/src/misc.c
Examining data/forked-daapd-26.4+dfsg1/src/misc.h
Examining data/forked-daapd-26.4+dfsg1/src/misc_json.c
Examining data/forked-daapd-26.4+dfsg1/src/misc_json.h
Examining data/forked-daapd-26.4+dfsg1/src/mpd.c
Examining data/forked-daapd-26.4+dfsg1/src/mpd.h
Examining data/forked-daapd-26.4+dfsg1/src/mxml-compat.h
Examining data/forked-daapd-26.4+dfsg1/src/outputs.c
Examining data/forked-daapd-26.4+dfsg1/src/outputs.h
Examining data/forked-daapd-26.4+dfsg1/src/outputs/alsa.c
Examining data/forked-daapd-26.4+dfsg1/src/outputs/cast.c
Examining data/forked-daapd-26.4+dfsg1/src/outputs/cast_channel.pb-c.c
Examining data/forked-daapd-26.4+dfsg1/src/outputs/cast_channel.pb-c.h
Examining data/forked-daapd-26.4+dfsg1/src/outputs/cast_channel.v0.pb-c.c
Examining data/forked-daapd-26.4+dfsg1/src/outputs/cast_channel.v0.pb-c.h
Examining data/forked-daapd-26.4+dfsg1/src/outputs/dummy.c
Examining data/forked-daapd-26.4+dfsg1/src/outputs/fifo.c
Examining data/forked-daapd-26.4+dfsg1/src/outputs/pulse.c
Examining data/forked-daapd-26.4+dfsg1/src/outputs/raop.c
Examining data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c
Examining data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.h
Examining data/forked-daapd-26.4+dfsg1/src/outputs/streaming.c
Examining data/forked-daapd-26.4+dfsg1/src/player.c
Examining data/forked-daapd-26.4+dfsg1/src/player.h
Examining data/forked-daapd-26.4+dfsg1/src/remote_pairing.c
Examining data/forked-daapd-26.4+dfsg1/src/remote_pairing.h
Examining data/forked-daapd-26.4+dfsg1/src/rng.c
Examining data/forked-daapd-26.4+dfsg1/src/rng.h
Examining data/forked-daapd-26.4+dfsg1/src/rsp_query.c
Examining data/forked-daapd-26.4+dfsg1/src/rsp_query.h
Examining data/forked-daapd-26.4+dfsg1/src/smartpl_query.c
Examining data/forked-daapd-26.4+dfsg1/src/smartpl_query.h
Examining data/forked-daapd-26.4+dfsg1/src/spotify.c
Examining data/forked-daapd-26.4+dfsg1/src/spotify.h
Examining data/forked-daapd-26.4+dfsg1/src/spotify_webapi.c
Examining data/forked-daapd-26.4+dfsg1/src/spotify_webapi.h
Examining data/forked-daapd-26.4+dfsg1/src/transcode.c
Examining data/forked-daapd-26.4+dfsg1/src/transcode.h
Examining data/forked-daapd-26.4+dfsg1/src/transcode_legacy.c
Examining data/forked-daapd-26.4+dfsg1/src/websocket.c
Examining data/forked-daapd-26.4+dfsg1/src/websocket.h
Examining data/forked-daapd-26.4+dfsg1/src/worker.c
Examining data/forked-daapd-26.4+dfsg1/src/worker.h
Examining data/forked-daapd-26.4+dfsg1/src/input.c
Examining data/forked-daapd-26.4+dfsg1/src/input.h

FINAL RESULTS:

data/forked-daapd-26.4+dfsg1/src/artwork.c:495:10:  [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.
	  ret = access(path, F_OK);
data/forked-daapd-26.4+dfsg1/src/artwork.c:521:7:  [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(parentdir, ptr + 1);
data/forked-daapd-26.4+dfsg1/src/artwork.c:536:10:  [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.
	  ret = access(path, F_OK);
data/forked-daapd-26.4+dfsg1/src/artwork.c:605: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(dir, F_OK) < 0)
data/forked-daapd-26.4+dfsg1/src/artwork.c:704:13:  [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.
      ret = access(path, F_OK);
data/forked-daapd-26.4+dfsg1/src/artwork_legacy.c:790:10:  [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.
	  ret = access(path, F_OK);
data/forked-daapd-26.4+dfsg1/src/artwork_legacy.c:816:7:  [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(parentdir, ptr + 1);
data/forked-daapd-26.4+dfsg1/src/artwork_legacy.c:831:10:  [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.
	  ret = access(path, F_OK);
data/forked-daapd-26.4+dfsg1/src/artwork_legacy.c:900: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(dir, F_OK) < 0)
data/forked-daapd-26.4+dfsg1/src/artwork_legacy.c:1080:13:  [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.
      ret = access(path, F_OK);
data/forked-daapd-26.4+dfsg1/src/conffile.c:301:3:  [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(d, hostname);
data/forked-daapd-26.4+dfsg1/src/conffile.c:306:3:  [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(d, VERSION);
data/forked-daapd-26.4+dfsg1/src/db.c:814:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	      sprintf(tag,"%s%s%s", mfi->orchestra, sep, mfi->conductor);
data/forked-daapd-26.4+dfsg1/src/db.c:856:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(mfi->album, "%s, Season %u", mfi->tv_series_name, mfi->tv_season_num);
data/forked-daapd-26.4+dfsg1/src/db.c:4957:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  snprintf(buf, sizeof(buf), "f.id = %" PRIu32, id);
data/forked-daapd-26.4+dfsg1/src/evrtsp/log.h:31:49:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define EV_CHECK_FMT(a,b) __attribute__((format(printf, a, b)))
data/forked-daapd-26.4+dfsg1/src/httpd.c:400:7:  [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(path, deref);
data/forked-daapd-26.4+dfsg1/src/httpd.c:426:7:  [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(path, deref);
data/forked-daapd-26.4+dfsg1/src/httpd.c:1265:10:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	  ret = snprintf(buf, sizeof(buf), "%" PRIi64, (int64_t)st->size);
data/forked-daapd-26.4+dfsg1/src/httpd.c:1283:13:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
      ret = snprintf(buf, sizeof(buf), "bytes %" PRIi64 "-%" PRIi64 "/%" PRIi64,
data/forked-daapd-26.4+dfsg1/src/httpd.c:1290:13:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
      ret = snprintf(buf, sizeof(buf), "%" PRIi64, ((end_offset) ? end_offset + 1 : (int64_t)st->size) - offset);
data/forked-daapd-26.4+dfsg1/src/httpd_daap.c:2082:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  snprintf(buf, sizeof(buf), "%" PRIu8, UINT8_MAX);
data/forked-daapd-26.4+dfsg1/src/httpd_daap.c:2087:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  snprintf(buf, sizeof(buf), "%" PRIi8, INT8_MIN);
data/forked-daapd-26.4+dfsg1/src/httpd_daap.c:2090:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  snprintf(buf, sizeof(buf), "%" PRIi8, INT8_MAX);
data/forked-daapd-26.4+dfsg1/src/httpd_daap.c:2095:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  snprintf(buf, sizeof(buf), "%" PRIu16, UINT16_MAX);
data/forked-daapd-26.4+dfsg1/src/httpd_daap.c:2100:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  snprintf(buf, sizeof(buf), "%" PRIi16, INT16_MIN);
data/forked-daapd-26.4+dfsg1/src/httpd_daap.c:2103:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  snprintf(buf, sizeof(buf), "%" PRIi16, INT16_MAX);
data/forked-daapd-26.4+dfsg1/src/httpd_daap.c:2108:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  snprintf(buf, sizeof(buf), "%" PRIu32, UINT32_MAX);
data/forked-daapd-26.4+dfsg1/src/httpd_daap.c:2113:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  snprintf(buf, sizeof(buf), "%" PRIi32, INT32_MIN);
data/forked-daapd-26.4+dfsg1/src/httpd_daap.c:2116:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  snprintf(buf, sizeof(buf), "%" PRIi32, INT32_MAX);
data/forked-daapd-26.4+dfsg1/src/httpd_daap.c:2121:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  snprintf(buf, sizeof(buf), "%" PRIu64, UINT64_MAX);
data/forked-daapd-26.4+dfsg1/src/httpd_daap.c:2126:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  snprintf(buf, sizeof(buf), "%" PRIi64, INT64_MIN);
data/forked-daapd-26.4+dfsg1/src/httpd_daap.c:2129:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  snprintf(buf, sizeof(buf), "%" PRIi64, INT64_MAX);
data/forked-daapd-26.4+dfsg1/src/httpd_dacp.c:327:7:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
      snprintf(buf, sizeof(buf), "f.songalbumid = %" PRIi64, mfi->songalbumid);
data/forked-daapd-26.4+dfsg1/src/httpd_dacp.c:344:4:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	  snprintf(buf, sizeof(buf), "f.songalbumid = %" PRIi64, albumid);
data/forked-daapd-26.4+dfsg1/src/httpd_dacp.c:357:4:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	  snprintf(buf, sizeof(buf), "f.songartistid = %" PRIi64, artistid);
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c:996:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  snprintf(output_id, sizeof(output_id), "%" PRIu64, spk->id);
data/forked-daapd-26.4+dfsg1/src/lastfm.c:288:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  snprintf(duration, sizeof(duration), "%" PRIu32, mfi->song_length);
data/forked-daapd-26.4+dfsg1/src/lastfm.c:289:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  snprintf(trackNumber, sizeof(trackNumber), "%" PRIu32, mfi->track);
data/forked-daapd-26.4+dfsg1/src/lastfm.c:290:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  snprintf(timestamp, sizeof(timestamp), "%" PRIi64, (int64_t)time(NULL));
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:714:7:  [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(resolved_path, path);
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:1101:10:  [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.
	  ret = access(path, F_OK);
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:1424:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(f->path, path);
data/forked-daapd-26.4+dfsg1/src/logger.c:109:7:  [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(logfile, fmt, ap);
data/forked-daapd-26.4+dfsg1/src/logger.c:120:7:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      vfprintf(stderr, fmt, ap);
data/forked-daapd-26.4+dfsg1/src/logger.h:53:79:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
DPRINTF(int severity, int domain, const char *fmt, ...) __attribute__((format(printf, 3, 4)));
data/forked-daapd-26.4+dfsg1/src/main.c:316:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  snprintf(records[4], 128, "iTunes_Ctrl_%" PRIX64, libhash);
data/forked-daapd-26.4+dfsg1/src/main.c:330:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  snprintf(txtrecord[1], 128, "DbId=%016" PRIX64, libhash);
data/forked-daapd-26.4+dfsg1/src/main.c:343:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  snprintf(records[7], 128, "%016" PRIX64, libhash);
data/forked-daapd-26.4+dfsg1/src/outputs/cast.c:618:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(msg_buf, sizeof(msg_buf), cast_msg[type].payload, cs->request_id);
data/forked-daapd-26.4+dfsg1/src/outputs/cast.c:620:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(msg_buf, sizeof(msg_buf), cast_msg[type].payload, cs->session_id, cs->request_id);
data/forked-daapd-26.4+dfsg1/src/outputs/cast.c:622:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(msg_buf, sizeof(msg_buf), cast_msg[type].payload, cs->stream_url, cs->session_id, cs->request_id);
data/forked-daapd-26.4+dfsg1/src/outputs/cast.c:624:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(msg_buf, sizeof(msg_buf), cast_msg[type].payload, cs->media_session_id, cs->session_id, cs->request_id);
data/forked-daapd-26.4+dfsg1/src/outputs/cast.c:626:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(msg_buf, sizeof(msg_buf), cast_msg[type].payload, cs->volume, cs->request_id);
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:1012:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(ha1 + (2 * i), hash_fmt, hash_bytes[i]);
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:1031:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(ha2 + (2 * i), hash_fmt, hash_bytes[i]);
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:1052:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(ha1 + (2 * i), hash_fmt, hash_bytes[i]);
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:1205:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  snprintf(buf, sizeof(buf), "%" PRIX64, libhash);
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:1211:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  snprintf(buf, sizeof(buf), "%" PRIu32, (uint32_t)rs->device->id);
data/forked-daapd-26.4+dfsg1/src/remote_pairing.c:557:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  ret = snprintf(req_uri, sizeof(req_uri), "/pair?pairingcode=%s&servicename=%016" PRIX64, pairing_hash, libhash);
data/forked-daapd-26.4+dfsg1/src/transcode.c:962:7:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
      snprintf(args, sizeof(args),
data/forked-daapd-26.4+dfsg1/src/transcode.c:975:7:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
      snprintf(args, sizeof(args),
data/forked-daapd-26.4+dfsg1/src/transcode_legacy.c:832:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  snprintf(args, sizeof(args),
data/forked-daapd-26.4+dfsg1/src/transcode_legacy.c:956:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  snprintf(args, sizeof(args),
data/forked-daapd-26.4+dfsg1/src/transcode_legacy.c:969:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  snprintf(args, sizeof(args),
data/forked-daapd-26.4+dfsg1/src/httpd.c:382:12:  [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 (!realpath(path, deref))
data/forked-daapd-26.4+dfsg1/src/httpd_daap.c:2424:3:  [3] (random) srand:
  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.
  srand((unsigned)time(NULL));
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:699:12:  [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 (!realpath(path, resolved_path))
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:945:15:  [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.
      deref = realpath(path, NULL);
data/forked-daapd-26.4+dfsg1/src/main.c:241:3:  [3] (random) srand:
  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.
  srand((unsigned int)time(NULL));
data/forked-daapd-26.4+dfsg1/src/main.c:541:20:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((option = getopt_long(argc, argv, "D:d:c:P:fb:vw:", option_map, NULL)) != -1)
data/forked-daapd-26.4+dfsg1/sqlext/sqlext.c:193:25:  [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.
  album_artist = (const char *)sqlite3_value_text(ppv[0]);
data/forked-daapd-26.4+dfsg1/sqlext/sqlext.c:194:18:  [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.
  album = (const char *)sqlite3_value_text(ppv[1]);
data/forked-daapd-26.4+dfsg1/src/artwork.c:84: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 path[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/artwork.c:236: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).
  fd = open(path, O_RDONLY);
data/forked-daapd-26.4+dfsg1/src/artwork.c:454: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 path[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/artwork.c:455: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 parentdir[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/artwork.c:671: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 path[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/artwork.c:887: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 filter[PATH_MAX + 64];
data/forked-daapd-26.4+dfsg1/src/artwork.c:1070: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 filter[32];
data/forked-daapd-26.4+dfsg1/src/artwork.c:1178: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 artwork[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/artwork_legacy.c:90: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 path[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/artwork_legacy.c:242: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).
  fd = open(path, O_RDONLY);
data/forked-daapd-26.4+dfsg1/src/artwork_legacy.c:749: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 path[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/artwork_legacy.c:750: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 parentdir[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/artwork_legacy.c:1047: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 path[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/artwork_legacy.c:1314: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 filter[PATH_MAX + 64];
data/forked-daapd-26.4+dfsg1/src/artwork_legacy.c:1497: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 filter[32];
data/forked-daapd-26.4+dfsg1/src/artwork_legacy.c:1605: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 artwork[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/db.c:796:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	  strcpy(mfi->codectype, "mp4v");
data/forked-daapd-26.4+dfsg1/src/db.c:797:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	  strcpy(mfi->type, "m4v");
data/forked-daapd-26.4+dfsg1/src/db.c:801:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	  strcpy(mfi->codectype, "mp4a");
data/forked-daapd-26.4+dfsg1/src/db.c:802:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	  strcpy(mfi->type, "m4a");
data/forked-daapd-26.4+dfsg1/src/db.c:1130: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 *cfg_item[6] = { "name_library", "name_music", "name_movies", "name_tvshows", "name_podcasts", "name_audiobooks" };
data/forked-daapd-26.4+dfsg1/src/db.c:1131: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 special_id[6] = { 0, 6, 4, 5, 1, 7 };
data/forked-daapd-26.4+dfsg1/src/db.c:1191: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 *queries_tmpl[4] =
data/forked-daapd-26.4+dfsg1/src/db.c:1242: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 *queries[4] =
data/forked-daapd-26.4+dfsg1/src/db.c:4233: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 *queries[4] =
data/forked-daapd-26.4+dfsg1/src/db.c:4271: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 *queries_tmpl[2] =
data/forked-daapd-26.4+dfsg1/src/db.c:4951: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[124];
data/forked-daapd-26.4+dfsg1/src/db.h:104: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 buf1[32];
data/forked-daapd-26.4+dfsg1/src/db.h:105: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 buf2[32];
data/forked-daapd-26.4+dfsg1/src/db_upgrade.c:49: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 *index[256];
data/forked-daapd-26.4+dfsg1/src/db_upgrade.c:146:8:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  fp = tmpfile();
data/forked-daapd-26.4+dfsg1/src/db_upgrade.c:991: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 virtual_path[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/db_upgrade.c:1317: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[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/dmap_common.c:55: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 buf[4];
data/forked-daapd-26.4+dfsg1/src/dmap_common.c:71: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 buf[12];
data/forked-daapd-26.4+dfsg1/src/dmap_common.c:97: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 buf[8];
data/forked-daapd-26.4+dfsg1/src/dmap_common.c:119: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 buf[6];
data/forked-daapd-26.4+dfsg1/src/dmap_common.c:139: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 buf[5];
data/forked-daapd-26.4+dfsg1/src/dmap_common.c:158: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[4];
data/forked-daapd-26.4+dfsg1/src/dmap_common.c:177: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 buf[4];
data/forked-daapd-26.4+dfsg1/src/dmap_common.c:191: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 buf[4];
data/forked-daapd-26.4+dfsg1/src/evrtsp/rtsp.c:92:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char tmpserv[16];
data/forked-daapd-26.4+dfsg1/src/evrtsp/rtsp.c:155: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(&sa->sin_addr, he->h_addr_list[0], he->h_length);
data/forked-daapd-26.4+dfsg1/src/evrtsp/rtsp.c:343:6:  [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 size[12];
data/forked-daapd-26.4+dfsg1/src/evrtsp/rtsp.c:374:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char host[1024];
data/forked-daapd-26.4+dfsg1/src/evrtsp/rtsp.c:375:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char file[1024];
data/forked-daapd-26.4+dfsg1/src/evrtsp/rtsp.c:410:10:  [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).
		port = atoi(p + 1);
data/forked-daapd-26.4+dfsg1/src/evrtsp/rtsp.c:873: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).
	req->response_code = atoi(number);
data/forked-daapd-26.4+dfsg1/src/evrtsp/rtsp.c:1053:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(newval + old_len, line, line_len + 1);
data/forked-daapd-26.4+dfsg1/src/evrtsp/rtsp.c:1220:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char scratch[16];
data/forked-daapd-26.4+dfsg1/src/evrtsp/rtsp.c:1618:2:  [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 ntop[NI_MAXHOST];
data/forked-daapd-26.4+dfsg1/src/evrtsp/rtsp.c:1619:2:  [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 strport[NI_MAXSERV];
data/forked-daapd-26.4+dfsg1/src/evrtsp/rtsp.c:1706:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char strport[NI_MAXSERV];
data/forked-daapd-26.4+dfsg1/src/http.c:195: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 host[512];
data/forked-daapd-26.4+dfsg1/src/http.c:196: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 host_port[1024];
data/forked-daapd-26.4+dfsg1/src/http.c:197: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 path[2048];
data/forked-daapd-26.4+dfsg1/src/http.c:198: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 tmp[128];
data/forked-daapd-26.4+dfsg1/src/http.c:343: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 header[1024];
data/forked-daapd-26.4+dfsg1/src/httpd.c:320: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 last_modified[1000];
data/forked-daapd-26.4+dfsg1/src/httpd.c:344: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 path[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/httpd.c:345: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 deref[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/httpd.c:467: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).
  fd = open(path, O_RDONLY);
data/forked-daapd-26.4+dfsg1/src/httpd.c:1038: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[64];
data/forked-daapd-26.4+dfsg1/src/httpd.c:1155:16:  [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).
      st->fd = open(mfi->path, O_RDONLY);
data/forked-daapd-26.4+dfsg1/src/httpd.c:1522: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 header[256];
data/forked-daapd-26.4+dfsg1/src/httpd.h:38: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 *path_parts[7];
data/forked-daapd-26.4+dfsg1/src/httpd_daap.c:1955: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 clen[32];
data/forked-daapd-26.4+dfsg1/src/httpd_daap.c:2076: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[64];
data/forked-daapd-26.4+dfsg1/src/httpd_daap.c:2420: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[64];
data/forked-daapd-26.4+dfsg1/src/httpd_dacp.c:301: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/forked-daapd-26.4+dfsg1/src/httpd_dacp.c:1882: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 modifiedquery[32];
data/forked-daapd-26.4+dfsg1/src/httpd_dacp.c:2238: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 clen[32];
data/forked-daapd-26.4+dfsg1/src/httpd_dacp.c:2724: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[64];
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c:86: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 result[32];
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c:119: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 uri[100];
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c:142: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 uri[100];
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c:166: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 uri[100];
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c:217: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 uri[100];
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c:686: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 redirect_uri[256];
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c:992: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 output_id[21];
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c:1500: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 uri[100];
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c:1783: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 etag[21];
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c:2989: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[64];
data/forked-daapd-26.4+dfsg1/src/httpd_oauth.c:46: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 redirect_uri[256];
data/forked-daapd-26.4+dfsg1/src/httpd_oauth.c:129: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[64];
data/forked-daapd-26.4+dfsg1/src/httpd_rsp.c:870: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[64];
data/forked-daapd-26.4+dfsg1/src/inputs/pipe.c:170: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).
  fd = open(path, O_RDONLY | O_NONBLOCK);
data/forked-daapd-26.4+dfsg1/src/inputs/pipe.c:279:15:  [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.
dmapval(const char s[4])
data/forked-daapd-26.4+dfsg1/src/inputs/pipe.c:675: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 path[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/inputs/pipe.c:738: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 filter[32];
data/forked-daapd-26.4+dfsg1/src/lastfm.c:75: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 hash[33];
data/forked-daapd-26.4+dfsg1/src/lastfm.c:76: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 ebuf[64];
data/forked-daapd-26.4+dfsg1/src/lastfm.c:110:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(hash + (2 * i), "%02x", hash_bytes[i]);
data/forked-daapd-26.4+dfsg1/src/lastfm.c:260: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 duration[4];
data/forked-daapd-26.4+dfsg1/src/lastfm.c:261: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 trackNumber[4];
data/forked-daapd-26.4+dfsg1/src/lastfm.c:262: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 timestamp[16];
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:127: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 path[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:475: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 virtual_path[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:725: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 entry[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:726: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 resolved_path[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:732: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 virtual_path[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:857: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[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:858: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 virtual_path[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:928: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 virtual_path[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:1004: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 virtual_path[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:1158:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fd = open(path, O_RDONLY);
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:1203: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 resolved_path[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:1205: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 dir_vpath[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:1246:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fd = open(path, O_RDONLY);
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:1442: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 path[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:1933:8:  [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).
  fp = fopen(pl_path, "a");
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:2017:8:  [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).
  fp = fopen(pl_path, "a");
data/forked-daapd-26.4+dfsg1/src/library/filescanner_ffmpeg.c:49:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char errbuf[64];
data/forked-daapd-26.4+dfsg1/src/library/filescanner_ffmpeg.c:99: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 year_string[21];
data/forked-daapd-26.4+dfsg1/src/library/filescanner_itunes.c:359: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 filter[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/library/filescanner_itunes.c:796: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 virtual_path[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/library/filescanner_itunes.c:868: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[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/library/filescanner_itunes.c:927: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).
  fd = open(file, O_RDONLY);
data/forked-daapd-26.4+dfsg1/src/library/filescanner_playlist.c:120: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 filter[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/library/filescanner_playlist.c:207: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[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/library/filescanner_playlist.c:295:8:  [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).
  fp = fopen(file, "r");
data/forked-daapd-26.4+dfsg1/src/library/filescanner_smartpl.c:46: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 virtual_path[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/logger.c:95: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 stamp[32];
data/forked-daapd-26.4+dfsg1/src/logger.c:247:8:  [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).
  fp = fopen(logfilename, "a");
data/forked-daapd-26.4+dfsg1/src/logger.c:316:13:  [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).
  logfile = fopen(file, "a");
data/forked-daapd-26.4+dfsg1/src/main.c:129:12:  [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).
      fp = fopen(pidfile, "w");
data/forked-daapd-26.4+dfsg1/src/main.c:137:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fd = open("/dev/null", O_RDWR, 0);
data/forked-daapd-26.4+dfsg1/src/main.c:233: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 *txtrecord[10];
data/forked-daapd-26.4+dfsg1/src/main.c:234: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 records[9][128];
data/forked-daapd-26.4+dfsg1/src/mdns_avahi.c:427: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(&addr->data.ipv4.address, rdata, size);
data/forked-daapd-26.4+dfsg1/src/mdns_avahi.c:439: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(&addr->data.ipv6.address, rdata, size);
data/forked-daapd-26.4+dfsg1/src/mdns_avahi.c:482: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 strport[32];
data/forked-daapd-26.4+dfsg1/src/mdns_avahi.c:572: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 address[AVAHI_ADDRESS_STR_MAX];
data/forked-daapd-26.4+dfsg1/src/mdns_avahi.c:573: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 address_log[AVAHI_ADDRESS_STR_MAX + 2];
data/forked-daapd-26.4+dfsg1/src/mdns_avahi.c:608: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 address[AVAHI_ADDRESS_STR_MAX];
data/forked-daapd-26.4+dfsg1/src/mdns_avahi.c:663: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 address[AVAHI_ADDRESS_STR_MAX];
data/forked-daapd-26.4+dfsg1/src/mdns_avahi.c:846: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 hostname[HOST_NAME_MAX + 1];
data/forked-daapd-26.4+dfsg1/src/mdns_avahi.c:847: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 rdata[HOST_NAME_MAX + 6 + 1]; // Includes room for ".local" and 0-terminator
data/forked-daapd-26.4+dfsg1/src/mdns_dnssd.c:492: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 hostname[HOST_NAME_MAX + 1];
data/forked-daapd-26.4+dfsg1/src/mdns_dnssd.c:494: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 rdata[HOST_NAME_MAX + 8];
data/forked-daapd-26.4+dfsg1/src/mdns_dnssd.c:538: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 addr_str[INET6_ADDRSTRLEN];
data/forked-daapd-26.4+dfsg1/src/mdns_dnssd.c:630: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 key[256];
data/forked-daapd-26.4+dfsg1/src/misc.c:421: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(okv->value, value, size);
data/forked-daapd-26.4+dfsg1/src/misc.c:561: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[256];
data/forked-daapd-26.4+dfsg1/src/misc.c:572:8:  [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).
  fp = fopen(path, "rb");
data/forked-daapd-26.4+dfsg1/src/misc.c:706:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char b64_decode_table[256];
data/forked-daapd-26.4+dfsg1/src/mpd.c:468: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 modified[32];
data/forked-daapd-26.4+dfsg1/src/mpd.c:537: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 modified[32];
data/forked-daapd-26.4+dfsg1/src/mpd.c:2386: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 modified[32];
data/forked-daapd-26.4+dfsg1/src/mpd.c:2837: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 modified[32];
data/forked-daapd-26.4+dfsg1/src/mpd.c:2957: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 parent[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/mpd.c:2997: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 parent[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/mpd.c:3041: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 parent[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/mpd.c:4231: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 *argv[COMMAND_ARGV_MAX];
data/forked-daapd-26.4+dfsg1/src/mpd.c:4490: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 addr_str[INET6_ADDRSTRLEN];
data/forked-daapd-26.4+dfsg1/src/outputs/alsa.c:626: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(pkt, buf, PACKET_SIZE);
data/forked-daapd-26.4+dfsg1/src/outputs/cast.c:160: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 stream_url[128];
data/forked-daapd-26.4+dfsg1/src/outputs/cast.c:443: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 host_addr[128];
data/forked-daapd-26.4+dfsg1/src/outputs/cast.c:477: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(&haddr.sin, ifa->ifa_addr, sizeof(struct sockaddr_in));
data/forked-daapd-26.4+dfsg1/src/outputs/cast.c:478: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(&hmask.sin, ifa->ifa_netmask, sizeof(struct sockaddr_in));
data/forked-daapd-26.4+dfsg1/src/outputs/cast.c:486: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(&haddr.sin6, ifa->ifa_addr, sizeof(struct sockaddr_in6));
data/forked-daapd-26.4+dfsg1/src/outputs/cast.c:582: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_buf[MAX_BUF];
data/forked-daapd-26.4+dfsg1/src/outputs/cast.c:642: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(buf, &be, 4);
data/forked-daapd-26.4+dfsg1/src/outputs/cast.c:1171: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(&be, buffer, 4);
data/forked-daapd-26.4+dfsg1/src/outputs/fifo.c:201:28:  [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).
  fifo_session->input_fd = open(fifo_session->path, O_RDONLY | O_NONBLOCK, 0);
data/forked-daapd-26.4+dfsg1/src/outputs/fifo.c:209:29:  [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).
  fifo_session->output_fd = open(fifo_session->path, O_WRONLY | O_NONBLOCK, 0);
data/forked-daapd-26.4+dfsg1/src/outputs/fifo.c:223: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[FIFO_BUFFER_SIZE];
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:186: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 session_url[128];
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:468: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 ebuf[64];
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:511: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(mask, md, copylen);
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:597: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(db + hlen + pslen + 1, m, mlen);
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:641: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(em + 1, seed, hlen);
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:642: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(em + 1 + hlen, db, hlen + pslen + 1 + mlen);
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:663: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 ebuf[64];
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:946: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 ha1[33];
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:947: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 ha2[33];
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:948: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 ebuf[64];
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:949: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 auth[256];
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:1175: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[64];
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:1366: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[64];
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:1468: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[64];
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:1518: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 hdr[128];
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:2320: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 rtptime[32];
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:2864: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(res + 8, req + 24, 8);
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:2869: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(res + 16, &recv_stamp.sec, 4);
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:2870: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(res + 20, &recv_stamp.frac, 4);
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:2881: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(res + 24, &recv_stamp.sec, 4);
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:2882: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(res + 28, &recv_stamp.frac, 4);
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:2888: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(res + 24, &xmit_stamp.sec, 4);
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:2889: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(res + 28, &xmit_stamp.frac, 4);
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:3075: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(msg + 16, &next_pkt32, 4);
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:3099: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(msg + 4, &cur_pos32, 4);
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:3100: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(msg + 8, &cur_stamp.sec, 4);
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:3101: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(msg + 12, &cur_stamp.frac, 4);
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:3138: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 address[INET6_ADDRSTRLEN];
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:3222: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(&seq_start, req + 4, 2);
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:3223: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(&seq_len, req + 6, 2);
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:3419: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 ebuf[64];
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:3443: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(pkt->clear + 2, &seq, 2);
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:3444: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(pkt->clear + 4, &rtptime32, 4);
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:3450: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(pkt->clear + 8, &ssrc_id, 4);
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:3453: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(pkt->encrypted, pkt->clear, AIRTUNES_V2_HDR_LEN);
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:3456: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(pkt->encrypted + AIRTUNES_V2_PKT_TAIL_OFF,
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:4910: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 ebuf[64];
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:140: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 pin[4];
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:159: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 auth_key[2 * (crypto_sign_PUBLICKEYBYTES + crypto_sign_SECRETKEYBYTES) + 1];
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:226: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 M           [SHA512_DIGEST_LENGTH];
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:227: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 H_AMK       [SHA512_DIGEST_LENGTH];
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:228: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 session_key [2 * SHA512_DIGEST_LENGTH]; // See hash_session_key()
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:349: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(md, buf, gcry_md_get_algo_dlen(alg));
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:410: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 buff[SHA512_DIGEST_LENGTH];
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:432: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 buff[SHA512_DIGEST_LENGTH];
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:438: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( bin + len_n, bytes, len_bytes );
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:448: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 ucp_hash[SHA512_DIGEST_LENGTH];
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:485: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 fourbytes[4] = { 0 }; // Only God knows the reason for this, and perhaps some poor soul at Apple
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:504: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 H_N[ SHA512_DIGEST_LENGTH ];
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:505: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 H_g[ SHA512_DIGEST_LENGTH ];
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:506: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 H_I[ SHA512_DIGEST_LENGTH ];
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:507: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 H_xor[ SHA512_DIGEST_LENGTH ];
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:574: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((char *)usr->username, username,       ulen);
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:575: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((char *)usr->password, bytes_password, len_password);
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:1024: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 key[SHA512_DIGEST_LENGTH];
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:1025: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 iv[SHA512_DIGEST_LENGTH];
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:1026: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 encrypted[128]; // Alloc a bit extra - should only need 2*16
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:1027: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 tag[16];
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:1187:12:  [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.
    ptr += sprintf(ptr, "%02x", sctx->public_key[i]);
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:1189:12:  [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.
    ptr += sprintf(ptr, "%02x", sctx->private_key[i]);
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:1273: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(data + 4, vctx->client_eph_public_key, sizeof(vctx->client_eph_public_key));
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:1274: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(data + 4 + sizeof(vctx->client_eph_public_key), vctx->client_public_key, sizeof(vctx->client_public_key));
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:1299: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(data, vctx->client_eph_public_key, sizeof(vctx->client_eph_public_key));
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:1300: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(data + sizeof(vctx->client_eph_public_key), vctx->server_eph_public_key, sizeof(vctx->server_eph_public_key));
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:1342: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(data + 4, encrypted, sizeof(vctx->server_public_key));
data/forked-daapd-26.4+dfsg1/src/player.c:158: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 pin[5];
data/forked-daapd-26.4+dfsg1/src/player.c:3321: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(cmdarg->auth.pin, arglist[0], 4);
data/forked-daapd-26.4+dfsg1/src/remote_pairing.c:94: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 hash[33];
data/forked-daapd-26.4+dfsg1/src/remote_pairing.c:95: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 ebuf[64];
data/forked-daapd-26.4+dfsg1/src/remote_pairing.c:144:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(hash + (2 * i), "%02X", hash_bytes[i]);
data/forked-daapd-26.4+dfsg1/src/remote_pairing.c:357: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 guid[17];
data/forked-daapd-26.4+dfsg1/src/remote_pairing.c:445:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(guid + (2 * i), "%02X", response[i]);
data/forked-daapd-26.4+dfsg1/src/remote_pairing.c:537: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 req_uri[128];
data/forked-daapd-26.4+dfsg1/src/spotify.c:421:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char url[1024];
data/forked-daapd-26.4+dfsg1/src/spotify.c:515:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char url[1024];
data/forked-daapd-26.4+dfsg1/src/spotify.c:1335: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(info, &spotify_status_info, sizeof(struct spotify_status_info));
data/forked-daapd-26.4+dfsg1/src/spotify.h:15: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 libspotify_user[100];
data/forked-daapd-26.4+dfsg1/src/spotify_webapi.c:260: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 bearer_token[1024];
data/forked-daapd-26.4+dfsg1/src/spotify_webapi.c:625: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 tmp[5];
data/forked-daapd-26.4+dfsg1/src/spotify_webapi.c:967: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 virtual_path[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/spotify_webapi.c:1186: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 virtual_path[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/spotify_webapi.c:1256: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 virtual_path[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/spotify_webapi.c:1486: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 virtual_path[PATH_MAX];
data/forked-daapd-26.4+dfsg1/src/spotify_webapi.h:32: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 user[100];
data/forked-daapd-26.4+dfsg1/src/spotify_webapi.h:33: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 country[3]; // ISO 3166-1 alpha-2 country code
data/forked-daapd-26.4+dfsg1/src/transcode.c:59:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char errbuf[64];
data/forked-daapd-26.4+dfsg1/src/transcode.c:320: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(ctx->header, "RIFF", 4);
data/forked-daapd-26.4+dfsg1/src/transcode.c:322: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(ctx->header + 8, "WAVEfmt ", 8);
data/forked-daapd-26.4+dfsg1/src/transcode.c:330: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(ctx->header + 36, "data", 4);
data/forked-daapd-26.4+dfsg1/src/transcode.c:943: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[512];
data/forked-daapd-26.4+dfsg1/src/transcode_legacy.c:58:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char errbuf[64];
data/forked-daapd-26.4+dfsg1/src/transcode_legacy.c:222: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(ctx->header, "RIFF", 4);
data/forked-daapd-26.4+dfsg1/src/transcode_legacy.c:224: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(ctx->header + 8, "WAVEfmt ", 8);
data/forked-daapd-26.4+dfsg1/src/transcode_legacy.c:232: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(ctx->header + 36, "data", 4);
data/forked-daapd-26.4+dfsg1/src/transcode_legacy.c:806: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[512];
data/forked-daapd-26.4+dfsg1/src/transcode_legacy.c:928: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[512];
data/forked-daapd-26.4+dfsg1/src/websocket.c:235: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(&buf[LWS_PRE], json_response, strlen(json_response));
data/forked-daapd-26.4+dfsg1/src/worker.c:162: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(argcpy, cb_arg, arg_size);
data/forked-daapd-26.4+dfsg1/sqlext/sqlext.c:204: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).
  result = murmur_hash64(hashbuf, strlen(hashbuf), 0) >> 1;
data/forked-daapd-26.4+dfsg1/src/artwork.c:260:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while ((ret = read(fd, buf, sizeof(buf))) > 0)
data/forked-daapd-26.4+dfsg1/src/artwork.c:472: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).
  len = strlen(path);
data/forked-daapd-26.4+dfsg1/src/artwork.c:516: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).
      if ((!ptr) || (strlen(ptr) <= 1))
data/forked-daapd-26.4+dfsg1/src/artwork.c:523:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen(path);
data/forked-daapd-26.4+dfsg1/src/artwork.c:689: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).
  len = strlen(path);
data/forked-daapd-26.4+dfsg1/src/artwork.c:753: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).
  len = strlen(url);
data/forked-daapd-26.4+dfsg1/src/artwork_legacy.c:266:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while ((ret = read(fd, buf, sizeof(buf))) > 0)
data/forked-daapd-26.4+dfsg1/src/artwork_legacy.c:767: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).
  len = strlen(path);
data/forked-daapd-26.4+dfsg1/src/artwork_legacy.c:811: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).
      if ((!ptr) || (strlen(ptr) <= 1))
data/forked-daapd-26.4+dfsg1/src/artwork_legacy.c:818:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen(path);
data/forked-daapd-26.4+dfsg1/src/artwork_legacy.c:1065: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).
  len = strlen(path);
data/forked-daapd-26.4+dfsg1/src/artwork_legacy.c:1129: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).
  len = strlen(url);
data/forked-daapd-26.4+dfsg1/src/cache.c:120: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).
    memmove(s, (e + 1), strlen(e + 1) + 1);
data/forked-daapd-26.4+dfsg1/src/cache.c:409: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).
  ret = sqlite3_prepare_v2(g_db_hdl, Q_VER, strlen(Q_VER) + 1, &stmt, NULL);
data/forked-daapd-26.4+dfsg1/src/cache.c:646:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ( (strncmp(cmdarg->query, "/databases/1/containers/", strlen("/databases/1/containers/")) != 0) &&
data/forked-daapd-26.4+dfsg1/src/cache.c:647:56:  [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).
       (strncmp(cmdarg->query, "/databases/1/groups?", strlen("/databases/1/groups?")) != 0) &&
data/forked-daapd-26.4+dfsg1/src/cache.c:648:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       (strncmp(cmdarg->query, "/databases/1/items?", strlen("/databases/1/items?")) != 0) &&
data/forked-daapd-26.4+dfsg1/src/cache.c:649:56:  [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).
       (strncmp(cmdarg->query, "/databases/1/browse/", strlen("/databases/1/browse/")) != 0) )
data/forked-daapd-26.4+dfsg1/src/cache.c:1589: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).
  if (!g_db_path || (strlen(g_db_path) == 0))
data/forked-daapd-26.4+dfsg1/src/commands.c:123:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = read(cmdbase->command_pipe[0], &cmd, sizeof(cmd));
data/forked-daapd-26.4+dfsg1/src/conffile.c:234: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).
  olen = strlen(libname);
data/forked-daapd-26.4+dfsg1/src/conffile.c:254:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  hostlen = strlen(hostname);
data/forked-daapd-26.4+dfsg1/src/conffile.c:255: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).
  verlen = strlen(VERSION);
data/forked-daapd-26.4+dfsg1/src/conffile.c:324: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).
  libhash = murmur_hash64(expanded, strlen(expanded), 0);
data/forked-daapd-26.4+dfsg1/src/daap_query.c:67:93:  [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).
  query = antlr3StringStreamNew ((pANTLR3_UINT8)daap_query, ANTLR3_ENC_8BIT, (ANTLR3_UINT64)strlen(daap_query), (pANTLR3_UINT8)"DAAP query");
data/forked-daapd-26.4+dfsg1/src/daap_query.c:69:88:  [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).
  query = antlr3NewAsciiStringInPlaceStream ((pANTLR3_UINT8)daap_query, (ANTLR3_UINT64)strlen(daap_query), (pANTLR3_UINT8)"DAAP query");
data/forked-daapd-26.4+dfsg1/src/db.c:679:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      o_ptr = u8_normalize(UNINORM_NFD, (uint8_t *)*sort_tag, strlen(*sort_tag) + 1, NULL, &len);
data/forked-daapd-26.4+dfsg1/src/db.c:685: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).
  if (!src_tag || ((len = strlen(src_tag)) == 0))
data/forked-daapd-26.4+dfsg1/src/db.c:770: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).
  if (mfi->genre && (strlen(mfi->genre) == 0))
data/forked-daapd-26.4+dfsg1/src/db.c:776: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).
  if (mfi->artist && (strlen(mfi->artist) == 0))
data/forked-daapd-26.4+dfsg1/src/db.c:782: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).
  if (mfi->title && (strlen(mfi->title) == 0))
data/forked-daapd-26.4+dfsg1/src/db.c:810: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(mfi->orchestra) + strlen(sep) + strlen(mfi->conductor);
data/forked-daapd-26.4+dfsg1/src/db.c:810: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).
	  len = strlen(mfi->orchestra) + strlen(sep) + strlen(mfi->conductor);
data/forked-daapd-26.4+dfsg1/src/db.c:810:49:  [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(mfi->orchestra) + strlen(sep) + strlen(mfi->conductor);
data/forked-daapd-26.4+dfsg1/src/db.c:829: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).
  if (mfi->tv_series_name && strlen(mfi->tv_series_name) != 0)
data/forked-daapd-26.4+dfsg1/src/db.c:834: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).
      if (mfi->artist && strlen(mfi->artist) == 0)
data/forked-daapd-26.4+dfsg1/src/db.c:844:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (mfi->album && strlen(mfi->album) == 0)
data/forked-daapd-26.4+dfsg1/src/db.c:927:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (queue_item->genre && (strlen(queue_item->genre) == 0))
data/forked-daapd-26.4+dfsg1/src/db.c:933: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).
  if (queue_item->artist && (strlen(queue_item->artist) == 0))
data/forked-daapd-26.4+dfsg1/src/db.c:939:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (queue_item->title && (strlen(queue_item->title) == 0))
data/forked-daapd-26.4+dfsg1/src/db.c:2124:4:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	  strcpy(qp->buf1, "0");
data/forked-daapd-26.4+dfsg1/src/db.c:2132:4:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	  strcpy(qp->buf2, "0");
data/forked-daapd-26.4+dfsg1/src/db.c:2465:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ret = db_blocking_prepare_v2(query, strlen(query) + 1, &stmt, NULL);
data/forked-daapd-26.4+dfsg1/src/db.c:2515:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ret = db_blocking_prepare_v2(query, strlen(query) + 1, &stmt, NULL);
data/forked-daapd-26.4+dfsg1/src/db.c:3060: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).
  path_striplen = (strip == STRIP_PATH) ? strlen(path) : 0;
data/forked-daapd-26.4+dfsg1/src/db.c:3061: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).
  vpath_striplen = (strip == STRIP_PATH) ? strlen("/file:") + path_striplen : 0;
data/forked-daapd-26.4+dfsg1/src/db.c:3080: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).
  path_striplen = (strip == STRIP_PATH) ? strlen(path) : 0;
data/forked-daapd-26.4+dfsg1/src/db.c:3081: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).
  vpath_striplen = (strip == STRIP_PATH) ? strlen("/file:") + path_striplen : 0;
data/forked-daapd-26.4+dfsg1/src/db.c:3656: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).
  path_striplen = (strip == STRIP_PATH) ? strlen(path) : 0;
data/forked-daapd-26.4+dfsg1/src/db.c:3657: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).
  vpath_striplen = (strip == STRIP_PATH) ? strlen("/file:") + path_striplen : 0;
data/forked-daapd-26.4+dfsg1/src/db.c:3676: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).
  path_striplen = (strip == STRIP_PATH) ? strlen(path) : 0;
data/forked-daapd-26.4+dfsg1/src/db.c:3677: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).
  vpath_striplen = (strip == STRIP_PATH) ? strlen("/file:") + path_striplen : 0;
data/forked-daapd-26.4+dfsg1/src/db.c:3757:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ret = db_blocking_prepare_v2(query, strlen(query) + 1, &stmt, NULL);
data/forked-daapd-26.4+dfsg1/src/db.c:3968: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).
  int vp_len = strlen(di->virtual_path);
data/forked-daapd-26.4+dfsg1/src/db.c:4105: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).
  vpath_striplen = (strip == STRIP_PATH) ? strlen("/file:") + strlen(path) : 0;
data/forked-daapd-26.4+dfsg1/src/db.c:4105:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  vpath_striplen = (strip == STRIP_PATH) ? strlen("/file:") + strlen(path) : 0;
data/forked-daapd-26.4+dfsg1/src/db.c:4368:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ret = db_blocking_prepare_v2(query, strlen(query) + 1, &stmt, NULL);
data/forked-daapd-26.4+dfsg1/src/db.c:6145: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).
  path_striplen = (strip == STRIP_PATH) ? strlen(path) : 0;
data/forked-daapd-26.4+dfsg1/src/db.c:6163: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).
  path_striplen = (strip == STRIP_PATH) ? strlen(path) : 0;
data/forked-daapd-26.4+dfsg1/src/db_upgrade.c:56: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).
  ret = sqlite3_prepare_v2(hdl, Q_INDEX, strlen(Q_INDEX) + 1, &stmt, NULL);
data/forked-daapd-26.4+dfsg1/src/db_upgrade.c:156: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).
  ret = sqlite3_prepare_v2(hdl, dumpquery, strlen(dumpquery) + 1, &stmt, NULL);
data/forked-daapd-26.4+dfsg1/src/db_upgrade.c:1013:34:  [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 (strncmp(path, "http:", strlen("http:")) == 0)
data/forked-daapd-26.4+dfsg1/src/db_upgrade.c:1017: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).
      else if (strncmp(path, "spotify:", strlen("spotify:")) == 0)
data/forked-daapd-26.4+dfsg1/src/db_upgrade.c:1060:34:  [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 (strncmp(path, "spotify:", strlen("spotify:")) == 0)
data/forked-daapd-26.4+dfsg1/src/db_upgrade.c:1325:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(buf, virtual_path, (ptr - virtual_path));
data/forked-daapd-26.4+dfsg1/src/dmap_common.c:195:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(str);
data/forked-daapd-26.4+dfsg1/src/dmap_common.c:354: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 = 12 + 8 + 8 + strlen(errmsg);
data/forked-daapd-26.4+dfsg1/src/evrtsp/rtsp.c:207: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).
	assert(strlen(del) == 1);
data/forked-daapd-26.4+dfsg1/src/evrtsp/rtsp.c:382: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).
	len = strlen(RTSP_PREFIX);
data/forked-daapd-26.4+dfsg1/src/evrtsp/rtsp.c:1046: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).
	old_len = strlen(header->value);
data/forked-daapd-26.4+dfsg1/src/evrtsp/rtsp.c:1047:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	line_len = strlen(line);
data/forked-daapd-26.4+dfsg1/src/http.c:205:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(host) == 0)
data/forked-daapd-26.4+dfsg1/src/http.c:220:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(path) == 0)
data/forked-daapd-26.4+dfsg1/src/http.c:278:53:  [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).
      evbuffer_add(output_buffer, ctx->output_body, strlen(ctx->output_body));
data/forked-daapd-26.4+dfsg1/src/http.c:396:34:  [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 (strncmp(ctx->url, "http:", strlen("http:")) == 0)
data/forked-daapd-26.4+dfsg1/src/http.c:400: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).
  if (strncmp(ctx->url, "https:", strlen("https:")) == 0)
data/forked-daapd-26.4+dfsg1/src/http.c:530: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 (strncasecmp(line, "[playlist]", strlen("[playlist]")) == 0)
data/forked-daapd-26.4+dfsg1/src/http.c:545: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).
	  if (strncasecmp(pos, "file", strlen("file")) != 0)
data/forked-daapd-26.4+dfsg1/src/http.c:564: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 (strncasecmp(line, "http://", strlen("http://")) == 0)
data/forked-daapd-26.4+dfsg1/src/http.c:625: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).
      if ((strncmp(icy_token, "StreamTitle", strlen("StreamTitle")) == 0) && !metadata->title)
data/forked-daapd-26.4+dfsg1/src/http.c:642:49:  [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 ((strncmp(icy_token, "StreamUrl", strlen("StreamUrl")) == 0) && !metadata->artwork_url)
data/forked-daapd-26.4+dfsg1/src/http.c:655: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).
    metadata->hash = djb_hash(metadata->title, strlen(metadata->title));
data/forked-daapd-26.4+dfsg1/src/http.c:694:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if ((strncmp(icy_token, "icy-name", strlen("icy-name")) == 0) && !metadata->name)
data/forked-daapd-26.4+dfsg1/src/http.c:696:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      else if ((strncmp(icy_token, "icy-description", strlen("icy-description")) == 0) && !metadata->description)
data/forked-daapd-26.4+dfsg1/src/http.c:698:49:  [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 ((strncmp(icy_token, "icy-genre", strlen("icy-genre")) == 0) && !metadata->genre)
data/forked-daapd-26.4+dfsg1/src/httpd.c:144: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).
  return strncmp(webroot_directory, path, strlen(webroot_directory));
data/forked-daapd-26.4+dfsg1/src/httpd.c:391: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(deref) + 1 > PATH_MAX)
data/forked-daapd-26.4+dfsg1/src/httpd.c:415: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).
      slashed = (path[strlen(path) - 1] == '/');
data/forked-daapd-26.4+dfsg1/src/httpd.c:484:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while ((ret = read(fd, buf, sizeof(buf))) > 0)
data/forked-daapd-26.4+dfsg1/src/httpd.c:697:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = read(st->fd, st->buf, chunk_size);
data/forked-daapd-26.4+dfsg1/src/httpd.c:1056: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).
      ret = safe_atoi64(param + strlen("bytes="), &offset);
data/forked-daapd-26.4+dfsg1/src/httpd.c:1066: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).
	  if (param_end && (strlen(param_end) > 1))
data/forked-daapd-26.4+dfsg1/src/httpd.c:1537:31:  [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 (strncmp(auth, "Basic ", strlen("Basic ")) != 0)
data/forked-daapd-26.4+dfsg1/src/httpd.c:1544: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).
  auth += strlen("Basic ");
data/forked-daapd-26.4+dfsg1/src/httpd.c:1607:39:  [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).
  evbuffer_add(evbuf, http_reply_401, strlen(http_reply_401));
data/forked-daapd-26.4+dfsg1/src/httpd.c:1750: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(allow_origin) != 0)
data/forked-daapd-26.4+dfsg1/src/httpd_daap.c:389: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).
  len = strlen(str);
data/forked-daapd-26.4+dfsg1/src/httpd_daap.c:630: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).
  while ((ptr = strchr(ptr + 1, ',')) && (strlen(ptr) > 1))
data/forked-daapd-26.4+dfsg1/src/httpd_daap.c:644: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).
	  meta[i] = dmap_find_field_wrapper(field, strlen(field));
data/forked-daapd-26.4+dfsg1/src/httpd_daap.c:749:66:  [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).
      || (strncmp(hreq->uri_parsed->path, "/databases/1/items/", strlen("/databases/1/items/")) == 0))
data/forked-daapd-26.4+dfsg1/src/httpd_daap.c:825:64:  [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 (hreq->user_agent && (strncmp(hreq->user_agent, "iTunes", strlen("iTunes")) == 0))
data/forked-daapd-26.4+dfsg1/src/httpd_daap.c:889: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).
    len += 8 + 12 + 10 + 8 + strlen(dmap_fields[i].desc);
data/forked-daapd-26.4+dfsg1/src/httpd_daap.c:898: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).
      len = 12 + 10 + 8 + strlen(dmap_fields[i].desc);
data/forked-daapd-26.4+dfsg1/src/httpd_daap.c:924: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(param) < 3)
data/forked-daapd-26.4+dfsg1/src/httpd_daap.c:1695: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(dbgri.itemname) == 0)
data/forked-daapd-26.4+dfsg1/src/httpd_daap.c:2330: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 (strncmp(path, "/databases/", strlen("/databases/")) == 0)
data/forked-daapd-26.4+dfsg1/src/httpd_dacp.c:184: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).
      id = djb_hash(queue_item->album, strlen(queue_item->album));
data/forked-daapd-26.4+dfsg1/src/httpd_dacp.c:333:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen(queuefilter);
data/forked-daapd-26.4+dfsg1/src/httpd_dacp.c:522:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = 8 + strlen(spk->name) + 28;
data/forked-daapd-26.4+dfsg1/src/httpd_dacp.c:697:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  read(update_pipe[0], &dummy, sizeof(dummy));
data/forked-daapd-26.4+dfsg1/src/httpd_dacp.c:2384:34:  [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).
      dpm = dacp_find_prop(prop, strlen(prop));
data/forked-daapd-26.4+dfsg1/src/httpd_dacp.c:2447: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).
      dpm = dacp_find_prop(param->key, strlen(param->key));
data/forked-daapd-26.4+dfsg1/src/httpd_dacp.c:2518:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(param) == 0)
data/forked-daapd-26.4+dfsg1/src/httpd_dacp.c:2713: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).
  if (strncmp(path, "/ctrl-int/", strlen("/ctrl-int/")) == 0)
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c:300: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(dbgri.itemname) == 0)
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.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).
      if (strlen(dbgri.itemname) == 0)
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c:761: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 (user && strlen(user) > 0 && password && strlen(password) > 0)
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c:761: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).
  if (user && strlen(user) > 0 && password && strlen(password) > 0)
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c:783: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).
      if (!user || strlen(user) == 0)
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c:785: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).
      if (!password || strlen(password) == 0)
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c:855: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 (user && strlen(user) > 0 && password && strlen(password) > 0)
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c:855: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).
  if (user && strlen(user) > 0 && password && strlen(password) > 0)
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c:880: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).
      if (!user || strlen(user) == 0)
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c:882: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).
      if (!password || strlen(password) == 0)
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c:1659:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strncmp(uri, "library:artist:", strlen("library:artist:")) == 0)
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c:1661: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).
	  id = uri + (strlen("library:artist:"));
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c:1664: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).
      else if (strncmp(uri, "library:album:", strlen("library:album:")) == 0)
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c:1666: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).
	  id = uri + (strlen("library:album:"));
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c:1669: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).
      else if (strncmp(uri, "library:track:", strlen("library:track:")) == 0)
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c:1671: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).
	  id = uri + (strlen("library:track:"));
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c:1674:50:  [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 (strncmp(uri, "library:playlist:", strlen("library:playlist:")) == 0)
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c:1676: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).
	  id = uri + (strlen("library:playlist:"));
data/forked-daapd-26.4+dfsg1/src/httpd_jsonapi.c:2978: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).
  if (strncmp(path, "/api/", strlen("/api/")) == 0)
data/forked-daapd-26.4+dfsg1/src/httpd_oauth.c:118: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).
  if (strncmp(path, "/oauth/", strlen("/oauth/")) == 0)
data/forked-daapd-26.4+dfsg1/src/httpd_rsp.c:146:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ret = evbuffer_add(evbuf, xml, strlen(xml));
data/forked-daapd-26.4+dfsg1/src/httpd_rsp.c:579: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).
	  if (!(*strval) || (strlen(*strval) == 0))
data/forked-daapd-26.4+dfsg1/src/httpd_rsp.c:861: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).
  if (strncmp(path, "/rsp/", strlen("/rsp/")) == 0)
data/forked-daapd-26.4+dfsg1/src/httpd_streaming.c:131:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ret = read(streaming_pipe[0], &streaming_rawbuf, STREAMING_RAWBUF_SIZE);
data/forked-daapd-26.4+dfsg1/src/inputs/pipe.c:456: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).
  evptr = evbuffer_search(evbuf, "</item>", strlen("</item>"), NULL);
data/forked-daapd-26.4+dfsg1/src/inputs/pipe.c:460: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 = evptr.pos + strlen("</item>") + 1;
data/forked-daapd-26.4+dfsg1/src/inputs/pipe.c:812:53:  [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).
  worker_execute(pipe_metadata_watch_add, ps->path, strlen(ps->path) + 1, 0);
data/forked-daapd-26.4+dfsg1/src/inputs/spotify.c:45:7:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
      usleep(SPOTIFY_SETUP_RETRY_WAIT);
data/forked-daapd-26.4+dfsg1/src/lastfm.c:94: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).
      gcry_md_write(md_hdl, okv->name, strlen(okv->name));
data/forked-daapd-26.4+dfsg1/src/lastfm.c:95:41:  [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).
      gcry_md_write(md_hdl, okv->value, strlen(okv->value));
data/forked-daapd-26.4+dfsg1/src/lastfm.c:98: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).
  gcry_md_write(md_hdl, lastfm_secret, strlen(lastfm_secret));
data/forked-daapd-26.4+dfsg1/src/lastfm.c:136: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 (!body || (strlen(body) == 0))
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:172: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).
  if ((!filename) || (strlen(filename) == 1))
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:320: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).
  if ((!filename) || (strlen(filename) == 1))
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:331:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (!ext || (strlen(ext) == 1))
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:866: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(ptr) <= 1)
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:872:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(buf, path, (ptr - path));
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:1215: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).
  path_hash = djb_hash(path, strlen(path));
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:1464:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = read(fd, buf, size);
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:1709: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).
  if (strncasecmp(uri, "http://", strlen("http://")) == 0)
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:1721:39:  [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 (strncmp(virtual_path, "/file:", strlen("/file:")) == 0)
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:1722: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).
    return virtual_path + strlen("/file:");
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:1724: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).
  if (strncmp(virtual_path, "file:", strlen("file:")) == 0)
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:1725: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).
    return virtual_path + strlen("file:");
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:1758: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).
      if (strncmp(dir, lib_dir, strlen(lib_dir)) == 0)
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:1772: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).
  return (strlen(file) > 4 && !strcmp(file + strlen(file) - 4, suffix));
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:1772: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).
  return (strlen(file) > 4 && !strcmp(file + strlen(file) - 4, suffix));
data/forked-daapd-26.4+dfsg1/src/library/filescanner.c:1896:50:  [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 (strncasecmp(virtual_path, "/http://", strlen("/http://")) == 0)
data/forked-daapd-26.4+dfsg1/src/library/filescanner_ffmpeg.c:258: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 ((mdt->value == NULL) || (strlen(mdt->value) == 0))
data/forked-daapd-26.4+dfsg1/src/library/filescanner_itunes.c:455: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 (strncmp(location, "file://", strlen("file://")) != 0)
data/forked-daapd-26.4+dfsg1/src/library/filescanner_itunes.c:462:39:  [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 = evhttp_decode_uri(location + strlen("file://"));
data/forked-daapd-26.4+dfsg1/src/library/filescanner_playlist.c:51: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).
  if (strncmp(string, "#EXTINF:", strlen("#EXTINF:")) != 0)
data/forked-daapd-26.4+dfsg1/src/library/filescanner_playlist.c:55: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 (!ptr || strlen(ptr) < 2)
data/forked-daapd-26.4+dfsg1/src/library/filescanner_playlist.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 (ptr && strlen(ptr) > 3)
data/forked-daapd-26.4+dfsg1/src/library/filescanner_playlist.c:130: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).
  for (i = 0; i < strlen(path); i++)
data/forked-daapd-26.4+dfsg1/src/library/filescanner_playlist.c:311:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen(buf);
data/forked-daapd-26.4+dfsg1/src/library/filescanner_playlist.c:328:68:  [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 ((pl_format == PLAYLIST_PLS) && (strncasecmp(buf, "file", strlen("file")) == 0))
data/forked-daapd-26.4+dfsg1/src/main.c:186:7:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
      umask(0);
data/forked-daapd-26.4+dfsg1/src/main.c:246: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).
  hash = djb_hash(libname, strlen(libname));
data/forked-daapd-26.4+dfsg1/src/main.c:370:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while (read(fd, &info, sizeof(struct signalfd_siginfo)) > 0)
data/forked-daapd-26.4+dfsg1/src/mdns_dnssd.c:386:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          err = TXTRecordSetValue(&(s->txtRecord), txt[i], strlen(eq) * sizeof(char), eq);
data/forked-daapd-26.4+dfsg1/src/misc.c:440: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).
  return keyval_add_size(kv, name, value, strlen(value));
data/forked-daapd-26.4+dfsg1/src/misc.c:590:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (!lines[i] || (strlen(lines[i]) == 0))
data/forked-daapd-26.4+dfsg1/src/misc.c:619: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).
  len = strlen(str);
data/forked-daapd-26.4+dfsg1/src/misc.c:668: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).
  ptr = start + strlen(start) - 1;
data/forked-daapd-26.4+dfsg1/src/misc.c:739: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).
  len = strlen(b64);
data/forked-daapd-26.4+dfsg1/src/misc.c:1011: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).
  if (strncmp(addr, "::ffff:", strlen("::ffff:")) == 0)
data/forked-daapd-26.4+dfsg1/src/misc.c:1012:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    addr += strlen("::ffff:");
data/forked-daapd-26.4+dfsg1/src/misc.c:1024:34:  [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 (strncmp(network, addr, strlen(network)) == 0)
data/forked-daapd-26.4+dfsg1/src/misc_json.c:146: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).
  if (!json_str || (strlen(json_str) == 0))
data/forked-daapd-26.4+dfsg1/src/mpd.c:2960: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).
  if (argc < 2 || strlen(argv[1]) == 0
data/forked-daapd-26.4+dfsg1/src/mpd.c:2961: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).
      || (strncmp(argv[1], "/", 1) == 0 && strlen(argv[1]) == 1))
data/forked-daapd-26.4+dfsg1/src/mpd.c:3000: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).
  if (argc < 2 || strlen(argv[1]) == 0
data/forked-daapd-26.4+dfsg1/src/mpd.c:3001: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).
      || (strncmp(argv[1], "/", 1) == 0 && strlen(argv[1]) == 1))
data/forked-daapd-26.4+dfsg1/src/mpd.c:3045: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).
  if (argc < 2 || strlen(argv[1]) == 0
data/forked-daapd-26.4+dfsg1/src/mpd.c:3046: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).
      || (strncmp(argv[1], "/", 1) == 0 && strlen(argv[1]) == 1))
data/forked-daapd-26.4+dfsg1/src/mpd.c:3066: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 ((strncmp(parent, "/", 1) == 0 && strlen(parent) == 1))
data/forked-daapd-26.4+dfsg1/src/mpd.c:3197: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).
  if (argc > 1 && strlen(argv[1]) > 0)
data/forked-daapd-26.4+dfsg1/src/outputs/alsa.c:1007: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 (mixer_device_name == NULL || strlen(mixer_device_name) == 0)
data/forked-daapd-26.4+dfsg1/src/outputs/cast.c:1250: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).
  id = djb_hash(name, strlen(name));
data/forked-daapd-26.4+dfsg1/src/outputs/fifo.c:227:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bytes = read(fifo_session->input_fd, buf, FIFO_BUFFER_SIZE);
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:997:31:  [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).
  gcry_md_write(hd, username, strlen(username));
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:999: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).
  gcry_md_write(hd, rs->realm, strlen(rs->realm));
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:1001: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).
  gcry_md_write(hd, rs->password, strlen(rs->password));
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:1018: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).
  gcry_md_write(hd, method, strlen(method));
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:1020: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).
  gcry_md_write(hd, uri, strlen(uri));
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:1039: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).
  gcry_md_write(hd, rs->nonce, strlen(rs->nonce));
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:1105: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).
  if (strncmp(param, "Digest ", strlen("Digest ")) != 0)
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:3867: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).
  if (strncmp(param, "RTP/AVP/UDP;", strlen("RTP/AVP/UDP;")) != 0)
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:4713: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).
  else if (strncmp(p, "AirPort4", strlen("AirPort4")) == 0)
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:4715:34:  [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 (strncmp(p, "AirPort", strlen("AirPort")) == 0)
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:4717: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).
  else if (strncmp(p, "AppleTV5,3", strlen("AppleTV5,3")) == 0)
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:4719:34:  [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 (strncmp(p, "AppleTV", strlen("AppleTV")) == 0)
data/forked-daapd-26.4+dfsg1/src/outputs/raop.c:4941:31:  [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).
  ssrc_id = djb_hash(libname, strlen(libname));
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:452: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).
  hash_update( alg, &ctx, username, strlen(username) );
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:515:39:  [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).
  hash(alg, (const unsigned char *)I, strlen(I), H_I);
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:552: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).
  int              ulen = strlen(username) + 1;
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:1038:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ret = hash_ab(HASH_SHA512, key, (unsigned char *)AES_SETUP_KEY, strlen(AES_SETUP_KEY), session_key, session_key_len);
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:1045:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ret = hash_ab(HASH_SHA512, iv, (unsigned char *)AES_SETUP_IV, strlen(AES_SETUP_IV), session_key, session_key_len);
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:1211:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(authorisation_key) != 2 * (sizeof(vctx->client_public_key) + sizeof(vctx->client_private_key)))
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:1313:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ret = hash_ab(HASH_SHA512, key, (unsigned char *)AES_VERIFY_KEY, strlen(AES_VERIFY_KEY), shared_secret, sizeof(shared_secret));
data/forked-daapd-26.4+dfsg1/src/outputs/raop_verification.c:1320:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ret = hash_ab(HASH_SHA512, iv, (unsigned char *)AES_VERIFY_IV, strlen(AES_VERIFY_IV), shared_secret, sizeof(shared_secret));
data/forked-daapd-26.4+dfsg1/src/player.c:1083:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = read(fd, &overrun, sizeof(overrun));
data/forked-daapd-26.4+dfsg1/src/remote_pairing.c:102:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(paircode) != 16)
data/forked-daapd-26.4+dfsg1/src/remote_pairing.c:108:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(pin) != 4)
data/forked-daapd-26.4+dfsg1/src/remote_pairing.c:616:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while (read(pairing_pipe[0], &dummy, sizeof(dummy)) >= 0)
data/forked-daapd-26.4+dfsg1/src/remote_pairing.c:739: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).
  ret = strlen(arglist[0]);
data/forked-daapd-26.4+dfsg1/src/rsp_query.c:61:92:  [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).
  query = antlr3StringStreamNew ((pANTLR3_UINT8)rsp_query, ANTLR3_ENC_8BIT, (ANTLR3_UINT64)strlen(rsp_query), (pANTLR3_UINT8)"RSP query");
data/forked-daapd-26.4+dfsg1/src/rsp_query.c:63:87:  [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).
  query = antlr3NewAsciiStringInPlaceStream ((pANTLR3_UINT8)rsp_query, (ANTLR3_UINT64)strlen(rsp_query), (pANTLR3_UINT8)"RSP query");
data/forked-daapd-26.4+dfsg1/src/smartpl_query.c:199:93:  [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).
  input = antlr3StringStreamNew ((pANTLR3_UINT8)expression, ANTLR3_ENC_8BIT, (ANTLR3_UINT64)strlen(expression), (pANTLR3_UINT8)"SMARTPL expression");
data/forked-daapd-26.4+dfsg1/src/smartpl_query.c:201:88:  [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).
  input = antlr3NewAsciiStringInPlaceStream ((pANTLR3_UINT8)expression, (ANTLR3_UINT64)strlen(expression), (pANTLR3_UINT8)"SMARTPL expression");
data/forked-daapd-26.4+dfsg1/src/spotify.c:1191:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ret = read(g_notify_pipe[0], &dummy, sizeof(dummy));
data/forked-daapd-26.4+dfsg1/src/spotify_webapi.c:188: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 (!body || (strlen(body) == 0))
data/forked-daapd-26.4+dfsg1/src/spotify_webapi.c:290: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).
  if (!response_body || (strlen(response_body) == 0))
data/forked-daapd-26.4+dfsg1/src/spotify_webapi.c:628: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 (date && strlen(date) >= 4)
data/forked-daapd-26.4+dfsg1/src/spotify_webapi.c:630:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(tmp, date, sizeof(tmp));
data/forked-daapd-26.4+dfsg1/src/spotify_webapi.c:714:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(tmp, ptr1, len);
data/forked-daapd-26.4+dfsg1/src/spotify_webapi.c:903: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).
      uri_len = strlen(spotify_auth_uri) + strlen(param) + 3;
data/forked-daapd-26.4+dfsg1/src/spotify_webapi.c:903: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).
      uri_len = strlen(spotify_auth_uri) + strlen(param) + 3;
data/forked-daapd-26.4+dfsg1/src/spotify_webapi.c:1155: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).
  if (strncasecmp(uri, "spotify:track:", strlen("spotify:track:")) == 0)
data/forked-daapd-26.4+dfsg1/src/spotify_webapi.c:1160: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).
  else if (strncasecmp(uri, "spotify:album:", strlen("spotify:album:")) == 0)
data/forked-daapd-26.4+dfsg1/src/spotify_webapi.c:1165:41:  [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 (strncasecmp(uri, "spotify:", strlen("spotify:")) == 0)
data/forked-daapd-26.4+dfsg1/src/transcode.c:1304: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).
	  if (strncmp(user_agent, "iTunes", strlen("iTunes")) == 0)
data/forked-daapd-26.4+dfsg1/src/transcode.c:1306: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).
	  else if (strncmp(user_agent, "QuickTime", strlen("QuickTime")) == 0)
data/forked-daapd-26.4+dfsg1/src/transcode.c:1308: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).
	  else if (strncmp(user_agent, "Front%20Row", strlen("Front%20Row")) == 0)
data/forked-daapd-26.4+dfsg1/src/transcode.c:1310: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).
	  else if (strncmp(user_agent, "AppleCoreMedia", strlen("AppleCoreMedia")) == 0)
data/forked-daapd-26.4+dfsg1/src/transcode.c:1312:41:  [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 (strncmp(user_agent, "Roku", strlen("Roku")) == 0)
data/forked-daapd-26.4+dfsg1/src/transcode.c:1314: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).
	  else if (strncmp(user_agent, "Hifidelio", strlen("Hifidelio")) == 0)
data/forked-daapd-26.4+dfsg1/src/transcode_legacy.c:1259: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).
	  if (strncmp(user_agent, "iTunes", strlen("iTunes")) == 0)
data/forked-daapd-26.4+dfsg1/src/transcode_legacy.c:1261: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).
	  else if (strncmp(user_agent, "QuickTime", strlen("QuickTime")) == 0)
data/forked-daapd-26.4+dfsg1/src/transcode_legacy.c:1263: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).
	  else if (strncmp(user_agent, "Front%20Row", strlen("Front%20Row")) == 0)
data/forked-daapd-26.4+dfsg1/src/transcode_legacy.c:1265: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).
	  else if (strncmp(user_agent, "AppleCoreMedia", strlen("AppleCoreMedia")) == 0)
data/forked-daapd-26.4+dfsg1/src/transcode_legacy.c:1267:41:  [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 (strncmp(user_agent, "Roku", strlen("Roku")) == 0)
data/forked-daapd-26.4+dfsg1/src/transcode_legacy.c:1269: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).
	  else if (strncmp(user_agent, "Hifidelio", strlen("Hifidelio")) == 0)
data/forked-daapd-26.4+dfsg1/src/websocket.c:234: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).
  buf = malloc(LWS_PRE + strlen(json_response));
data/forked-daapd-26.4+dfsg1/src/websocket.c:235: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).
  memcpy(&buf[LWS_PRE], json_response, strlen(json_response));
data/forked-daapd-26.4+dfsg1/src/websocket.c:236: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).
  lws_write(wsi, &buf[LWS_PRE], strlen(json_response), LWS_WRITE_TEXT);

ANALYSIS SUMMARY:

Hits = 590
Lines analyzed = 77507 in approximately 1.65 seconds (47028 lines/second)
Physical Source Lines of Code (SLOC) = 56252
Hits@level = [0] 158 [1] 252 [2] 267 [3]   6 [4]  65 [5]   0
Hits@level+ = [0+] 748 [1+] 590 [2+] 338 [3+]  71 [4+]  65 [5+]   0
Hits/KSLOC@level+ = [0+] 13.2973 [1+] 10.4885 [2+] 6.00868 [3+] 1.26218 [4+] 1.15551 [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.